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 case number: 147 /Coverage entropy=0.8547993329795982
@Test(timeout = 4000) public void test147() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("zO=t1k%z["); Token token0 = xPathLexer0.star(); assertEquals(20, token0.getTokenType()); assertEquals("z", token0.getTokenText()); Token token1 = xPathLexer0.minus(); assertEquals("", token1.getTokenText()); assertEquals(6, token1.getTokenType()); Token token2 = xPathLexer0.dollar(); assertEquals("O", token2.getTokenText()); assertEquals(26, token2.getTokenType()); Token token3 = xPathLexer0.at(); assertEquals("=", token3.getTokenText()); assertEquals(16, token3.getTokenType()); Token token4 = xPathLexer0.not(); assertEquals(23, token4.getTokenType()); assertEquals("t", token4.getTokenText()); Token token5 = xPathLexer0.nextToken(); assertEquals("1", token5.getTokenText()); assertEquals(30, token5.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }" ]
[ "0.72524536", "0.7177919", "0.6890989", "0.6833072", "0.68190247", "0.67792267", "0.67472136", "0.6739055", "0.6737109", "0.6736579", "0.6714047", "0.66928124", "0.66763383", "0.6662579", "0.6659063", "0.6643897", "0.66317666", "0.66249704", "0.6622878", "0.66179657", "0.6572491", "0.6565602", "0.65395874", "0.65179217", "0.64980096", "0.6466115", "0.64655685", "0.64384246", "0.6417825", "0.64072925", "0.6403587", "0.6397505", "0.6366507", "0.63656175", "0.6359218", "0.63462615", "0.63415116", "0.63327557", "0.6315672", "0.6308614", "0.63075906", "0.62999153", "0.62917095", "0.62883365", "0.6280268", "0.6263688", "0.62584054", "0.62440467", "0.6239805", "0.6238987", "0.6237388", "0.62274694", "0.62190557", "0.6215874", "0.62118465", "0.620392", "0.6199055", "0.6190031", "0.6181664", "0.616861", "0.6161194", "0.61522764", "0.6144209", "0.61371475", "0.6132137", "0.6122917", "0.6122453", "0.6121807", "0.6117765", "0.61160743", "0.6104327", "0.6101039", "0.60985065", "0.60963297", "0.60854113", "0.60722905", "0.6072191", "0.6071714", "0.6068233", "0.6065005", "0.60644627", "0.60614324", "0.6049691", "0.6046975", "0.604595", "0.60311776", "0.6017008", "0.59996223", "0.599077", "0.5986954", "0.59766006", "0.5971959", "0.59652865", "0.5961237", "0.59591067", "0.5954005", "0.5953683", "0.5952458", "0.59438133", "0.5942618", "0.5937549" ]
0.0
-1
Test case number: 148 /Coverage entropy=0.7844482981733467
@Test(timeout = 4000) public void test148() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer(")o/f0*4=P~Q{S"); Token token0 = xPathLexer0.dollar(); assertEquals(26, token0.getTokenType()); assertEquals(")", token0.getTokenText()); Token token1 = xPathLexer0.at(); assertEquals("o", token1.getTokenText()); assertEquals(16, token1.getTokenType()); xPathLexer0.not(); Token token2 = xPathLexer0.not(); assertEquals("f", token2.getTokenText()); assertEquals(23, token2.getTokenType()); Token token3 = xPathLexer0.nextToken(); assertEquals(30, token3.getTokenType()); assertEquals("0", token3.getTokenText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setIgnoreClass(true);\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"9/&=Kq&\");\n discretize0.getBinRangesString((-1679));\n int int0 = (-98);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-98));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }" ]
[ "0.73640996", "0.72618055", "0.69347", "0.6933627", "0.69008845", "0.68682104", "0.68667793", "0.6846385", "0.6837784", "0.6827946", "0.6801714", "0.6795379", "0.6751121", "0.6750789", "0.67449164", "0.6731738", "0.6724537", "0.6705492", "0.6701608", "0.6676979", "0.6674966", "0.6592582", "0.6582699", "0.65683997", "0.6555919", "0.65526307", "0.65364325", "0.6521854", "0.6515453", "0.65034187", "0.6488162", "0.64843184", "0.6468549", "0.64516145", "0.64444715", "0.64361715", "0.643541", "0.6410458", "0.64065266", "0.6402812", "0.6384969", "0.6380554", "0.63776904", "0.63682777", "0.63579905", "0.63570064", "0.6355009", "0.6353655", "0.63436675", "0.63436663", "0.63377494", "0.63239485", "0.6312973", "0.6308298", "0.6284404", "0.6278646", "0.62779665", "0.6249179", "0.6247401", "0.62439126", "0.6239495", "0.62387973", "0.62319595", "0.62310034", "0.6205252", "0.61986756", "0.619338", "0.6186635", "0.61852515", "0.61818886", "0.6176215", "0.6172658", "0.6150114", "0.61440897", "0.6143669", "0.61424017", "0.6135742", "0.6127312", "0.61236954", "0.610901", "0.60771483", "0.60685325", "0.6064535", "0.6063897", "0.60614604", "0.6056466", "0.60550314", "0.60485005", "0.60463053", "0.60382766", "0.6031894", "0.6028568", "0.6027327", "0.6023672", "0.6018321", "0.60143363", "0.60085416", "0.6004593", "0.5988799", "0.59725195", "0.5970302" ]
0.0
-1
Test case number: 149 /Coverage entropy=0.4927983298381057
@Test(timeout = 4000) public void test149() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("m6l-dKX`qghFq8(,{"); Token token0 = xPathLexer0.rightParen(); assertEquals(2, token0.getTokenType()); assertEquals("m", token0.getTokenText()); Token token1 = xPathLexer0.notEquals(); assertEquals("6l", token1.getTokenText()); assertEquals(22, token1.getTokenType()); Token token2 = xPathLexer0.nextToken(); assertEquals("-", token2.getTokenText()); assertEquals(6, token2.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n StringKernel stringKernel0 = new StringKernel();\n Capabilities capabilities0 = stringKernel0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate();\n naiveBayesMultinomialText0.buildClassifier(instances0);\n String string0 = naiveBayesMultinomialText0.toString();\n assertEquals(\"The independent probability of a class\\n--------------------------------------\\nclass1\\t6.0\\nclass2\\t6.0\\nclass3\\t6.0\\nclass4\\t6.0\\n\\nThe probability of a word given the class\\n-----------------------------------------\\n\\tclass1\\tclass2\\tclass3\\tclass4\\t\\nover\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nthe\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t\\nThe\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nquick\\t7.38905609893065\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t\\nlazy\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\njumps\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t\\nbrown\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t7.38905609893065\\t\\ndog\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t\\nfox\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\n\", string0);\n assertEquals(2.0, naiveBayesMultinomialText0.getLNorm(), 0.01);\n assertEquals(1.0, naiveBayesMultinomialText0.getNorm(), 0.01);\n assertEquals(3.0, naiveBayesMultinomialText0.getMinWordFrequency(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setIgnoreClass(true);\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\n public void test() throws Exception {\n// diversifiedRankingxPM2()\n diversifiedRankingxQuAD();\n }", "@Test\n public void costTest() {\n // TODO: test cost\n }" ]
[ "0.7263519", "0.7121534", "0.6879855", "0.6877601", "0.6799117", "0.67958903", "0.6785497", "0.6783237", "0.67624503", "0.6752073", "0.6743233", "0.673059", "0.66995794", "0.66900414", "0.66800195", "0.66523045", "0.66276854", "0.6624388", "0.6583263", "0.6580063", "0.6570603", "0.65645766", "0.65486336", "0.6534942", "0.65344954", "0.6508367", "0.64741397", "0.6446452", "0.64424914", "0.6438169", "0.6404088", "0.6396208", "0.6364923", "0.6360262", "0.6321258", "0.6321039", "0.63191354", "0.63191015", "0.6317785", "0.6317452", "0.6312502", "0.6303356", "0.6299467", "0.6294469", "0.6279902", "0.62751955", "0.6266514", "0.62536347", "0.62522715", "0.62435335", "0.6241328", "0.62390214", "0.6234885", "0.6230464", "0.6225081", "0.6211391", "0.62054664", "0.620206", "0.6197378", "0.61862016", "0.6172679", "0.6147393", "0.61453885", "0.6126553", "0.61214834", "0.61120117", "0.61100566", "0.6107889", "0.6106036", "0.610582", "0.61056143", "0.61038744", "0.61023605", "0.60977095", "0.60946816", "0.6086355", "0.60710067", "0.6038321", "0.60339034", "0.60335076", "0.6033232", "0.6029696", "0.6021699", "0.60162383", "0.6013003", "0.5988265", "0.5986087", "0.598207", "0.5981006", "0.5967997", "0.5962707", "0.59617513", "0.5957016", "0.5956829", "0.59501517", "0.594681", "0.5936867", "0.59362763", "0.5933697", "0.59324557", "0.59319717" ]
0.0
-1
Test case number: 150 /Coverage entropy=0.4511636006386335
@Test(timeout = 4000) public void test150() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("4,"); Token token0 = xPathLexer0.leftParen(); assertEquals("4", token0.getTokenText()); assertEquals(1, token0.getTokenType()); Token token1 = xPathLexer0.nextToken(); assertEquals(32, token1.getTokenType()); assertEquals(",", token1.getTokenText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n StringKernel stringKernel0 = new StringKernel();\n Capabilities capabilities0 = stringKernel0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate();\n naiveBayesMultinomialText0.buildClassifier(instances0);\n String string0 = naiveBayesMultinomialText0.toString();\n assertEquals(\"The independent probability of a class\\n--------------------------------------\\nclass1\\t6.0\\nclass2\\t6.0\\nclass3\\t6.0\\nclass4\\t6.0\\n\\nThe probability of a word given the class\\n-----------------------------------------\\n\\tclass1\\tclass2\\tclass3\\tclass4\\t\\nover\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nthe\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t\\nThe\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nquick\\t7.38905609893065\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t\\nlazy\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\njumps\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t\\nbrown\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t7.38905609893065\\t\\ndog\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t\\nfox\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\n\", string0);\n assertEquals(2.0, naiveBayesMultinomialText0.getLNorm(), 0.01);\n assertEquals(1.0, naiveBayesMultinomialText0.getNorm(), 0.01);\n assertEquals(3.0, naiveBayesMultinomialText0.getMinWordFrequency(), 0.01);\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Override\n public int getGridCoverageCount() {\n return 1;\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falseNegativeRate((-2));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@ParameterizedTest\n @ArgumentsSource(TestForestProvider.class)\n public void testMultipleAttributions(RandomCutForest forest) {\n int hardPass=0;\n int causal=0;\n double [] point ={6.0,0.0,0.0};\n DiVector result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.2);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.getHighLowSum(1) + result.getHighLowSum(2) < 1.0);\n assertTrue(result.high[0] > forest.getAnomalyScore(point)/3);\n if (result.high[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n // the last line states that first coordinate was high and was a majority contributor to the score\n // the previous test states that the contribution is twice the average of the 12 possible contributors.\n // these tests all subparts of the score at once\n\n point=new double [] {-6.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.getHighLowSum()>1.0);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] > forest.getAnomalyScore(point)/3);\n if (result.low[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > forest.getAnomalyScore(point)/3);\n if (result.high[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,-6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.low[1] > forest.getAnomalyScore(point)/3);\n if (result.low[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,0.0,6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.low[2] < 0.5);\n assertTrue(result.high[2] > forest.getAnomalyScore(point)/3);\n if (result.high[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n point=new double [] {0.0,0.0,-6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.high[2] < 0.5);\n assertTrue(result.low[2] > forest.getAnomalyScore(point)/3);\n if (result.low[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n assertTrue(causal>=5); // maximum is 6; there can be skew in one direction\n\n point=new double [] {-3.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] >\n forest.getAnomalyScore(point)/3);\n\n /* For multiple causes, the relationship of scores only hold for larger\n * distances.\n */\n\n point=new double [] {-3.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.low[0] > 0.5) ++hardPass;\n assertTrue(result.high[0] < 0.5);\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > 0.5);\n if (result.high[1]>0.9) ++hardPass;\n assertTrue(result.getHighLowSum(2)< 0.5);\n assertTrue(result.high[1]+result.low[0]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {6.0,-3.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.5);\n assertTrue(result.high[0] > 0.5);\n if (result.high[0]>0.9) ++hardPass;\n if (result.low[1] > 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.getHighLowSum(2) < 0.5);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {20.0,-10.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n if (result.high[0]>1.8*result.low[1]) ++hardPass;\n if (result.low[1]>result.high[0]/2.2) ++hardPass;\n\n assertTrue(hardPass>=15); //maximum is 20\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void costTest() {\n // TODO: test cost\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "public int countTestCases() {\n return 1;\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }" ]
[ "0.7153933", "0.69916266", "0.6938716", "0.68642926", "0.68125767", "0.6741422", "0.67112285", "0.66719806", "0.66376436", "0.6633991", "0.6582736", "0.65763295", "0.65478253", "0.65417933", "0.6506145", "0.6497757", "0.64872503", "0.64864457", "0.64772487", "0.64752376", "0.6472865", "0.64720756", "0.64383554", "0.6403089", "0.63936526", "0.63737905", "0.6353856", "0.6321622", "0.63160896", "0.6301626", "0.6291088", "0.62824374", "0.6269306", "0.62655246", "0.6236065", "0.6226789", "0.62220794", "0.62178016", "0.6216099", "0.62101763", "0.62048376", "0.6197833", "0.61955255", "0.6184305", "0.6181431", "0.6175694", "0.616562", "0.6150482", "0.613341", "0.6109696", "0.61089706", "0.6095294", "0.6093488", "0.6079228", "0.6077337", "0.6066175", "0.60594386", "0.6058047", "0.6052317", "0.6046888", "0.6015919", "0.5999358", "0.5998352", "0.5994783", "0.5976975", "0.59712285", "0.5963323", "0.59515226", "0.5944796", "0.5940965", "0.5940758", "0.5939531", "0.5936351", "0.59267616", "0.5907107", "0.5900967", "0.5889921", "0.5887581", "0.5887318", "0.5883966", "0.5872431", "0.58691853", "0.586758", "0.5866507", "0.58610797", "0.58470505", "0.5843929", "0.5837464", "0.5823839", "0.5822604", "0.580492", "0.5804753", "0.57885903", "0.5785773", "0.5783265", "0.57832366", "0.5782594", "0.5778002", "0.57779646", "0.5771097", "0.5770734" ]
0.0
-1
Test case number: 151 /Coverage entropy=1.4026765206128209
@Test(timeout = 4000) public void test151() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("9M4i+yR.T"); Token token0 = xPathLexer0.number(); assertEquals("9", token0.getTokenText()); assertEquals(30, token0.getTokenType()); Token token1 = xPathLexer0.dollar(); assertEquals(26, token1.getTokenType()); assertEquals("M", token1.getTokenText()); Token token2 = xPathLexer0.at(); assertEquals(16, token2.getTokenType()); assertEquals("4", token2.getTokenText()); Token token3 = xPathLexer0.not(); assertEquals("i", token3.getTokenText()); assertEquals(23, token3.getTokenType()); Token token4 = xPathLexer0.nextToken(); assertEquals("+", token4.getTokenText()); assertEquals(5, token4.getTokenType()); Token token5 = xPathLexer0.nextToken(); assertEquals("yR.T", token5.getTokenText()); assertEquals(15, token5.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "public double entropyPotential() {\n \n return (-1.0);\n}", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test\n public void testCalculateProbability() throws IOException, ParseException, MathException {\n System.out.println(\"calculateProbability\");\n OrganizationsRegister ro = info(\"e\", \"f\");\n String id = \"12\";\n String expResult = \"25,25 %\";\n String result = ro.calculateProbability();\n assertEquals(expResult, result);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.relativeAbsoluteError();\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falseNegativeRate((-2));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "Chromosome fittestChromosome();", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.precision((-1484));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@ParameterizedTest\n @ArgumentsSource(TestForestProvider.class)\n public void testMultipleAttributions(RandomCutForest forest) {\n int hardPass=0;\n int causal=0;\n double [] point ={6.0,0.0,0.0};\n DiVector result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.2);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.getHighLowSum(1) + result.getHighLowSum(2) < 1.0);\n assertTrue(result.high[0] > forest.getAnomalyScore(point)/3);\n if (result.high[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n // the last line states that first coordinate was high and was a majority contributor to the score\n // the previous test states that the contribution is twice the average of the 12 possible contributors.\n // these tests all subparts of the score at once\n\n point=new double [] {-6.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.getHighLowSum()>1.0);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] > forest.getAnomalyScore(point)/3);\n if (result.low[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > forest.getAnomalyScore(point)/3);\n if (result.high[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,-6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.low[1] > forest.getAnomalyScore(point)/3);\n if (result.low[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,0.0,6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.low[2] < 0.5);\n assertTrue(result.high[2] > forest.getAnomalyScore(point)/3);\n if (result.high[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n point=new double [] {0.0,0.0,-6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.high[2] < 0.5);\n assertTrue(result.low[2] > forest.getAnomalyScore(point)/3);\n if (result.low[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n assertTrue(causal>=5); // maximum is 6; there can be skew in one direction\n\n point=new double [] {-3.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] >\n forest.getAnomalyScore(point)/3);\n\n /* For multiple causes, the relationship of scores only hold for larger\n * distances.\n */\n\n point=new double [] {-3.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.low[0] > 0.5) ++hardPass;\n assertTrue(result.high[0] < 0.5);\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > 0.5);\n if (result.high[1]>0.9) ++hardPass;\n assertTrue(result.getHighLowSum(2)< 0.5);\n assertTrue(result.high[1]+result.low[0]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {6.0,-3.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.5);\n assertTrue(result.high[0] > 0.5);\n if (result.high[0]>0.9) ++hardPass;\n if (result.low[1] > 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.getHighLowSum(2) < 0.5);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {20.0,-10.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n if (result.high[0]>1.8*result.low[1]) ++hardPass;\n if (result.low[1]>result.high[0]/2.2) ++hardPass;\n\n assertTrue(hardPass>=15); //maximum is 20\n }", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives(2458);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test028() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numTrueNegatives(2308);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public void test_0020() {\n int nFactors = 2;\n FactorAnalysis instance = new FactorAnalysis(data, nFactors);\n\n assertEquals(instance.nObs(), 18., 1e-15);\n assertEquals(instance.nVariables(), 6., 1e-15);\n assertEquals(instance.nFactors(), 2., 1e-15);\n\n FAEstimator estimators = instance.getEstimators(400);\n\n Vector uniqueness = estimators.psi();\n assertArrayEquals(\n new double[]{0.005, 0.114, 0.642, 0.742, 0.005, 0.097},\n uniqueness.toArray(),\n 2e-2);\n\n int dof = estimators.dof();\n assertEquals(dof, 4);\n\n double fitted = estimators.logLikelihood();\n assertEquals(fitted, 1.803, 1e-3);\n\n Matrix loadings = estimators.loadings();\n assertTrue(AreMatrices.equal(\n new DenseMatrix(new double[][]{\n {0.971, 0.228},\n {0.917, 0.213},\n {0.429, 0.418},\n {0.363, 0.355},\n {0.254, 0.965},\n {0.205, 0.928}\n }),\n loadings,\n 1e-3));\n\n double testStats = estimators.statistics();\n assertEquals(testStats, 23.14, 1e-2);\n\n double pValue = estimators.pValue();\n assertEquals(pValue, 0.000119, 1e-6);//R: 1-pchisq(23.14, df=4) = 0.0001187266\n\n// System.out.println(uniqueness.toString());\n// System.out.println(fitted);\n// System.out.println(loadings.toString());\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n public void test23() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n SerializedClassifier serializedClassifier0 = new SerializedClassifier();\n Object[] objectArray0 = new Object[25];\n double[] doubleArray0 = evaluation0.evaluateModel((Classifier) serializedClassifier0, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.meanAbsoluteError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }" ]
[ "0.7099927", "0.7013053", "0.68384564", "0.6790065", "0.67298365", "0.6654438", "0.6651764", "0.6643092", "0.6641806", "0.66403323", "0.6618682", "0.66078067", "0.65902156", "0.65825456", "0.6553951", "0.65250754", "0.6518337", "0.6490539", "0.64778763", "0.64677215", "0.64517707", "0.6444261", "0.64432514", "0.6433731", "0.6409266", "0.6394932", "0.6381841", "0.63798463", "0.6320254", "0.62963545", "0.6283594", "0.62770236", "0.62715274", "0.6270482", "0.62604284", "0.62545586", "0.6244056", "0.6232833", "0.6226957", "0.62241006", "0.6196949", "0.6186985", "0.6175171", "0.61658794", "0.6163415", "0.6145446", "0.61350334", "0.6127916", "0.6126297", "0.61040133", "0.6103673", "0.6101748", "0.6099306", "0.60931957", "0.6088558", "0.60749495", "0.6061639", "0.6057861", "0.60377914", "0.6033424", "0.6024163", "0.60215783", "0.6017493", "0.5998463", "0.59874284", "0.59660393", "0.59621525", "0.5942098", "0.59189564", "0.58650786", "0.58633673", "0.5850791", "0.5846213", "0.58350074", "0.5831192", "0.58270115", "0.58138317", "0.5791285", "0.579004", "0.57867634", "0.5782761", "0.57796407", "0.57796", "0.57758677", "0.57710075", "0.5766046", "0.57594115", "0.57588035", "0.5743759", "0.57415503", "0.5727336", "0.57191545", "0.5706684", "0.57045496", "0.5698174", "0.5684894", "0.56827325", "0.5678543", "0.5678038", "0.5675445", "0.56741107" ]
0.0
-1
Test case number: 152 /Coverage entropy=0.4089388914174921
@Test(timeout = 4000) public void test152() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("*?^k*=?5o_,;~y"); Token token0 = xPathLexer0.nextToken(); assertEquals(20, token0.getTokenType()); assertEquals("*", token0.getTokenText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@org.junit.Test\n public void coverage()\n {\n new Encodings();\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setIgnoreClass(true);\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"9/&=Kq&\");\n discretize0.getBinRangesString((-1679));\n int int0 = (-98);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-98));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_30() {\n CuteNetlibCase.doTest(\"OSA-30.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSCSD8() {\n CuteNetlibCase.doTest(\"SCSD8.SIF\", \"905\", null, NumberContext.of(7, 4));\n }" ]
[ "0.71300256", "0.71056587", "0.6803823", "0.6772896", "0.6768817", "0.6688507", "0.6679378", "0.6645095", "0.66389257", "0.66196114", "0.66150737", "0.66133946", "0.6610224", "0.6565376", "0.6558574", "0.6541818", "0.6522415", "0.65203243", "0.65048337", "0.6486942", "0.6479089", "0.6457268", "0.6455562", "0.64509237", "0.6449351", "0.6399775", "0.639237", "0.6366328", "0.6358538", "0.6351178", "0.63264304", "0.6313486", "0.62946373", "0.6292613", "0.6290583", "0.6272016", "0.6265811", "0.6260539", "0.62595123", "0.6252021", "0.6250916", "0.6246393", "0.6245897", "0.6245697", "0.6244442", "0.6241633", "0.62258327", "0.62196636", "0.62176335", "0.6214571", "0.61936796", "0.6190195", "0.6176722", "0.61763096", "0.6162209", "0.6157193", "0.6156351", "0.6154682", "0.61519784", "0.61504716", "0.6142767", "0.6139356", "0.6137503", "0.6136607", "0.61274415", "0.6111413", "0.6109344", "0.61032385", "0.609896", "0.6090761", "0.6086108", "0.6071797", "0.6068316", "0.60673183", "0.6058256", "0.6056994", "0.60553724", "0.6038967", "0.6031811", "0.6029774", "0.60224164", "0.60220295", "0.60180193", "0.60084856", "0.6007805", "0.6006154", "0.5997986", "0.5990961", "0.5988352", "0.59867", "0.59830153", "0.5977096", "0.59760106", "0.59662306", "0.5964164", "0.59589124", "0.5956811", "0.59525937", "0.5938915", "0.593577", "0.5931958" ]
0.0
-1
Test case number: 153 /Coverage entropy=0.4089388914174921
@Test(timeout = 4000) public void test153() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer(") ("); Token token0 = xPathLexer0.nextToken(); assertEquals(")", token0.getTokenText()); assertEquals(2, token0.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setIgnoreClass(true);\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"9/&=Kq&\");\n discretize0.getBinRangesString((-1679));\n int int0 = (-98);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-98));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setInvertSelection(true);\n discretize0.useEqualFrequencyTipText();\n int int0 = (-501);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-501));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void costTest() {\n // TODO: test cost\n }" ]
[ "0.7262307", "0.71282756", "0.6903715", "0.6865025", "0.6854876", "0.68194175", "0.6796121", "0.6761381", "0.6748059", "0.6735244", "0.6728147", "0.6712813", "0.6709836", "0.669659", "0.66590875", "0.6632344", "0.66284585", "0.6624851", "0.66204345", "0.65943503", "0.6591212", "0.6579293", "0.6572459", "0.6510775", "0.65088934", "0.6460913", "0.6460733", "0.64577633", "0.6438723", "0.6414298", "0.6410813", "0.6410396", "0.6403822", "0.6401453", "0.63855726", "0.6354722", "0.6352932", "0.63497645", "0.63487035", "0.63397545", "0.633956", "0.63141763", "0.6313355", "0.6310098", "0.63035625", "0.62958676", "0.629377", "0.6279212", "0.62748265", "0.6270161", "0.626167", "0.6251978", "0.6246384", "0.6241793", "0.6237233", "0.62341297", "0.62335765", "0.62205815", "0.62181956", "0.62102", "0.6208904", "0.62079483", "0.61990076", "0.61725837", "0.6168512", "0.6168249", "0.616742", "0.61627305", "0.61552733", "0.6140344", "0.61401254", "0.6131798", "0.61288136", "0.6115965", "0.61125714", "0.61086696", "0.60955155", "0.6094678", "0.60815686", "0.6076205", "0.6070883", "0.60579133", "0.6054379", "0.60526925", "0.60516226", "0.60484165", "0.6043206", "0.60431373", "0.6042822", "0.6042246", "0.6040632", "0.6037961", "0.60317725", "0.6030856", "0.6025304", "0.6025083", "0.60177445", "0.6005909", "0.5998772", "0.59861475", "0.5970074" ]
0.0
-1
Test case number: 154 /Coverage entropy=0.56217493659866
@Test(timeout = 4000) public void test154() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("'=X_"); Token token0 = xPathLexer0.nextToken(); assertEquals((-1), token0.getTokenType()); assertEquals("", token0.getTokenText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"9/&=Kq&\");\n discretize0.getBinRangesString((-1679));\n int int0 = (-98);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-98));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }" ]
[ "0.7250225", "0.71259886", "0.6829385", "0.6809697", "0.67997104", "0.67767525", "0.6757195", "0.6752136", "0.67510486", "0.67335814", "0.6693152", "0.66701764", "0.6668765", "0.6656198", "0.66514736", "0.66512287", "0.6641839", "0.66240054", "0.6622262", "0.6607724", "0.65807927", "0.6528483", "0.6517916", "0.65040714", "0.64898336", "0.64724135", "0.6469633", "0.6431297", "0.64097935", "0.6404105", "0.64005274", "0.63922626", "0.6391184", "0.63829213", "0.6374259", "0.63605785", "0.635092", "0.63503444", "0.6346683", "0.633599", "0.6332551", "0.6325928", "0.6322146", "0.6307011", "0.630025", "0.62956506", "0.62853646", "0.62754387", "0.6272019", "0.6269071", "0.6256064", "0.6253558", "0.6252297", "0.6243568", "0.622933", "0.6225588", "0.6212134", "0.62113756", "0.61883795", "0.6179305", "0.6173215", "0.6170683", "0.61532426", "0.61500996", "0.61455345", "0.6136921", "0.6133851", "0.61257815", "0.61257344", "0.61203814", "0.6119539", "0.61194384", "0.6112861", "0.61073446", "0.60977995", "0.60888374", "0.60874766", "0.6085646", "0.6070613", "0.6061174", "0.6056785", "0.6053289", "0.60486203", "0.60402626", "0.6028092", "0.6027015", "0.601916", "0.60145354", "0.60142845", "0.6010022", "0.600544", "0.60037404", "0.5998138", "0.59971464", "0.59856427", "0.59854573", "0.59771967", "0.5965302", "0.59575695", "0.59567606", "0.5949365" ]
0.0
-1
Test case number: 155 /Coverage entropy=0.3955852454859713
@Test(timeout = 4000) public void test155() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("&b/Xk]"); Token token0 = xPathLexer0.nextToken(); assertEquals("&b/Xk]", token0.getTokenText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"9/&=Kq&\");\n discretize0.getBinRangesString((-1679));\n int int0 = (-98);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-98));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falseNegativeRate((-2));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }" ]
[ "0.7311667", "0.7198613", "0.6957915", "0.6906774", "0.68919253", "0.6871355", "0.6864015", "0.6768932", "0.67682105", "0.67411685", "0.6740603", "0.67246234", "0.67194366", "0.67038", "0.66867226", "0.6684067", "0.6679947", "0.66598386", "0.6655817", "0.66389114", "0.66382694", "0.66120607", "0.65725404", "0.6532622", "0.65252215", "0.65219885", "0.6517276", "0.64874077", "0.64625096", "0.6414813", "0.6408936", "0.6396905", "0.63960207", "0.63558084", "0.63512915", "0.6351001", "0.6344375", "0.6337511", "0.6327042", "0.63266456", "0.63196623", "0.6297544", "0.62924373", "0.62913275", "0.6289731", "0.6288377", "0.6278458", "0.626693", "0.6265827", "0.6253102", "0.623831", "0.6236971", "0.6228688", "0.62213767", "0.6215988", "0.6196259", "0.6194807", "0.61777073", "0.6173825", "0.61655563", "0.6160561", "0.61498463", "0.61327165", "0.6123814", "0.61168075", "0.61132544", "0.60887825", "0.60877484", "0.6066631", "0.6060263", "0.605744", "0.60537946", "0.60489464", "0.60441524", "0.6041488", "0.6026832", "0.60206676", "0.601225", "0.60035235", "0.59984696", "0.5995511", "0.5986442", "0.59751165", "0.597232", "0.5943156", "0.594181", "0.59363467", "0.5936102", "0.5935061", "0.59298074", "0.59207225", "0.5918773", "0.5917931", "0.5917526", "0.59165996", "0.59162664", "0.59119856", "0.5911906", "0.5909066", "0.58929265", "0.58909065" ]
0.0
-1
Test case number: 156 /Coverage entropy=0.520034471866936
@Test(timeout = 4000) public void test156() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("II%oBQL*c"); Token token0 = xPathLexer0.not(); assertEquals(23, token0.getTokenType()); assertEquals("I", token0.getTokenText()); Token token1 = xPathLexer0.star(); assertEquals("I", token1.getTokenText()); assertEquals(20, token1.getTokenType()); Token token2 = xPathLexer0.nextToken(); assertEquals("%oBQL*c", token2.getTokenText()); assertEquals((-1), token2.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n StringKernel stringKernel0 = new StringKernel();\n Capabilities capabilities0 = stringKernel0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate();\n naiveBayesMultinomialText0.buildClassifier(instances0);\n String string0 = naiveBayesMultinomialText0.toString();\n assertEquals(\"The independent probability of a class\\n--------------------------------------\\nclass1\\t6.0\\nclass2\\t6.0\\nclass3\\t6.0\\nclass4\\t6.0\\n\\nThe probability of a word given the class\\n-----------------------------------------\\n\\tclass1\\tclass2\\tclass3\\tclass4\\t\\nover\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nthe\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t\\nThe\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nquick\\t7.38905609893065\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t\\nlazy\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\njumps\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t\\nbrown\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t7.38905609893065\\t\\ndog\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t\\nfox\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\n\", string0);\n assertEquals(2.0, naiveBayesMultinomialText0.getLNorm(), 0.01);\n assertEquals(1.0, naiveBayesMultinomialText0.getNorm(), 0.01);\n assertEquals(3.0, naiveBayesMultinomialText0.getMinWordFrequency(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testAGG3() {\n CuteNetlibCase.doTest(\"AGG3.SIF\", \"1.031211593508922E7\", \"5.746768863949547E9\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }" ]
[ "0.735743", "0.72343326", "0.6924815", "0.68898654", "0.6865137", "0.6837514", "0.67807657", "0.67647946", "0.672382", "0.67092", "0.67056566", "0.6671312", "0.6652664", "0.66474205", "0.66201776", "0.6616296", "0.65979034", "0.6582126", "0.65577585", "0.65435356", "0.6515121", "0.6512583", "0.65066046", "0.6499536", "0.6482491", "0.6462567", "0.64488333", "0.6439013", "0.64340174", "0.64267033", "0.6423044", "0.6411555", "0.6403647", "0.63973904", "0.63811827", "0.63743633", "0.63313806", "0.6327852", "0.631865", "0.6306994", "0.6298669", "0.62968355", "0.6288637", "0.6276741", "0.6257092", "0.6256362", "0.6251766", "0.6250432", "0.6245418", "0.6240982", "0.62379164", "0.62157905", "0.62148696", "0.61976665", "0.6166656", "0.6165053", "0.6163395", "0.61520684", "0.61506927", "0.6148179", "0.61453515", "0.6141611", "0.61398524", "0.6127523", "0.6124696", "0.6123136", "0.6104141", "0.61016256", "0.6096984", "0.6094831", "0.60701036", "0.60678774", "0.6050523", "0.6049789", "0.6043917", "0.60427594", "0.60408044", "0.6039663", "0.603848", "0.6036778", "0.6025094", "0.60213494", "0.6013694", "0.60057425", "0.5973053", "0.5965396", "0.5965224", "0.596296", "0.595755", "0.59572154", "0.59521216", "0.594578", "0.5942805", "0.5942557", "0.59398395", "0.5935713", "0.59322107", "0.59305346", "0.5927458", "0.592253", "0.5912457" ]
0.0
-1
Test case number: 157 /Coverage entropy=0.4511636006386335
@Test(timeout = 4000) public void test157() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("($mYG)Udli"); Token token0 = xPathLexer0.leftParen(); assertEquals(1, token0.getTokenType()); assertEquals("(", token0.getTokenText()); Token token1 = xPathLexer0.nextToken(); assertEquals("$", token1.getTokenText()); assertEquals(26, token1.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falseNegativeRate((-2));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"9/&=Kq&\");\n discretize0.getBinRangesString((-1679));\n int int0 = (-98);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-98));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }" ]
[ "0.72317684", "0.71132976", "0.6850893", "0.68088436", "0.6790014", "0.6784015", "0.67782146", "0.6698287", "0.6691443", "0.66713107", "0.6665842", "0.66581655", "0.6652247", "0.6645828", "0.66250956", "0.6622499", "0.66170734", "0.66128385", "0.65731263", "0.6565696", "0.6543466", "0.654196", "0.6466613", "0.64631337", "0.6431601", "0.6430232", "0.6415757", "0.6363205", "0.6360564", "0.6347014", "0.6344953", "0.63390994", "0.6312931", "0.63063276", "0.62917477", "0.6288251", "0.6287981", "0.6281861", "0.6274561", "0.62648606", "0.6252941", "0.6229573", "0.62245834", "0.62227184", "0.62144554", "0.62052363", "0.62042135", "0.6202101", "0.62003225", "0.618979", "0.6183213", "0.6181898", "0.61527896", "0.61502326", "0.61473566", "0.6145431", "0.61155665", "0.61124927", "0.61045855", "0.6102428", "0.6091494", "0.6090441", "0.6086642", "0.6076045", "0.6068817", "0.60534745", "0.6040563", "0.6034168", "0.6029916", "0.6017755", "0.6005978", "0.59980386", "0.59953004", "0.5992825", "0.59849536", "0.5981726", "0.5969977", "0.5969064", "0.5957955", "0.5953117", "0.595117", "0.59495944", "0.59367186", "0.5928299", "0.5926504", "0.5918629", "0.5907229", "0.5899891", "0.5897315", "0.5894916", "0.58860177", "0.5878855", "0.5874203", "0.5869454", "0.5855173", "0.5847253", "0.5846191", "0.5836584", "0.5826028", "0.5825894", "0.58257174" ]
0.0
-1
Test case number: 158 /Coverage entropy=0.3955852454859713
@Test(timeout = 4000) public void test158() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("##W5H&+AQc"); Token token0 = xPathLexer0.nextToken(); assertEquals("##W5H&+AQc", token0.getTokenText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"9/&=Kq&\");\n discretize0.getBinRangesString((-1679));\n int int0 = (-98);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-98));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_30() {\n CuteNetlibCase.doTest(\"OSA-30.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }" ]
[ "0.72515523", "0.71659464", "0.68336403", "0.6799409", "0.67919564", "0.6751879", "0.6745958", "0.6708831", "0.67085963", "0.6688977", "0.6670529", "0.6652685", "0.66480964", "0.66444737", "0.6642744", "0.6622085", "0.66124207", "0.65821195", "0.65741", "0.6573041", "0.6554783", "0.6524237", "0.64721376", "0.6462764", "0.6445879", "0.6435756", "0.6399096", "0.639101", "0.6377824", "0.63746095", "0.637424", "0.63363785", "0.63329667", "0.63044274", "0.6295462", "0.6291074", "0.62775695", "0.6276792", "0.62748545", "0.6268383", "0.6261197", "0.6258968", "0.62456346", "0.6236456", "0.62310505", "0.62224114", "0.621896", "0.6212039", "0.61990136", "0.6195583", "0.6184598", "0.61801064", "0.6175607", "0.61702114", "0.616736", "0.61391115", "0.6137765", "0.6133876", "0.6119969", "0.61158645", "0.61131155", "0.6109352", "0.61071247", "0.6085212", "0.60803306", "0.6067571", "0.6066261", "0.606532", "0.6054279", "0.60515434", "0.6051299", "0.60463965", "0.60452086", "0.6033473", "0.6033134", "0.60271704", "0.6019532", "0.6014726", "0.60044754", "0.59937114", "0.59835243", "0.5977615", "0.5970654", "0.59611404", "0.59584904", "0.59460205", "0.5942499", "0.5930476", "0.59205383", "0.591725", "0.5913541", "0.5907898", "0.59061563", "0.590496", "0.5897046", "0.58953005", "0.5891208", "0.5890049", "0.58751315", "0.58744097", "0.5868043" ]
0.0
-1
Test case number: 159 /Coverage entropy=0.6019654157279901
@Test(timeout = 4000) public void test159() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("g\"K@1"); Token token0 = xPathLexer0.leftParen(); assertEquals("g", token0.getTokenText()); assertEquals(1, token0.getTokenType()); Token token1 = xPathLexer0.nextToken(); assertEquals((-1), token1.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testGetCounts() {\n\t\tString cellBC = \"ATCAGGGACAGA\";\n\n\t\tint snpPos = 76227022;\n\t\tInterval snpInterval = new Interval(\"HUMAN_1\", snpPos, snpPos, true, \"test\");\n\t\tSampleGenotypeProbabilities result = new SampleGenotypeProbabilities(snpInterval, cellBC);\n\t\tSNPUMIBasePileup p = getPileUpFromFile(cellBC, \"CGGGGCTC\");\n\t\tp.addLocusFunction(LocusFunction.CODING);\n\t\tresult.add(p);\n\t\tresult.add(getPileUpFromFile(cellBC, \"CGCGGGAC\")); // this read doesn't overlap the SNP so it isn't added!\n\t\tresult.add(getPileUpFromFile(cellBC, \"CTGGGCTC\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GGAATGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GTGCCGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"TCGCAGAC\"));\n\n\t\t// the code coverage gods are pleased.\n\t\tAssert.assertEquals(result.getCell(), cellBC);\n\t\tAssert.assertEquals(result.getSNPInterval(), snpInterval);\n\n\t\tAssert.assertNotNull(result.toString());\n\n\t\t// get the unfiltered results.\n\t\tObjectCounter<Character> umiCounts = result.getUMIBaseCounts();\n\t\tObjectCounter<Character> umiCountsExpected = new ObjectCounter<>();\n\t\tumiCountsExpected.incrementByCount('A', 2);\n\t\tumiCountsExpected.incrementByCount('G', 3);\n\t\tAssert.assertEquals(umiCounts, umiCountsExpected);\n\n\t\tObjectCounter<Character> readCounts = result.getReadBaseCounts();\n\t\tObjectCounter<Character> readCountsExpected = new ObjectCounter<>();\n\t\treadCountsExpected.incrementByCount('A', 2);\n\t\treadCountsExpected.incrementByCount('G', 5);\n\t\tAssert.assertEquals(readCounts, readCountsExpected);\n\n\t\tSet<LocusFunction> expected = new HashSet<>(Arrays.asList(LocusFunction.CODING));\n\t\tAssert.assertEquals(result.getLocusFunctions(), expected);\n\n\t}", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }" ]
[ "0.7276082", "0.71545786", "0.68949574", "0.6831705", "0.6815185", "0.68049514", "0.67993015", "0.67152184", "0.6709943", "0.6705079", "0.6687793", "0.6678761", "0.6674228", "0.66392887", "0.663426", "0.6613756", "0.6609619", "0.66071755", "0.6562777", "0.6553656", "0.6523353", "0.65103894", "0.64997107", "0.6498328", "0.6476708", "0.6413053", "0.6391277", "0.63790697", "0.63561004", "0.6355878", "0.63521826", "0.63409287", "0.63215667", "0.6310821", "0.62922657", "0.6288591", "0.62698084", "0.62583476", "0.62533236", "0.6243253", "0.6240838", "0.62347883", "0.6232759", "0.6230598", "0.6215115", "0.6213277", "0.6213206", "0.6205345", "0.619803", "0.6195793", "0.6188105", "0.6186188", "0.617236", "0.61717284", "0.6160902", "0.6154022", "0.614776", "0.61474746", "0.61387074", "0.6135682", "0.61186665", "0.6110799", "0.6108091", "0.6102586", "0.60931003", "0.6072207", "0.6063652", "0.60455966", "0.60370106", "0.6032577", "0.60165095", "0.6015255", "0.60010827", "0.5998458", "0.5995585", "0.5991875", "0.59894544", "0.5988765", "0.59865105", "0.5978809", "0.59771365", "0.5972525", "0.5971774", "0.5971077", "0.5970776", "0.5965007", "0.59627306", "0.5962491", "0.5957235", "0.59481335", "0.59418684", "0.5916587", "0.59145606", "0.5911318", "0.5904375", "0.5896141", "0.5893159", "0.5888952", "0.58817744", "0.5880873", "0.5875696" ]
0.0
-1
Test case number: 160 /Coverage entropy=1.0972630115546445
@Test(timeout = 4000) public void test160() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("hN!SM~8ux(wB"); Token token0 = xPathLexer0.dollar(); assertEquals("h", token0.getTokenText()); xPathLexer0.not(); Token token1 = xPathLexer0.nextToken(); assertEquals(23, token1.getTokenType()); Token token2 = xPathLexer0.leftParen(); assertEquals(1, token2.getTokenType()); assertEquals("S", token2.getTokenText()); Token token3 = xPathLexer0.dollar(); assertEquals(26, token3.getTokenType()); Token token4 = xPathLexer0.at(); assertEquals(16, token4.getTokenType()); assertEquals("~", token4.getTokenText()); Token token5 = xPathLexer0.not(); assertEquals("8", token5.getTokenText()); Token token6 = xPathLexer0.nextToken(); assertEquals("ux(wB", token6.getTokenText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falseNegativeRate((-2));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n StringKernel stringKernel0 = new StringKernel();\n Capabilities capabilities0 = stringKernel0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate();\n naiveBayesMultinomialText0.buildClassifier(instances0);\n String string0 = naiveBayesMultinomialText0.toString();\n assertEquals(\"The independent probability of a class\\n--------------------------------------\\nclass1\\t6.0\\nclass2\\t6.0\\nclass3\\t6.0\\nclass4\\t6.0\\n\\nThe probability of a word given the class\\n-----------------------------------------\\n\\tclass1\\tclass2\\tclass3\\tclass4\\t\\nover\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nthe\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t\\nThe\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nquick\\t7.38905609893065\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t\\nlazy\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\njumps\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t\\nbrown\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t7.38905609893065\\t\\ndog\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t\\nfox\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\n\", string0);\n assertEquals(2.0, naiveBayesMultinomialText0.getLNorm(), 0.01);\n assertEquals(1.0, naiveBayesMultinomialText0.getNorm(), 0.01);\n assertEquals(3.0, naiveBayesMultinomialText0.getMinWordFrequency(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n public void chiSquaredTest2() {\n long[] occs = new long[26];\n occs[0] = 195;\n occs[1] = 51;\n occs[2] = 96;\n occs[3] = 51;\n occs[4] = 305;\n occs[5] = 72;\n occs[6] = 32;\n occs[7] = 130;\n occs[8] = 194;\n occs[9] = 1;\n occs[10] = 4;\n occs[11] = 119;\n occs[12] = 64;\n occs[13] = 183;\n occs[14] = 236;\n occs[15] = 72;\n occs[16] = 8;\n occs[17] = 130;\n occs[18] = 159;\n occs[19] = 269;\n occs[20] = 62;\n occs[21] = 24;\n occs[22] = 40;\n occs[23] = 8;\n occs[24] = 48;\n occs[25] = 3;\n int textLen = 2556;\n\n assertEquals(136.9908235901, this.ic.chiSquared(occs,\n this.freq.getExpectedLetterFrequencies(), textLen), 0.01);\n }" ]
[ "0.7249441", "0.71351236", "0.70035756", "0.6905322", "0.6893986", "0.68380696", "0.67622054", "0.6755346", "0.66962934", "0.66360706", "0.6631935", "0.6627696", "0.6617612", "0.66014385", "0.66008574", "0.65913886", "0.65695024", "0.6565586", "0.6558434", "0.65327454", "0.6530089", "0.6495716", "0.6482157", "0.6417064", "0.64159936", "0.6414971", "0.63954794", "0.63667804", "0.63650364", "0.63452226", "0.63436145", "0.6342183", "0.6332624", "0.63298273", "0.6326672", "0.6293059", "0.62764716", "0.6253172", "0.6247366", "0.6245227", "0.6244409", "0.6241592", "0.62361205", "0.6229095", "0.62034994", "0.62031335", "0.6198843", "0.61900187", "0.61840415", "0.61790097", "0.61743903", "0.6171575", "0.61695004", "0.61694384", "0.6159225", "0.615221", "0.614779", "0.6146307", "0.6135587", "0.6128432", "0.61261046", "0.6115287", "0.6114864", "0.6104811", "0.6091541", "0.6087528", "0.6075887", "0.60736793", "0.60719967", "0.6070123", "0.60592747", "0.6046387", "0.60430807", "0.6030311", "0.602379", "0.6019213", "0.6015596", "0.60092986", "0.59979606", "0.59952706", "0.59937704", "0.59900373", "0.5988318", "0.59844667", "0.59805393", "0.59796804", "0.59774673", "0.5975713", "0.59743875", "0.59738076", "0.5947912", "0.5937235", "0.5919916", "0.59107023", "0.5908985", "0.5898358", "0.5895999", "0.588813", "0.5876197", "0.5874239", "0.5871398" ]
0.0
-1
Test case number: 161 /Coverage entropy=0.9057771742722761
@Test(timeout = 4000) public void test161() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer(") T/"); Token token0 = xPathLexer0.leftParen(); assertEquals(1, token0.getTokenType()); assertEquals(")", token0.getTokenText()); Token token1 = xPathLexer0.nextToken(); assertEquals(15, token1.getTokenType()); assertEquals("T", token1.getTokenText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_30() {\n CuteNetlibCase.doTest(\"OSA-30.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n\tpublic void testGetCounts() {\n\t\tString cellBC = \"ATCAGGGACAGA\";\n\n\t\tint snpPos = 76227022;\n\t\tInterval snpInterval = new Interval(\"HUMAN_1\", snpPos, snpPos, true, \"test\");\n\t\tSampleGenotypeProbabilities result = new SampleGenotypeProbabilities(snpInterval, cellBC);\n\t\tSNPUMIBasePileup p = getPileUpFromFile(cellBC, \"CGGGGCTC\");\n\t\tp.addLocusFunction(LocusFunction.CODING);\n\t\tresult.add(p);\n\t\tresult.add(getPileUpFromFile(cellBC, \"CGCGGGAC\")); // this read doesn't overlap the SNP so it isn't added!\n\t\tresult.add(getPileUpFromFile(cellBC, \"CTGGGCTC\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GGAATGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GTGCCGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"TCGCAGAC\"));\n\n\t\t// the code coverage gods are pleased.\n\t\tAssert.assertEquals(result.getCell(), cellBC);\n\t\tAssert.assertEquals(result.getSNPInterval(), snpInterval);\n\n\t\tAssert.assertNotNull(result.toString());\n\n\t\t// get the unfiltered results.\n\t\tObjectCounter<Character> umiCounts = result.getUMIBaseCounts();\n\t\tObjectCounter<Character> umiCountsExpected = new ObjectCounter<>();\n\t\tumiCountsExpected.incrementByCount('A', 2);\n\t\tumiCountsExpected.incrementByCount('G', 3);\n\t\tAssert.assertEquals(umiCounts, umiCountsExpected);\n\n\t\tObjectCounter<Character> readCounts = result.getReadBaseCounts();\n\t\tObjectCounter<Character> readCountsExpected = new ObjectCounter<>();\n\t\treadCountsExpected.incrementByCount('A', 2);\n\t\treadCountsExpected.incrementByCount('G', 5);\n\t\tAssert.assertEquals(readCounts, readCountsExpected);\n\n\t\tSet<LocusFunction> expected = new HashSet<>(Arrays.asList(LocusFunction.CODING));\n\t\tAssert.assertEquals(result.getLocusFunctions(), expected);\n\n\t}" ]
[ "0.7098471", "0.7070302", "0.684236", "0.67534447", "0.6721319", "0.6633905", "0.6617943", "0.6578553", "0.6572967", "0.6560965", "0.65542305", "0.6553085", "0.6531109", "0.65237105", "0.65176386", "0.6507705", "0.6499723", "0.64923894", "0.6482166", "0.6455073", "0.6451587", "0.6436588", "0.64234316", "0.6384153", "0.6353454", "0.63506424", "0.6347222", "0.6340913", "0.6323053", "0.6281716", "0.6269754", "0.6264828", "0.6253641", "0.624268", "0.62391543", "0.6237283", "0.6237146", "0.62350386", "0.62323093", "0.62312245", "0.62311524", "0.6221612", "0.6219435", "0.6219302", "0.6218402", "0.6210979", "0.62103164", "0.6183504", "0.61653054", "0.6160292", "0.6158728", "0.61509705", "0.6150897", "0.6144879", "0.6131773", "0.61059207", "0.6098852", "0.60856265", "0.60819817", "0.6071818", "0.6065427", "0.6061394", "0.60553473", "0.6028092", "0.6018318", "0.60125947", "0.60096496", "0.60071844", "0.600592", "0.6003821", "0.60034865", "0.59999746", "0.5999768", "0.59965986", "0.5985864", "0.5979899", "0.59752107", "0.59715956", "0.596743", "0.5966976", "0.59667027", "0.5964709", "0.5964566", "0.5961667", "0.59603536", "0.5953985", "0.5944349", "0.5942343", "0.59239924", "0.59207606", "0.5918588", "0.5917713", "0.591277", "0.59079003", "0.5903862", "0.58991903", "0.58965695", "0.58932185", "0.58717304", "0.5867565", "0.5866683" ]
0.0
-1
Test case number: 162 /Coverage entropy=1.016593388618193
@Test(timeout = 4000) public void test162() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("com.werken.saxpath.XPathLexer"); xPathLexer0.rightParen(); xPathLexer0.notEquals(); xPathLexer0.nextToken(); Token token0 = xPathLexer0.identifierOrOperatorName(); assertNull(token0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCSD1() {\n CuteNetlibCase.doTest(\"SCSD1.SIF\", \"8.666666674333367\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testDEGEN2() {\n CuteNetlibCase.doTest(\"DEGEN2.SIF\", \"-1435.1779999999999\", \"-1226.12\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.precision((-1484));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_30() {\n CuteNetlibCase.doTest(\"OSA-30.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }" ]
[ "0.71232456", "0.70340073", "0.68006504", "0.6781587", "0.6777578", "0.6691187", "0.6678713", "0.6671864", "0.6665043", "0.66317844", "0.6608502", "0.65922564", "0.65863895", "0.6578692", "0.65542614", "0.6553251", "0.65502393", "0.6548067", "0.65042067", "0.6498636", "0.6498002", "0.6476258", "0.6444617", "0.6429781", "0.6401137", "0.63757795", "0.6366054", "0.6360601", "0.6359454", "0.6358121", "0.6357386", "0.6355818", "0.6352625", "0.6338005", "0.6328738", "0.63280785", "0.6287608", "0.62832546", "0.6281436", "0.6279436", "0.626373", "0.62628144", "0.62271804", "0.62261665", "0.6217097", "0.6207984", "0.61996585", "0.61921513", "0.6191594", "0.6179517", "0.6177566", "0.6177327", "0.6169445", "0.61639607", "0.6156781", "0.61456597", "0.61434096", "0.6137056", "0.61153156", "0.6111047", "0.61094075", "0.61017305", "0.60911614", "0.60857344", "0.6080121", "0.60664153", "0.6065392", "0.6053897", "0.6051722", "0.60512656", "0.6049661", "0.60388565", "0.6038008", "0.60359657", "0.6034794", "0.60330534", "0.60217476", "0.60140604", "0.60039943", "0.6000088", "0.5993595", "0.5991667", "0.59907055", "0.59789616", "0.59747696", "0.595936", "0.5945737", "0.5941419", "0.5935441", "0.59258515", "0.59234416", "0.5923131", "0.59201944", "0.5918834", "0.58945245", "0.58940405", "0.5892571", "0.5892374", "0.58905864", "0.5885864", "0.5883351" ]
0.0
-1
Test case number: 163 /Coverage entropy=1.4631071277275791
@Test(timeout = 4000) public void test163() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("hN!SM~8ux(wB"); Token token0 = xPathLexer0.equals(); assertEquals(21, token0.getTokenType()); assertEquals("h", token0.getTokenText()); xPathLexer0.dollar(); xPathLexer0.not(); Token token1 = xPathLexer0.nextToken(); assertEquals(15, token1.getTokenType()); assertEquals("SM", token1.getTokenText()); Token token2 = xPathLexer0.leftParen(); assertEquals("~", token2.getTokenText()); Token token3 = xPathLexer0.number(); assertEquals("8", token3.getTokenText()); assertEquals(30, token3.getTokenType()); Token token4 = xPathLexer0.dollar(); assertEquals(26, token4.getTokenType()); Token token5 = xPathLexer0.not(); assertEquals("x", token5.getTokenText()); Token token6 = xPathLexer0.at(); assertEquals(16, token6.getTokenType()); assertEquals("(", token6.getTokenText()); Token token7 = xPathLexer0.not(); assertEquals(23, token7.getTokenType()); Token token8 = xPathLexer0.nextToken(); assertEquals("B", token8.getTokenText()); assertEquals((-1), token8.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "public void test_0020() {\n int nFactors = 2;\n FactorAnalysis instance = new FactorAnalysis(data, nFactors);\n\n assertEquals(instance.nObs(), 18., 1e-15);\n assertEquals(instance.nVariables(), 6., 1e-15);\n assertEquals(instance.nFactors(), 2., 1e-15);\n\n FAEstimator estimators = instance.getEstimators(400);\n\n Vector uniqueness = estimators.psi();\n assertArrayEquals(\n new double[]{0.005, 0.114, 0.642, 0.742, 0.005, 0.097},\n uniqueness.toArray(),\n 2e-2);\n\n int dof = estimators.dof();\n assertEquals(dof, 4);\n\n double fitted = estimators.logLikelihood();\n assertEquals(fitted, 1.803, 1e-3);\n\n Matrix loadings = estimators.loadings();\n assertTrue(AreMatrices.equal(\n new DenseMatrix(new double[][]{\n {0.971, 0.228},\n {0.917, 0.213},\n {0.429, 0.418},\n {0.363, 0.355},\n {0.254, 0.965},\n {0.205, 0.928}\n }),\n loadings,\n 1e-3));\n\n double testStats = estimators.statistics();\n assertEquals(testStats, 23.14, 1e-2);\n\n double pValue = estimators.pValue();\n assertEquals(pValue, 0.000119, 1e-6);//R: 1-pchisq(23.14, df=4) = 0.0001187266\n\n// System.out.println(uniqueness.toString());\n// System.out.println(fitted);\n// System.out.println(loadings.toString());\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testAGG3() {\n CuteNetlibCase.doTest(\"AGG3.SIF\", \"1.031211593508922E7\", \"5.746768863949547E9\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.precision((-1484));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }" ]
[ "0.7280164", "0.71083844", "0.69036025", "0.6835393", "0.6817982", "0.6812575", "0.68027174", "0.6783326", "0.67792714", "0.6750651", "0.67402387", "0.67345", "0.67282766", "0.67050004", "0.67002475", "0.66880393", "0.66877854", "0.6679011", "0.6662117", "0.66535264", "0.6635386", "0.6582734", "0.6571409", "0.65588903", "0.6557676", "0.65303195", "0.6529537", "0.6519775", "0.6498313", "0.6490452", "0.64703554", "0.64632905", "0.64388376", "0.64385056", "0.64231217", "0.6422678", "0.64021945", "0.63910896", "0.6382941", "0.6380443", "0.6367328", "0.6357037", "0.6352432", "0.6349499", "0.6337754", "0.633772", "0.63259375", "0.63242954", "0.6323923", "0.632031", "0.6314397", "0.6313175", "0.6308884", "0.630698", "0.62971234", "0.6280943", "0.6273637", "0.6265257", "0.62377906", "0.6237206", "0.62359214", "0.6226838", "0.6222446", "0.62129444", "0.6204089", "0.6187371", "0.61869204", "0.61858916", "0.61815214", "0.6179382", "0.61791646", "0.61790234", "0.6166145", "0.61586386", "0.61471057", "0.6135225", "0.6112129", "0.6105235", "0.6100399", "0.608624", "0.60710657", "0.60669893", "0.605943", "0.6050525", "0.6050512", "0.60465354", "0.6046403", "0.60449064", "0.6028828", "0.60243833", "0.6016619", "0.601084", "0.60089207", "0.6005296", "0.59927547", "0.599102", "0.5986657", "0.5978723", "0.59762216", "0.5967061", "0.5963814" ]
0.0
-1
Test case number: 164 /Coverage entropy=1.6094379124341005
@Test(timeout = 4000) public void test164() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer(); Token token0 = xPathLexer0.leftBracket(); assertEquals(3, token0.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test104() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString(\".arff\");\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(\".arff\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\n 0 0 0 0 0 0 ? ? class1\\n 0 0 0 0 0 0 ? ? class2\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }" ]
[ "0.7211772", "0.71468484", "0.6880992", "0.685696", "0.68530655", "0.6850684", "0.6809209", "0.67442083", "0.67412686", "0.6740612", "0.6718612", "0.67051446", "0.66798407", "0.66754824", "0.66531575", "0.6651482", "0.6651252", "0.66376424", "0.6633486", "0.6627184", "0.6624283", "0.66131926", "0.6554906", "0.6545836", "0.653893", "0.64827716", "0.64635175", "0.6439169", "0.64381593", "0.6417477", "0.6406819", "0.6401228", "0.63868123", "0.6385436", "0.6373776", "0.63669795", "0.636582", "0.63650846", "0.6359045", "0.63489515", "0.63426983", "0.63265514", "0.63233346", "0.63196677", "0.63179225", "0.63138694", "0.6312201", "0.629914", "0.6291897", "0.6289915", "0.62844044", "0.6269084", "0.62646383", "0.62624615", "0.626239", "0.62487113", "0.62372243", "0.6220232", "0.6206231", "0.6200686", "0.61892015", "0.6179978", "0.61798114", "0.6170351", "0.61624694", "0.6161363", "0.61443925", "0.6143717", "0.6143548", "0.613039", "0.61274105", "0.61233044", "0.6112732", "0.61056286", "0.61004204", "0.6088445", "0.6079463", "0.60715306", "0.6070945", "0.6060091", "0.6058093", "0.605185", "0.60431063", "0.60426986", "0.6024825", "0.6022313", "0.6006059", "0.6004491", "0.6003647", "0.5999503", "0.5998579", "0.599293", "0.5987446", "0.59810364", "0.59755254", "0.59715104", "0.59698725", "0.5965651", "0.59615415", "0.59599286", "0.5948852" ]
0.0
-1
Test case number: 165 /Coverage entropy=1.6094379124341005
@Test(timeout = 4000) public void test165() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer(); Token token0 = xPathLexer0.colon(); assertEquals(18, token0.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }" ]
[ "0.72086763", "0.7094307", "0.6904085", "0.68941814", "0.6840513", "0.68243223", "0.6789177", "0.67844987", "0.6737753", "0.6724128", "0.67231756", "0.67181623", "0.66898227", "0.6660697", "0.6621089", "0.6612311", "0.6603494", "0.66016227", "0.6599712", "0.6583315", "0.658103", "0.65775466", "0.6551005", "0.6545703", "0.65159667", "0.646938", "0.6446773", "0.64449155", "0.64329803", "0.64328724", "0.6432136", "0.6416939", "0.6398146", "0.63943356", "0.6384973", "0.6366434", "0.6360634", "0.6355943", "0.6355541", "0.6345981", "0.6337313", "0.63161576", "0.6315611", "0.63103306", "0.6308786", "0.63061327", "0.6305201", "0.63044596", "0.6301077", "0.62836677", "0.6279114", "0.62689734", "0.6254394", "0.62392205", "0.6237824", "0.62345934", "0.62291145", "0.6209492", "0.6205549", "0.6203565", "0.61922264", "0.6188007", "0.618356", "0.6175282", "0.61711466", "0.6170624", "0.61664134", "0.61627525", "0.61489916", "0.6128929", "0.6122719", "0.61181", "0.6117359", "0.6116386", "0.6114903", "0.6102553", "0.6097339", "0.60965365", "0.6094476", "0.6091785", "0.6088938", "0.6081564", "0.6079701", "0.6071643", "0.6067898", "0.6065012", "0.60630286", "0.6061041", "0.60578597", "0.6049348", "0.6045592", "0.6037992", "0.60303825", "0.60195094", "0.6019077", "0.60156906", "0.60149765", "0.6010612", "0.60097855", "0.60090905", "0.6008701" ]
0.0
-1
Test case number: 166 /Coverage entropy=1.532954812744937
@Test(timeout = 4000) public void test166() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("com.werken.saxpath.XPathLexer"); Token token0 = xPathLexer0.comma(); xPathLexer0.setPreviousToken(token0); assertEquals(32, token0.getTokenType()); assertEquals("c", token0.getTokenText()); Token token1 = xPathLexer0.identifierOrOperatorName(); assertEquals("om.werken.saxpath.XPathLexer", token1.getTokenText()); assertEquals(15, token1.getTokenType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public double entropyPotential() {\n \n return (-1.0);\n}", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "public void test_0020() {\n int nFactors = 2;\n FactorAnalysis instance = new FactorAnalysis(data, nFactors);\n\n assertEquals(instance.nObs(), 18., 1e-15);\n assertEquals(instance.nVariables(), 6., 1e-15);\n assertEquals(instance.nFactors(), 2., 1e-15);\n\n FAEstimator estimators = instance.getEstimators(400);\n\n Vector uniqueness = estimators.psi();\n assertArrayEquals(\n new double[]{0.005, 0.114, 0.642, 0.742, 0.005, 0.097},\n uniqueness.toArray(),\n 2e-2);\n\n int dof = estimators.dof();\n assertEquals(dof, 4);\n\n double fitted = estimators.logLikelihood();\n assertEquals(fitted, 1.803, 1e-3);\n\n Matrix loadings = estimators.loadings();\n assertTrue(AreMatrices.equal(\n new DenseMatrix(new double[][]{\n {0.971, 0.228},\n {0.917, 0.213},\n {0.429, 0.418},\n {0.363, 0.355},\n {0.254, 0.965},\n {0.205, 0.928}\n }),\n loadings,\n 1e-3));\n\n double testStats = estimators.statistics();\n assertEquals(testStats, 23.14, 1e-2);\n\n double pValue = estimators.pValue();\n assertEquals(pValue, 0.000119, 1e-6);//R: 1-pchisq(23.14, df=4) = 0.0001187266\n\n// System.out.println(uniqueness.toString());\n// System.out.println(fitted);\n// System.out.println(loadings.toString());\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }" ]
[ "0.72404355", "0.7135598", "0.6840405", "0.67887956", "0.6782234", "0.67570126", "0.674781", "0.6674957", "0.66630924", "0.66588354", "0.6644085", "0.66389924", "0.66299754", "0.6627028", "0.66007125", "0.6589035", "0.6585493", "0.6584864", "0.65355986", "0.6534872", "0.652664", "0.6511285", "0.65000916", "0.64583725", "0.64382887", "0.6431727", "0.6411279", "0.6403473", "0.63952386", "0.6373072", "0.6287785", "0.62832046", "0.6274874", "0.62677056", "0.626464", "0.62644327", "0.6257124", "0.6256034", "0.6253059", "0.6243327", "0.6228499", "0.62125695", "0.6208432", "0.6207338", "0.6201436", "0.62003005", "0.6194644", "0.6187337", "0.6177917", "0.6171607", "0.6169385", "0.61565065", "0.61518687", "0.61409575", "0.61379313", "0.613551", "0.6134683", "0.6133259", "0.61139834", "0.61059844", "0.61031204", "0.6070536", "0.6064836", "0.6057948", "0.60567987", "0.6043301", "0.6041865", "0.602266", "0.6014628", "0.6013734", "0.59920007", "0.59671026", "0.5958319", "0.59497267", "0.5946345", "0.5942159", "0.5937797", "0.5907731", "0.5901875", "0.589338", "0.58920336", "0.5886263", "0.58850056", "0.58849406", "0.58830917", "0.58786803", "0.58746177", "0.58621794", "0.5861706", "0.5850377", "0.58438605", "0.5843726", "0.5840846", "0.5834315", "0.58247584", "0.5822999", "0.58049524", "0.5803382", "0.58027714", "0.580026", "0.5799484" ]
0.0
-1
Remove the eldest element whenever size of cache exceeds the capacity
@Override protected boolean removeEldestEntry(final Map.Entry<K, V> eldest) { return size() > capacity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeTailElement(){\n JavaBaseTask removed = items.remove(tail.getKey());\n System.out.println(\"element with index : \" + removed.getKey() + \"has been deleted doe to cache eviction\");\n tail = tail.previous;\n var headAu = head;\n while (headAu.next != null){\n headAu = headAu.next;\n }\n headAu = headAu.previous;\n headAu.next = null;\n }", "@Override\n public E removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[head];\n dequeue[head] = null;\n head = ++head % dequeue.length;\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n nextFirst = plusOne(nextFirst);\n size -= 1;\n T toRemove = items[nextFirst];\n items[nextFirst] = null;\n if (isSparse()) {\n resize(capacity / 2);\n }\n return toRemove;\n }", "@Override\r\n public CustomProcess removeBest() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty, cannot remove from empty queue\");\r\n }\r\n CustomProcess best = data[0]; // process to be removed\r\n data[0] = data[size - 1];\r\n data[size - 1] = null;\r\n minHeapPercolateDown(0); // Percolate down on first index\r\n size--;\r\n return best;\r\n }", "@Override\n\t\t\tprotected boolean removeEldestEntry(final Map.Entry<K, V> eldest) {\n\t\t\t\treturn super.size() > LRUCache.this.cacheSize;\n\t\t\t}", "protected boolean removeEldestEntry(Map.Entry eldest) {\n/* 49 */ return (size() > this.maxElements);\n/* */ }", "@Override\n\tpublic boolean removeEldestEntry(Map.Entry<T,U> element)\n\t{\n\t\t// Remove it if we've hit our capacity (meaning\n\t\t// we've overflowed)\n\t\t//\n\t\treturn size() > maxSize;\n\t}", "@Override\n public T removeFirst() {\n if (size == 0) {\n return null;\n }\n\n int position = plusOne(nextFirst);\n T itemToReturn = array[position];\n array[position] = null;\n nextFirst = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }", "private E dequeue() {\n final Object[] items = this.items;\n @SuppressWarnings(\"unchecked\")\n E x = (E) items[takeIndex];\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n notFull.signal();\n return x;\n }", "protected void removeEldestEntry(){\n Entry lastEntry = header.before;\n\n header.before = header.before.before;\n header.before.after = header;\n\n int index = getIndexForKey(lastEntry.key);\n Entry entries = table[index];\n Entry prevEntry = null;\n for(Entry entry = entries; entry != null; entry = entry.next){\n if(entry.key == lastEntry.key){\n if(prevEntry != null){\n prevEntry.next = entry.next;\n }else{\n table[index] = entry.next;\n }\n }\n prevEntry = entry;\n }\n size--;\n }", "private void removeFromEnd(){\n ListNode tailItem = tail.prev;\n removeFromList(tailItem);\n \n //remove the entry from hashtable\n hashtable.remove(tailItem.key);\n --totalCacheItems;\n }", "public long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front element\r\n\t\t\tfront++;\r\n\t\t\tif(front == maxSize){ //To set front = 0 and use it again\r\n\t\t\t\tfront = 0;\r\n\t\t\t}\r\n\t\t\tnItems--;\r\n\t\t\treturn temp;\r\n\t\t}", "protected boolean removeEldestEntry(Map.Entry<Integer, String> eldest){\n\t return size() > this.capacity;\n\t }", "public boolean removeEldestEntry(Map.Entry entry){\n return size() > capacity;\n }", "public T removeLast() {\n if (size() == 0) {\n return null;\n }\n nextLast = minusOne(nextLast);\n size -= 1;\n T toRemove = items[nextLast];\n items[nextLast] = null;\n if (isSparse()) {\n resize(capacity / 2);\n }\n return toRemove;\n }", "@Override\n public T removeLast() {\n if (size == 0) {\n return null;\n }\n\n int position = minusOne(nextLast);\n T itemToReturn = array[position];\n array[position] = null;\n nextLast = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }", "@Override\n protected boolean removeEldestEntry(Map.Entry<String, Bitmap> eldest) {\n \t// Log.w(\"ImageDownloader\", \"removeEldestEntry() has been invoked: \" + eldest.getKey() + \" size()=\" + size());\n \t// Log.w(\"ImageDownloader\", \"Entries are transferred to soft reference cache\"); \n \tif (size() > HARD_CACHE_CAPACITY) {\n \t\tLog.w(\"ImageDownloader\", \"Entries are transferred to soft reference cache\");\n // Entries push-out of hard reference cache are transferred to soft reference cache\n sSoftBitmapCache.put(eldest.getKey(), new SoftReference<Bitmap>(eldest.getValue()));\n return true;\n } else\n \tLog.w(\"ImageDownloader\", \"Entries are Not transferred to soft reference cache\");\n return false;\n }", "protected void removeOldData() {\n if (!storage.isEmpty()) {\n long timeLowerbound = storage.lastKey() - maxStorageTime;\n while (!storage.isEmpty() && storage.firstKey() < timeLowerbound) {\n storage.pollFirstEntry();\n } \n }\n }", "private int remove(int index){\n\t\tremovedItem=heap[index];\n\t\theap[index]=INFINITE;\n\t\tshiftUp(index);\n\t\treturn extractMax();\n\t}", "public Item dequeue() {\n if (N == 0) throw new NoSuchElementException();\n int idx = StdRandom.uniform(N);\n Item removed = s[first + idx];\n s[first + idx] = null;\n if (idx == 0) first++;\n else if (idx != N-1) {\n shrink(first+idx);\n }\n N--;\n if (N == 0) first = 0;\n return removed;\n }", "@Override\n public E remove() {\n if (size == 0){\n throw new NoSuchElementException();\n }\n E removed = heap[0];\n heap[0] = heap[--size];\n siftDown(0);\n return removed;\n }", "@Override\n public V remove(Object key) {\n \t\n \tLinkedList<Entry> tempBucket = chooseBucket(key);\n \t\n \tfor(int i=0;i<tempBucket.size();i++) {\n\t \tEntry tempEntry = tempBucket.get(i);\n\t \t\t\n\t \tif(tempEntry.getKey() == key) {\n\t \t\tV returnValue = tempEntry.getValue();\n\t \t\ttempBucket.remove(i);\n\t \t\tsize --;\n\t \t\treturn returnValue;\n\t \t}\n\t }\n \t\n \tif(size < buckets.length*BETA) {\n \t\trehash(SHRINK_FACTOR);\n \t}\n \t\n \treturn null;\n }", "@Override\n public E removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[tail];\n dequeue[tail] = null;\n tail--;\n if (tail == -1) {\n tail = dequeue.length - 1;\n }\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "private E remove() {\n if (startPos >= queue.length || queue[startPos] == null) throw new NoSuchElementException();\n size--;\n return (E) queue[startPos++];\n }", "private int dequeue(){\n size--;\n int ret = array[front];\n front = (front+1)%capacity;\n return ret;\n }", "public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n }", "public Item removeFirst(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[first];\r\n\t\tlist[first++] = null;\r\n\t\tn--;\r\n\t\tprior=first-1;\r\n\t\tif(first==list.length){first=0;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }", "@Override\n public E remove(int index) {\n\t E first = _store[index];\n\t _store[index] = null;\n\t for( int i = index; i< _size-1;i++) {\n\t\t _store[i]=_store[i+1];\n\t }\n\t_store[_size-1]=null;\n\t _size -=1;\n\t \n\t\t \n\treturn first;\n }", "private final void fastRemove(final int index) {\r\n\t\tfinal int numMoved = this.size - index - 1;\r\n\t\tif (numMoved > 0) {\r\n\t\t\tSystem.arraycopy( this.elementData, index + 1, this.elementData, index, numMoved );\r\n\t\t}\r\n\t\tthis.elementData[--this.size] = null; // Let gc do its work\r\n\t}", "public Item removeLast(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[last--];\r\n\t\tn--;\r\n\t\tlatter=last+1;\r\n\t\tif(last==-1){last=list.length-1;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "protected boolean removeEldestEntry(Map.Entry eldest) {\n\t\t\t\treturn size() > CACHESIZE;\r\n\t\t\t}", "protected boolean removeEldestEntry(Map.Entry eldest) {\n\t\t\t\treturn size() > CACHESIZE;\r\n\t\t\t}", "public Item dequeue() {\n if(isEmpty()) throw new NoSuchElementException();\n int idx = StdRandom.uniform(size);\n Item item = arr[idx];\n size--;\n arr[idx] = arr[size];\n arr[size] = null;\n if (size > 0 && size == arr.length / 4){\n resize(arr.length / 2);\n }\n return item;\n }", "public T remove() {\r\n \r\n if (this.isEmpty()) {\r\n return null;\r\n }\r\n \r\n Random r = new Random();\r\n // Randomly selects element to remove and stores in rValue.\r\n int rValue = r.nextInt(size);\r\n // Store removed element in remove\r\n T remove = elements[rValue];\r\n elements[rValue] = null;\r\n \r\n // Move last element to replace \"remove\" if \"remove\" is not last element\r\n if (rValue != (size - 1)) {\r\n elements[rValue] = elements[size - 1];\r\n elements[size - 1] = null;\r\n }\r\n size--;\r\n // If array is less than 25% full, resize to 1/2 of current size.\r\n if (size > 0 && size < elements.length / 4) {\r\n resize(elements.length / 2);\r\n }\r\n return remove;\r\n }", "public T remove() {\r\n if (size() == 0) {\r\n return null;\r\n }\r\n int r = new Random().nextInt(size());\r\n \r\n T deleted = elements[r];\r\n elements[r] = elements[size() - 1];\r\n elements[size() - 1] = null;\r\n size--;\r\n \r\n if (size() > 0 && size() < elements.length / 4) {\r\n resize(elements.length / 2);\r\n }\r\n \r\n return deleted;\r\n }", "@Override\n\tprotected boolean removeEldestEntry(Map.Entry eldest) {\n\t\treturn size() > MAX_ENTRIES;\n\t}", "public E pollLast() {\n\t\tif (mSize == 0)\n\t\t\treturn null;\n\t\n\t\tE retVal = remove(getNode(size() - 1));\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "@Override\r\n\t\tprotected boolean removeEldestEntry(java.util.Map.Entry<K, com.vip.utils.AutoClearnMap.Entry<V>> eldest) {\n\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\tif ((now - eldest.getValue().getLastTime()) > getMaxTime())\r\n\t\t\t\treturn true;\r\n\t\t\t\r\n\t\t\treturn super.removeEldestEntry(eldest);\r\n\t\t}", "@Override\n public E remove() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n size--;\n array[0] = swap(array[size], array[size] = array[0]);\n siftDown(0);\n return (E) array[size];\n }", "public E dequeue(){\n if (isEmpty()) return null;\n E answer = arrayQueue[front];\n arrayQueue[front] = null;\n front = (front +1) % arrayQueue.length;\n size--;\n return answer;\n }", "protected MapElement removeElement(int key) {\n int index = key % capacity;\n if (index < 0) {\n index = -index;\n }\n\n if (map[index] == null) {\n return null;\n } else {\n MapElement me = map[index];\n MapElement prev = null;\n\n while (true) {\n if (me.getKey() == key) {\n // Keys match\n if (me.beforeRemove()) {\n if (prev == null) {\n // The first element in the chain matches\n map[index] = me.getNext();\n } else {\n // An element further down in the chain matches - \n // delete it from the chain\n prev.setNext(me.getNext());\n }\n contents--;\n }\n return me;\n } else {\n // Keys don't match, try the next element\n prev = me;\n me = me.getNext();\n if (me == null) {\n return null;\n }\n }\n }\n }\n }", "public Item dequeue() {\n if (isEmpty())\n throw new NoSuchElementException();\n\n // Get random index [0, elements) and remove from array\n int randomIndex = StdRandom.uniform(0, elements);\n Item removed = values[randomIndex];\n\n // Move last added item to fill the gap\n if (randomIndex != elements - 1)\n values[randomIndex] = values[elements - 1];\n\n values[elements - 1] = null;\n elements--;\n\n // Resize the array if necessary\n if (elements < values.length / 4)\n resize(values.length / 2);\n\n return removed;\n }", "@Override\r\n\t\t\t\t\tprotected boolean removeEldestEntry(Map.Entry e)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn size()>5;\r\n\t\t\t\t\t}", "public final void removeLastElem()\n {\n\n if (m_firstFree > 0)\n {\n m_map[m_firstFree] = null;\n\n m_firstFree--;\n }\n }", "public V remove(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\t//for(int i=0;i<table[bucket].size()-1;i++){\n\tfor(MyEntry i:table[bucket]) { \n\t if(i.key==key) {\n\t\t//location.remove(key\n\t\tV previousvalue=i.value;\n\t\ttable[bucket].remove(i);\n\t\tsize--;\n\t\t/*if(table[bucket].size()==0) {\n\t\t utilizedbuckets.remove(bucket);\n\t\t}*/\n\t\treturn previousvalue;\n\t }\t\n\t}\n\treturn null;\n }", "@Override\n public T removeMax() throws EmptyCollectionException {\n if (count == 0) {\n throw new EmptyCollectionException(\"Heap\");\n }\n T element = heap[0];\n // swap item at top of heap, with last item added\n heap[0] = heap[count - 1];\n // call heapify to see if new root needs to swap down\n heapifyRemove();\n\n count--;\n return element;\n }", "@Override\n public Item removeLast() {\n nextLast = moveBack(nextLast, 1);\n Item output = items[nextLast];\n items[nextLast] = null;\n size -= 1;\n return output;\n }", "@Override\r\n\tpublic Item dequeue() {\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"You cannot delete anything from the empty queue\");\r\n\t\tint index = StdRandom.uniform(count);\r\n\t\tItem item = arr[index];\r\n\t\tarr[index] = null;\r\n\t\tarr[index] = arr[--count];\r\n\t\tarr[count] = null;\r\n\t\tif (count > 0 && count == arr.length / 4)\r\n\t\t\tresize(arr.length / 2);\r\n\t\treturn item;\r\n\t}", "@Override\n public E poll() {\n E tmp = (E)queue[0];\n System.arraycopy(queue, 1, queue, 0, size - 1);\n size--;\n return tmp;\n }", "protected int removeFirst() throws Exception {\n if (size > 0) {\n int temp = heap[1];\n heap[1] = heap[size];\n heap[size] = 0;\n size--;\n return temp;\n } else {\n throw new Exception(\"No Item in the heap\");\n }\n }", "@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }", "public Item dequeue() {\n if (isEmpty()) throw new NoSuchElementException(\"\");\n int i = randomNotEmptyIndex();\n Item item = queue[i];\n queue[i] = null;\n size--;\n if (size <= capacity / 4) {\n resize(capacity / 2);\n }\n return item;\n }", "public Item dequeue()\n {\n checkNotEmpty();\n\n if (items.length / 4 > size)\n {\n resize(items.length / 2);\n }\n\n int last = size - 1;\n swap(items, nextIndex(), last);\n Item toReturn = items[last];\n items[last] = null;\n size--;\n\n return toReturn;\n }", "public T deleteMin()\n {\n // to handle empty excpetion\n if(size == 0)\n {\n throw new MyException(\"Heap is empty.\");\n }\n\n // create int hole, set to 0\n int hole = 0;\n // create return value as the item at index hole\n T returnValue = arr[hole];\n // create item to be last item of heap\n T item = arr[size-1];\n // decrement size\n size--;\n // call newHole() method to get newhole\n int newhole = newHole(hole, item);\n while(newhole != -1)\n {\n // set value of arr[newhole] to be arr[hole]\n arr[hole] = arr[newhole];\n // hole is now whatever newhole was\n hole = newhole;\n // update newhole by calling newHole()\n newhole = newHole(hole, item);\n }\n // put item where the hole is in the heap\n arr[hole] = item;\n return returnValue;\n }", "public E poll() {\n\t\tif (mSize == 0)\n\t\t\treturn null;\n\t\tE retVal = mHead.next.data;\n\t\tremove(mHead.next);\n\n\t\tmodCount++;\n\t\tmSize--;\n\n\t\treturn retVal;\n\t}", "public T poll() {\n if (size == 0)\n return null;\n int s = --size;\n T result = (T) heap[0];\n T backup = (T) heap[s];\n heap[s] = null; // delete\n if (s != 0)\n siftDown(0, backup);\n return result;\n }", "protected int removeLast() {\n if (size > 0) {\n return heap[size--];\n }\n return null;\n }", "@Override\r\n\t\t\tprotected boolean removeEldestEntry(Map.Entry eldest) {\r\n\t\t return size() > 3;\t//every time the eldest element will be removed if size > 3\r\n\t\t }", "public Item dequeue() {\n if (isEmpty()) throw new NoSuchElementException();\n int i = index();\n Item item = items[i];\n items[i] = items[--nItems];\n items[nItems] = null;\n if (nItems > 1 && nItems <= items.length / 4) resize(items.length / 2);\n return item;\n }", "@Override\n\tpublic E dequeue() {\n\t\tE temp=null;\n\t\tif(front==data.length-1){\n\t\t\ttemp=data[front];\n\t\t\tsize--;\n\t\t\tfront=(front+1)%data.length;\n\t\t}else{\n\t\t\tsize--;\n\t\t\ttemp=data[front++];\n\t\t}\n\t\treturn temp;\n\t}", "public void remove() { \n if (lastAccessed == null) throw new IllegalStateException();\n Node x = lastAccessed.previous;\n Node y = lastAccessed.next;\n x.next = y;\n y.previous = x;\n size--;\n if (current == lastAccessed) current = y;\n else index--;\n lastAccessed = null;\n }", "@Override\n public T remove() {\n if(numItems == 0)\n return null;\n return this.arr[--numItems];\n }", "public E poll()\n {\n if(size > 0)\n {\n E retElement = arrayList.get(0);\n arrayList.set(0, arrayList.get(size() - 1));\n arrayList.remove(size() - 1);\n size--;\n trickleDown(0);\n return retElement;\n }\n return null;\n }", "private E remove(){\n E tmp = array[0];\n swap(0,--lastPosition);\n array[lastPosition] = null;\n trickleDown(0);\n array = Arrays.copyOfRange(array,0,array.length);\n return tmp;\n }", "public Item dequeue() {\n if (this.isEmpty()) {\n throw new NoSuchElementException();\n }\n int random = StdRandom.uniform(this.currentIndex);\n Item saved = this.storage[random];\n this.storage[random] = null;\n this.size--;\n this.storage[random] = this.storage[currentIndex - 1];\n this.storage[currentIndex - 1] = null;\n this.currentIndex--;\n if (this.size <= (1.0 / 4.0) * this.storage.length) {\n int ceiling = (int) ((1.0 / 2.0) * this.storage.length);\n Item[] newArray = (Item[]) new Object[ceiling];\n for (int i = 0; i < this.size; i++) {\n newArray[i] = this.storage[i];\n }\n this.storage = newArray;\n\n }\n return saved;\n\n }", "@Override\n\tprotected boolean removeEldestEntry(java.util.Map.Entry<String, String> eldest) {\n\t\treturn size() > maximumSize;\n\t}", "@Override\n\t\tpublic void remove() {\n\t\t\tif ( _expectedSize != TOrderedHashMap.this.size() ) { throw new ConcurrentModificationException(); }\n\n\t\t\t// Disable auto compaction during the remove. This is a workaround\n\t\t\t// for bug 1642768.\n\t\t\ttry {\n\t\t\t\tTOrderedHashMap.this.tempDisableAutoCompaction();\n\t\t\t\tTOrderedHashMap.this.removeAt(_indicesByInsertOrder[_index]);\n\t\t\t} finally {\n\t\t\t\tTOrderedHashMap.this.reenableAutoCompaction(false);\n\t\t\t}\n\n\t\t\t_expectedSize--;\n\t\t}", "public void shrinkCacheToMaximumSize() {\n while (this.cacheSize > this.maximumCacheSize) {\n getNodeFromCache();\n }\n }", "private void shift(){\n if (queue.length < 1){\n throw new Error(\"Table self destruction!\");\n }\n if (size <= 0){\n return;\n }\n\n if (queue[0] == null){\n E best = null;\n int bestAT = -1;\n for (int x = 0 ; x < queue.length; x++){\n E cur = (E)queue[x];\n if (cur == null){\n continue;\n }\n if (best == null || cur.compareTo(best) > 0){\n best = cur;\n bestAT = x;\n }\n }\n // Not put best at front;\n queue[bestAT] = null;\n queue[0] = best;\n }\n\n }", "public AnyType deleteMin() throws NoSuchElementException {\n\t\t\n\t\t// if the heap is empty, throw a NoSuchElementException\n\t\tif(this.size() == 0){\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\n\t\t// store the minimum item so that it may be returned at the end\n\t\tAnyType minValue = this.findMin();\n\n\t\t// replace the item at minIndex with the last item in the tree\n\t\tAnyType lastValue = this.array[this.size()-1];\n\t\tthis.array[0] = lastValue;\n\t\tthis.array[this.size() - 1] = null;\n\t\t\n\t\t// update size\n\t\tthis.currentSize--;\n\n\t\t// percolate the item at minIndex down the tree until heap order is restored\n\t\t// It is STRONGLY recommended that you write a percolateDown helper method!\n\t\tthis.percolateDown(0);\n\t\t\n\t\t// return the minimum item that was stored\n\t\treturn minValue;\n\t}", "@Override\r\n\tpublic E dequeueFront() {\n\t\tif(isEmpty()) return null;\r\n\t\tE value = data[frontDeque];\r\n\t\tfrontDeque = (frontDeque + 1)% CAPACITY;\r\n\t\tsizeDeque--;\r\n\t\treturn value;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public void expunge() {\n Entry<K, V> entry;\n while ((entry = (Entry<K, V>) refqueue.poll()) != null) {\n final int index = index(entry.hash, entries.length);\n\n Entry<K, V> temp = entries[index];\n Entry<K, V> previous = temp;\n while (temp != null) {\n final Entry<K, V> next = temp.nextEntry;\n if (temp == entry) {\n if (previous == entry) {\n entries[index] = next;\n } else {\n previous.nextEntry = next;\n }\n entry.nextEntry = null;\n entry.value = null;\n size--;\n break;\n }\n previous = temp;\n temp = next;\n }\n }\n }", "public int dequeue() {\n\t\tif (isEmpty()) throw new IllegalStateException(\"\\nQueue is empty!\\n\");\n\t\tint removedItem = bq[head];\n\t\tif (head == bq.length - 1) head = 0; // wraparound\n\t\telse head++;\n\t\tsize--;\n\t\treturn removedItem;\t\n\t}", "public T remove(int index) {\n\n if (index >= size) {\n throw new IndexOutOfBoundsException(\"Index: \" + index + \", Size: \" + size);\n }\n\n T oldValue = myList[index];\n int value = size - index - 1;\n\n if (value > 0) {\n System.arraycopy(myList, index + 1, myList, index, value);\n }\n System.out.println(\"one \" + size);\n myList[--size] = null;\n System.out.println(\"two \" + size);\n\n return oldValue;\n }", "public E pollFirst() {\n\t\tif (mSize == 0)\n\t\t\treturn null;\n\t\tE retVal = mHead.next.data;\n\t\tremove(mHead.next);\n\n\t\tmodCount++;\n\t\tmSize--;\n\n\t\treturn retVal;\n\t}", "@Override\n public E remove(int index) {\n // todo: Students must code\n int pos = calculate(index);\n\n E temp = data[pos];\n data[pos] = null;\n if(pos == head)\n head = (head+1) % data.length;\n else if(pos == tail)\n tail = (tail-1) % data.length;\n else {\n // shift all array contents after pos left 1\n for(int i = pos; i < (pos + curSize-index-1); i++)\n data[calculate(i)] = data[calculate(i+1)];\n tail = (tail-1) % data.length;\n }\n curSize--;\n return temp;\n }", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }", "public Item dequeue() {\n\n\t\tif (isEmpty())\n\t\t\tthrow new NoSuchElementException();\n\t\tint random = (int)(StdRandom.uniform() * N);\n\n\t\tItem t = arr[random];\n\t\tarr[random] = arr[N - 1];\n\t\tarr[N - 1] = null;\n\t\tN--;\n\t\tif (N > 0 && arr.length > 4 * N)\n\t\t\tresize(arr.length / 2);\n\n\t\treturn t;\n\t}", "@Override\n public int remove() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n first.previous = null;\n size--;\n return result;\n }", "@Override\n\tpublic E dequeue() {\n\t\tif(isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tE data = queue[pos];\n\t\tqueue[pos] = null;\n\t\tpos = (pos+1) % queue.length;\n\t\tsize--;\n\t\treturn data;\n\t}", "public Object dequeue(){\r\n return super.remove(size()-1);\r\n }", "Recycler.DefaultHandle<T> pop()\r\n/* 440: */ {\r\n/* 441:472 */ int size = this.size;\r\n/* 442:473 */ if (size == 0)\r\n/* 443: */ {\r\n/* 444:474 */ if (!scavenge()) {\r\n/* 445:475 */ return null;\r\n/* 446: */ }\r\n/* 447:477 */ size = this.size;\r\n/* 448: */ }\r\n/* 449:479 */ size--;\r\n/* 450:480 */ Recycler.DefaultHandle ret = this.elements[size];\r\n/* 451:481 */ this.elements[size] = null;\r\n/* 452:482 */ if (Recycler.DefaultHandle.access$1100(ret) != Recycler.DefaultHandle.access$1500(ret)) {\r\n/* 453:483 */ throw new IllegalStateException(\"recycled multiple times\");\r\n/* 454: */ }\r\n/* 455:485 */ Recycler.DefaultHandle.access$1502(ret, 0);\r\n/* 456:486 */ Recycler.DefaultHandle.access$1102(ret, 0);\r\n/* 457:487 */ this.size = size;\r\n/* 458:488 */ return ret;\r\n/* 459: */ }", "@Override\n\tpublic E deQueue() {\n\t\treturn list.removeFirst();\n\t}", "public void trimToSize() {\r\n for (int i=size(); i-->0;)\r\n if (get(i)==null)\r\n remove(i);\r\n }", "private E removeFirst ()\n {\n Node<E> temp = head;\n if (head != null) {\n head = head.next;\n size--;\n return temp.data;\n }\n else\n return null;\n }", "public Item dequeue() {\n if (N == 0) throw new java.util.NoSuchElementException();\n int rand_num = rnd.nextInt(N);\n Item item = collection[rand_num];\n collection[rand_num] = collection[--N];\n collection[N] = null;\n if (N > 0 && N == collection.length / 4) \n resize(collection.length / 2);\n return item;\n }", "private void flushCache()\n {\n Entry<Integer, String> eldestEntry;\n File oldestFile;\n long eldestFileSize;\n int count = 0;\n\n int MAX_DELETE_FILE = 4;\n int MAX_CACHE_FILE_ALLOW = 1000;\n\n while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n {\n eldestEntry = mLinkedHashMap.entrySet().iterator().next();\n oldestFile = new File(eldestEntry.getValue());\n eldestFileSize = oldestFile.length();\n mLinkedHashMap.remove(eldestEntry.getKey());\n oldestFile.delete();\n cacheSize = mLinkedHashMap.size();\n cacheByteSize -= eldestFileSize;\n count++;\n }// while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n }", "@Override\n public E remove(int i) throws IndexOutOfBoundsException {\n checkIndex(i, size);\n E temp = data[i];\n for (int k = i; k < size - 1; k++) // shift element to fill hole\n data[k] = data[k + 1];\n data[size - 1] = null; // help garbage collection\n size--;\n return temp;\n }", "@Override\n public synchronized E remove(int index) {\n E result = this.get(index);\n if (index < this.size() - 1) {\n System.arraycopy(this.container, index + 1, this.container, index, this.size() - (index + 1));\n }\n this.container[--this.pointer] = null;\n return result;\n }", "public Item dequeue() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the removed number is: \" + index);\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t p.prev.next = p.next;\n \t p.next.prev = p.prev;\n \t size = size - 1;\n \t return p.item;\n }", "public T removeBest();", "public E removeFirst();", "public Item dequeue() {\n if (size == 0) throw new NoSuchElementException();\n if (size > 0 && size == queue.length / 4) resizeArray(queue.length / 2);\n int randomInt = StdRandom.uniform(size);\n Item item = queue[randomInt];\n queue[randomInt] = queue[--size];\n queue[size] = null;\n return item;\n }", "public E remove(int index)\n {\n if (index >= 0 && index < size) {\n E temp = data[index]; // element to return\n\n // shift all elements to the right down by 1 index\n for (int i = index; i < size - 1; i++)\n data[i] = data[i+1];\n \n size--;\n return temp;\n } else\n throw new NoSuchElementException();\n }", "public E removeMin() {\n // TODO: YOUR CODE HERE\n E min = getElement(1);\n swap(1, size());\n setElement(size(), null);\n bubbleDown(1);\n size -= 1;\n return min;\n }", "public Item dequeue() throws NoSuchElementException {\r\n // Usar el metodo downHeap para corregir la condicion\r\n // de Min Heap\r\n\r\n\r\n Item ret = heap[1];\r\n\r\n heap[1] = heap[size];\r\n downHeap(1);\r\n\r\n heap[size] = null;\r\n size--;\r\n\r\n return ret;\r\n }", "public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }", "public void remove() {\n elements[index] = null;\n size--;\n next();\n }", "public Item dequeue() {\n\n if (size == 0) {\n throw new NoSuchElementException();\n }\n\n int r = random.nextInt(size);\n Item item = queue[r];\n size--;\n queue[r] = queue[size];\n queue[size] = null;\n\n if (size > 0 && size <= queue.length / 4) {\n resizeQueue(queue.length / 2);\n }\n return item;\n }" ]
[ "0.70938015", "0.6849463", "0.6847799", "0.68332183", "0.6811478", "0.67611814", "0.6760296", "0.67172515", "0.67108697", "0.6701546", "0.6618436", "0.6604224", "0.6603511", "0.6597619", "0.659182", "0.6583328", "0.65401274", "0.65357345", "0.6529521", "0.6528165", "0.65276086", "0.6527465", "0.6518092", "0.64805454", "0.6469232", "0.6450346", "0.644751", "0.6444486", "0.64099187", "0.6390836", "0.6377993", "0.63745445", "0.63745445", "0.63684195", "0.6354188", "0.6325918", "0.6323833", "0.6316078", "0.6311479", "0.6281285", "0.62761", "0.62420154", "0.62419736", "0.62355465", "0.6233864", "0.6232233", "0.6211895", "0.6203347", "0.62017304", "0.61902726", "0.61732954", "0.6148566", "0.61427104", "0.61369514", "0.6134594", "0.6129754", "0.61283714", "0.61274195", "0.6120479", "0.61184925", "0.6118007", "0.611719", "0.61038375", "0.6092868", "0.6089066", "0.6084838", "0.6084602", "0.60801345", "0.60765576", "0.6067776", "0.60627127", "0.6054111", "0.60489655", "0.6038791", "0.60371774", "0.6033319", "0.603124", "0.6026974", "0.602553", "0.60254633", "0.6020683", "0.6020021", "0.60160786", "0.60086846", "0.6005695", "0.59990656", "0.5991568", "0.5987424", "0.5986917", "0.598617", "0.5973856", "0.597082", "0.5970698", "0.5968636", "0.5963439", "0.59588", "0.59552664", "0.59543055", "0.5950845", "0.5948991" ]
0.6909088
1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_edit, container, false); ((TextView)v.findViewById(R.id.editTitleTV)).setText(aTrip.tripName); name = v.findViewById(R.id.editNameET); country = v.findViewById(R.id.editCountryET); milestone1cb = v.findViewById(R.id.editMilestone1CB); milestone2cb = v.findViewById(R.id.editMilestone2CB); milestone3cb = v.findViewById(R.id.editMilestone3CB); editCurrent = v.findViewById(R.id.editCurrent); name.setText(aTrip.tripName); country.setText(aTrip.country); if(milestone1cb.isChecked()) { aTrip.milestone1 = true; } else if (milestone2cb.isChecked()) { aTrip.milestone2 = true; } else if (milestone3cb.isChecked()) { aTrip.milestone3 = true; } if (aTrip.currentTrip == true) { editCurrent.setImageResource(R.drawable.ic_card_travel_48px_current); currentTrip = true; } else { editCurrent.setImageResource(R.drawable.ic_card_travel_48px); currentTrip = false; } return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Returns the byte value of the AlertLevel
public byte getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAlertPriority()\n {\n return this.alert_priority;\n }", "public @Int8 byte getAudioReferenceLevel()\r\n\t\tthrows PropertyNotPresentException;", "int getSeverityValue();", "public int getLevel() {\n if ( air != null )\n return air.sampleRSSI(CC1000Radio.this);\n else return ADC.VBG_LEVEL; // return a default value of some sort\n }", "public int getAlertness() {\n return 0;\n }", "public static int getBatteryLevel() {\n if (utilitiesDll == null) {\n return -1;\n }\n return utilitiesDll.RecupererBatterie();\n }", "public byte getAlarmType() {\r\n\t\tbyte alarmType;\r\n\t\talarmType=this.alarmType;\r\n\t\treturn alarmType;\r\n\t}", "@Generated\n @Selector(\"transmissionRiskLevel\")\n public native byte transmissionRiskLevel();", "@Generated\n @Selector(\"transmissionRiskLevel\")\n public native byte transmissionRiskLevel();", "@POST(\"/setAlertLevel\")\n\tint setAlertLevel(@Body AlertLevelParams params);", "@Override\n public int getLevel() {\n int level;\n\n // ASU ranges from 0 to 31 - TS 27.007 Sec 8.5\n // asu = 0 (-113dB or less) is very weak\n // signal, its better to show 0 bars to the user in such cases.\n // asu = 99 is a special case, where the signal strength is unknown.\n int asu = mSignalStrength;\n if (asu <= 2 || asu == 99) level = SIGNAL_STRENGTH_NONE_OR_UNKNOWN;\n else if (asu >= GSM_SIGNAL_STRENGTH_GREAT) level = SIGNAL_STRENGTH_GREAT;\n else if (asu >= GSM_SIGNAL_STRENGTH_GOOD) level = SIGNAL_STRENGTH_GOOD;\n else if (asu >= GSM_SIGNAL_STRENGTH_MODERATE) level = SIGNAL_STRENGTH_MODERATE;\n else level = SIGNAL_STRENGTH_POOR;\n if (DBG) log(\"getLevel=\" + level);\n return level;\n }", "public int getLevelValue() {\n return level_;\n }", "public int getBatteryLevel() { return batteryLevel; }", "protected final int getStatusByte() {\r\n return ((this.carryFlag ? 0x01 : 0) + (this.zeroFlag ? 0x02 : 0) + (this.interruptFlag ? 0x04 : 0) + (this.decimalFlag ? 0x08 : 0) + (this.breakFlag ? 0x10 : 0) + 0x20 + (this.overflowFlag ? 0x40 : 0) + (this.signFlag ? 0x80 : 0));\r\n }", "public int getLevelValue() {\n return level_;\n }", "@Generated\n @Selector(\"batteryLevel\")\n public native float batteryLevel();", "public int getBatteryLevel() {\n\t\treturn batteryLevel;\n\t}", "public Integer geteLevel() {\n return eLevel;\n }", "public int checkForAlert() {\n return 0;\n }", "public Byte getVipLevel() {\n return vipLevel;\n }", "public Byte getEnterpriseAuditStatus() {\n return enterpriseAuditStatus;\n }", "int getRaidLevelValue();", "public int getMessageCodeValue();", "int getUpgradeLevel();", "@java.lang.Override public int getBatteryStatusValue() {\n return batteryStatus_;\n }", "@java.lang.Override public int getBatteryStatusValue() {\n return batteryStatus_;\n }", "public float batteryLevel() {\n return 1;\n }", "public int getSeverityValue() {\n return severity_;\n }", "@Override\n public int getAsuLevel() {\n // ASU ranges from 0 to 31 - TS 27.007 Sec 8.5\n // asu = 0 (-113dB or less) is very weak\n // signal, its better to show 0 bars to the user in such cases.\n // asu = 99 is a special case, where the signal strength is unknown.\n int level = mSignalStrength;\n if (DBG) log(\"getAsuLevel=\" + level);\n return level;\n }", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "public int getSeverityValue() {\n return severity_;\n }", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public Byte getEnterpriseInfoAuditStatus() {\n return enterpriseInfoAuditStatus;\n }", "byte getEByte();", "synchronized byte getCurrentValueLo()\n {\n return (byte)getCurrentValue();\n }", "public Byte getAuditStatus() {\n return auditStatus;\n }", "public Byte getaGrade() {\n return aGrade;\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getExpertAuditStatus() {\n return expertAuditStatus;\n }", "public int getUnsignedByte() {\n\t\treturn payload.getUnsigned();\n\t}", "@Override\r\n public int getBasicValue() {\n return this.getCombatLevel();\r\n }", "public static LogLevel getLevel(){\n return EZLoggerManager.lvl;\n }", "String getSeverity();", "public synchronized int getCurrentBatteryLevel() {\n return curBatteryLevel;\n }", "public static int getLevel()\r\n\t{\r\n\t\treturn level;\r\n\t}", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\r\n\t\treturn status;\r\n\t}", "public static int getLevel() {\n return level;\n }", "public static int getLevel()\n {\n return level;\n }", "public Byte getExpertInfoAuditStatus() {\n return expertInfoAuditStatus;\n }", "public Long getCurrentBatteryLevel() {\n if (this.type == BikeType.ELECTRICAL) {\n return Math.round((this.getCurrentBattery() / this.getMaxBattery() * 100.0));\n } else {\n return 0L;\n }\n }", "public int getLevel() {\n \treturn this.level;\n }", "private int obtieneEstatusBateria() {\n\t\t\n\t\ttry \n { \n IntentFilter batIntentFilter = \n new IntentFilter(Intent.ACTION_BATTERY_CHANGED); \n Intent battery = \n this.registerReceiver(null, batIntentFilter); \n int nivelBateria = battery.getIntExtra(BatteryManager.EXTRA_LEVEL, -1); \n return nivelBateria; \n } \n catch (Exception e) \n { \n Toast.makeText(getApplicationContext(), \n \"Error al obtener estado de la bateria\",\n Toast.LENGTH_SHORT).show(); \n return 0; \n } \n\t}", "public String getSeverity() { \n\t\treturn getSeverityElement().getValue();\n\t}", "public AlertSeverity severity() {\n return this.innerProperties() == null ? null : this.innerProperties().severity();\n }", "public char getStatus()\r\n\t{\r\n\t\treturn status;\r\n\t}", "public Integer getDatalevel() {\n return datalevel;\n }", "public int getLevel() {\n return this.level;\n }", "public final String getLevel() {\n return this.level;\n }", "public byte type() {\n return (byte) value;\n }", "int getGoalConfigLevelValue();", "public int getLevel()\n\t{\n\t\treturn this.value;\n\t}", "public String reliabilityLevel() {\n return this.reliabilityLevel;\n }" ]
[ "0.63386756", "0.6252164", "0.60404015", "0.5988219", "0.5864911", "0.5814926", "0.57778275", "0.57694036", "0.57694036", "0.5754248", "0.5751809", "0.5746563", "0.5736154", "0.5705829", "0.5688062", "0.56451976", "0.5637084", "0.56218326", "0.55264753", "0.5524936", "0.5521736", "0.5512229", "0.55051917", "0.54726547", "0.546109", "0.5445061", "0.54357606", "0.54267025", "0.54108936", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.54088235", "0.5385943", "0.53356296", "0.53347236", "0.5332735", "0.5327014", "0.53190464", "0.5312548", "0.5309657", "0.5309657", "0.5309657", "0.5309657", "0.5309657", "0.5309657", "0.5309657", "0.5299415", "0.5297128", "0.5279204", "0.5271855", "0.525869", "0.52492195", "0.5247047", "0.52431524", "0.52431524", "0.52431524", "0.52431524", "0.52431524", "0.52431524", "0.52431524", "0.52431524", "0.52431524", "0.52431524", "0.52431524", "0.52431524", "0.52431524", "0.5230565", "0.5216764", "0.5210805", "0.52027273", "0.5195112", "0.51921535", "0.5188377", "0.5187304", "0.517675", "0.5175541", "0.51732546", "0.5172752", "0.51708096", "0.5167415", "0.5167303", "0.5165155", "0.5162103" ]
0.5318787
55
getter for name of file
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFilename();", "public String getName() { return FilePathUtils.getFileName(getPath()); }", "public String getName()\n {\n return( file );\n }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFileName();", "public String getFileName();", "public String getFileName ();", "public String getName() {\n return _file.getAbsolutePath();\n }", "public String getNameFile(){\n\t\t\treturn this.nameFile;\n\t\t}", "public String getName() {\r\n return mFile.getName();\r\n }", "private String getFileName() {\n\t\t// retornamos el nombre del fichero\n\t\treturn this.fileName;\n\t}", "public String getFile_name() {\n\t\treturn file_name;\n\t}", "public String getFilename();", "public final String getFileName() {\n\n\t\treturn getValue(FILE_NAME);\n\t}", "public String getFileName() {\n\t\treturn file.getName();\n\t}", "public String getFilename() {\n\treturn file.getFilename();\n }", "public final String getFileName() {\n\t\treturn m_info.getFileName();\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public String getFileName() {\n\t\treturn file.getFileName();\n\t}", "public String getName()\n\t{\n\t\treturn _fileName;\n\t}", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getFileName() {\r\n \t\tif (isFileOpened()) {\r\n \t\t\treturn curFile.getName();\r\n \t\t} else {\r\n \t\t\treturn \"\";\r\n \t\t}\r\n \t}", "public abstract String getFileName();", "public final String getFileName()\r\n {\r\n return _fileName;\r\n }", "public String getFileName() {\n return getCellContent(FILE).split(FILE_LINE_SEPARATOR)[0];\n }", "public String getFileName() {\n\t\treturn mItems.getJustFileName();\n\t}", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "@Override\n\tpublic String getName()\n\t{\n\t\treturn fileName;\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }", "public String getName() {\n if (filename != null) {\n int index = filename.lastIndexOf(separatorChar);\n\n if (index >= 0) {\n return filename.substring(index + 1);\n } else {\n if (filename == null) {\n return \"\";\n } else {\n return filename;\n }\n }\n } else {\n return \"\";\n }\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "protected String getFileName() {\n\t\treturn fileName;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public String getFileName() \n {\n return fileName;\n }", "public String getFILE_NAME() { return FILE_NAME; }", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName() {\r\n return fileName;\r\n }", "public String getFileName() {\r\n return fileName;\r\n }", "public String getFileName() {\r\n return fileName;\r\n }", "public final String getFileName() {\n return this.fileName;\n }", "public String getFileName(){\n\t\treturn _fileName;\n\t}", "public String getName() {\n return dtedDir + \"/\" + filename;\n }", "public File getFileName() {\n\t\treturn mFileName;\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFileName(){\r\n\t\treturn linfo != null ? linfo.getFileName() : \"\";\r\n\t}", "public String getFileName() {\n return fileName;\n }", "public String getNameForFileSystem() {\r\n\t\treturn filename;\r\n\t}", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n }\n }", "public String getFileName() {\n return this.fileName;\n }", "public String getFileName() {\n return this.fileName;\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName() {\n return fileName;\n }", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String getFileName() {\n return String.format(\"%s%o\", this.fileNamePrefix, getIndex());\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "public String getFileRealName() {\n return fileRealName;\n }", "public String fileName () {\n\t\treturn fileName;\n\t}", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "@Override\n\tpublic String getFilename() {\n\t\treturn this.path.getFileName().toString();\n\t}", "String get_name() {\n File file = new File(url);\n return file.getName();\n }", "public String getFileName() {\n return filename;\n }", "public final String getFilename() {\n return properties.get(FILENAME_PROPERTY);\n }", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }" ]
[ "0.8347426", "0.8347426", "0.8347426", "0.8347426", "0.8347426", "0.8347426", "0.8347426", "0.8347426", "0.8347426", "0.818255", "0.818255", "0.8130659", "0.8130659", "0.8130659", "0.8130659", "0.8130659", "0.80610573", "0.8047513", "0.80466664", "0.80366975", "0.8010875", "0.8010875", "0.79408926", "0.7924845", "0.7916069", "0.78798234", "0.7876244", "0.7840053", "0.7824407", "0.7788368", "0.77824515", "0.77550983", "0.7752932", "0.77467287", "0.7746212", "0.7722722", "0.7697496", "0.7695132", "0.76646495", "0.7633603", "0.76180345", "0.7596926", "0.7589589", "0.75870955", "0.7586954", "0.7570739", "0.7569418", "0.7564905", "0.7550051", "0.7527727", "0.75065565", "0.746351", "0.7459402", "0.7449054", "0.74343973", "0.74343973", "0.74300903", "0.74300903", "0.74300903", "0.74276257", "0.741905", "0.74101025", "0.7397337", "0.7394739", "0.7382341", "0.7373422", "0.7368892", "0.7366478", "0.7366478", "0.7359116", "0.7359116", "0.7357258", "0.7357258", "0.7346683", "0.7346683", "0.7346683", "0.7346683", "0.7346683", "0.7346683", "0.7346683", "0.7346683", "0.7346683", "0.7346683", "0.734477", "0.73332685", "0.7328446", "0.7325729", "0.7322896", "0.731885", "0.731885", "0.731885", "0.72953683", "0.7289892", "0.72865963", "0.7283373", "0.7280632", "0.7278873", "0.7278035", "0.7278035", "0.7278035", "0.7278035" ]
0.0
-1
setter for 'name' attribute
public void setName(String name){ this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String value) {\n this.name = value;\n }", "protected void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public final void setName(String name) {_name = name;}", "public void setName(String name) \n {\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String n){ name=n; }", "public void setName(String name) {\n this.name = name;\n }", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(String name)\r\n\t{\t\t\r\n\t\tthis.name = name;\r\n\t}", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String name)\r\n {\r\n\tthis.name = name;\r\n }", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}", "public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}", "public void setName(String name)\n {\n this.name=name;\n }", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name)\n {\n\tthis.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}", "@Override\n public void setName(String name)\n {\n checkState();\n this.name = name;\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName( String name )\n {\n this.name = name;\n }", "public void setName( String name )\n {\n this.name = name;\n }", "void setName(String name) {\r\n this.name = name;\r\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "public void setName(String name) {\n\t this.name = name;\n\t }", "public void setName(String name){this.name = name;}", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name) {\r\n\t\tthis.name=name;\r\n\t}", "protected void setName(String name) {\n this._name = name;\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(String name) {\r\n\t\t_name = name;\r\n\t}", "void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName( String name ) {\n this.name = name;\n }" ]
[ "0.85441667", "0.85441667", "0.85441667", "0.85441667", "0.8492177", "0.8477952", "0.8475663", "0.8475663", "0.8475663", "0.8473573", "0.8473573", "0.84681803", "0.8462913", "0.84598964", "0.84595835", "0.8454894", "0.8439226", "0.8437096", "0.8431235", "0.8431235", "0.8429332", "0.8427758", "0.8427758", "0.8427758", "0.8426165", "0.8426165", "0.8426165", "0.8426165", "0.842556", "0.84236276", "0.8419293", "0.8419293", "0.84103537", "0.84074295", "0.8395613", "0.8394641", "0.83879566", "0.83879566", "0.83879566", "0.83865416", "0.83741206", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83689463", "0.83674884", "0.8357658", "0.8356258", "0.8354913", "0.8354913", "0.8354913", "0.8351913", "0.8351913", "0.8347883", "0.8347682", "0.8347682", "0.8347682", "0.83473784", "0.83434975", "0.83430856", "0.8341146", "0.8339032", "0.833855", "0.8336724", "0.8334837", "0.83315915", "0.83315915", "0.83315915", "0.8322018", "0.8322018", "0.8322018", "0.8322018", "0.8322018", "0.8322018", "0.8322018", "0.8322018", "0.8322018", "0.8322018", "0.8318345" ]
0.8387294
45
getter for date of creation of the file
public Date getDate() { return this.date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getFileDate()\r\n {\r\n return dFileDate;\r\n }", "Date getDateCreated();", "Date getCreationDate();", "public Date getDateCreated();", "Date getCreatedDate();", "public Date getCreationDate();", "@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }", "public String getFileFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\"));\n }", "public long getCreationTime();", "public Calendar getCreationDate() throws IOException {\n/* 238 */ return getCOSObject().getDate(COSName.CREATION_DATE);\n/* */ }", "Date getCreateDate();", "Date getCreateDate();", "long getCreationTime(String path) throws IOException;", "public Date getCreatedDate();", "public Date getCreationDate()\r\n {\r\n return (m_creationDate);\r\n }", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "public long getCreationDate() {\n return creationDate_;\n }", "long getCreationTime();", "long getCreationTime();", "long getCreationTime();", "public Date getCreationTime()\n {\n return created;\n }", "public DateTime getCreated();", "public String getDatecreated() {\n return datecreated;\n }", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "public long getCreationDate() {\n return creationDate_;\n }", "@Override\n public String getCreationDate() {\n return creationDate;\n }", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "public Date getCreation() {\n return creation;\n }", "java.lang.String getDate();", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _dictData.getCreateDate();\n\t}", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "public Date getDateCreated(){return DATE_CREATED;}", "public DateTime getCreationTime() {\n return created;\n }", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreationTime()\n\t{\n\t\treturn creationTime;\n\t}", "public Date getCreationDate()\n {\n return creationDate;\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreationTime() {\n return creationTime;\n }", "public java.util.Date getDateCreated(){\r\n\t\treturn dateCreated;\r\n\t}", "long getCreationTimeUtc(String path) throws IOException;", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "@DISPID(110)\r\n\t// = 0x6e. The runtime will prefer the VTID if present\r\n\t@VTID(105)\r\n\tjava.util.Date creationDateTime();", "public Date getCreationTime() {\n return creationTime;\n }", "public Date getCreationTime() {\n return creationTime;\n }", "public Date getCreated() {\r\n return createdDate;\r\n }", "public DateTime getCreationTime() { return creationTime; }", "public Date getCreationDate() {\r\n return this.creationDate;\r\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public Long getCreationDate()\r\n\t{\r\n\t\treturn creationDate;\r\n\t}", "public Date getDateCreated()\n {\n return dateCreated;\n }", "public java.util.Date getCreatedate () {\n\t\treturn createdate;\n\t}", "String timeCreated();", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "@Override\n\tpublic Date getCreateDate();", "@Override\n\tpublic Date getCreateDate();", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreationDate() {\n\t\treturn this.creationDate;\n\t\t\n\t}", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "String getDate();", "String getDate();", "public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return mCreated;\n }", "public Date getCreationDate() {\n return creationDate;\n }", "public Date getCreationTime() {\n\t\treturn creationTime;\n\t}", "public String getCreateDate() {\r\n\t\treturn createDate;\r\n\t}", "public Date getCreationdate() {\n return creationdate;\n }", "public String getCreateDate() {\n return createDate;\n }", "public java.lang.String getCreateDate() {\n java.lang.Object ref = createDate_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createDate_ = s;\n return s;\n }\n }", "public Date getDateCreated() {\r\n\t\treturn dateCreated;\r\n\t}", "public Date getCreationDate() {\r\n\t\treturn creationDate;\r\n\t}", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public String getCreateDate() {\n return createDate;\n }", "public long getCreationTime()\n {\n return m_metaInf.getCreationTime();\n }", "public java.util.Date getCreated() {\n return this.created;\n }", "public Date getDateCreated() {\n\t\treturn dateCreated;\n\t}", "@SimpleProperty(description = \"iSENSE Project Creation Date\", \n category = PropertyCategory.BEHAVIOR)\n public String ProjectDateCreated() {\n if(this.project == null || this.fields == null) {\n Log.e(\"iSENSE\", \"Couldn't get project information!\");\n return \"DNE\";\n }\n return project.timecreated;\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "@Override\n public Date getCreated() {\n return created;\n }", "public long getCreationTime() {\n return creationTime;\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _paper.getCreateDate();\n\t}", "public abstract long getCreated();", "public Date getCreationDate() {\n\t\treturn creationDate;\n\t}" ]
[ "0.7865552", "0.7685837", "0.74867815", "0.74241036", "0.73866004", "0.73288554", "0.7294576", "0.7277829", "0.72703576", "0.72638696", "0.72254467", "0.72254467", "0.71966594", "0.71833265", "0.7117991", "0.71140176", "0.71140176", "0.71140176", "0.71092373", "0.7094874", "0.7094034", "0.7094034", "0.7094034", "0.7081489", "0.7075198", "0.70499164", "0.7048704", "0.7011899", "0.7003607", "0.69969714", "0.6992644", "0.6991452", "0.6980864", "0.69755375", "0.69596785", "0.69582474", "0.6952811", "0.6952811", "0.6946808", "0.6941549", "0.6932313", "0.6932313", "0.69281346", "0.69217485", "0.69134223", "0.6911363", "0.6911363", "0.6911363", "0.6909414", "0.6905128", "0.6905128", "0.69012654", "0.69006574", "0.68986845", "0.68986017", "0.6896839", "0.68937534", "0.68888766", "0.68872947", "0.68871737", "0.68848866", "0.68848866", "0.6878592", "0.6878592", "0.6878592", "0.6878592", "0.6875992", "0.6870782", "0.6866519", "0.6866519", "0.686284", "0.686284", "0.68603766", "0.68572986", "0.68572986", "0.6852633", "0.6849774", "0.68386215", "0.6833916", "0.6833514", "0.6828033", "0.6826758", "0.6824093", "0.68197393", "0.68140733", "0.68140733", "0.68140733", "0.68140733", "0.6810883", "0.6808265", "0.68003047", "0.6798465", "0.6797097", "0.6795393", "0.6795393", "0.6795393", "0.6795304", "0.6790427", "0.6784925", "0.67838687", "0.67826736" ]
0.0
-1
create random date between years 2017 2021
public Date createDate() { Timestamp maxDate = new Timestamp(2021 - 1900, 11, 31, 23, 59, 59, 0); Timestamp minDate = new Timestamp(2017 - 1900, 0, 1, 0, 0, 0, 0); long range = maxDate.getTime() - minDate.getTime(); long randTime = Math.abs(Main.rnd.nextLong()) % range; //we use abs because random number might be negative return new Date(minDate.getTime() + randTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String randomDateGenerator() {\n\n\t\tLocalDate startDate = LocalDate.now();\n\n\t\tint year = startDate.getYear();\n\t\tint month = startDate.getMonthValue();\n\t\tint day = startDate.getDayOfMonth();\n\n\t\tLocalDate endDate = LocalDate.of(year + 1, month, day);\n\n\t\tlong randomDate = randBetween(startDate.toEpochDay(), endDate.toEpochDay());\n\t\treturn LocalDate.ofEpochDay(randomDate).toString();\n\n\t}", "public static String generatesRandomDate(int startYear, int endYear) {\n int day = generatesRandomIntBetween(1, 28);\n int month = generatesRandomIntBetween(1, 12);\n int year = generatesRandomIntBetween(startYear, endYear);\n return LocalDate.of(year, month, day).format(formatter);\n }", "private String getRandomDate() {\n\t\tint currentYear = Calendar.getInstance().get(Calendar.YEAR); \t\t\n\t\tint year = (int) Math.round(Math.random()*(currentYear-1950)+1950); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// between 1950 and currentYear\n\t\tint month = (int) Math.round(Math.floor(Math.random()*11)+1);\t\t\n\t\t// 3. select a random day in the selected month\n\t\t// 3.1 prepare an array to store how many days in each month\n\t\tint[] months = new int[]{31,28,30,30,31,30,31,31,30,31,30,31};\n\t\t// 3.2 if it is a leap year, feb (months[1]) should be 29\n\t\tif ((currentYear % 4 == 0) && ((currentYear % 100 != 0) || (currentYear % 400 == 0))) {\n\t\t\tmonths[1] = 29;\n\t\t}\n\t\tlong day = Math.round(Math.floor(Math.random()*(months[month-1]-1)+1));\n\t\treturn \"\"+year+\"-\"+month+\"-\"+day;\n\t}", "private Date randomDate() {\n int minDay = (int) LocalDate.of(2012, 1, 1).toEpochDay();\n int maxDay = (int) LocalDate.now().toEpochDay();\n int randomDay = minDay + intRandom(maxDay - minDay);\n LocalDate randomDate = LocalDate.ofEpochDay(randomDay);\n Date d = toDate(randomDate);\n return d;\n }", "@Override\n public Date generate() {\n int year = 2000 + Rng.instance().nextInt(20);\n int date = Rng.instance().nextInt(28) + 1;\n int month = Rng.instance().nextInt(10) + 1;\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, date);\n\n return calendar.getTime();\n }", "private static Date getRandomDate(){\n Instant instant = Instant.now();\n long timeStampMillis = instant.toEpochMilli();\n long leftLimit = timeStampMillis - (1000 * 60 * 60 * 24 * 20);\n long rightLimit = timeStampMillis + (1000 * 60 * 60 * 24 * 20);\n return new Date(\n leftLimit + (long) (Math.random() * (rightLimit - leftLimit))\n );\n }", "public static Date randomDate() {\n return VALUES.get(RND.nextInt(SIZE));\n }", "public static LocalDate randomLocalDate() {\n\t\tlong minDay = LocalDate.now().plusDays(1).toEpochDay();\n\t\tlong maxDay = LocalDate.now().plusMonths(1).toEpochDay();\n\t\tlong randomDay = ThreadLocalRandom.current().nextLong(minDay, maxDay);\n\t\treturn LocalDate.ofEpochDay(randomDay);\n\t}", "public static String randomDate() {\n DateFormat format = new SimpleDateFormat(\"ddMMyyHHmmss\");\n return format.format(new Date());\n }", "private static String randomYear()\r\n {\r\n String year = \"\";\r\n int number = ran.nextInt(4);\r\n switch(number)\r\n {\r\n case 0:\r\n year = \"freshman\";\r\n break;\r\n case 1:\r\n year = \"sophmore\";\r\n break;\r\n case 2:\r\n year = \"junior\";\r\n break; \r\n case 3:\r\n year = \"senior\";\r\n break;\r\n }\r\n\r\n return year;\r\n }", "Year createYear();", "public static String generateDOB() {\n GregorianCalendar gc = new GregorianCalendar();\n int yyyy = randBetween(1950, 2000);\n gc.set(gc.YEAR, yyyy);\n int dd = randBetween(1, gc.getActualMaximum(gc.DAY_OF_YEAR));\n gc.set(gc.DAY_OF_YEAR, dd);\n\t\tString dob= gc.get(gc.DAY_OF_MONTH)+\"-\"+(gc.get(gc.MONTH) + 1)+\"-\"+gc.get(gc.YEAR);\n System.out.println(gc.get(gc.DAY_OF_MONTH)+\"-\"+(gc.get(gc.MONTH) + 1)+\"-\"+gc.get(gc.YEAR));\n\t\treturn(dob);\n}", "public static LocalDate generateExpiration() {\n LocalDate today = LocalDate.now(); //gives us the information at the moment the program is running\n int expYear = today.getYear() + 5;\n LocalDate exp = LocalDate.of(expYear, today.getMonth(), today.getDayOfMonth());\n return exp;\n }", "private String getVaryingDate() {\n LocalDateTime now = LocalDateTime.now();\n LocalDateTime variedDate = now.plusDays(new Random().nextInt((30-1) +1))\n .plusHours(new Random().nextInt((60-1) + 1))\n .withMinute(0);\n\n return variedDate.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\"));\n }", "public static Timestamp getRandomLoginDate() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, generatRandomPositiveNegitiveValue(30, 30));\n\t\treturn new Timestamp(calendar.getTimeInMillis());\n\n\t}", "public static void main(String[] args) {\n Random randy = new Random();\r\n for (int i = 0; i < 2019; i++) {\r\n printYear(i, randy.nextInt(7), false);\r\n }\r\n //printYear(2007, 5, false);\r\n }", "private String getRandomDate(int Margin) {\n\t\t// Given Date in String format\n\t\tString todayDate = new SimpleDateFormat(\"dd-MM-yyyy\").format(new Date());\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tCalendar c = Calendar.getInstance();\n\t\ttry {\n\t\t\tc.setTime(sdf.parse(todayDate));\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Number of Days to add\n\t\tc.add(Calendar.DAY_OF_MONTH, generateRandomNumber() + Margin);\n\n\t\t// Date after adding the days to the given date\n\t\treturn sdf.format(c.getTime()).toString();\n\t}", "public static int getRndMonthNumber() {\n return ThreadLocalRandom.current().nextInt(1, 12 + 1);\n }", "Years createYears();", "public static String generateDate()\r\n\t{\r\n\t\tDate d = new Date();\r\n\t\tSimpleDateFormat datef = new SimpleDateFormat(\"YYYY_MM_dd_ss\");\r\n\t\treturn datef.format(d);\r\n\r\n\r\n\t}", "public static String generateCurrentInYearString() {\n\t Calendar cal = Calendar.getInstance();\n\t cal.setTime(new Date());\n\t int currentYear = cal.get(Calendar.YEAR);\n\t return new Integer(currentYear).toString();\n\t}", "public static final int getReleaseYear() { return 2019; }", "public static Date newRandomDate(final Date from)\r\n\t{\r\n\t\tfinal Random secrand = new SecureRandom();\r\n\t\tfinal double randDouble = -secrand.nextDouble() * from.getTime();\r\n\t\tfinal double randomDouble = from.getTime() - secrand.nextDouble();\r\n\t\tfinal double result = randDouble * randomDouble;\r\n\t\treturn new Date((long)result);\r\n\t}", "private int randomAge() {\n \tint low = 18;\n \tint high = 100;\n \tint offset = high - low;\n \tRandom r = new Random();\n \treturn r.nextInt(offset) + low;\n \t\n }", "private Date toDate(LocalDate randomDate) {\n Date d = Date.from(randomDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());\n return d;\n }", "private static Date getYearDate(int year) {\n Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.set(Calendar.YEAR, year);\n return calendar.getTime();\n }", "public static String create(int year, int month, int date) {\r\n\t\tCalendar dateTime = createCalendar(year, month, date);\r\n\t\treturn YYYY_MM_DD_FORMATTER.format(dateTime.getTime());\r\n\t}", "public static Date createDate(int year, int month, int date) {\n\n LocalDate localDate = LocalDate.of(year, month, date);\n ZoneId zoneId = ZoneId.systemDefault();\n Date result = Date.from(localDate.atStartOfDay(zoneId).toInstant());\n return result;\n }", "public static String getRandomTimeStamp() {\n\t\treturn \"2014-12-12T10:39:40Z\";\n\t}", "private static String getNewYearAsString() {\n\t\t// calculate the number of days since new years\n\t\tGregorianCalendar now = new GregorianCalendar();\n\t\t\n\t\t// create a date and string representing the new year\n\t\tGregorianCalendar newYearsDay = new GregorianCalendar( now.get(GregorianCalendar.YEAR), 0, 1);\n\t\tDateFormat fmt = new SimpleDateFormat(\"MMM dd, yyyy \");\n\t\n\t\treturn fmt.format( newYearsDay.getTime() );\n\t}", "public static Date createDate(int yyyy, int month, int day) {\n/* 75 */ CALENDAR.clear();\n/* 76 */ CALENDAR.set(yyyy, month - 1, day);\n/* 77 */ return CALENDAR.getTime();\n/* */ }", "public String getNextYear(String date){\r\n\t\tString registerDueDate=\"\";\r\n\t\ttry{\r\n\t\t\tList<TransferNORInPSTBean> minimumRegisterDueDateList=(List<TransferNORInPSTBean>)sqlMapClient.queryForList(\"TransferNORInPSTBean.getNextRegisterDueDate\", date);\r\n\t\t\tfor(TransferNORInPSTBean minimumRegisterDueDateValue: minimumRegisterDueDateList){\r\n\t\t\t\tregisterDueDate=minimumRegisterDueDateValue.getRegisterDueDate();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\t//System.out.println(\"Exception in add next year\"+e.getMessage());\r\n\t\t\tlogger.info(\"Exception in get next year \"+e.getMessage());\r\n\t\t}\r\n\t\treturn registerDueDate;\r\n\t}", "public static String getRandomLicense() {\n String license = \"Copyright 2014 \";\n String owner = names[RandomNumberGenerator.getRandomInt(0, names.length - 1)];\n license = license + owner;\n return license.trim();\n }", "private String crearCodigoRuta(String nombre){\n String fecha = new SimpleDateFormat(\"ddMMyyyy\").format(new Date());\n Random randomGenerator = new Random();\n int RndNum = randomGenerator.nextInt(1000);\n\n return nombre+\"_\"+fecha+\"_\"+RndNum;\n }", "private Date generateExpirationDate(){\n Calendar c = Calendar.getInstance();\n c.setTime(new Date());\n c.add(Calendar.DAY_OF_WEEK, CommonSecurityConfig.EXPIRATION);\n return c.getTime();\n }", "public int getStartingYear()\n {\n return 2013;\n }", "public Date generarFechaSolicitudGarantia() {\r\n return new Date();\r\n }", "Integer getTenYear();", "@Test\n public void testSpecificYear() {\n context = new MockServletContext();\n context.setInitParameter(ConfigService.MESHRDF_YEAR, \"2018\");\n context.setInitParameter(ConfigService.MESHRDF_INTERIM, \"true\");\n configService = new ConfigServiceImpl(context);\n\n ValidYears years = configService.getValidYears();\n\n assertThat(years.getCurrent(), equalTo(2018));\n assertThat(years.getInterim(), equalTo(2019));\n }", "@Test\n\tpublic void testCreatePastCarYear() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = \"Z4\";\n\t\tString _color = \"black\";\n\t\tint _year = 1800;\n\n\t\t// ---------------------------------------------\n\t\t// Creating past year.\n\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\n\t\t}\n\t}", "public static long howManyYearsFromNow(LocalDateTime date){\n LocalDateTime now = LocalDateTime.now();\n return now.until(date, ChronoUnit.YEARS);\n }", "@Test\n\tpublic void testNextDate(){\n\t\tif(year==444 && day==29){\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n } else if(day==30 && year==2005){ //for test case 10\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\n\t\t} else if(day==31 ){ //for test cases 13,14,15\n\t\t\tif(month==12){\n\t\t\tday=1;\n\t\t\tmonth=1;\n\t\t\tyear+=1;\n\t\t\tDate actualDate = new Date(year,month,day);\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n } else {\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\t\t\t}\n\n\t\t}\n\t\telse{\t\n\t\t\tDate actualDate = new Date(year,month,(day+1));\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\t\t}\n\t\n\t}", "@Override\n public long generateNewTimeToNextContract() {\n return new Random().nextInt(5);\n }", "int getYear();", "private Patient setPatientDOB(Date date, Patient patient){\n\t\tint year=date.getYear()+1900;\n\t\tint age=patient.getAge();\n\t\tif(age>60){\t//If patient age above 60 years then randomize the year also\n\t\t\tyear=randBetween(1990,2010);\n\t\t}\n\t\tint dayOfMonth = randBetween(1, 31);\n\t\tint month = randBetween(0, 11);\n\t\tDate d = new Date(year-1900, month, dayOfMonth); //Random date\n\t\tpatient.setBirthdate(d);\n\t\treturn patient;\n\t}", "@Test\n\tpublic void testCreateFutureCarYear() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = \"Z4\";\n\t\tString _color = \"black\";\n\t\tint _year = 19900;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a future year.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\n\t\t}\n\n\t}", "public static Date createDate(int yyyy, int month, int day, int hour, int min) {\n/* 93 */ CALENDAR.clear();\n/* 94 */ CALENDAR.set(yyyy, month - 1, day, hour, min);\n/* 95 */ return CALENDAR.getTime();\n/* */ }", "DateConstant createDateConstant();", "public int determineDayRandomly() {\n\t\treturn 0;\r\n\t}", "public static int getTodaysYear() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.year;\t\r\n\t\t\r\n\t}", "private Date createDate(final int year, final int month, final int dayOfMonth) {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.YEAR, year);\n cal.set(Calendar.MONTH, month);\n cal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n return cal.getTime();\n }", "public static LocalTime randomEvening() {\n int randomInt = (int)(11.0 * Math.random()) + 13;\n return LocalTime.of(randomInt, 0);\n }", "public static native JsDate create(int year, int month) /*-{\n return new Date(year, month);\n }-*/;", "public static double genRandomRestPeriod() {\n return Simulator.randomGenerator.genRestPeriod();\n }", "public static long randomTime() {\n return (random.nextInt(11) + 25)*1000;\n }", "private AbsentYear createAbsentYear(Employee emp, LocalDate startDate) {\n\t\tAbsentYear absentYear = new AbsentYear();\n\t\tabsentYear.setEmployee(emp);\n\t\tabsentYear.setYear((short)startDate.getYear());\n\t\tabsYearRepo.save(absentYear);\n\t\treturn absentYear;\n\t}", "@Test public void Year_0__month__day()\t\t\t\t\t\t\t{tst_date_(\"2001-03-31\"\t\t\t\t, \"2001-03-31\");}", "long random(long ws) {\r\n\t\treturn (System.currentTimeMillis() % ws);\r\n\t}", "public String asYear() {\n \treturn new SimpleDateFormat(\"yyyy\").format(expiredAfter);\n }", "public static double random() {\r\n return uniform();\r\n }", "private String getYear(Date date) {\n\t\tLocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\n\t\tInteger yearAsInt = localDate.getYear();\n\n\t\treturn String.valueOf(yearAsInt);\n\t}", "private void createXmlYear(int year){\r\n Document doc = initialize();\r\n Element parent = doc.getDocumentElement();\r\n Element docYear = doc.createElement(\"year\");\r\n docYear.setAttribute(\"yid\", Integer.toString(year));\r\n parent.appendChild(docYear);\r\n transformToXml(doc);\r\n }", "@Test\n public void isLeapYearOk(){\n assertTrue(Date.isLeapYear(2008));\n }", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "public double todaysRate() {\n\t\trandomDelay(1.0, 2.0);\n\n\t\tLocalDate today = LocalDate.now();\n\n\t\tint seed = today.getDayOfMonth() + today.getMonthValue() + today.getYear();\n\n\t\treturn new Random(1000 * seed).nextDouble() * 6.0 + 3.0;\n\t}", "private static String getYearMonth() {\n LocalDate oneMonthAgo = LocalDate.now().minusMonths(1);\n return oneMonthAgo.getYear() + String.format(\"%02d\", oneMonthAgo.getMonth().getValue());\n }", "public DuelistRNG() {\n this((long) ((Math.random() - 0.5) * 0x10000000000000L)\n ^ (long) (((Math.random() - 0.5) * 2.0) * 0x8000000000000000L),\n (long) ((Math.random() - 0.5) * 0x10000000000000L)\n ^ (long) (((Math.random() - 0.5) * 2.0) * 0x8000000000000000L));\n }", "public static void main(String[] args) {\n\n\t\tLocalDate current =LocalDate.now();\n\tLocalDate ld =\tLocalDate.of(1989, 11, 30);\n\t\t\n\tPeriod pd =\tPeriod.between(current, ld);\n\tSystem.out.println(pd.getYears());\n\t}", "@Test\n void generateBalanceSheetHeadingWithLocalDate() {\n assertEquals(\"2017\",\n datesHelper.generateBalanceSheetHeading(LocalDate.parse(\"2016-01-01\"), LocalDate.parse(\"2017-01-14\"), false));\n\n // Test 381 days shows month (more than 12 month period)\n assertEquals(\"13 months to 16 February 2016\",\n datesHelper.generateBalanceSheetHeading(LocalDate.parse(\"2015-02-01\"), LocalDate.parse(\"2016-02-16\"), false));\n\n // Test 349 days shows month (less than 12 month period)\n assertEquals(\"11 months to 1 January 2017\",\n datesHelper.generateBalanceSheetHeading(LocalDate.parse(\"2016-01-19\"), LocalDate.parse(\"2017-01-01\"), false));\n\n // Test exactly 381 days shows months leap year\n assertEquals(\"13 months to 16 February 2015\",\n datesHelper.generateBalanceSheetHeading(LocalDate.parse(\"2014-02-01\"), LocalDate.parse(\"2015-02-16\"), false));\n\n // Test 336 days shows 'month' rather than 'months'\n assertEquals(\"1 month to 1 April 2015\",\n datesHelper.generateBalanceSheetHeading(LocalDate.parse(\"2015-03-07\"), LocalDate.parse(\"2015-04-01\"), false));\n\n // Test that 0 month result shows correctly as '1 month'\n assertEquals(\"1 month to 31 March 2010\",\n datesHelper.generateBalanceSheetHeading(LocalDate.parse(\"2010-03-18\"), LocalDate.parse(\"2010-03-31\"), false));\n\n // \"Test exactly 351 days show yyyy\"\n assertEquals(\"2015\",\n datesHelper.generateBalanceSheetHeading(LocalDate.parse(\"2014-04-01\"), LocalDate.parse(\"2015-03-16\"), false));\n\n // Test exactly 351 days show years leap year\n assertEquals(\"2016\",\n datesHelper.generateBalanceSheetHeading(LocalDate.parse(\"2015-04-01\"), LocalDate.parse(\"2016-03-16\"), false));\n\n // Test 1st year filing within 15 days either side of 1 year period with same\n // year is just year\n assertEquals(\"30 June 2015\",\n datesHelper.generateBalanceSheetHeading(LocalDate.parse(\"2014-06-01\"), LocalDate.parse(\"2015-06-30\"), true));\n }", "private Random rand()\n\t{\n\t\treturn new Random();\n\t}", "public static void random() {\n boolean nameCheck = false;\n if ((PremierLeagueManager.premierLeague.size()-1)*(PremierLeagueManager.premierLeague.size())>(PremierLeagueManager.matches.size())) {\n do {\n Random rand = new Random();\n SportsClub randTest1 = PremierLeagueManager.premierLeague.get(rand.nextInt(PremierLeagueManager.premierLeague.size())); //getting random club name from array list\n SportsClub randTest2 = PremierLeagueManager.premierLeague.get(rand.nextInt(PremierLeagueManager.premierLeague.size()));\n clubName1 = randTest1.getClubName1(); //random club name initialize to the variable\n clubName2 = randTest2.getClubName1();\n if (!clubName1.equalsIgnoreCase(clubName2)) { //checking to random names are equal or not\n for (SportsClub footBallClub : PremierLeagueManager.matches) {\n if ((clubName1.equalsIgnoreCase((footBallClub).getClubName1())) && (clubName2.equalsIgnoreCase((footBallClub).getClubName2()))) {\n nameCheck = false;\n break;\n } else {\n nameCheck = true;\n }\n }\n } else {\n nameCheck = false;\n }\n }while (!nameCheck);\n\n LocalDate startDate = LocalDate.of(2020, 8, 1); //start date https://stackoverflow.com/questions/40253332/generating-random-date-in-a-specific-range-in-java/40253420\n long start = startDate.toEpochDay();\n\n LocalDate endDate = LocalDate.of(2021,5,30); //end date\n long end = endDate.toEpochDay();\n\n long randomEpochDay = ThreadLocalRandom.current().longs(start, end).findAny().getAsLong();\n String date = String.valueOf(LocalDate.ofEpochDay(randomEpochDay)); //getting random date between 2020-08-1 to 2021-05-31\n //System.out.println(date);\n\n\n Random randScore = new Random();\n team1Scored = randScore.nextInt(15); //getting random score between 0 to 15\n team2Scored = randScore.nextInt(15);\n\n for (SportsClub footBallClub : PremierLeagueManager.premierLeague) { //calculation part\n if ((footBallClub.getClubName1().equalsIgnoreCase(clubName1))) {\n if (team1Scored > team2Scored) {\n wins1 = ((FootBallClub) footBallClub).getWins()+1;\n defeats1 = ((FootBallClub) footBallClub).getDefeats();\n noOfPoints1 = ((FootBallClub) footBallClub).getNoOfPoints()+3;\n draws1 = ((FootBallClub) footBallClub).getDraws();\n }\n else if (team2Scored > team1Scored) {\n wins1 = ((FootBallClub) footBallClub).getWins();\n defeats1 = ((FootBallClub) footBallClub).getDefeats()+1;\n noOfPoints1 = ((FootBallClub) footBallClub).getNoOfPoints();\n draws1 = ((FootBallClub) footBallClub).getDraws();\n }\n else if (team1Scored == team2Scored) {\n wins1 = ((FootBallClub) footBallClub).getWins();\n defeats1 = ((FootBallClub) footBallClub).getDefeats();\n draws1 = ((FootBallClub) footBallClub).getDraws()+1;\n noOfPoints1 = ((FootBallClub) footBallClub).getNoOfPoints()+1;\n }\n noOfGoals1 = ((FootBallClub) footBallClub).getNoOfGoals()+team2Scored;\n scored1 = ((FootBallClub) footBallClub).getScored()+team1Scored;\n playedMatches1=((FootBallClub) footBallClub).getNoOfMatches()+1;\n goalDifference1 =scored1-noOfGoals1;\n SportsClub footballClub1 = new FootBallClub(clubName1,\"\",location,foundedYear,0,wins1,draws1,defeats1,noOfGoals1,scored1,noOfPoints1,playedMatches1, goalDifference1,date); //pass the object to the constructor\n PremierLeagueManager.premierLeague.set(PremierLeagueManager.premierLeague.indexOf(footBallClub),footballClub1); //set the first team object to the relevant index number\n\n\n }else if ((footBallClub.getClubName1().equalsIgnoreCase(clubName2))){\n if (team2Scored > team1Scored) {\n wins2 = ((FootBallClub) footBallClub).getWins()+1;\n defeats2 = ((FootBallClub) footBallClub).getDefeats();\n draws2 = ((FootBallClub) footBallClub).getDraws();\n noOfPoints2 = ((FootBallClub) footBallClub).getNoOfPoints()+3;\n }\n else if (team1Scored > team2Scored) {\n wins2 = ((FootBallClub) footBallClub).getWins();\n defeats2 = ((FootBallClub) footBallClub).getDefeats()+1;\n draws2 = ((FootBallClub) footBallClub).getDraws();\n noOfPoints2 = ((FootBallClub) footBallClub).getNoOfPoints();\n }\n else if (team1Scored == team2Scored) {\n wins2 = ((FootBallClub) footBallClub).getWins();\n defeats2 = ((FootBallClub) footBallClub).getDefeats();\n draws2 = ((FootBallClub) footBallClub).getDraws()+1;\n noOfPoints2 = ((FootBallClub) footBallClub).getNoOfPoints()+1;\n }\n noOfGoals2 = ((FootBallClub) footBallClub).getNoOfGoals()+team1Scored;\n scored2 = ((FootBallClub) footBallClub).getScored()+team2Scored;\n playedMatches2=((FootBallClub) footBallClub).getNoOfMatches()+1;\n goalDifference2 =scored2-noOfGoals2;\n SportsClub footballClub2 = new FootBallClub(clubName2,\"\",location,foundedYear,0,wins2,draws2,defeats2,noOfGoals2,scored2,noOfPoints2,playedMatches2, goalDifference2,date);\n PremierLeagueManager.premierLeague.set(PremierLeagueManager.premierLeague.indexOf(footBallClub),footballClub2); //set the second team object to the relevant index number\n }\n }\n SportsClub playedMatch1 = new FootBallClub(clubName1,clubName2,\"\",\"\",0,0,0,0,team1Scored,team2Scored,0,0,0,date); //pass the matches details to the constructor\n premierLeagueManager.addPlayedMatch(playedMatch1);\n position();\n }\n }", "Builder addCopyrightYear(Number value);", "public void initializeYears() {\n int j, k;\n WaterPurityReport earliest = _purityReportData.get(1);\n WaterPurityReport latest = _purityReportData.get(_purityReportData.getCount());\n if (earliest != null) {\n// j = earliest.getDate().toInstant().atZone(ZoneId.of(\"EST\")).toLocalDate().getYear();\n// k = latest.getDate().toInstant().atZone(ZoneId.of(\"EST\")).toLocalDate().getYear();\n\n Calendar cal = Calendar.getInstance();\n cal.setTime(earliest.getDate());\n j = cal.get(Calendar.YEAR);\n cal.setTime(latest.getDate());\n k = cal.get(Calendar.YEAR);\n dataGraphYear.setItems(FXCollections.observableArrayList(IntStream.range(j, k+1).boxed().collect(Collectors.toList())));\n }\n }", "private static Calendar createCalendar(int year, int month, int date) {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setLenient(false);\r\n\t\tcalendar.set(Calendar.YEAR, year);\r\n\t\tcalendar.set(Calendar.MONTH, month - 1);\r\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, date);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\treturn calendar;\r\n\t}", "public String generateTimeStamp() {\t\t\r\n\t\t\tCalendar now = Calendar.getInstance();\r\n\t\t\tint year = now.get(Calendar.YEAR);\r\n\t\t\tint month = now.get(Calendar.MONTH) + 1;\r\n\t\t\tint day = now.get(Calendar.DATE);\r\n\t\t\tint hour = now.get(Calendar.HOUR_OF_DAY); // 24 hour format\r\n\t\t\tint minute = now.get(Calendar.MINUTE);\r\n\t\t\tint second = now.get(Calendar.SECOND);\r\n\t\t\t\r\n\t\t\tString date = new Integer(year).toString() + \"y\";\r\n\t\t\t\r\n\t\t\tif(month<10)date = date + \"0\"; // zero padding single digit months to aid sorting.\r\n\t\t\tdate = date + new Integer(month).toString() + \"m\"; \r\n\r\n\t\t\tif(day<10)date = date + \"0\"; // zero padding to aid sorting.\r\n\t\t\tdate = date + new Integer(day).toString() + \"d\";\r\n\r\n\t\t\tif(hour<10)date = date + \"0\"; // zero padding to aid sorting.\r\n\t\t\tdate = date + new Integer(hour).toString() + \"_\"; \r\n\r\n\t\t\tif(minute<10)date = date + \"0\"; // zero padding to aid sorting.\r\n\t\t\tdate = date + new Integer(minute).toString() + \"_\"; \r\n\r\n\t\t\tif(second<10)date = date + \"0\"; // zero padding to aid sorting.\r\n\t\t\tdate = date + new Integer(second).toString() + \"x\";\r\n\t\t\t\r\n\t\t\t// add the random number just to be sure we avoid name collisions\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tdate = date + rand.nextInt(1000);\r\n\t\t\treturn date;\r\n\t\t}", "public static void main(String[] args) {\n\t\tDate today = new Date();\r\n\t\t\r\n\t\tSystem.out.println(random()); //////// 이렇게 생략가능 Math.random() -> random()\r\n\t\t\r\n\t\tSimpleDateFormat date = new SimpleDateFormat(\"yyyy/MM/dd\");//연도,월,일 순으로 date에 저장\r\n\t\tSimpleDateFormat time = new SimpleDateFormat(\"hh:mm:ss a\");\r\n\t\t\r\n\t\tSystem.out.println(\"오늘 날짜는 \" + date.format(today));\r\n\t\tSystem.out.println(\"현재 시간은 \" + time.format(today));\r\n\t}", "private static ZonedDateTime fixYearIfInFuture(ZonedDateTime dateAndTime) {\n if (dateAndTime.isAfter(ZonedDateTime.now())) {\n return dateAndTime.minusYears(100);\n }\n return dateAndTime;\n }", "public static int getRandomAmount(){\n return rand.nextInt(1000);\n }", "public static void main(String[] args) {\n int i =2003;\n long d = 13220100526L;\n System.out.println(new Date(d));\n System.out.println(i / 20 + (i % 20 > 0 ? 1 : 0));\n }", "public EventsCalendarYear() {\n initYear();\n }", "public DueDateBuilder setYear(int year) {\n this.year = year;\n return this;\n }", "public void setNextYear()\n\t{\n\t\tm_calendar.set(Calendar.YEAR,getYear()+1);\n\t\tsetDay(getYear(),getMonthInteger(),1);\n\n\t}", "@Test\n\tpublic void testYears() {\n\t\tint birthYear = 2000;\n\t\tint deathYear = 2019;\n\t\tPlot plot = new Plot();\n\t\t\n\t\tplot.setBirthYear(2000);\n\t\tassertEquals(plot.getBirthYear(), birthYear);\n\t\tplot.setDeathYear(2019);\n\t\tassertEquals(plot.getDeathYear(), deathYear);\n\t\t\n\t\tSystem.out.println(\"Birth and Death Years were successful.\");\n\t}", "@Test public void Day_1__month__year()\t\t\t\t\t\t\t{tst_date_(\"03-31-02\"\t\t\t\t, \"2002-03-31\");}", "public static int randomSleepTime() {\n return ThreadLocalRandom.current().nextInt(2000);\n }", "public static int randomNext() { return 0; }", "int RandomGenerator0To29 (){\n\t\t int randomInt2 = 0;\n\t\t Random randomGenerator2 = new Random();\n\t\t for (int idx2 = 1; idx2 <= 10; ++idx2) {\n\t\t\t randomInt2 = randomGenerator2.nextInt(30);\n\t\t }\n\t\t return randomInt2;\n\t }", "private void lifeGenerator(Persons mother, Persons father, int currYear)\n {\n eventGenerator.createBirth(father, currYear);\n eventGenerator.createBirth(mother, currYear);\n eventGenerator.createMarriage(father, mother, currYear);\n\n int lifeWheel = random.nextInt(4);\n\n if (currYear < 1920){\n eventGenerator.createDeath(father, currYear);\n eventGenerator.createDeath(mother, currYear);\n }\n else if (lifeWheel == 0){\n eventGenerator.createDeath(father, currYear);\n eventGenerator.createRandomEvent(mother, currYear);\n }\n else if (lifeWheel == 1){\n eventGenerator.createDeath(mother, currYear);\n eventGenerator.createRandomEvent(father, currYear);\n }\n\n if (lifeWheel == 2){\n eventGenerator.createRandomEvent(father, currYear);\n }\n else if (lifeWheel == 3){\n eventGenerator.createRandomEvent(mother, currYear);\n }\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint range = 6;\r\n\t\tint min = 1;\r\n for (int i = 0; i < 6; i++) { \r\n int rand = (int)(Math.random() * range) + min; \r\n \r\n //Output is different everytime this code is executed \r\n System.out.println(rand); \r\n int randomNu = 8;\r\n String color;\r\n switch (color) {\r\n case 1: color = \"o\";\r\n break;\r\n case 2: monthString = \"February\";\r\n break;\r\n case 3: monthString = \"March\";\r\n break;\r\n\r\n\t}\r\n\r\n\t}\r\n}", "private static String generateDateString(int year, int month, int dayOfMonth){\n //Add one to month b/c Android is zero-based while SimpleDateFormatter is not\n month++;\n String yearString = String.format(Locale.getDefault(), \"%04d\", year);\n String monthString = String.format(Locale.getDefault(), \"%02d\", month);\n String dayOfMonthString = String.format(Locale.getDefault(), \"%02d\", dayOfMonth);\n\n String result = yearString + \".\" + monthString + \".\" + dayOfMonthString;\n return result;\n }", "@Test\n public void leapYearIsDivisibleBy4(){\n int year = 2020;\n assertTrue(LeapYear.isLeapYear(year));\n }", "private int getPublishingYear(String date) {\n String[] splitArray = date.split(\"-\");\n\n return Integer.parseInt(splitArray[splitArray.length - 1]);\n }", "public static void main(String[] args) {\n//\t\tOutput:\n//\t\tIt is year 2011\n//\t\tIt is year 2012\n//\t\tIt is year 2013\n//\t\tIt is year 2014\n//\t\tIt is year 2015\n//\t\tIt is year 2016\n//\t\tIt is year 2017\n//\t\tIt is year 2018\n\n\t\tfor(int i=2011;i<2019;i++) {\n\t\t\tSystem.out.println(\"It is year \" +i);\n\t\t}\n\t}", "public ArrayList<String> createDate(String quarter, String year) {\r\n\t\tArrayList<String> date = new ArrayList<>();\r\n\t\tString startDate = \"\";\r\n\t\tString endDate = \"\";\r\n\t\tif (quarter.equals(\"January - March\")) {\r\n\t\t\tstartDate = year + \"-01-01\";\r\n\t\t\tendDate = year + \"-03-31\";\r\n\t\t} else if (quarter.equals(\"April - June\")) {\r\n\t\t\tstartDate = year + \"-04-01\";\r\n\t\t\tendDate = year + \"-06-30\";\r\n\t\t} else if (quarter.equals(\"July - September\")) {\r\n\t\t\tstartDate = year + \"-07-01\";\r\n\t\t\tendDate = year + \"-09-30\";\r\n\t\t} else {\r\n\t\t\tstartDate = year + \"-10-01\";\r\n\t\t\tendDate = year + \"-12-31\";\r\n\t\t}\r\n\t\tdate.add(startDate);\r\n\t\tdate.add(endDate);\r\n\t\treturn date;\r\n\t}", "private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }", "int getYears();", "private Date createExpiredAfter(final int month, final int year) {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\t\n\t\tcalendar.set(year, month - 1, 0, 23, 59, 59);\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n\t\t\n\t\treturn calendar.getTime();\n\t}", "public static String getDate() {\n\t\tDate date = new Date();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"ddMMYYYY\");\n\t\tString strDate = formatter.format(date);\n\t\treturn strDate;\n\t}", "public YearProfit(){}" ]
[ "0.73799056", "0.7224866", "0.71951383", "0.7115827", "0.7068516", "0.6845781", "0.67870903", "0.665087", "0.65824616", "0.64709437", "0.63629556", "0.6248261", "0.6237894", "0.61976093", "0.61972976", "0.6144606", "0.60666335", "0.6046132", "0.600151", "0.58748263", "0.58406824", "0.5770655", "0.5745892", "0.57192975", "0.5647684", "0.5462256", "0.54329664", "0.5386257", "0.53638315", "0.5363028", "0.53208315", "0.53201544", "0.5301255", "0.5286921", "0.5272341", "0.5195379", "0.51896495", "0.51835144", "0.5181877", "0.5177043", "0.5167377", "0.51603097", "0.51454264", "0.51374316", "0.5119555", "0.51181626", "0.5108689", "0.5059844", "0.5031442", "0.5000975", "0.4994555", "0.49875763", "0.49754047", "0.49693406", "0.49644798", "0.49635163", "0.4957553", "0.49430138", "0.49374104", "0.4935189", "0.4931293", "0.49280533", "0.4921201", "0.49167603", "0.4915152", "0.49129146", "0.49063852", "0.48960277", "0.48846242", "0.48714843", "0.4870694", "0.48413473", "0.48394907", "0.4831648", "0.48287886", "0.48284063", "0.4827004", "0.4824397", "0.48239693", "0.48173517", "0.48099592", "0.480022", "0.47981462", "0.47957215", "0.47620243", "0.47435865", "0.47433552", "0.4734721", "0.4733298", "0.47279406", "0.472775", "0.47257087", "0.47207025", "0.4716538", "0.4715283", "0.4712724", "0.470264", "0.4700927", "0.46907085", "0.46875617" ]
0.6701455
7
printing the system's tree starting from this item
public void printTree(SortingField field) { if(this instanceof File){ System.out.println(this.getName()); return; } ((Folder)this).sortList(field); //now the list is sorted according to the field given //printing the tree ((Folder) this).print(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getValue());\n\t\t}\n\t}", "public void display() {\n ITree.Node root = this.createNode(0);\n TreePrinter.printNode(root);\n }", "public void printTree() {\r\n printTree(overallRoot, 0);\r\n }", "public String printTree() {\n printSideways();\n return \"\";\n }", "public void printTree() {\n printTreeHelper(root);\n }", "public void printTree() {\n Object[] nodeArray = this.toArray();\n for (int i = 0; i < nodeArray.length; i++) {\n System.out.println(nodeArray[i]);\n }\n }", "public void printTree() {\n\t\tSystem.out.println(printHelp(root));\r\n\t\t\r\n\t}", "public void print() {\n\t\ttraversePreOrder(root, 0);\n\t}", "@Override\n public void printTree() {\n System.out.println(\"node with char: \" + this.getChar() + \" and key: \" + this.getKey());\n int i = 0;\n for(IABTNode node : this.sons) {\n if(!node.isNull()) {\n System.out.print(\"Son \" + i + \" :\");\n node.printTree();\n }\n i++;\n }\n }", "public void printTree(){ \n System.out.format(\"The suffix tree for S = %s is: %n\",this.text); \n this.print(0, this.root); \n }", "public void print() {\n\n if (root == null) // If the root does not exist, then we cannot print anything\n {\n System.out.println(\"The head does not exist \");\n return;\n }\n\n directory Fileptr = root;\n while (Fileptr != null) {\n System.out.print(Fileptr.a);\n System.out.print(\" ( Available Space \" + Fileptr.availableSpace + \" ) \" + \" ----> \");\n Fileptr = Fileptr.forward;\n }\n System.out.print(\" NULL \\n\");\n }", "public void levelOrderPrint() {\n\t\tlevelOrderPrint(root);\n\t}", "void Print() {\r\n\r\n AVLTreeNode node = root;\r\n\r\n printInorder(node);\r\n\r\n }", "public static void printMenu() {\n System.out.print(\"\\n(A)dd Item (R)emove Item (F)ind Item (I)nitialize Tree (N)ew Tree (Q)uit\\n\");\n }", "public void printTree() {\r\n\t\tif (isEmpty())\r\n\t\t\tSystem.out.println(\"Empty tree\");\r\n\t\telse\r\n\t\t\tprintTree(root);\r\n\t}", "@Override\n public String print() {\n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n \n System.out.print(\"In ascending order: \");\n for (int i=0; i<inorderTraverse.size(); i++) {\n System.out.print(inorderTraverse.get(i)+\" \");\n }\n System.out.println(\"\");\n return \"\";\n }", "public void printTree( )\r\n\t{\r\n\t\tif( isEmpty( ) )\r\n\t\t\tSystem.out.println( \"Empty tree\" );\r\n\t\telse\r\n\t\t\tprintTree( root );\r\n\t}", "public static String printTree()\r\n {\r\n String result = \"\";\r\n for (String s: tree.toArrayList())\r\n result = result + \" \" + s;\r\n return result;\r\n }", "public void print() {\n\t\tprint(root);\n\t}", "public void printOut() {\n\t\tif(root.left != null) {\n\t\t\tprintOut(root.left);\n\t\t}\n\t\t\n\t\tSystem.out.println(root.element);\n\t\t\n\t\tif(root.right != null) {\n\t\t\tprintOut(root.right);\n\t\t}\n\t}", "public void print(){\n inorderTraversal(this.root);\n }", "@Override\n\tpublic void print() {\n System.out.println(\"Leaf [isbn=\"+number+\", title=\"+title+\"]\");\n\t}", "public void print()\r\n {\r\n print(root);\r\n }", "public void print_root(){\r\n\t\tfor(int id = 0; id < label.length; id++){\r\n\t\t\tSystem.out.printf(\"\"%d \"\", find(id));\r\n\t\t}\r\n\t\tSystem.out.printf(\"\"\\n\"\");\r\n\t}", "void printLevelOrder() {\n TreeNode2 nextLevelRoot = this;\n while (nextLevelRoot != null) {\n TreeNode2 current = nextLevelRoot;\n nextLevelRoot = null;\n while (current != null) {\n System.out.print(current.val + \" \");\n if (nextLevelRoot == null) {\n if (current.left != null)\n nextLevelRoot = current.left;\n else if (current.right != null)\n nextLevelRoot = current.right;\n }\n current = current.next;\n }\n System.out.println();\n }\n }", "public void postOrderPrint() {\n\t\tpostOrderPrint(root);\n\t\tSystem.out.println();\n\t}", "public String toString() {\r\n\t\treturn print(this.root,0);\r\n\t}", "public void print() {\n\t\tSystem.out.println(\"DECISION TREE\");\n\t\tString indent = \" \";\n\t\tprint(root, indent, \"\");\n\t}", "public void printTreeNodes(){\n logger.trace(\"Name: \"+this.getName());\n for(int i=0;i<this.getChildCount();i++){\n SearchBaseNode node = (SearchBaseNode) this.getChildAt(i);\n node.printTreeNodes();\n }\n }", "public void print() {\r\n\t\tif(isEmpty()) {\r\n\t\t\tSystem.out.printf(\"%s is Empty%n\", name);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.printf(\"%s: %n\", name);\r\n\t\tNode<E> current = first;//node to traverse the list\r\n\t\t\r\n\t\twhile(current != null) {\r\n\t\t\tSystem.out.printf(\"%d \", current.data);\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public static String printTree()\n {\n \tString tree = \"\";\n ArrayList<String> letters = converter.toArrayList();\n for(int i = 0; i < letters.size(); i++)\n {\n tree += letters.get(i);\n if(i + 1 < letters.size())\n \t tree += \" \";\n }\n \n return tree;\n }", "public void printInOrder() { // not to be changed\n\t\tprintInOrder(root);\n\t}", "public void inOrderPrint()\r\n\t{\r\n\t\tif(root != null)\r\n\t\t\troot.inOrderPrint();\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Empty\");\r\n\t}", "public void printLDR() {\n if(!empty()) {\n printLDRNodes(root);\n System.out.println();\n }\n }", "public AvlTree<E> printTree(){\n printTree(root);\n return this;\n }", "public void printLevelOrder() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tSystem.out.println(\"Empty Tree\");\r\n\t\t} else {\r\n\t\t\tQueueLi<BinaryNode<AnyType>> q = new QueueLi<>();\r\n\t\t\tBinaryNode<AnyType> currentNode;\r\n\t\t\tq.enqueue(root);\r\n\t\t\twhile (!q.isEmpty()) {\r\n\t\t\t\tcurrentNode = q.dequeue();\r\n\t\t\t\tif (currentNode.left != null) {\r\n\t\t\t\t\tq.enqueue(currentNode.left);\r\n\t\t\t\t} // if\r\n\t\t\t\tif (currentNode.right != null) {\r\n\t\t\t\t\tq.enqueue(currentNode.right);\r\n\t\t\t\t} // if\r\n\t\t\t\tSystem.out.print(currentNode.element + \" \");\r\n\t\t\t} // while\r\n\t\t} // else\r\n\t}", "private void printTree(Tree parse) {\n \t\tparse.pennPrint();\n \t}", "protected void printTree(){\n if (this.leftNode != null){\n leftNode.printTree();\n }\n System.out.println(value);\n\n if (this.rightNode != null){\n rightNode.printTree();\n }\n }", "public void prettyPrintTree() {\r\n\t\tSystem.out.print(\"prettyPrintTree starting\");\r\n\t\tfor (int i = 0; i <= this.getTreeDepth(); i++) {\r\n\t\t\tprettyPrintTree(root, 0, i);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void printStructure() {\n printStructure(mRoot);\n }", "public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }", "public void printTree(){\n if(root!=null) // มี node ใน tree\n {\n super.printTree(root); // ปริ้นโดยส่ง node root ไป static fn\n }\n else\n {\n System.out.println(\"Empty tree!!!\");\n }\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }", "public boolean Print(){\n\tTree current_node;\n\tboolean ntb ;\n\n\tcurrent_node = this ;\n\tntb = this.RecPrint(current_node);\n\treturn true ;\n }" ]
[ "0.79601", "0.7625566", "0.76090956", "0.7588721", "0.7565799", "0.75080013", "0.7506163", "0.7499062", "0.7424469", "0.73825777", "0.7259738", "0.7249141", "0.72465163", "0.722589", "0.7182922", "0.715494", "0.7106794", "0.70516336", "0.70458955", "0.7037417", "0.70266694", "0.70218855", "0.7001882", "0.6973302", "0.69602853", "0.69513816", "0.6922", "0.6915895", "0.6909463", "0.6888178", "0.6880092", "0.68769974", "0.6860138", "0.6836004", "0.6829341", "0.6814426", "0.6806364", "0.6801319", "0.67970175", "0.6794688", "0.67893624", "0.6780701", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813", "0.6766813" ]
0.0
-1
TODO Autogenerated method stub
@Override public int doEndTag() throws JspException { return 0; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Tag getParent() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void release() { }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void setPageContext(PageContext arg0) { this.pageContext = arg0; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void setParent(Tag arg0) { }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Creates the underlying database table.
public static void createTable(Database db, boolean ifNotExists) { String constraint = ifNotExists? "IF NOT EXISTS ": ""; db.execSQL("CREATE TABLE " + constraint + "\"STEP11_RESBEAN\" (" + // "\"_id\" INTEGER PRIMARY KEY ," + // 0: step11Id "\"CURRENT_STEP_IS_CHECKED\" INTEGER NOT NULL ," + // 1: currentStepIsChecked "\"MIN\" TEXT," + // 2: min "\"MAX\" TEXT," + // 3: max "\"PERCENT\" TEXT," + // 4: percent "\"OK_OR_NG\" INTEGER NOT NULL ," + // 5: okOrNG "\"HAN1\" TEXT," + // 6: han1 "\"HAN2\" TEXT," + // 7: han2 "\"HAN3\" TEXT," + // 8: han3 "\"HAN4\" TEXT," + // 9: han4 "\"HAN5\" TEXT," + // 10: han5 "\"HAN6\" TEXT," + // 11: han6 "\"HAN7\" TEXT," + // 12: han7 "\"HAN8\" TEXT," + // 13: han8 "\"HAN9\" TEXT," + // 14: han9 "\"HAN10\" TEXT," + // 15: han10 "\"HAN11\" TEXT," + // 16: han11 "\"HAN12\" TEXT," + // 17: han12 "\"HAN13\" TEXT," + // 18: han13 "\"HAN14\" TEXT," + // 19: han14 "\"HAN15\" TEXT," + // 20: han15 "\"HAN16\" TEXT," + // 21: han16 "\"HAN17\" TEXT," + // 22: han17 "\"HAN18\" TEXT," + // 23: han18 "\"HAN19\" TEXT," + // 24: han19 "\"HAN20\" TEXT," + // 25: han20 "\"HAN21\" TEXT," + // 26: han21 "\"HAN22\" TEXT," + // 27: han22 "\"HAN23\" TEXT," + // 28: han23 "\"HAN24\" TEXT," + // 29: han24 "\"HAN25\" TEXT," + // 30: han25 "\"HAN26\" TEXT," + // 31: han26 "\"HAN27\" TEXT," + // 32: han27 "\"HAN28\" TEXT," + // 33: han28 "\"HAN29\" TEXT," + // 34: han29 "\"HAN30\" TEXT," + // 35: han30 "\"BU_HAN1\" TEXT," + // 36: buHan1 "\"BU_HAN2\" TEXT," + // 37: buHan2 "\"BU_HAN3\" TEXT," + // 38: buHan3 "\"BU_HAN4\" TEXT," + // 39: buHan4 "\"BU_HAN5\" TEXT," + // 40: buHan5 "\"BU_HAN6\" TEXT," + // 41: buHan6 "\"BU_HAN7\" TEXT," + // 42: buHan7 "\"BU_HAN8\" TEXT," + // 43: buHan8 "\"BU_HAN9\" TEXT," + // 44: buHan9 "\"BU_HAN10\" TEXT," + // 45: buHan10 "\"BU_HAN11\" TEXT," + // 46: buHan11 "\"BU_HAN12\" TEXT," + // 47: buHan12 "\"BU_HAN13\" TEXT," + // 48: buHan13 "\"BU_HAN14\" TEXT," + // 49: buHan14 "\"BU_HAN15\" TEXT," + // 50: buHan15 "\"BU_HAN16\" TEXT," + // 51: buHan16 "\"BU_HAN17\" TEXT," + // 52: buHan17 "\"BU_HAN18\" TEXT," + // 53: buHan18 "\"BU_HAN19\" TEXT," + // 54: buHan19 "\"BU_HAN20\" TEXT," + // 55: buHan20 "\"BU_HAN21\" TEXT," + // 56: buHan21 "\"BU_HAN22\" TEXT," + // 57: buHan22 "\"BU_HAN23\" TEXT," + // 58: buHan23 "\"BU_HAN24\" TEXT," + // 59: buHan24 "\"BU_HAN25\" TEXT," + // 60: buHan25 "\"BU_HAN26\" TEXT," + // 61: buHan26 "\"BU_HAN27\" TEXT," + // 62: buHan27 "\"BU_HAN28\" TEXT," + // 63: buHan28 "\"BU_HAN29\" TEXT," + // 64: buHan29 "\"BU_HAN30\" TEXT);"); // 65: buHan30 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TABLE createTABLE();", "public void create(Connection db) throws SQLException {\n if (tableName == null) {\n throw new SQLException(\"Table Name not specified\");\n }\n\n Statement st = db.createStatement();\n\n if (dbType == DatabaseUtils.POSTGRESQL) {\n if (hasSequence()) {\n st.executeUpdate(\"CREATE SEQUENCE \" + sequenceName);\n }\n }\n\n StringBuffer sql = new StringBuffer();\n sql.append(\"CREATE TABLE \" + tableName + \" (\");\n\n String primaryKey = \"\";\n Iterator fields = columns.iterator();\n while (fields.hasNext()) {\n DatabaseColumn thisColumn = (DatabaseColumn) fields.next();\n if (thisColumn.isPrimaryKey()) {\n primaryKey = thisColumn.getName();\n sql.append(thisColumn.getCreateSQL(dbType, sequenceName));\n } else {\n sql.append(thisColumn.getCreateSQL(dbType));\n }\n if (fields.hasNext()) {\n sql.append(\",\");\n }\n }\n if (dbType == DatabaseUtils.ORACLE) {\n sql.append(\", PRIMARY KEY (\" + primaryKey + \")\");\n }\n sql.append(\");\");\n st.executeUpdate(sql.toString());\n st.close();\n }", "Table createTable();", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public void doCreateTable();", "private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }", "public void createTable()\n throws DBException\n {\n try {\n DBProvider.createTable(this);\n } catch (SQLException sqe) {\n throw new DBException(\"Table creation\", sqe);\n }\n }", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public String createTable() {\n\n String statement = \"CREATE TABLE \" + tableName + \"( \";\n\n //go through INTEGER, FLOAT, TEXT columns\n Iterator iterator = Iterables.filter(columns.entrySet(), entry -> entry.getValue().getType() instanceof String).iterator();\n\n while (iterator.hasNext()) {\n Map.Entry<Element, FieldData> fieldDataEntry = (Map.Entry<Element, FieldData>) iterator.next();\n statement += fieldDataEntry.getValue().createColumn() + \",\";\n }\n\n return (new StringBuilder(statement).replace(statement.length() - 1, statement.length(), \"\").toString() + \")\").toUpperCase();\n }", "private void createDataTable() {\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoEditors.TABLE + \" (ID INT IDENTITY PRIMARY KEY, NAME VARCHAR(150) NOT NULL UNIQUE)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.TABLE + \" (ID INT IDENTITY PRIMARY KEY, TITLE VARCHAR(150) NOT NULL UNIQUE, YEAR INT, ISBN10 VARCHAR(20), ISBN13 VARCHAR(13), NOTE INT, PAGES_NUMBER INT, RESUME VARCHAR(2000), THE_EDITOR_FK INT, THE_KIND_FK INT, THE_LANGUAGE_FK INT, THE_LENDING_FK INT, THE_SAGA_FK INT, THE_TYPE_FK INT)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" (THE_BOOK_FK INT NOT NULL, THE_AUTHOR_FK INT NOT NULL)\");\n\n jdbcTemplate.update(\"CREATE INDEX BOOK_EDITOR_IDX ON \" + IDaoEditors.TABLE + \"(ID)\");\n jdbcTemplate.update(\"CREATE INDEX BOOKS_IDX ON \" + IDaoBooks.TABLE + \"(ID)\");\n }", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "TableInstance createTableInstance();", "public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }", "public void createTable() {\n\t\tString QUERY = \"CREATE TABLE person (id INT PRIMARY KEY, name VARCHAR(32) NOT NULL, phoneNumber VARCHAR(18) NOT NULL)\";\n\t\ttry (Connection con = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\tStatement stmt = con.createStatement();) {\n\t\t\tstmt.executeUpdate(QUERY);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"SQL Exception\");\n\t\t}\n\n\t}", "public TableCreation(Table table) {\n this.table = table;\n }", "@Override\n\tpublic void createTable(Object connectionHandle, DataTable table) throws DataSourceException\n\t{\n\t\tList<DataField> fields = new LinkedList<DataField>();\n\t\tList<String> indexes = new LinkedList<String>();\n\t\t\n\t\tList<String> keys = table.getFields();\n\t\tIterator<String> it = keys.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString fld = it.next();\n\t\t\tDataField df = table.getDataField(fld);\n\t\t\t\n\t\t\tfields.add(df);\n\t\t\t\n\t\t//\tif(df.isPrimary()){\n\t\t//\t\tindexes.add(fld);\n\t\t//\t}\n\t\t}\n\t\t\n\t\tIterator<DataField> primaryIt = table.getPrimaryKeys().iterator();\n\t\twhile(primaryIt.hasNext()){\n\t\t\tDataField pf = primaryIt.next();\n\t\t\t\n\t\t\tindexes.add(pf.getName());\n\t\t}\n\t\t\n\t\t\n\t\t// Make SQL String\n\t\tStringBuffer sqlString = new StringBuffer();\n\t\tsqlString.append(\"CREATE TABLE \");\n\t\tsqlString.append(table.getName());\n\t\tsqlString.append(\" ( \\n\");\n\t\t\n\t\tboolean first = true;\n\t\tIterator<DataField> itDf = fields.iterator();\n\t\twhile(itDf.hasNext()){\n\t\t\tDataField fld = itDf.next();\n\t\t\t\n\t\t\tif(first){\n\t\t\t\tfirst = false;\n\t\t\t}else{\n\t\t\t\tsqlString.append(\",\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tsqlString.append(fld.getName());\n\t\t\tsqlString.append(\" \");\n\t\t\tsqlString.append(getSQLType(fld.getType()));\n\t\t\t\n\t\t\t// not null\n\t\t\tif(fld.isNotnull()){\n\t\t\t\tsqlString.append(\" NOT NULL\");\n\t\t\t}\n\t\t\t\n\t\t\t// unique\n\t\t\tif(fld.isUnique()){\n\t\t\t\tsqlString.append(\" UNIQUE\");\n\t\t\t}\n\t\t\t\n\t\t\t// default\n\t\t\tif(fld.getDefaultValue() != null){\n\t\t\t\tsqlString.append(\" \");\n\t\t\t\tsqlString.append(fld.getDefaultString());\n\t\t\t}\n\t\t\t\n\t\t\t// check\n\t\t\tif(fld.getCheck() != null){\n\t\t\t\tsqlString.append(\" \");\n\t\t\t\ttry {\n\t\t\t\t\tsqlString.append(fld.getCheck().extract(null, null, null, null, null));\n\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow new DataSourceException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// check\n\t\tIterator<CheckDefinition> checkIt = table.getCheck().iterator();\n\t\twhile(checkIt.hasNext()){\n\t\t\tCheckDefinition def = checkIt.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\ttry {\n\t\t\t\tsqlString.append(def.extract(null, null, null, null, null));\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new DataSourceException(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// foreign key\n\t\tIterator<ForeignKey> foreignIt = table.getForeignKey().iterator();\n\t\twhile(foreignIt.hasNext()){\n\t\t\tForeignKey fkey = foreignIt.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\ttry {\n\t\t\t\tsqlString.append(fkey.extract(null, null, null, null, null));\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new DataSourceException(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// primary key\n\t\tif(indexes.size() > 0){\n\t\t\tsqlString.append(\",\\n\");\n\t\t\tsqlString.append(\"PRIMARY KEY(\");\n\t\t\t\n\t\t\tfirst = true;\n\t\t\tit = indexes.iterator();\n\t\t\twhile(it.hasNext()){\n\t\t\t\tString idxFld = it.next();\n\t\t\t\t\n\t\t\t\tif(first){\n\t\t\t\t\tfirst = false;\n\t\t\t\t}else{\n\t\t\t\t\tsqlString.append(\", \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsqlString.append(idxFld);\n\t\t\t}\n\n\t\t\tsqlString.append(\")\");\n\t\t}\n\t\t\n\t\t// unique\n\t\tIterator<Unique> itU = table.getUnique().iterator();\n\t\twhile(itU.hasNext()){\n\t\t\tUnique unique = itU.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\tsqlString.append(\"UNIQUE(\");\n\t\t\t\n\t\t\tfirst = true;\n\t\t\tIterator<String> itUnique = unique.getKey().iterator();\n\t\t\twhile(itUnique.hasNext()){\n\t\t\t\tString col = itUnique.next();\n\t\t\t\t\n\t\t\t\tif(first){\n\t\t\t\t\tfirst = false;\n\t\t\t\t}else{\n\t\t\t\t\tsqlString.append(\",\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsqlString.append(col);\n\t\t\t}\n\t\t\t\n\t\t\tsqlString.append(\")\");\n\t\t}\n\t\t\n\t\tsqlString.append(\"\\n)\\n\");\n\t\t\n\t\tif(this.logger != null && this.outSql){\n\t\t\tthis.logger.reportInfo(sqlString.toString());\n\t\t}\n\t\t\n\t\t// \n\t\tAlinousDebug.debugOut(core, sqlString.toString());\n\t\t\n\t\texecuteUpdateSQL(connectionHandle, sqlString.toString(), false);\n\n\t}", "private void createTable() throws Exception{\n Statement stm = this.con.createStatement();\n\n String query = \"CREATE TABLE IF NOT EXISTS \" + tableName +\n \"(name VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL ,\" +\n \" city VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL ,\" +\n \" phone VARCHAR( 15 ) NOT NULL, \" +\n \"PRIMARY KEY (phone) )\";\n stm.execute(query);\n }", "private void createTransactionsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE transactions \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY, \"\n\t\t\t\t\t+ \"owner INT, amount DOUBLE, source BIGINT, sourceType VARCHAR(20), target BIGINT, targetType VARCHAR(20), comment VARCHAR(255), time BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table transactions\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of transactions table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "protected void createTable() throws Exception {\n startService();\n assertEquals(true, sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, \"testtable\"));\n assertTrue(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n assertTrue(sqlDbManager.tableExists(conn, \"testtable\"));\n sqlDbManager.logTableSchema(conn, \"testtable\");\n assertFalse(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n }", "private void CreatTable() {\n String sql = \"CREATE TABLE IF NOT EXISTS \" + TABLE_NAME\n + \" (name varchar(30) primary key,password varchar(30));\";\n try{\n db.execSQL(sql);\n }catch(SQLException ex){}\n }", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "public void createTable() {\r\n\t\tclient.createTable();\r\n\t}", "private void createTable() {\n try (Statement st = this.conn.createStatement()) {\n st.execute(\"CREATE TABLE IF NOT EXISTS users (user_id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, \"\n + \"login VARCHAR(100) UNIQUE NOT NULL, email VARCHAR(100) NOT NULL, createDate TIMESTAMP NOT NULL);\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "public void CreateTable(String nameTable) throws SQLException {\n\n String FEATURE_DB_SQL = \"CREATE TABLE IF NOT EXISTS \" + nameTable + \"(id INT NOT NULL AUTO_INCREMENT, \"\n + FEATURE_DB_TEXTFEATURE + \" VARCHAR(255), \" + FEATURE_DB_ELO + \" INT, \" + FEATURE_DB_MMR + \" INT,\"\n + FEATURE_DB_AUTHOR + \" VARCHAR(255),\"\n +\" PRIMARY KEY ( id ))\";\n\n statement = conn.createStatement();\n statement.executeUpdate(FEATURE_DB_SQL);\n }", "tbls createtbls();", "private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}", "public void createTable() throws DatabaseException\n\t{\n\t\tConnection connection = DatabaseManager.getSingleton().getConnection();\n\t\ttry\n\t\t{\n\t\t\tClosingPreparedStatement stmt = new ClosingPreparedStatement(connection,\n\t\t\t\t\t\"DROP TABLE IF EXISTS QuestStates\");\n\t\t\tstmt.executeUpdate();\n\t\t\tstmt.close();\n\n\t\t\tstmt = new ClosingPreparedStatement(connection,\n\t\t\t\t\t\"Create TABLE QuestStates (playerID INT NOT NULL, questID INT NOT NULL , questState INT NOT NULL, needingNotification BOOLEAN NOT NULL)\");\n\t\t\tstmt.executeUpdate();\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\tthrow new DatabaseException(\"Unable to create the Quest table\", e);\n\t\t}\n\t}", "public void createNewTable() throws WoodsException{\n\t\t\tuserTable = new Table(tableName);\n\t\t\tDatabase.get().storeTable(tableName, userTable);\n\t\t}", "public void createTable(DBTableDescriptor desc)\n throws IOException {\n createTable(desc, null);\n }", "@Override\r\n public void createTable() {\n String sql = \"create table \" + TABLE_NAME + \"(\";\r\n sql += ID + \" INTEGER primary key,\";\r\n sql += NAME + \" VARCHAR(50),\";\r\n sql += LON + \" FLOAT(10,6),\";\r\n sql += LAT + \" FLOAT(10,6)\";\r\n sql += \")\";\r\n database.execSQL(sql);\r\n }", "public void createTable(Table table) throws SQLException {\n mysql.update(table.getCreateTableString());\n }", "public interface TableCreator {\n\t\tpublic void createTable(SQLiteDatabase db, String tableName);\n\t}", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "private void createTables() throws DatabaseAccessException {\n\t\tStatement stmt = null;\n\t\tPreparedStatement prepStmt = null;\n\n\t\ttry {\n\t\t\tstmt = this.connection.createStatement();\n\n\t\t\t// be sure to drop all tables in case someone manipulated the database manually\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS DynamicConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Features;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Groups;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Metadata;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Objects;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS StaticConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Subspaces;\");\n\n\t\t\t// populate database with tables.. by using ugly sql\n\t\t\tstmt.executeUpdate(\"CREATE TABLE DynamicConstraints(Id INTEGER PRIMARY KEY AUTOINCREMENT,\"\n\t\t\t\t\t+ \" Operator INTEGER, FeatureReference INTEGER,\"\n\t\t\t\t\t+ \" GroupReference INTEGER, Value FLOAT, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Features(Id INTEGER PRIMARY KEY AUTOINCREMENT,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"), OutlierFlag BOOLEAN, Min FLOAT, Max FLOAT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Groups(Id INTEGER PRIMARY KEY AUTOINCREMENT, Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"),\"\n\t\t\t\t\t+ \" Visibility BOOLEAN, Color INTEGER, ColorCalculatedByFeature INTEGER, Description TEXT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Metadata(Version INTEGER);\");\n\n\t\t\t// Object table is created in initFeatures, to boost performance\n\n\t\t\tstmt.executeUpdate(\"CREATE TABLE StaticConstraints(Id INTEGER, GroupReference INTEGER,\"\n\t\t\t\t\t+ \" ObjectReference INTEGER, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Subspaces(Id INTEGER, FeatureReference INTEGER,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"));\");\n\n\t\t\tstmt.close();\n\n\t\t\t// after creating the tables, write the layout version\n\t\t\tprepStmt = this.connection.prepareStatement(\"INSERT INTO Metadata VALUES(?);\");\n\t\t\tprepStmt.setInt(1, DatabaseConfiguration.LAYOUTVERSION);\n\t\t\tprepStmt.execute();\n\n\t\t\tprepStmt.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DatabaseAccessException(Failure.LAYOUT);\n\t\t}\n\t}", "public void createTable(Database database) throws SQLException{\n\t\tdatabase.createTable(PEOPLE_TABLE_NAME, PEOPLE_TABLE_CREATION_ARGS);\n\t}", "@Override\n public void createUsersTable() {\n\n\n Session session = sessionFactory.openSession();\n Transaction transaction = session.beginTransaction();\n session.createSQLQuery(\"CREATE TABLE IF NOT EXISTS Users \" +\n \"(Id BIGINT PRIMARY KEY AUTO_INCREMENT, FirstName TINYTEXT , \" +\n \"LastName TINYTEXT , Age TINYINT)\").executeUpdate();\n transaction.commit();\n session.close();\n\n\n }", "public void createNewTable(String dbName, String tableName) {\r\n\t\t// SQL statement for creating a new table\r\n\t\tString sql = \"CREATE TABLE IF NOT EXISTS \" + tableName + \" (\\n\"\r\n\t\t\t\t+ \"id integer PRIMARY KEY,\\n\"\r\n\t\t\t\t+ \"first_name VARCHAR(20) NOT NULL,\\n\"\r\n\t\t\t\t+ \"last_name VARCHAR(20) NOT NULL,\\n\"\r\n\t\t\t\t+ \"manager_id integer NOT NULL,\\n\"\r\n\t\t\t\t+ \"join_date DATE NOT NULL,\\n\"\r\n\t\t\t\t+ \"billable_hours double NOT NULL);\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tConnection conn = this.connect(dbName);\t\t\t// open connection\r\n\t\t\t\r\n\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\r\n\t\t\t// create a new table using prepared sql statement\r\n\t\t\tstmt.execute(sql);\r\n\t\t\tSystem.out.println(\"Executed create table statement\");\r\n\t\t\t\r\n\t\t\tconn.close();\t\t\t\t\t\t\t\t\t// close connection\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n public void createTable(final Connection _con, final String _table,\n final String _parentTable) throws SQLException {\n\n final Statement stmt = _con.createStatement();\n\n try {\n\n // create table itself\n final StringBuilder cmd = new StringBuilder();\n cmd.append(\"create table \").append(_table).append(\" (\")\n .append(\" ID bigint not null\");\n\n // autoincrement\n if (_parentTable == null) {\n cmd.append(\" generated always as identity (start with 1, increment by 1)\");\n }\n\n cmd.append(\",\")\n .append(\" constraint \").append(_table).append(\"_UK_ID unique(ID)\");\n\n // foreign key to parent sql table\n if (_parentTable != null) {\n cmd.append(\",\")\n .append(\"constraint \").append(_table).append(\"_FK_ID \")\n .append(\" foreign key(ID) \")\n .append(\" references \").append(_parentTable).append(\"(ID)\");\n }\n\n cmd.append(\")\");\n stmt.executeUpdate(cmd.toString());\n\n } finally {\n stmt.close();\n }\n }", "private void createTables() {\n\n\t\tAutoDao.createTable(db, true);\n\t\tAutoKepDao.createTable(db, true);\n\t\tMunkaDao.createTable(db, true);\n\t\tMunkaEszkozDao.createTable(db, true);\n\t\tMunkaKepDao.createTable(db, true);\n\t\tMunkaTipusDao.createTable(db, true);\n\t\tPartnerDao.createTable(db, true);\n\t\tPartnerKepDao.createTable(db, true);\n\t\tProfilKepDao.createTable(db, true);\n\t\tSoforDao.createTable(db, true);\n\t\tTelephelyDao.createTable(db, true);\n\t\tPushMessageDao.createTable(db, true);\n\n\t}", "public void createTable(Class<?> clz) {\n\t\tcreateTable(getWritableDatabase(), clz);\n\t}", "public void createNewTable() {\n String dropOld = \"DROP TABLE IF EXISTS card;\";\n\n // SQL statement for creating a new table\n String sql = \"CREATE TABLE IF NOT EXISTS card (\\n\"\n + \"id INTEGER PRIMARY KEY AUTOINCREMENT, \\n\"\n + \"number TEXT, \\n\"\n + \"pin TEXT,\\n\"\n + \"balance INTEGER DEFAULT 0\"\n + \");\";\n\n try (Connection connection = connect();\n Statement stmt = connection.createStatement()) {\n\n //drop old table\n stmt.execute(dropOld);\n\n //create a new table\n stmt.execute(sql);\n } catch (SQLException e) {\n System.out.println(\"Exception3: \" + e.getMessage());\n }\n }", "private void createStocksTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE stocks \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY, \" + \"owner INT, \"\n\t\t\t\t\t+ \"shareAmount INT, \" + \"purchasePrice DOUBLE, \" + \"symb VARCHAR(10), \"\n\t\t\t\t\t+ \"timePurchased BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table stocks\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of stocks table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Override\n public void createMetaTable(Connection conn) throws PersistenceException {\n String sql = String.format(\"CREATE TABLE %1$s (%2$s %3$s NOT NULL)\", metaTableName, META_TABLE_DATA_COLUMN, config.dataColumnType());\n executeUpdateSql(conn, sql);\n updateMetaTable(conn);\n }", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "private void createStressTestStatusTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column nodeId = new Column(\"NODE_ID\");\n nodeId.setMappedType(\"VARCHAR\");\n nodeId.setPrimaryKey(true);\n nodeId.setRequired(true);\n nodeId.setSize(\"50\");\n Column status = new Column(\"STATUS\");\n status.setMappedType(\"VARCHAR\");\n status.setSize(\"10\");\n status.setRequired(true);\n status.setDefaultValue(\"NEW\");\n Column startTime = new Column(\"START_TIME\");\n startTime.setMappedType(\"TIMESTAMP\");\n Column endTime = new Column(\"END_TIME\");\n endTime.setMappedType(\"TIMESTAMP\");\n\n Table table = new Table(STRESS_TEST_STATUS, runId, nodeId, status, startTime, endTime);\n\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase sdb) {\n\t\tsdb.execSQL(CREATE_QUERY);\n\t\tLog.d(\"DB ops: \", \"Table Created \");\n\t}", "@Override\n public void createTable() throws Exception {\n }", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public void createTables()\n {\n String[] sqlStrings = createTablesStatementStrings();\n String sqlString;\n Statement statement;\n\n System.out.println(\"Creating table(s):\" +\n Arrays.toString(tableNames));\n for (int i=0; i<sqlStrings.length; i++)\n try\n {\n statement = connect.createStatement();\n\n sqlString = sqlStrings[i];\n\n System.out.println(\"SQL: \" + sqlString);\n\n statement.executeUpdate(sqlString);\n }\n catch (SQLException ex)\n {\n System.out.println(\"Error creating table: \" + ex);\n Logger.getLogger(DatabaseManagementDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected abstract void initialiseTable();", "@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource source) {\n\n\t\ttry {\n\t\t\tTableUtils.createTable(source, Priority.class);\n\t\t\tTableUtils.createTable(source, Category.class);\n\t\t\tTableUtils.createTable(source, Task.class);\n\t\t} catch (SQLException ex) {\n\t\t\tLog.e(LOG, \"error creating tables\", ex);\n\t\t}\n\n\t}", "protected void createInitialTables() throws SQLException {\n\t\n\t\t// create one table per type with the corresponding attributes\n\t\tfor (String type: entityType2attributes.keySet()) {\n\t\t\tcreateTableForEntityType(type);\n\t\t}\n\t\t\n\t\t// TODO indexes !\n\t\t\n\t}", "public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}", "public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n public void createTable() {\n String[] TABLE_COLUMNS_ATLAS = {\n TableColumn.ChecklistTable.CID + \" INTEGER PRIMARY KEY AUTOINCREMENT\",\n TableColumn.ChecklistTable.PID + \" INTEGER NOT NULL\",\n TableColumn.ChecklistTable.REAL + \" INTEGER DEFAULT 0\",\n TableColumn.ChecklistTable.UNIT_ID + \" INTEGER\",\n TableColumn.ChecklistTable.WAREHOUSE_ID + \" INTEGER\",\n TableColumn.ChecklistTable.QUEUE_ID + \" INTEGER\",\n TableColumn.ChecklistTable.CATEGORIES_ID + \" INTEGER\",\n TableColumn.ChecklistTable.DATE + \" DATE\",\n TableColumn.ChecklistTable.RECORDTIME + \" DATE\",\n TableColumn.ChecklistTable.CONFIRM + \" INTEGER DEFAULT 0\"\n };\n\n //TODO: create table\n database.execSQL(makeSQLCreateTable(TABLE_NAME, TABLE_COLUMNS_ATLAS));\n\n addColumn(TableColumn.ChecklistTable.CONFIRM, \" INTEGER DEFAULT 0\");\n\n //TODO: show table\n XCursor cursor = selectTable();\n printData(TABLE_NAME, cursor);\n cursor.close();\n }", "public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );", "public void createNewTable() {\n // SQL statement for creating a new table\n String sql = \"CREATE TABLE IF NOT EXISTS card (\\n\"\n + \" id INTEGER PRIMARY KEY AUTOINCREMENT,\\n\"\n + \" number TEXT,\\n\"\n + \" pin TEXT,\\n\"\n + \" balance INTEGER DEFAULT 0\\n\"\n + \");\";\n\n try (Connection conn = DriverManager.getConnection(url);\n Statement stmt = conn.createStatement()) {\n // create a new table\n stmt.execute(sql);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public static String getSQLForUserTableCreation() {\n return \"CREATE TABLE \" + USER_TABLE + \"(\" +\n USER_ID + \" varchar(8) PRIMARY KEY, \" +\n USER_LAST_NAME + \" varchar(32), \" +\n USER_FIRST_NAME + \" varchar(32), \" +\n USER_EMAIL + \" varchar(256), \" +\n USER_PASSWORD + \" varchar(64), \" +\n USER_IS_TEACHER + \" bool, \" +\n USER_GROUP + \" varchar(32))\";\n\n }", "@Override\n public SqlDatabaseTable createTable(String tableName, int columnCount, boolean dropExist) {\n StringBuilder sql = new StringBuilder();\n if (dropExist) {\n sql.append(\"DROP TABLE IF EXISTS `\").append(tableName).append(\"`;\");\n executeSql(sql.toString());\n sql.setLength(0);\n }\n\n // Ignored check because only one statement is executed\n // if (!dropExist && SqlStorageEngine.getInstance().checkTableExist(tableName))\n\n sql.append(\"CREATE TEMPORARY TABLE\");\n if (!dropExist) {\n sql.append(\" IF NOT EXISTS\");\n }\n sql.append(\" `\").append(tableName).append(\"`\");\n sql.append(\" ( `id` INT NOT NULL AUTO_INCREMENT, `uniq` CHAR(32) NOT NULL UNIQUE,\");\n for (int i = 0; i < columnCount; i++) {\n sql.append(\" `_\").append(i).append(\"` VARCHAR(32) NULL,\");\n sql.append(\"INDEX (`_\").append(i).append(\"`),\");\n }\n sql.append(\" PRIMARY KEY (`id`)) ENGINE = MEMORY;\");\n executeSql(sql.toString());\n\n // Ignore this, we use create clause to create index\n // createIndexes(tableName, columnCount);\n\n return new SqlDatabaseRefTable(tableName, columnCount);\n }", "FromTable createFromTable();", "@Override\n\t\tpublic void onCreate(SQLiteDatabase database) {\n\t\t\tcreateTable(database);\n\n\t\t}", "@Override\n\tpublic void createTable() {\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\ttry {\n\t\t\tTableUtils.createTable(connectionSource, UserEntity.class);\n\t\t\tTableUtils.createTable(connectionSource, Downloads.class);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\");\n\t\t}\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase sdb) {\n\t\tsdb.execSQL(CREATE_QUERY);\n\t\tLog.d(\"Database operations\", \"table created\");\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource connectionSource) {\n\t\tthis.connectionSource = connectionSource;\n\t\tcreateTable();\n\t}", "public void createTable(String tableName) {\n db.execSQL(\"create table if not exists '\" + tableName.replaceAll(\"\\\\s\", \"_\") + \"' (\"\n + KEY_ROWID + \" integer primary key autoincrement, \"\n + KEY_QUESTION + \" string not null, \"\n + KEY_ANSWER + \" string not null);\");\n }", "public static void createTable(SQLiteDatabase db) {\n String sql = \"CREATE TABLE \" + TABLE_NAME + \"(\"\n + _ID + \" INTEGER PRIMARY KEY, \"\n + COL_DATE + \" DATETIME, \"\n + COL_RESULT + \" TEXT, \"\n + COL_UNIT + \" TEXT, \"\n + COL_ROW + \" TEXT\"\n + \");\";\n\n db.execSQL(sql);\n }", "public void createDepartamentoTable() throws SQLException {\n\t\tString sql = \"create table departamento (piso int, depto varchar(100), expensas double,\ttitular varchar(100))\";\n\t\tConnection c = DBManager.getInstance().connect();\n\t\tStatement s = c.createStatement();\n\t\ts.executeUpdate(sql);\n\t\tc.commit();\n\t\t\t\n\t}", "public static void createTable() throws SQLException, UserExceptionClass {\n\t\tfinal String query = Constants.CREATE_QUERY;\n\t\tDBOperation.updateQueries(query);\n\t}", "private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }", "public TableCreate tableCreate(String tableName, String primaryKey, Durability durability, String datacenter) {\n OptionalArguments optionalArguments = new OptionalArguments()\n .with(\"datacenter\", datacenter)\n .with(\"primary_key\", primaryKey)\n .with(\"durability\", durability == null ? null : durability.toString());\n\n return new TableCreate(this, new Arguments(tableName), optionalArguments);\n }", "private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onCreate(SQLiteDatabase arg0) {\n\t\t\t\tString CREATE_TABLE = \"create table \" +TB_NAME +\n\t\t\t\t\t\"( \" +\n\t\t\t\t\tT_SID+\" integer,\" +\n\t\t\t\t\tT_PID+\" integer,\" +\n\t\t\t\t\tT_VALUE+\" text not null,\" +\n\t\t\t\t\t\")\";\n\t\t\t\targ0.execSQL(CREATE_TABLE);\n\t\t\t}", "BTable createBTable();", "private void createTableOrdersWaiting() throws SQLException\r\n {\r\n String sqlQuery = \r\n \"CREATE TABLE orders \" +\r\n \"(id auto_increment INT NOT NULL PRIMARY KEY, \" +\r\n \"custname VARCHAR(25) NOT NULL, \" +\r\n \"tablenumber INT NOT NULL, \" +\r\n \"foodname VARCHAR(100) NOT NULL, \" + \r\n \"beveragename VARCHAR(100) NOT NULL, \" + \r\n \"served BOOLEAN NOT NULL, \" + \r\n \"billed BOOLEAN NOT NULL, \" + \r\n \"time DATETIME DEFAULT CURRENT_TIMESTAMP)\";\r\n myStmt.executeUpdate(sqlQuery);\r\n }", "public static void CreateTable(Supermarket supermarket) throws SQLException {\r\n\t\tPreparedStatement statement = null;\r\n\t\tString market_name = supermarket.getSuper_name();\r\n\t\ttry {\r\n\t\t\tString query = \"CREATE TABLE CS_\"+market_name+\"(\"\r\n\t\t\t\t\t+ \"PRODUCT_NAME VARCHAR(30) NOT NULL,\"\r\n\t\t\t\t\t+ \"PRODUCT_COMPANY VARCHAR(30) NOT NULL,\"\r\n\t\t\t\t\t+ \"PRODUCT_EXIST BOOLEAN DEFAULT FALSE,\"\r\n\t\t\t\t\t+ \"PRODUCT_PRICE DOUBLE DEFAULT 0,\"\r\n\t\t\t\t\t+ \"PRODUCT_CATEGORY VARCHAR(30) NOT NULL\"\r\n\t\t\t\t\t+ \");\";\r\n\t\t\tstatement = JdbcCommon.connection.prepareStatement(query);\r\n\t\t\tstatement.executeUpdate();\r\n\t\t} catch (SQLException e) {e.printStackTrace();}\r\n\t\tstatement.close();\r\n\t}", "@Override\r\n\tpublic void createTable(Connection con) throws SQLException {\r\n\t\tString sql = \"CREATE TABLE \" + tableName\r\n\t\t\t\t+ \"(pc_id integer, class_id varchar(20), level integer,\"\r\n\t\t\t\t+ \" PRIMARY KEY (pc_id,class_id,level) )\";\r\n\r\n\t\tif (DbUtils.doesTableExist(con, tableName)) {\r\n\r\n\t\t} else {\r\n\t\t\ttry (PreparedStatement ps = con.prepareStatement(sql);) {\r\n\t\t\t\tps.execute();\r\n\t\t\t}\r\n \r\n\t\t}\r\n\r\n\r\n\r\n\t\tString[] newInts = new String[] { \r\n\t\t\t\t\"hp_Increment\",};\r\n\t\tDAOUtils.createInts(con, tableName, newInts);\r\n\r\n\t}", "public void createTableIfAbsent() {\n try (Statement statement = connection.createStatement()) {\n\n statement.executeUpdate(\"CREATE TABLE IF NOT EXISTS `BookReview`(\" +\n \" id INTEGER PRIMARY KEY AUTOINCREMENT,\" +\n \" title VARCHAR(100),\" +\n \" author_id INTEGER,\" +\n \" FOREIGN KEY (`author_id`) REFERENCES `authors`(`id`)\" +\n \")\");\n\n } catch (SQLException e) {\n throw new BookDaoException(e);\n }\n }", "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = true;\r\n\t\twhile (resultSet.next() && shouldCreateTable) {\r\n\t\t\tif (resultSet.getString(\"TABLE_NAME\").equalsIgnoreCase(\"ACCOUNT\")) {\r\n\t\t\t\tshouldCreateTable = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresultSet.close();\r\n\r\n\t\tif (shouldCreateTable) {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tString sql = \"CREATE table account (id int not null primary key, owner varchar(\"\r\n\t\t\t\t\t+ DatabaseAdministration.ownerLength + \") not null, number varchar(4) not null)\";\r\n\t\t\t// Tabelle wird erstellt\r\n\t\t\tstatement.execute(sql);\r\n\t\t\tstatement.close();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\t\tlogger.info(\"Tabelle \\\"Account\\\" wurde erstellt.\");\r\n\t\t\tbankAccountExists = false;\r\n\t\t\t// Das Bank-Konto wird angelegt\r\n\t\t\taddAccount(\"0000\", \"BANK\", BigDecimal.ZERO);\r\n\t\t\tbankAccountExists = true;\r\n\t\t}\r\n\t\tconnection.close();\r\n\t}", "public static void createTable(SQLiteDatabase db, Class<?> clz) {\n// StringBuilder builder=new StringBuilder();\n// Field[] fields=clz.getDeclaredFields();\n// for (int i=0;i<fields.length;i++){\n// Field field=fields[i];\n// builder.append(getOneColumnStmt(field));\n// if (i!=fields.length-1)\n// builder.append(\",\");\n// }\n// String sql=\"create table \"+getTableName(clz)+\"(\"+builder+\")\";\n// db.execSQL(sql);\n ArrayList<String> stmts=getCreateTableStmt(clz);\n for (String stmt:stmts) {\n db.execSQL(stmt);\n }\n }", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"FITTING_TABLE\\\" (\" + //\n \"\\\"NAME\\\" TEXT PRIMARY KEY NOT NULL ,\" + // 0: name\n \"\\\"DB_NAME\\\" TEXT,\" + // 1: dbName\n \"\\\"CATEGORY\\\" TEXT,\" + // 2: category\n \"\\\"DES\\\" TEXT,\" + // 3: des\n \"\\\"LAYOUT_RESOURCE_ID\\\" INTEGER);\"); // 4: layoutResourceID\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\t\tAppDBTableCreation.onCreate(database);\n\t}", "public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }", "public static void createItemTable() {\n\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\t// Drop table if already exists and as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_DROP_ITEM_TABLE));\n\t\t\t// Create new items table as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_CREATE_ITEM_TABLE));\n\t\t\t// Insert records into item table in the beginning as per SQL query available in\n\t\t\t// Query.xml\t\t\t\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_INSERT_BEGIN_ITEM_TABLE));\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t}\n\t}", "public static void createItemTable() {\n\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\t// Drop table if already exists and as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_DROP_ITEM_TABLE));\n\t\t\t// Create new items table as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_CREATE_ITEM_TABLE));\n\t\t\t// Insert records into item table in the beginning as per SQL query available in\n\t\t\t// Query.xml\t\t\t\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_INSERT_BEGIN_ITEM_TABLE));\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t}\n\t}", "void create(DataTableDef def) throws IOException;", "public void createTable(String tableName) {\n //SQL Statement\n String query = \"call aTable\";\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n stmt.executeUpdate(query);\n System.out.println(\"\\n--Table \" + tableName + \" created--\");\n } catch (SQLException ex) {\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource connectionSource) {\n\t\ttry {\n\t\t\tLog.i(DatabaseHelper.class.getName(), \"onCreate\");\n\t\t\tTableUtils.createTable(connectionSource, Place.class);\n\t\t\tTableUtils.createTable(connectionSource, Lock.class);\n\t\t\tTableUtils.createTable(connectionSource, User.class);\n\t\t\tTableUtils.createTable(connectionSource, Locator.class);\n\t\t} catch (SQLException e) {\n\t\t\tLog.e(DatabaseHelper.class.getName(), \"Can't create database\", e);\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private void createCheckingAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE checkingAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 1000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table checkingAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of checkingAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public synchronized void criarTabela(){\n \n String sql = \"CREATE TABLE IF NOT EXISTS CPF(\\n\"\n + \"id integer PRIMARY KEY AUTOINCREMENT,\\n\"//Autoincrement\n// + \"codDocumento integer,\\n\"\n + \"numCPF integer\\n\"\n + \");\";\n \n try (Connection c = ConexaoJDBC.getInstance();\n Statement stmt = c.createStatement()) {\n // create a new table\n stmt.execute(sql);\n stmt.close();\n c.close();\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage()); \n// System.out.println(e.getMessage());\n }\n System.out.println(\"Table created successfully\");\n }", "public void CreateTables() {\n\t\ttry {\n\t\t\tString schema = Schema.META;\n\t\t\tInstall_DBMS_MetaData(schema.getBytes(),0);\n\n\t\t\t// load and install QEPs\n\t\t\tClass<?>[] executionPlans = new Class[] { QEP.class };\n\t\t\tQEPng.loadExecutionPlans(TCell_QEP_IDs.class, executionPlans);\n\t\t\tQEPng.installExecutionPlans(db);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "private void createLoginTable() {\r\n jdbcExecutor.executeQuery(new Work() {\r\n @Override\r\n public void execute(Connection connection) throws SQLException {\r\n connection.createStatement().executeUpdate(\"CREATE TABLE login ( id numeric(19,0), user_id numeric(19,0), timestamp TIMESTAMP )\");\r\n }\r\n });\r\n }", "final public SqlStatement CreateTableStatement() throws ParseException {Token tk = null, tk2 = null;\n String tableName;\n CreateTableDefinition definition = null;\n List<CreateTableOption> options = null;\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case TEMPORARY:{\n tk = jj_consume_token(TEMPORARY);\n break;\n }\n default:\n jj_la1[16] = jj_gen;\n ;\n }\n jj_consume_token(TABLE);\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case IF:{\n tk2 = jj_consume_token(IF);\n jj_consume_token(NOT);\n jj_consume_token(EXISTS);\n break;\n }\n default:\n jj_la1[17] = jj_gen;\n ;\n }\n tableName = DbObjectName();\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case 118:{\n definition = CreateTableDefinition();\n break;\n }\n default:\n jj_la1[18] = jj_gen;\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case K_DEFAULT:\n case AUTO_INCREMENT:\n case COMMENT:\n case S_IDENTIFIER:{\n options = CreateTableOptions();\n break;\n }\n default:\n jj_la1[19] = jj_gen;\n ;\n }\nreturn new CreateTableStatement(tk != null, tk2 != null, tableName, definition, options);\n}", "public static void createTable() throws SQLException\n {\n Statement statement = ConnectionManager.getConnection()\n .createStatement();\n\n statement.executeUpdate(\"DROP TABLE IF EXISTS Account\");\n statement\n .executeUpdate(\"CREATE TABLE Account(accountId INTEGER PRIMARY KEY AUTOINCREMENT, name, address, manager)\");\n\n statement.close();\n\n insertAccount(new Account(0, \"Administrator\", \"\", true));\n\n PreparedStatement ps = ConnectionManager\n .getConnection()\n .prepareStatement(\n \"UPDATE sqlite_sequence SET seq = ? WHERE name = 'Account'\");\n ps.setInt(1, Account.LOW_ACCOUNT_ID - 1);\n ps.executeUpdate();\n ps.close();\n }", "public static void createEmployees() {\n Connection con = getConnection();\n\n String createString;\n createString = \"create table Employees (\" +\n \"Employee_ID INTEGER, \" +\n \"Name VARCHAR(30))\";\n try {\n stmt = con.createStatement();\n stmt.executeUpdate(createString);\n stmt.close();\n con.close();\n\n } catch (SQLException ex) {\n System.err.println(\"SQLException: \" + ex.getMessage());\n }\n JOptionPane.showMessageDialog(null, \"Employees Table Created\");\n }", "private void createSavingsAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE savingsAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 2000000001, INCREMENT BY 1), \" + \"owner INT, \"\n\t\t\t\t\t+ \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table SavingsAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of SavingsAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}" ]
[ "0.791309", "0.77940214", "0.74362296", "0.73251724", "0.73218036", "0.7314123", "0.72937477", "0.726144", "0.7253623", "0.7152383", "0.7142117", "0.71279895", "0.7109381", "0.7107476", "0.7067047", "0.7065432", "0.70631945", "0.7028555", "0.70216703", "0.70106506", "0.7005533", "0.6986615", "0.69727874", "0.6943238", "0.6932363", "0.6930568", "0.6891319", "0.6861044", "0.68555963", "0.68291354", "0.68253154", "0.6821446", "0.68102235", "0.68100375", "0.6807152", "0.6795727", "0.6793711", "0.67804205", "0.67793816", "0.67621046", "0.6759736", "0.67536014", "0.6747768", "0.67454576", "0.6742133", "0.67392945", "0.67330354", "0.6730594", "0.67228323", "0.6699556", "0.66981864", "0.66826236", "0.66759896", "0.6665035", "0.66477954", "0.6634954", "0.6631295", "0.66295546", "0.6617368", "0.6612472", "0.6607912", "0.6605247", "0.6584071", "0.6576124", "0.6573932", "0.65656525", "0.65599513", "0.65474194", "0.65361446", "0.65326595", "0.65304124", "0.6518686", "0.6518292", "0.6507078", "0.6506849", "0.650427", "0.6503758", "0.6503744", "0.6497479", "0.6485092", "0.6483864", "0.6482437", "0.64678234", "0.6467574", "0.6466865", "0.6458649", "0.64524764", "0.64524764", "0.64452165", "0.6444506", "0.6443852", "0.64362144", "0.6430254", "0.6423324", "0.6399612", "0.6398129", "0.6394736", "0.639161", "0.6390867", "0.6389095", "0.6388685" ]
0.0
-1
Drops the underlying database table.
public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"STEP11_RESBEAN\""; db.execSQL(sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dropTable();", "@Override\r\n public void dropTable() {\n if(tableIsExist(TABLE_NAME)){\r\n String sql = \"drop table \" + TABLE_NAME;\r\n database.execSQL(sql);\r\n }\r\n }", "public void wipeTable() {\n SqlStorage.wipeTable(db, TABLE_NAME);\n }", "public void doDropTable();", "@Override\n public void dropTable(String table_name) {\n\n // silently return if connection is closed\n if (!is_open) {\n return;\n }\n\n // try to delete the table\n try {\n String drop_table = \"DROP TABLE \" + table_name;\n statement.execute(drop_table);\n connection.commit();\n } catch (SQLException e) {\n System.out.println(\"Could not delete table \" + table_name);\n e.printStackTrace();\n }\n\n //System.out.println(\"Deleted table \" + table_name);\n\n }", "public void cleanTable() throws ClassicDatabaseException;", "public void dropTable()\n throws DBException\n {\n try {\n DBProvider.dropTable(this.getUntranslatedTableName());\n } catch (SQLException sqe) {\n throw new DBException(\"Drop table\", sqe);\n }\n }", "public void dropTable() {\n }", "abstract void dropTable() throws SQLException;", "@Override\n\tpublic void dropTable() {\n\t\ttry {\n\t\t\tTableUtils.dropTable(connectionSource, UserEntity.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Downloads.class, true);\n\t\t} catch (SQLException e) {\n\t\t}\n\t}", "public void dropTable(String tableName);", "public void dropDB() throws SQLException {\n\t \t\tStatement stmt = cnx.createStatement();\n\t \t\tString[] tables = {\"account\", \"consumer\", \"transaction\"};\n\t \t\tfor (int i=0; i<3;i++) {\n\t \t\t\tString query = \"DELETE FROM \" + tables[i];\n\t \t\t\tstmt.executeUpdate(query);\n\t \t\t}\n\t \t}", "boolean dropTable();", "public void drop() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME1);\n onCreate(db);\n }", "public void dropTable(String tableName) throws SQLException {\n mysql.update(\"DROP TABLE ` \" + tableName + \" `\");\n }", "public void dropTable(DropTableQuery query);", "void removeTable(String tableName) throws SQLException {\n\t\tstmt = con.createStatement();\n\t\tString sql = (new StringBuilder(\"drop table \")).append(tableName)\n\t\t\t\t.toString();\n\t\tstmt.executeUpdate(sql);\n\t\tstmt.close();\n\t}", "public void dropTable(String table) {\n SQLiteDatabase db = openConnection();\n db.execSQL(\"DROP TABLE IF EXISTS \" + table);\n closeConnection();\n }", "@Override\r\n\tpublic boolean dropTable() {\n\t\treturn false;\r\n\t}", "@Override\n public void dropUsersTable() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n session.createSQLQuery(\"DROP TABLE IF EXISTS Users\").executeUpdate();\n tx.commit();\n session.close();\n\n }", "@Override\n public void clearTable() {\n final var query = \"TRUNCATE TABLE piano_project.pianos\";\n try(final var statement = connection.createStatement()) {\n statement.executeUpdate(query);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "private void dropDBProcedure() {\r\n try {\r\n Class.forName(myDriver);\r\n Connection conn = DriverManager.getConnection(myUrl, myUser, myPass);\r\n DatabaseMetaData md = conn.getMetaData();\r\n String[] types = {\"TABLE\"};\r\n ResultSet rs = md.getTables(null, \"USERTEST\", \"%\", types);\r\n while (rs.next()) {\r\n String queryDrop\r\n = \"DROP TABLE \" + rs.getString(3);\r\n Statement st = conn.createStatement();\r\n st.executeQuery(queryDrop);\r\n System.out.println(\"TABLE \" + rs.getString(3).toLowerCase() + \" DELETED\");\r\n st.close();\r\n }\r\n rs.close();\r\n conn.close();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n System.out.println(ex.toString());\r\n }\r\n }", "public void deleteTable(String tableName) {\n try {\n connectToDB(\"jdbc:mysql://localhost/EmployeesProject\");\n } catch (Exception e) {\n System.out.println(\"The EmployeesProject db does not exist!\\n\"\n + e.getMessage());\n }\n String sqlQuery = \"drop table \" + tableName;\n try {\n stmt.executeUpdate(sqlQuery);\n } catch (SQLException ex) {\n System.err.println(\"Failed to delete '\" + tableName + \n \"' table.\\n\" + ex.getMessage());\n }\n }", "public int dropTable() \n throws InterruptedException, IOException \n {\n return dropTable(false);\n }", "public void drop(Connection db) throws SQLException {\n drop(db, true);\n }", "void dropDatabase();", "public void removetable(Connection connection) throws SQLException\n {\n\tStringBuffer sbremove = new StringBuffer();\n\tsbremove.append(\" DROP TABLE Credit CASCADE CONSTRAINTS \");\n\tStatement statement =null;\n\ttry {\n\t statement = connection.createStatement();\n\t statement.executeUpdate (sbremove.toString());\n\t}catch (SQLException e) {\n\t throw e;\n\t}finally{\n\t statement.close();\n\t}\n }", "private static void removeDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n dropTable(\"myRooms\");\n dropTable(\"myReservations\");\n }", "private void truncateTable() throws SQLException {\n trace(\"truncateTable\");\n String command = \"TRUNCATE TABLE \" + _tableName;\n Statement stmt = _connection.createStatement();\n stmt.executeUpdate(command);\n stmt.close();\n }", "private static void dropTablesFromDatabase (Statement statement) throws SQLException {\n //Удаление таблиц из БД\n statement.execute(\"DROP TABLE IF EXISTS payment;\");\n statement.execute(\"DROP TABLE IF EXISTS account;\");\n statement.execute(\"DROP TABLE IF EXISTS users;\");\n statement.execute(\"DROP TABLE IF EXISTS role;\");\n }", "@Override\n public void clearDB() throws Exception {\n hBaseOperation.deleteTable(this.dataTableNameString);\n hBaseOperation.createTable(this.dataTableNameString, this.columnFamily, numRegion);\n }", "private void clearTable(String tableName) throws SQLException {\n Connection conn = getConnection();\n String setStatement = \"DELETE FROM \" + tableName;\n Statement stm = conn.createStatement();\n stm.execute(setStatement);\n }", "void dropAllTables();", "public void dropTable(Class<?> clz) {\n\t\tdropTable(getTableName(clz));\n\t}", "void delete_table(String table_name) {\n //table does not exist\n if (!get_table_names().contains(table_name) && !table_name.equals(\"relationship\")) {\n throw new RuntimeException(\"Table does not exists and can therefore not be deleted.\");\n }\n\n String sql = \"drop table if exists \" + table_name;\n\n execute_statement(sql, false);\n }", "@Override\r\n\tpublic void deleteDatabase() {\r\n\t\tlog.info(\"Enter deleteDatabase\");\r\n\r\n\t\t\r\n\t\tConnection connection = null;\t\t\r\n\t\ttry {\r\n\t\t\tconnection = jndi.getConnection(\"jdbc/libraryDB\");\t\t\r\n\t\t\t\r\n\r\n\t\t\t \r\n\t\t\t\tPreparedStatement pstmt = connection.prepareStatement(\"Drop Table Users_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table Cams_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table User_Cam_Mapping_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table Cam_Images_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Datenbank wurde erfolgreich zurueckgesetzt!\");\t\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Fehler: \"+e.getMessage());\r\n\t\t\tlog.error(\"Error: \"+e.getMessage());\r\n\t\t} finally {\r\n\t\t\tcloseConnection(connection);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"STOCK\\\"\";\n db.execSQL(sql);\n }", "private void deleteOldTables(){\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence\");\n jdbcTemplate.execute(\"DROP TABLE OLDrole\");\n jdbcTemplate.execute(\"DROP TABLE OLDperson\");\n jdbcTemplate.execute(\"DROP TABLE OLDavailability\");\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence_profile\");\n }", "public void dropTables()\n {\n String tableName;\n\n for (int i=0; i<tableNames.length; i++)\n {\n tableName = tableNames[i];\n System.out.println(\"Dropping table: \" + tableName);\n try\n {\n Statement statement = connect.createStatement();\n\n String sql = \"DROP TABLE \" + tableName;\n\n statement.executeUpdate(sql);\n }\n catch (SQLException e)\n {\n System.out.println(\"Error dropping table: \" + e);\n }\n }\n }", "public void rollbackCreateTable(Table table) throws MetaException {\n commitDropTable(table, true);\n }", "public int dropTable(boolean quiet) \n throws InterruptedException, IOException \n {\n // if (! tablecreated) \n // System.err.println(\"Warning: table not created yet?\");\n\n Process client = startDbClient();\n PrintWriter w = \n new PrintWriter(new OutputStreamWriter(client.getOutputStream()));\n w.print(\"DROP TABLE \");\n w.print(tbl);\n w.println(\";\");\n w.close();\n\n client.waitFor();\n if (! quiet) {\n if (client.exitValue() > 0) {\n for (String line : emsgs) \n System.err.println(line);\n }\n else {\n tablecreated = false;\n System.err.println(\"Existing table \"+tbl+\" dropped\");\n }\n }\n\n return client.exitValue();\n }", "public static void dropTable(SQLiteDatabase db, Class<?> clz) {\n ArrayList<String> stmts=getDropTableStatms(clz);\n for (String stmt : stmts) {\n db.execSQL(stmt);\n }\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'P5P10'\";\n db.execSQL(sql);\n }", "@Test\n public void testDropTable() throws Exception {\n String tableName = createTable(true, true, false);\n\n assertTableIsRegistered(DEFAULT_DB, tableName);\n assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName), \"id\"));\n assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName), NAME));\n\n String query = String.format(\"drop table %s \", tableName);\n\n runCommandWithDelay(query, 3000);\n\n assertColumnIsNotRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName), \"id\"));\n assertColumnIsNotRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName), NAME));\n assertTableIsNotRegistered(DEFAULT_DB, tableName);\n }", "void cleanupTable(TableName tablename) throws Exception {\n if (tbl != null) {\n tbl.close();\n tbl = null;\n }\n\n ((ClusterConnection) connection).clearRegionCache();\n deleteTable(TEST_UTIL, tablename);\n }", "public void drop(Connection db, boolean dropSequence) throws SQLException {\n Statement st = db.createStatement();\n\n //drop the table\n st.executeUpdate(\"DROP TABLE \" + tableName);\n\n if (dbType == DatabaseUtils.POSTGRESQL) {\n if (hasSequence() && dropSequence) {\n //TODO: Not all versions of postgres supported by centric, supports IF EXISTS. Need a better solution\n //drop the sequence\n st.executeUpdate(\"DROP SEQUENCE IF EXISTS \" + sequenceName);\n }\n }\n st.close();\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'ORDER_BATCH'\";\n db.execSQL(sql);\n }", "public void closeAndDeleteDB() {\n\t\tboolean gotSQLExc = false;\n\t\ttry {\n\t\t\tthis.deleteAllTable();\n\t\t\tconn.close();\n //DriverManager.getConnection(\"jdbc:derby:;shutdown=true\"); \n \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tif (e.getSQLState().equals(\"XJ015\") ) {\t\t\n\t gotSQLExc = true;\n\t } else e.printStackTrace();\n\t\t}\n//\t\t\n//\t\tif (!gotSQLExc) {\n//\t \t System.out.println(\"Database did not shut down normally\");\n//\t } else {\n//\t System.out.println(\"Database shut down normally\");\t\n//\t }\n\t\t\n\t}", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"\" + TABLENAME + \"\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'ENTITY_COMMAND'\";\n db.execSQL(sql);\n }", "public void dropTableIfExists(String tableName) throws SQLException{\n\t\tStatement stmt = connection.createStatement();\n\t\tstmt.execute(\"DROP TABLE IF EXISTS \\\"\" + tableName + \"\\\"\"); \n\t\tstmt.close();\n\t}", "public static void dropTable(SQLiteDatabase db, Class clazz) {\n final TypeAdapter adapter = getAdapter(clazz);\n db.execSQL(String.format(\"DROP TABLE IF EXISTS %s\", adapter.getTableName()));\n }", "public void dropTable(AccumuloTable table)\n {\n SchemaTableName stName = new SchemaTableName(table.getSchema(), table.getTable());\n String tableName = table.getFullTableName();\n\n // Drop cardinality cache from index lookup\n sIndexLookup.dropCache(stName.getSchemaName(), stName.getTableName());\n\n // Remove the table metadata from Presto\n if (metaManager.getTable(stName) != null) {\n metaManager.deleteTableMetadata(stName);\n }\n\n if (!table.isExternal()) {\n // delete the table and index tables\n if (tableManager.exists(tableName)) {\n tableManager.deleteAccumuloTable(tableName);\n }\n\n if (table.isIndexed()) {\n String indexTableName = Indexer.getIndexTableName(stName);\n if (tableManager.exists(indexTableName)) {\n tableManager.deleteAccumuloTable(indexTableName);\n }\n\n String metricsTableName = Indexer.getMetricsTableName(stName);\n if (tableManager.exists(metricsTableName)) {\n tableManager.deleteAccumuloTable(metricsTableName);\n }\n }\n }\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'SELLER'\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"BIG_MONSTERS\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'P7P4'\";\n db.execSQL(sql);\n }", "public static void dropTable(Connection c, String tableName) throws SQLException {\r\n\t\tStatement s = c.createStatement();\r\n\t\ts.executeUpdate(\"drop table \"+quote(tableName));\r\n\t\ts.close();\r\n\t}", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"PAYMENT_RECORD\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"TRUCK\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'DISTRIBUTOR_ORDERS'\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"GAME_FILL_ITEM\\\"\";\n db.execSQL(sql);\n }", "public void removeLifeloggingTables() throws SQLException {\n\n\t\tString sqlCommand1 = \"DROP TABLE IF EXISTS minute\";\n\t\tString sqlCommand2 = \"DROP TABLE IF EXISTS image\";\n\t\tStatement stmt = this.connection.createStatement();\n\n\t\tstmt.execute(sqlCommand2);\n\t\tstmt.execute(sqlCommand1);\n\t\tstmt.close();\n\t}", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"HEALTH_RECORD__STATUS\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"ORDER_PAY\\\"\";\n db.execSQL(sql);\n }", "public void clear() throws DBException\n {\n String sqlString = \"DELETE FROM user\";\n try(Statement statement = conn.createStatement())\n {\n statement.executeUpdate(sqlString);\n }\n catch(SQLException ex)\n {\n throw new DBException(\"Error while clearing user table\");\n }\n\n\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"LOCAL_BEAN\\\"\";\n db.execSQL(sql);\n }", "public void deleteAll() throws SQLException {\n\t\tfinal String sql = \"DELETE FROM \" + table_name;\n\t\tPreparedStatement statement = null;\n\n\t\ttry {\n\t\t\tfinal Connection connection = _database.getConnection();\n\t\t\tstatement = connection.prepareStatement(sql);\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tfinal int rowcount = update(statement);\n\t\t} finally {\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\t\t}\n\t}", "public void dropTables() {\n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE REVISION\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE VCS_COMMIT\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE FILE\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CODE_FRAGMENT\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CLONE_SET\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CODE_FRAGMENT_LINK\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CLONE_SET_LINK\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CLONE_GENEALOGY\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CODE_FRAGMENT_GENEALOGY\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CRD\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"VACUUM\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \t}", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"COUNT_DATA_BEAN\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"RECORD\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"RECORD\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'TABLE__STATUS'\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"SECURITY_ITEMS\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"SHOP_RECEIVABLE_ENTITY\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"DCPURCHASE_DATA\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"FITTING_TABLE\\\"\";\n db.execSQL(sql);\n }", "public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"ANSWERS_QUESTION\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"HINT\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'CUSTOMER'\";\n db.execSQL(sql);\n }", "@Override\n public void cleanUsersTable() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n session.createQuery(\"delete from User\").executeUpdate();\n tx.commit();\n System.out.println(\"HibCleaning users table\");\n session.close();\n\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"LIVE_KIND_OBJ\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"BUDGETS\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'RECYCLE_SCAN'\";\n db.execSQL(sql);\n }", "@Override\n public void run() {\n\n String filename = \"PurgeTable\";\n\n PreparedStatement stmt1 = null;\n try {\n stmt1 = conn.prepareStatement(\"delete from \" + filename);\n stmt1.executeUpdate();\n System.out.println(\"Deletion successful\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"SHEET\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'IdCard'\";\n db.execSQL(sql);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\r\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'META'\";\r\n db.execSQL(sql);\r\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"kctBaseStation\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"BACK_ALARM_MODEL\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"EXAM_QUESTION\\\"\";\n db.execSQL(sql);\n }", "public void dropDatabase(String dbName) throws Exception;", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n\t\tString sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'District'\";\n\t\tdb.execSQL(sql);\n\t}", "public synchronized void removeAll(SQLiteDatabase db) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n }", "public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'BLACK_LIST'\";\n db.execSQL(sql);\n }", "public void dropSQLtable(Connection conn, String dataid, String tablename) throws SQLException\n\t\t{\n\t\tStringBuffer dropTable=new StringBuffer();\n\t\tdropTable.append(\"drop table \"+tablename+\";\");\n\t\tPreparedStatement stmDropTable=conn.prepareStatement(dropTable.toString());\n\t\tstmDropTable.execute();\n\t\t}", "public void DropTables() {\n\t\ttry {\n\t\t\tDesinstall_DBMS_MetaData();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void dropTable(ObjectPath tablePath, boolean ignoreIfNotExists)\n throws TableNotExistException, CatalogException;", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"HOT_SONG_LIST\\\"\";\n db.execSQL(sql);\n }", "public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"USER_ENTITY\\\"\";\n db.execSQL(sql);\n }" ]
[ "0.7789895", "0.76284015", "0.7504201", "0.7461965", "0.73182327", "0.72954285", "0.72924113", "0.7281721", "0.72654843", "0.7200476", "0.71981245", "0.71693176", "0.7104181", "0.70931613", "0.70916253", "0.7038522", "0.6928525", "0.6885475", "0.6786595", "0.67825055", "0.677586", "0.6753655", "0.6726092", "0.67094105", "0.6699468", "0.6674234", "0.6648747", "0.6642903", "0.6639", "0.6620408", "0.66143644", "0.66091275", "0.65969855", "0.6592487", "0.659163", "0.6573051", "0.65648615", "0.65508455", "0.654919", "0.6536536", "0.6531166", "0.6519053", "0.64960766", "0.6489974", "0.6471562", "0.6440099", "0.6434562", "0.6428342", "0.6423095", "0.6416633", "0.64011794", "0.63991225", "0.63838357", "0.6375476", "0.6366948", "0.6350697", "0.63482237", "0.6346097", "0.6335996", "0.63328743", "0.6330873", "0.63270676", "0.632361", "0.6323372", "0.6323003", "0.6309212", "0.6299688", "0.6299316", "0.6295238", "0.62938344", "0.62938344", "0.6286653", "0.6286253", "0.62858725", "0.6285509", "0.6282071", "0.62752825", "0.6256387", "0.6252407", "0.62495214", "0.62478006", "0.6243677", "0.6239446", "0.62305987", "0.6228089", "0.6220772", "0.62188715", "0.62130576", "0.62104917", "0.62047917", "0.6197837", "0.6180644", "0.61806047", "0.61783856", "0.61759776", "0.6174481", "0.6169079", "0.6140189", "0.61313474", "0.6130703" ]
0.61344934
98
Overrides a super() Constructor
public CassandraDataException(Exception e){ super(e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "protected abstract void construct();", "O() { super(null); }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "defaultConstructor(){}", "public ConStructorInheritance(){\r\n\t\t\r\n\t\tSystem.out.println(\"Parent Class Constructor\");\r\n\t\t\r\n\t\t\r\n\t}", "public Parent() {\n super();\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public SuperProduct() {\n\t\tsuper();\n\t}", "private void __sep__Constructors__() {}", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "public Person(){\r\n\t\tsuper();\r\n\t}", "public Coche() {\n super();\n }", "public mapper3c() { super(); }", "public BaseParameters(){\r\n\t}", "public Cat(){\n\t\tsuper();\n\t}", "public b3(){\n super();\n }", "public PSRelation()\n {\n }", "void DefaultConstructor(){}", "DummyCanvas() {\n super(null);\n // super(null); ----------------ADDED TO COMPILE -----------------------------------------\n }", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "Parent()\n\t{\n\t\tSystem.out.println(\"This is parent's default constructor\");\n\t}", "private Instantiation(){}", "public void init() {\r\n\t\t// to override\r\n\t}", "public Child() {\n\t\tsuper(20);\n\t}", "public Picture ()\n {\n /* not needed but use it to show students the implicit call to super()\n * child constructors always call a parent constructor \n */\n super(); \n }", "public Picture ()\n {\n /* not needed but use it to show students the implicit call to super()\n * child constructors always call a parent constructor \n */\n super(); \n }", "@Override public void init()\n\t\t{\n\t\t}", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "protected Animal() {\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Catelog() {\n super();\n }", "private BigB()\r\n{\tsuper();\t\r\n}", "@Override\n public void init() {}", "public Tbdtokhaihq3() {\n super();\n }", "public SuperClass(int x)\r\n {\r\n _x = x;\r\n }", "@Override // opcional\n public void init(){\n\n }", "protected SheetCollate(int paramInt) {\n/* 182 */ super(paramInt);\n/* */ }", "public Anschrift() {\r\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "public Cohete() {\n\n\t}", "public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }", "public Boop() {\n\t\tsuper();\n\t}", "@Override\r\n\tpublic void init() {}", "public AbstractClassExtend() {\n\t\tsuper(\"hello\");\n\t}", "public CSSTidier() {\n\t}", "Composite() {\n\n\t}", "protected BaseFeat()\n {\n super(TYPE);\n }", "protected Product()\n\t{\n\t}", "public Tbdcongvan36() {\n super();\n }", "protected ChildType() {/* intentionally empty block */}", "serial() {\n super(1, 2, 3);\n }", "protected Tile() {\n super();\n }", "protected Product() {\n\t\t\n\t}", "private Composite() {\n }", "public Car() {\r\n super();\r\n }", "public CyanSus() {\n\n }", "protected void init() {\n // to override and use this method\n }", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "public CacheFIFO(int paramInt)\r\n/* 11: */ {\r\n/* 12: 84 */ super(paramInt);\r\n/* 13: */ }", "public CuerpoCeleste() {\n\t\t// Start of user code constructor for CuerpoCeleste)\n\t\tsuper();\n\t\t// End of user code\n\t}", "public Pasien() {\r\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n void init() {\n }", "public Rook()\n {\n super();\n }", "public Chauffeur() {\r\n\t}", "public CustomerNew () {\n\t\tsuper();\n\t}", "public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }", "public Employee() {\r\n\t\t// super should be 1st line \r\n\t\tsuper();\r\n\t\tSystem.out.println(\"Hi i'm from constructor \");\r\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "protected TreeChild () {\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Car() {\n super();\n }", "public ParseException() {\n super();\n specialConstructor = false;\n }", "@Override\n public void init() {\n }", "public CommonsFactoryImpl() {\n\t\tsuper();\n\t}", "public Curso() {\r\n }", "public Dog ()\n {\n super (\"Dog\", \"Hi! My name is Snoop Dawg\");\n this.x = \"A bone\";\n /*\n * This dog has many features to it\n * Do not provoke it or else it will bite!\n * Otherwise, It's a nice dog so have fun!\n */\n \n \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "protected StreamParser()\n {\n }", "public static void copyConstructor(){\n\t}", "Parent() {\n\t System.out.println(\"i am from Parent Class\");\n\t }", "public Clover() {\n\t\tsuper();\n\t}", "public Generic(){\n\t\tthis(null);\n\t}", "@Override\n protected void initialize() \n {\n \n }", "protected Shape() {}", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}" ]
[ "0.7632275", "0.75982296", "0.6997523", "0.68917924", "0.6854512", "0.6833264", "0.68258923", "0.6818785", "0.6797113", "0.677201", "0.6734806", "0.67339283", "0.6729345", "0.6695349", "0.6678139", "0.6658176", "0.6639094", "0.6638196", "0.6637527", "0.66310835", "0.661802", "0.6616171", "0.6603456", "0.6574664", "0.6572888", "0.6572304", "0.6567643", "0.6567643", "0.65574616", "0.6550288", "0.65465975", "0.65465045", "0.65419495", "0.6539763", "0.6527672", "0.6527623", "0.65225065", "0.6520419", "0.6513713", "0.6512752", "0.6511458", "0.650851", "0.6498521", "0.6478404", "0.647595", "0.64755404", "0.64646345", "0.6463769", "0.6463716", "0.6461172", "0.6446698", "0.6445983", "0.64444995", "0.6442042", "0.64385843", "0.642818", "0.64264196", "0.6426329", "0.6418892", "0.6411191", "0.64064425", "0.6404422", "0.6398144", "0.6396174", "0.6396051", "0.6394495", "0.6394495", "0.6394495", "0.6394495", "0.6394495", "0.6394495", "0.63925606", "0.63861847", "0.63820666", "0.63726515", "0.6371658", "0.6368635", "0.6366972", "0.63650435", "0.63650435", "0.63627183", "0.6353349", "0.63529044", "0.63452446", "0.6340891", "0.63374335", "0.6336337", "0.6334139", "0.632752", "0.63221645", "0.63219386", "0.6319527", "0.6319101", "0.63173586", "0.6297739", "0.6296764", "0.6294896", "0.6294194", "0.6288751", "0.6286307", "0.6286307" ]
0.0
-1
Overrides a super(String msg) Constructor
public CassandraDataException(String msg){ super(msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "public Message() {\n\t\tsuper();\n\t}", "public LCAmsg2 () { }", "public MyCustomException( String message )\n {\n\n\t// Why are we doing this??\n super( message );\n }", "public Message(){}", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public Error(String message) {\r\n \tsuper(message);\r\n \t}", "public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }", "private Message(){\n // default constructor\n }", "public SystemMessage() {\r\n\t}", "public Message() {}", "public Message() {}", "public Message() {\n }", "public Message() {\n }", "public Message() {\n }", "public MyException(String message)\n { super(message); }", "public ValidationException(String msg) {\n\t\tsuper(msg);\n\t}", "public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }", "public CallMessage() {\n\t}", "MyException(String str)\n {\n //parametrize constructor\n super(str);\n }", "private Messages() {\n\t}", "public MyCustomException( String message, Throwable cause )\n {\n\n\t// Why are we doing this??\n super( message, cause );\n }", "public MessageInfo() { }", "public VelocityEmailException(String msg)\n {\n super(msg);\n }", "public CodecException(String msg) {\n\t\tsuper(msg);\n\t}", "public DukeException(String msg) {\n super(msg);\n }", "Constructor() {\r\n\t\t \r\n\t }", "public ArgumentException(String msg) {\n super(msg);\n }", "public InvalidRequestMsg() {\n\n this(\"\");\n\n }", "public ImMessage() {\r\n }", "private ComporMessageFormat() {\r\n }", "public JDBFException (String message, Object [] args){\r\n super(Messages.format(message, args));\r\n }", "public ExceptionDate(String parMessage){\n\t\tsuper(parMessage);\n\t}", "public MessageRecord() {\n super(Message.MESSAGE);\n }", "public EmailException(String msg)\n {\n super(msg);\n }", "public Message(){\n\t\ttimeStamp = System.currentTimeMillis();\n\t}", "public FeedbackMessages()\n\t{\n\t}", "public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}", "public ParseException(String message) {\n super(message);\n }", "public DataControlException(String msg) {\r\n super(msg);\r\n }", "public messages() {\n }", "public ParseException(String msg) {\n this(msg, -1, -1, -1);\n }", "public DataConversionException(String msg) {\n super(msg);\n }", "public MessageParseException() {\n }", "private SocketMessage() {\n initFields();\n }", "public Constructor(){\n\t\t\n\t}", "public GotNullException(String message)\n {\n super(message);\n }", "public BaseException(String message) {\n super(message);\n setErrorCode();\n }", "private Message(MessageType handle, String srcName) {\n this(handle, srcName, null);\n }", "private ParseException(String msg, long offset, int line, int column) {\n super(msg);\n this.offset = offset;\n this.line = line;\n this.column = column;\n }", "public MyMoneyException(String msg) {\r\n\t\tsuper(msg);\r\n\t}", "public Alarm_Msg(){ }", "public InvalidUsername(String msg) {\n super(msg);\n }", "public ArxFrameException(String msg) {\n super(msg);\n }", "public CalculadoraException(String msg) {\r\n super(msg);\r\n }", "public ValidationMessage() {\n }", "public RDISException(String msg) {\n\t\tthis(msg, null);\n\t}", "public CRLException(String message) {\n super(message);\n }", "public TwoDAReadException(String message) { super(message); }", "public TrackedMessage(int messageType) {\n\tsuper(messageType);\n }", "public AbstractClassExtend() {\n\t\tsuper(\"hello\");\n\t}", "public EventMessage(Event event)\r\n {\r\n //super(\"EventMessage\");\r\n super(TYPE_IDENT, event);\r\n }", "private StatusMessage() {\n\n\t}", "private StatusMessage() {\n\n\t}", "public SyntaxMatchingException(String msg) {\n super(msg);\n }", "public MessageTran() {\n\t}", "public ParamException( String msg ) {\n\t\tsuper( msg );\n\t}", "public JDBFException (String message){\r\n super(Messages.message(message));\r\n }", "public RockPaperScissorsException(final String msg) {\n super(msg);\n }", "public ScheduleException(String msg) {\r\n super(msg);\r\n }", "public Exception(String s) {\n\tsuper(s);\n }", "public LogException(String msg) {\r\n super(msg);\r\n }", "public Animal(String message){\n name=\"Bob the Animal\";\n System.out.println(message);\n }", "public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }", "private Message(MessageType handle, String srcName, String text) {\n msgType = handle;\n // Save the properly formatted identifier for the user sending the\n // message.\n msgSender = srcName;\n // Save the text of the message.\n msgText = text;\n }", "protected AbstractMessage(byte[] content, UserModel receiver) {\n this.content = content;\n this.sender = receiver;\n this.timestamp = System.currentTimeMillis();\n }", "public TDLProException(String message)\n {\n super(message);\n }", "public CanyonException( String message )\r\n {\r\n super( message );\r\n }", "public Chat(){ }", "public TriggerMessage() {\n\t}", "public void testCtor2() {\n instance = new LogMessage(type, id, operator, message);\n\n assertEquals(\"'type' should be correct.\", type, instance.getType());\n assertEquals(\"'id' should be correct.\", id, instance.getId());\n assertEquals(\"'message' should be correct.\", message, instance.getMessage());\n assertNull(\"'error' should be correct.\", instance.getError());\n }", "public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }", "public DomainException(String msg) {\n\t\tsuper(msg);\n\t}", "public FlowMonMessage(){}", "public MessageParseException(String message) {\n super(message);\n }", "public SmppException() {\n\t\tsuper();\n\t}", "public FullCarException() {\r\n super(\"\");\r\n }", "public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public ServiceJobDBUtil(Context context, String message) {\n super(context);\n Log.e(LOG_TAG, message);\n }", "public MessageRequest() {\n\t}", "public OLMSException(String message) {\r\n super(message);\r\n }", "public VocabularioIOException(String msg)\n {\n message = msg;\n }", "public ConnectionException(String pMessage) {\n super(pMessage);\n }", "GitletException(String msg) {\n super(msg);\n }", "public SysException(String message) {\r\n super(message);\r\n\r\n }", "public HCRYPTMSG(Pointer p) {\n/* 1131 */ super(p);\n/* */ }", "public FullCarException(String message) {\r\n super(message);\r\n }", "public SerializationException(String msg) {\n super(msg);\n }", "public Anschrift() {\r\n }", "public PersonResult(String message){\n super(message);\n }", "private Message(MessageType handle) {\n this(handle, null, null);\n }" ]
[ "0.7548625", "0.7449528", "0.72464865", "0.7239589", "0.7206113", "0.7201222", "0.7195248", "0.71654105", "0.7055893", "0.70401675", "0.6934613", "0.6934613", "0.69238365", "0.691137", "0.691137", "0.68808854", "0.68057775", "0.6803878", "0.67933285", "0.6711807", "0.6684007", "0.6679452", "0.6674621", "0.6644776", "0.6638432", "0.66302645", "0.6617614", "0.6613628", "0.66080695", "0.66007584", "0.6583674", "0.6581238", "0.6568747", "0.6568669", "0.65661937", "0.6563291", "0.65512896", "0.65452415", "0.6529441", "0.65236294", "0.64846", "0.6479948", "0.6474016", "0.6468742", "0.64574337", "0.6456298", "0.64361", "0.6435104", "0.64277047", "0.6408956", "0.6400384", "0.63963705", "0.6390191", "0.6388209", "0.6387916", "0.63871247", "0.638419", "0.6383696", "0.6375422", "0.63709587", "0.6367206", "0.63634735", "0.6360944", "0.6360944", "0.63541937", "0.63487", "0.6342765", "0.63407594", "0.63385993", "0.63263035", "0.63242835", "0.63230324", "0.6322728", "0.6321935", "0.6321403", "0.63184583", "0.63167083", "0.6316589", "0.6312069", "0.63110113", "0.6294479", "0.6290541", "0.6285349", "0.62802106", "0.6274401", "0.626945", "0.6262116", "0.62545365", "0.62504435", "0.62500924", "0.624981", "0.624662", "0.62434715", "0.6242105", "0.6241223", "0.6240921", "0.6238908", "0.6234366", "0.6232651", "0.62319136", "0.62233144" ]
0.0
-1
Basic Constructor for FileReceiver
public FileReceiver(String filename) { _fileName = filename; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public fileServer() {\n }", "public FileServ() {\n\t\tsuper();\n\t}", "public FileObject() {\n\t}", "protected FileMessage(MessageWireType wireId) {\n super(wireId);\n }", "public LdifFile()\n {\n }", "public File() {\n }", "private FileManager() {}", "public Receiver(String file) {\n\t\ttry {\n\t\t\tinput = new InputDriver(file, true);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"The file, \" + file + \", isn't existed on the server.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\timg = new ImageDriver(input);\n\t\t//initialize list as a new linked list\n\t\tlist = new PacketLinkedList<SimplePacket>();\n\t}", "private FileUtil() {\n \t\tsuper();\n \t}", "public FileManager() {\n\t\t\n\t}", "public SplitFile() {\n\t}", "public ActionFile() {\n }", "private FileUtility() {\r\n\t}", "public FileBean() {}", "public FileUtility()\n {\n }", "private FileUtil() {}", "public FileEvent(FileObject src, FileObject file) {\n super(src);\n this.file = file;\n this.time = System.currentTimeMillis ();\n }", "protected FileDepositorImpl() {\n\t}", "public FileEvent(FileObject src) {\n this(src, src);\n }", "public FileTest() {\n }", "public FileCreator() {\r\n initComponents();\r\n }", "public FileHandlerImpl(){\n\t\tfilepath = null;\n\t}", "public AncFile() {\n }", "public ExternalFileMgrImpl()\r\n \t{\r\n \t\t\r\n \t}", "public InventarioFile(){\r\n \r\n }", "public FileInfo(File file) {\n this.file = file;\n }", "public Uploader() {\n super();\n }", "public BiomartAccess(String fname) \n {\n m_file = new File(fname);\n }", "public FileNode() {\n\t}", "public File_Delet() {\n\t\tsuper();\n\t}", "public FilePanel() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public ObjReader(String filename){\n file = filename;\n }", "public FileObjectFactory() {\n }", "public FileDecoder() {\n pathSB = new StringBuilder(100);\n }", "public FileBasedConfigSource() {\n // Intentionally empty.\n }", "private SimpleAttachment() {\n }", "public SendFiles(String desIp) {\n this.init(desIp);\n }", "LogFile(File file)\n {\n this.file = file;\n }", "public Receiver() {\n\t\tsuper();\n\t}", "FileSystemWatcher(FileExtractor fileExtractor) {\r\n\t\tthis.pool = Executors.newSingleThreadScheduledExecutor(tFactory);\r\n\t\tthis.fileExtractor = fileExtractor;\r\n\t}", "private FileEntry() {\n // intentionally empty\n }", "protected FileSystem() {\n\t}", "public MailcapFile() {\n/* 113 */ if (LogSupport.isLoggable()) {\n/* 114 */ LogSupport.log(\"new MailcapFile: default\");\n/* */ }\n/* */ }", "public FileMonitor(String file) {\n this.file = new java.io.File(file);\n t = new Timer();\n }", "public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}", "private AuctionFileHandler()\n {\n }", "public FileServer(){\n\t\tfilePath = new ConcurrentHashMap<String, String>();\n\t}", "public FileTwo() {\n System.out.println(\"File Two is constructed\");\n }", "public CvFile() {\n }", "public ContactList(String inFileName)\n {\n filename = inFileName;\n }", "public ClientFTP() {\n }", "public BrihaspatiProFile() {\n }", "public FileInputTools(SharedBuffer buffer, int bufferInputFileLength) throws Exception {\r\n\t\tsuper (buffer);\r\n\t\tthis.reset();\r\n\t\tthis.bufferInputFileLength = bufferInputFileLength;\r\n\t\tthis.initializeStream();\r\n\t}", "public FileChooser(){\n super();\n }", "public TarFile(File file) {\n this.file = file;\n }", "public fileReaderTest()\n {\n }", "public CollectingFileToucher(String[] args)\n {\n super(args);\n mFiles = new ArrayList<File>();\n mFileFilter = new JavaSoftFileToucher(args);\n/*\n {\n public boolean accept(File inFile)\n {\n return true;\n }\n };\n*/\n }", "public FileHandler(byte[] data) {\n this.data = data;\n }", "public FileLogger(String fileName){\r\n\t\tthis(fileName, false);\r\n\t}", "public TextFileEvent()\n\t{}", "public Files(String authToken){\n\t\tthis.authToken = authToken;\n\t}", "private BlobFromFile() {\n }", "public FileControl( String fileName ) {\n this.fileName = fileName;\n }", "File(String path, String type)\n {\n this.path=path;\n this.type=type;\n }", "public FileSenderThread(Socket socket, File transferFile, PrintWriter logWriter)\n {\n this.socket = socket;\n this.transferFile = transferFile;\n this.logWriter = logWriter;\n }", "public FileIOManager() {\n\t\tthis.reader = new Reader(this);\n\t\tthis.writer = new Writer(this);\n\t}", "protected YFiles(YAPIContext yctx, String func)\n {\n super(yctx, func);\n _className = \"Files\";\n //--- (generated code: YFiles attributes initialization)\n //--- (end of generated code: YFiles attributes initialization)\n }", "public SpecfileTaskHandler(IFile file, IDocument document) {\n \t\tsuper(file, document);\n \t}", "public MainframeFile (String name, byte[] buffer)\n // ---------------------------------------------------------------------------------//\n {\n this.name = name;\n this.buffer = buffer;\n }", "protected FileMonitor() {\n /* Create timer, run timer thread as daemon */\n timer = new Timer(true);\n \n /* Create timer entries */\n timerEntries = new Hashtable<String, FileMonitorTask>();\n }", "public Manager(String filePath){\n\t\tthis.filePath = filePath;\n\t}", "public PersistFile() {\n\n }", "public ServerParser() \n\t{\n\t\t m_fileNames = new ArrayList<String>();\n\t\t m_fileNames.add(\"xml/time_context_element.xml\");\n\t\t m_fileNames.add(\"xml/location_context_element.xml\");\n\t m_fileNames.add(\"xml/velocity_context_element.xml\");\n\t m_fileNames.add(\"xml/temperature_context_element.xml\");\n\t}", "public OrFileFilter()\n {\n // Nothing to do\n }", "private FileUtils()\n {\n // Nothing to do.\n }", "private FileUtils() {\n }", "private FileUtils() {\n }", "public FileLines() {\r\n\t}", "public MOTDService(BasicRelayCat inst, File f, String channel)\n\t{\n\t\tsuper(inst);\n\n\t\tif (!f.canRead())\n\t\t{\n\t\t\tthrow new RuntimeException(new FileNotFoundException());\n\t\t}\n\n\t\tthis.channel = channel;\n\t\tthis.f = f;\n\t\tprocessFile(true); // Pre-process the file - messages will not be sent,\n\t\t// thus old MOTD's won't be reposted to the list on Service restart\n\t}", "private FSArquivo(Construtor construtor) {\n nome = construtor.nome;\n tipoMedia = construtor.tipoMedia;\n base = construtor.base;\n prefixo = construtor.prefixo;\n sufixo = construtor.sufixo;\n }", "public AudioChannel() {\r\n\t\t// Default temporary location file has to be picked.\r\n\t\tString defalultFileName = getFileName(null, \"wav\");\r\n\t\tfile = new File( defalultFileName );\r\n\t}", "private ControlloFile() {\n\t}", "File(String fileName)\n {\n this.fileNameToFilterBy = fileName;\n }", "public EditFile() {\r\n\t\tsuper();\r\n\t}", "public FSLockWithShared(File baseFile) {\n file = baseFile;\n }", "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "public ClassParser(final String file_name) {\n this.file_name = file_name;\n fileOwned = true;\n }", "public DataInput( String filepath)\r\n {\r\n this.filepath = filepath;\r\n }", "public FilePlugin()\n {\n super();\n \n //create the data directory if it doesn't exist\n File dataDir = new File(FilenameUtils.dataDir);\n if(!dataDir.exists()) FilePersistenceUtils.makeDirs(dataDir);\n }", "BucsUserFile(File f,String unm,UserFileType ft)\n{\n this();\n set(f,unm,ft);\n}", "public FileMessageFactory(Session session, String filename) throws MessageFactoryException\n {\n try\n {\n _filename = filename;\n _payload = FileUtils.readFileAsString(filename);\n _session = session;\n }\n catch (Exception e)\n {\n MessageFactoryException mfe = new MessageFactoryException(e.toString(), e);\n throw mfe;\n }\n }", "public OnDemandInputStream(File file) {\n super();\n\n this.file = file;\n }", "public WorkDataFile()\n\t{\n\t\tsuper();\n\t}", "public InstrumentedFileOutputStream(FileDescriptor fdObj, String recId) {\r\n super(fdObj);\r\n this.recId = recId;\r\n }", "public File(String fileName) {\n\t\tthis(new java.io.File(fileName));\n\t}", "public FileRecord(String name)\r\n {\r\n this.name = name;\r\n }", "public FileInfo(NXTComm nxt, String fileName){\r\n\t\tthis.comm = nxt;\r\n\t\tthis.fileName = fileName;\r\n\t}", "public EventFileManager(ReviewModel reviewModel) {\r\n\t\tthis.filePath = getSelectedFile();\r\n\t\tthis.reviewModel = reviewModel;\r\n\t}", "public FileAppender()\n {\n //LogManager.getLogManager().reset();\n logger = Logger.getLogger(\"MyLog\");\n\n final Properties loggerProps = new Properties();\n try {\n loggerProps.load(FileAppender.class.getResourceAsStream(\"/logger.properties\"));\n final String filePath = loggerProps.getProperty(Utility.LOGGER_APPENDER_FILE_PATH);\n final FileHandler fh = new FileHandler(filePath);\n logger.addHandler(fh);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n }", "public NioWaler(File dir) {\n this(dir, null, 0, false);\n }" ]
[ "0.7339792", "0.7283728", "0.721841", "0.7119013", "0.7035699", "0.7029043", "0.6997149", "0.6932935", "0.69326025", "0.68347573", "0.6789298", "0.6752117", "0.6717071", "0.669017", "0.66658545", "0.6596185", "0.6585132", "0.6575003", "0.6566938", "0.64988995", "0.64985716", "0.6494164", "0.6493885", "0.64697134", "0.6462029", "0.64560336", "0.6433831", "0.6430094", "0.6425289", "0.63868827", "0.6384388", "0.6375961", "0.6374472", "0.63723415", "0.635952", "0.6291321", "0.62793493", "0.62529397", "0.6235918", "0.6233843", "0.6219989", "0.6219847", "0.6212515", "0.6207594", "0.62044466", "0.6190419", "0.618945", "0.61788875", "0.61788416", "0.6171937", "0.6148126", "0.61163217", "0.6095156", "0.60847455", "0.60694885", "0.6065571", "0.6063484", "0.6058074", "0.60487103", "0.60447323", "0.6043458", "0.60293597", "0.60249436", "0.6016867", "0.60033536", "0.5984122", "0.59798205", "0.59794414", "0.59726214", "0.5962712", "0.59560424", "0.5954715", "0.5946621", "0.5944457", "0.59437704", "0.5940914", "0.5940914", "0.5939875", "0.59140146", "0.5911673", "0.58960664", "0.5877583", "0.58716327", "0.58635026", "0.5857063", "0.58539987", "0.5838159", "0.58359915", "0.5834958", "0.58319634", "0.5829824", "0.582691", "0.58245313", "0.58165795", "0.58147967", "0.58006847", "0.5799948", "0.5788645", "0.5769948", "0.5758915" ]
0.8299434
0
Retrieves a String from the Resources
public String getString(int id) { return context.getResources().getString(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getResourceName();", "String getResource();", "private String getStringFromResource(String resourcePath) {\n String str = \"\";\n ClassLoader classloader = getClass().getClassLoader();\n if (classloader == null) {\n return str;\n }\n if (logger.isTraceEnabled()) {\n URL resourceurl = classloader.getResource(resourcePath);\n logger.trace(\"URL=\" + resourceurl.toString());\n }\n InputStream instream = classloader.getResourceAsStream(resourcePath);\n if (instream == null) {\n logger.warn(\"Could not read resource from path \" + resourcePath);\n return null;\n }\n try {\n str = stringFromInputStream(instream);\n } catch (IOException ioe) {\n logger.warn(\"Could not create string from stream: \", ioe);\n return null;\n }\n return str;\n }", "public String getString(String key) {\n\t\tif (RESOURCE_BUNDLE == null) {\n\t\t\tthrow new IllegalStateException(\"RESOURCE BUNDLE not yet initialized.\");\n\t\t}\n\t\ttry {\n\t\t\treturn RESOURCE_BUNDLE.getString(key);\n\t\t} catch (MissingResourceException e) {\n\t\t\tif (bundles != null) {\n\t\t\t\t// look in added bundles\n\t\t\t\tfor (int i = 0; i < bundles.size(); i++) {\n\t\t\t\t\tResourceBundle bundle = bundles.get(i);\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn bundle.getString(key);\n\t\t\t\t\t} catch (MissingResourceException mre) {\n\t\t\t\t\t\t// resource not found\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// key unkown\n\t\t\treturn '!' + key + '!';\n\t\t}\n\t}", "protected String getResourceString (String key)\n {\n try {\n if (_bundle != null) {\n return _bundle.getString(key);\n }\n \n } catch (MissingResourceException mre) {\n Log.warning(\"Missing translation message \" +\n \"[bundle=\" + _path + \", key=\" + key + \"].\");\n }\n return null;\n }", "public String getStringResourceById(int resourceId) {\n \treturn mContext.getResources().getString(resourceId);\n }", "public static String getResourceString(String key)\n {\n ResourceBundle bundle = XMLPlugin.getDefault().getResourceBundle();\n\n try\n {\n return bundle.getString(key);\n }\n catch (MissingResourceException e)\n {\n return key;\n }\n }", "public String getResourceName();", "public String getStringResource(LocaleResource resource){\n\t\tContext c = ConnectedApp.getContextStatic();\n\t\tswitch(resource){\t\t\n\t\tcase support_contact:\n default:\n\t\t\tint resId= c.getResources().getIdentifier(resource.toString()+\"_\"+ getCountryCode().toLowerCase(Locale.US), \"string\",\n\t\t\t\t\tc.getPackageName());\n\t\t\treturn c.getString(resId);\n\t\t}\n\t\t//return null;\n\t}", "public static String getString(String key) {\n\t\ttry {\n\t\t\treturn RESOURCE_BUNDLE.getString(key);\n\t\t} catch (MissingResourceException e) {\n\t\t\treturn '!' + key + '!';\n\t\t}\n\t}", "public static String getStringInRcse(int resourceId) {\n Resources resource = null;\n String string = null;\n try {\n resource =\n AndroidFactory.getApplicationContext().getPackageManager()\n .getResourcesForApplication(CoreApplication.APP_NAME);\n } catch (android.content.pm.PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n if (null != resource) {\n string = resource.getString(resourceId);\n } else {\n Logger.e(TAG, \"getStringInRcse(), resource is null!\");\n }\n return string;\n }", "public String getString(String key)\r\n {\r\n debug(\"getString(\" + key + \") - retrieving Key...\");\r\n String value = null;\r\n try\r\n {\r\n value = getResourceBundle().getString(key);\r\n }\r\n catch (MissingResourceException e)\r\n {\r\n System.out.println(\"java.util.MissingResourceException: \" + \"Couldn't find value for: \" + key);\r\n }\r\n if (value == null)\r\n {\r\n value = \"Could not find resource: \" + key + \" \";\r\n }\r\n debug(\"getString(\" + key + \") - value ==> \" + value);\r\n debug(\"getString(\" + key + \") - retrieving Key...Done\");\r\n return value;\r\n }", "public static String getString(String key) {\r\n\t\ttry {\r\n\t\t\treturn RESOURCE_BUNDLE.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn \"Message retrieval error, please notify an administrator.\";\r\n\t\t}\r\n\t}", "public String getString( String key )\n {\n String translation = key;\n\n if ( specificResourceBundle != null )\n {\n try\n {\n translation = specificResourceBundle.getString( key );\n }\n catch ( MissingResourceException ignored )\n {\n }\n }\n\n if ( translation.equals( key ) && globalResourceBundle != null )\n {\n try\n {\n translation = globalResourceBundle.getString( key );\n }\n catch ( MissingResourceException ignored )\n {\n }\n }\n\n return translation;\n }", "public static String getResourceString(String key) {\n \t\tResourceBundle bundle = XSDEditorPlugin.getDefault().getResourceBundle();\n \t\ttry {\n \t\t\treturn (bundle != null) ? bundle.getString(key) : key;\n \t\t} catch (MissingResourceException e) {\n \t\t\treturn key;\n \t\t}\n \t}", "public static String getString(String key) {\n try {\n return RESOURCE_BUNDLE.getString(key); // Devuelve una entrada de la tabla \n } catch (MissingResourceException e) {\n return '!' + key + '!';\n }\n }", "static private String getRawString(String key) {\n try {\n return _resources.getString(key);\n } catch (MissingResourceException mre) {\n return \"Missing resource for: \" + key;\n }\n }", "Resource getResource();", "public static String getString(JTEResourceType stringName) {\r\n rb = ResourceBundle.getBundle(PropertiesManager.getPropertiesManager().\r\n getProperty(JTEPropertyType.RESOURCE_LOCATION));\r\n return rb.getString(stringName.toString());\r\n }", "CharSequence getResourceText(int ident) {\n\t\tTypedValue tmpValue = mValue;\n\t\tint block = loadResourceValue(ident, tmpValue, true);\n\t\tif (block >= 0) {\n\t\t\tif (tmpValue.type == TypedValue.TYPE_STRING) {\n\t\t\t\treturn mStringBlocks[block].get(tmpValue.data);\n\t\t\t}\n\t\t\treturn tmpValue.coerceToString();\n\t\t}\n\t\treturn null;\n\t}", "public static String getString(String key) {\r\n\t\ttry {\r\n\t\t\treturn resourceBundle.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\tlogger.error(\"Unable to find key \" + key);\r\n\t\t\treturn '!' + key + '!';\r\n\t\t}\r\n\t}", "public static String getResourceString(String key) {\r\n\t\tResourceBundle bundle = APLDebugCorePlugin.getDefault().getResourceBundle();\r\n\t\ttry {\r\n\t\t\treturn (bundle != null) ? bundle.getString(key) : key;\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn key;\r\n\t\t}\r\n\t}", "abstract public String asString(final A resource);", "public String getString(String key, Object s1) {\n return MessageFormat.format(Platform.getResourceBundle(getBundle()).getString(key), new Object[]{s1});\n }", "public static String getString(String key) {\n\t\ttry {\n\t\t\tResourceBundle bundle = Beans.isDesignTime() ? loadBundle() : RESOURCE_BUNDLE;\n\t\t\treturn bundle.getString(key);\n\t\t} catch (MissingResourceException e) {\n\t\t\treturn key;\n\t\t}\n\t}", "public static String getString(String key) throws MissingResourceException {\n\t\treturn resourceBundle.getString(key);\n\t}", "public static String getString(Context context, String name)\n\t{\n\t\treturn context.getResources().getString(RR.getStringId(name));\n\t}", "public static String getResourceString(String key) {\n ResourceBundle bundle = IvyPlugin.getDefault().getResourceBundle();\n try {\n return (bundle != null) ? bundle.getString(key) : key;\n } catch (MissingResourceException e) {\n return key;\n }\n }", "String resourceType();", "public static String getResource(String inResName) {\n\n return stringFromInputStream(getStream(inResName));\n\n }", "public static String getResourceString (String aResourceString)\n {\n String resourceFile = ADMIN_CONSOLE_BUNDLE;\n String str = getResourceString(aResourceString, \"\");\n return str;\n }", "public static String getString(Context context,int resID){\n\t\treturn context.getResources().getString(resID);\n\t}", "protected String getResourceString(String key)\r\n\t\t\tthrows MissingResourceException {\r\n\t\treturn StripesFilter.getConfiguration().getLocalizationBundleFactory()\r\n\t\t\t\t.getErrorMessageBundle(locale).getString(key);\r\n\t\t\r\n\t}", "static private String getString(String key) {\n try {\n return removeMnemonic(_resources.getString(key));\n } catch (MissingResourceException mre) {\n return \"Missing resource for: \" + key;\n }\n }", "String getString(String bundleKey);", "public static String getResourceString(Context pAppContext, int pResourceId) {\n\n\t\treturn pAppContext.getString(pResourceId);\n\t}", "ResourceType getResource();", "protected String getString(String key) {\r\n\t\ttry {\r\n\t\t\tResourceBundle bundle = ResourceBundle.getBundle(bundleName);\r\n\t\t\treturn bundle.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public CharSequence getResourceText(int resId) {\n synchronized (this) {\n TypedValue outValue = this.mValue;\n if (!getResourceValue(resId, 0, outValue, true)) {\n return null;\n }\n CharSequence coerceToString = outValue.coerceToString();\n return coerceToString;\n }\n }", "public static String getString(final String key) {\n\t\ttry {\n\t\t\treturn ResourceBundle.getBundle(\"gradebookng\", getUserPreferredLocale()).getString(key);\n\t\t} catch (final MissingResourceException e) {\n\t\t\treturn '!' + key + '!';\n\t\t}\n\t}", "public static String getString(final String key) {\n return ResourceBundle.getBundle(BUNDLE_NAME).getString(key);\n }", "public String getLocalizedString( String name ) {\n\t\tString outString = \"\";\r\n\t\tint id = getResources().getIdentifier( name, \"string\", getPackageName() );\r\n\t\tif ( id == 0 )\r\n\t\t{\r\n\t\t\t// 0 is not a valid resource id\r\n\t\t\tLog.v(\"VrLocale\", name + \" is not a valid resource id!!\" );\r\n\t\t\treturn outString;\r\n\t\t} \r\n\t\tif ( id != 0 ) \r\n\t\t{\r\n\t\t\toutString = getResources().getText( id ).toString();\r\n\t\t\t//Log.v(\"VrLocale\", \"getLocalizedString resolved \" + name + \" to \" + outString);\r\n\t\t}\r\n\t\treturn outString;\r\n\t}", "java.lang.String getResourceUri();", "String getResourceType();", "public String getString(String abc) {\n\n int resID = getResources().getIdentifier(abc, \"string\", getPackageName());\n\n return getResources().getString(resID);\n }", "public String getString(@NonNull int stringId) {\n return getResources().getString(stringId);\n }", "@JsonIgnore\n public String getResource() {\n return this.resource;\n }", "public String get (String key)\n {\n // if this string is tainted, we don't translate it, instead we\n // simply remove the taint character and return it to the caller\n if (key.startsWith(TAINT_CHAR)) {\n return key.substring(1);\n }\n \n String msg = getResourceString(key);\n return (msg != null) ? msg : key;\n }", "public static String getRawResource(Context context, int resource) {\n String res = null;\n InputStream is = context.getResources().openRawResource(resource);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n byte[] b = new byte[1];\n try {\n while (is.read(b) != -1) {\n baos.write(b);\n }\n ;\n res = baos.toString();\n is.close();\n baos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return res;\n }", "public String getResourceName() {\n\treturn this.resrcName;\n }", "static String readResource(String name) throws IOException {\n InputStream is = Server.class.getResourceAsStream(name);\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.close();\n return value;\n }", "String getString();", "String getString();", "String getString();", "private String getLocalizedString(String key) {\n\t\treturn new StringResourceModel(key, null).getObject();\n\t}", "public static String getResourceString(String aResourceFile,\n String aResourceString,\n String aDefaultString) \n {\n Locale loc = FacesContext.getCurrentInstance().getViewRoot().getLocale();\n String result = null;\n String resourceString = \"\";\n if (aResourceString == null)\n {\n resourceString = aDefaultString.trim();\n }\n else\n {\n resourceString = aResourceString.trim();\n }\n if (resourceString.length() > 0)\n {\n try\n {\n ResourceBundle resource = ResourceBundle.getBundle(aResourceFile, loc);\n result = resource.getString(resourceString);\n }\n catch (java.util.MissingResourceException e)\n {\n result = resourceString;\n }\n }\n\n return result;\n }", "String getString(String bundleKey, Locale locale);", "public String getString(String key) {\n try {\n return NbBundle.getBundle(bundleClass).getString(key);\n } catch (MissingResourceException e) {\n return null;\n }\n }", "public String getRes(){\r\n \r\n String resName = \"\";\r\n return resName;\r\n }", "public String getResourceName() {\n return this.resourceName;\n }", "public static String getStringByRId(int R_ID) {\n return App.getAppContext().getResources().getString(R_ID);\n }", "public String getResourceName(String ref){\n\t\treturn getResourceName(ref, true);\n\t}", "String getString(String bundleKey, String bundleBaseName);", "public java.lang.String getResources(int index) {\n return resources_.get(index);\n }", "public String getString();", "public static String getMessageResourceString(String key, String lang) {\n\t\tif(lang == null) {\n\t\t\tlang = \"en\";\n\t\t}\n\t\t\n\t\tResourceBundle bundle = ResourceBundle.getBundle(Constants.RESOURCE_BUNDLE + \"_\" + lang);\t\t\n\t\t\n\t\tString text = null;\n\t\ttry {\n\t\t\ttext = bundle.getString(key);\n\t\t} catch (MissingResourceException e) {\n\t\t\ttext = \"?? key \" + key + \" not found ??\";\n\t\t}\n\t\t\n\t\treturn text;\n\t}", "String getString(String bundleKey, String bundleBaseName, Locale locale);", "public String getResourceName() {\n return resourceName;\n }", "public java.lang.String getResources(int index) {\n return resources_.get(index);\n }", "private String readResource(String name) throws IOException {\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n try (InputStream in = cl.getResourceAsStream(name)) {\n return new String(EncodingUtils.readAll(in), StandardCharsets.US_ASCII);\n }\n }", "public String getS(String name){\t\n\t\t\n\t\tString packageName = activity.getPackageName();\n\t\tint resId = activity.getResources().getIdentifier(name, \"string\", packageName);\n\t\treturn activity.getString(resId);\n\t\t \n\t}", "public String getResourceName(int resId) {\n String nativeGetResourceName;\n synchronized (this) {\n ensureValidLocked();\n nativeGetResourceName = nativeGetResourceName(this.mObject, resId);\n }\n return nativeGetResourceName;\n }", "public static String getStringValue(Resource r, Property p) {\n return getStringValue(r, p, null);\n }", "public String getResourceName() {\n return resourceName;\n }", "public String _s(int res_id) {\n\t\treturn mContext.getResources().getString(res_id);\n\t}", "private String getResourceName(String resourceId)\n/* */ {\n/* 1165 */ HashMap<String, String> managedObject = (HashMap)this.managedObjectVsResourceIdMap.get(resourceId);\n/* 1166 */ StringBuffer toReturn = new StringBuffer();\n/* 1167 */ String type = (String)managedObject.get(\"TYPE\");\n/* 1168 */ if ((!\"HAI\".equals(type)) && (!this.monitors.contains(resourceId)))\n/* */ {\n/* 1170 */ toReturn.append(\"\\\"\").append(getParentResourceDisplayname(resourceId)).append(\"\\\"\").append(\",\");\n/* */ }\n/* 1172 */ else if ((!\"HAI\".equals(type)) && (this.monitors.contains(resourceId)))\n/* */ {\n/* 1174 */ toReturn.append(\",\");\n/* */ }\n/* 1176 */ toReturn.append(\"\\\"\").append((String)managedObject.get(\"DISPLAYNAME\")).append(\"\\\"\");\n/* 1177 */ return toReturn.toString();\n/* */ }", "public String getStringFile(){\n return fileView(file);\n }", "public String getResourceType( )\r\n {\r\n return _strResourceType;\r\n }", "String getResourceID();", "protected String getResourceName() {\n\t\treturn resourceName;\n\t}", "public String getResourceName() {\n return getBaseName() + getNameSuffix();\n }", "String getLocalization();", "public static String getString(String key, ResourceBundle resourceBundle) {\n if (resourceBundle == null) {\n return KEY_NOT_FOUND_PREFIX + key + KEY_NOT_FOUND_SUFFIX;\n }\n log.debug(\"Getting key\" + key + \"in\" + resourceBundle.toString()); //$NON-NLS-1$ //$NON-NLS-2$\n try {\n return resourceBundle.getString(key);\n } catch (MissingResourceException e) {\n return KEY_NOT_FOUND_PREFIX + key + KEY_NOT_FOUND_SUFFIX;\n }\n }", "public String getString() {\n\t\treturn renderResult(this._result).trim();\n\t}", "public static String getResourceString (String aResourceKey,\n String aDefaultValue)\n {\n String result = null;\n String resourceFile = ADMIN_CONSOLE_BUNDLE;\n result = getResourceString(resourceFile, aResourceKey, aDefaultValue);\n return result;\n }", "public static String s(String key) {\n\t\treturn RES.getString(key);\n\t}", "String getCharacterVDBResource(String resourcePath) throws Exception;", "public static String get(String property) {\n\t\tConfigManager cg = getConfigManager();\n\t\tString returnValue = null;\n\t\tif (cg != null) {\n\t\t\treturnValue = cg.getConfig().getString(property);\n\t\t}\n\t\treturn returnValue;\n\t\t\n//\t\tif (RESOURCE_BUNDLE != null) {\n//\t\t\t// at this point I don't want it to return errors so lets wrap it in a try\n//\t\t\ttry {\n//\t\t\t\treturn RESOURCE_BUNDLE.getString(property);\n//\t\t\t} catch (Exception e) {\n//\t\t\t\treturn \"\";\n//\t\t\t}\n//\t\t}\n//\t\t// may want to do some other stuff here to possibly lookup other bundles for different classes\n//\t\t// or something or have global, class, application specific examples\n//\t\treturn \"\";\n\t}", "String encodeResourceToString(IBaseResource theResource) throws DataFormatException;", "@Override\n\tpublic String getResource() {\n\t\ttry {\n\t\t\treturn (new File(\"./resources/images/mageTowerCard.png\")).getCanonicalPath();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\treturn \"\";\n\t\t}\n\t}", "@Override\n public String getString(String key) {\n return getStringFromBundle(key, BASE_STRING) + \" \" + random.nextInt(RANDOM_INT_BOUND);\n }", "public String getString(String key);", "private String getDataFromClassResourceFile(String file) {\n\n StringBuffer sb = new StringBuffer();\n String str = \"\";\n\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(file);\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n if (is != null) {\n while ((str = reader.readLine()) != null) {\n sb.append(str + \"\\n\");\n }\n }\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (Throwable ignore) {\n }\n }\n return sb.toString();\n\n }", "protected TextResource getTextResourceByName(String key) throws JspException{\n\t\ttry{\n\t\t\tList<TextResource> resources = getResourceDataService().getTextResourcesByProperty(TextResource.PROP_NAME, key);\n\t\t\tif (resources==null || resources.size()==0)\n\t\t\t\treturn null;\n\t\t\treturn resources.get(0);\n\t\t}catch(ASGRuntimeException e){\n\t\t\tlog.error(\"getTextResourceByName(\"+key+\")\", e);\n\t\t\tthrow new JspException(e);\n\t\t}\n\t}", "public static String asString(String resourcePath) {\n\t\ttry {\n\t\t\treturn StreamUtils.copyToString(new DefaultResourceLoader().getResource(resourcePath).getInputStream(),\n\t\t\t\t\tCharset.forName(\"UTF-8\"));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tthrow new RuntimeException(\"Can not load resource:\" + resourcePath, e);\n\t\t}\n\t}", "private static String getString( final String id ) {\n return Util.getString(I18N_PREFIX + id);\n }", "public static String getString(Tag tag){\n makeInstance();\n return settingsFile.getString(tag);\n }", "String getString(String key);", "public static String getFileContentsAsString(String filename) {\n\n // Java uses Paths as an operating system-independent specification of the location of files.\n // In this case, we're looking for files that are in a directory called 'data' located in the\n // root directory of the project, which is the 'current working directory'.\n final Path path = FileSystems.getDefault().getPath(\"Resources\", filename);\n\n try {\n // Read all of the bytes out of the file specified by 'path' and then convert those bytes\n // into a Java String. Because this operation can fail if the file doesn't exist, we\n // include this in a try/catch block\n return new String(Files.readAllBytes(path));\n } catch (IOException e) {\n // Since we couldn't find the file, there is no point in trying to continue. Let the\n // user know what happened and exit the run of the program. Note: we're only exiting\n // in this way because we haven't talked about exceptions and throwing them in CS 126 yet.\n System.out.println(\"Couldn't find file: \" + filename);\n System.exit(-1);\n return null; // note that this return will never execute, but Java wants it there.\n }\n }", "public String readResource(String resourcePath) throws IOException {\n InputStream resourceStream = this.getClass().getResourceAsStream(resourcePath);\n StringBuilder builder = new StringBuilder();\n int ch;\n while ((ch = resourceStream.read()) != -1) {\n builder.append((char) ch);\n }\n return builder.toString();\n }" ]
[ "0.73807293", "0.72941047", "0.71567196", "0.71270585", "0.7073078", "0.70643026", "0.7001403", "0.69953245", "0.6959725", "0.69559914", "0.69480765", "0.6935844", "0.6871656", "0.6864138", "0.6830891", "0.68085796", "0.680083", "0.67766833", "0.6755862", "0.6742986", "0.67428714", "0.67301977", "0.6706186", "0.6697613", "0.667013", "0.66334957", "0.66297525", "0.6593748", "0.65914077", "0.65575325", "0.65564114", "0.6548949", "0.6540971", "0.65245277", "0.65146047", "0.6496557", "0.6454857", "0.64542735", "0.64200604", "0.6412538", "0.6410395", "0.6399428", "0.63890314", "0.6385273", "0.6380727", "0.636981", "0.63653904", "0.6361343", "0.6360924", "0.6357154", "0.6351312", "0.6340822", "0.6340822", "0.6340822", "0.6340535", "0.63171685", "0.6315613", "0.6301154", "0.6292511", "0.62862533", "0.6268652", "0.62686235", "0.626736", "0.626081", "0.62284565", "0.6223161", "0.62192655", "0.62184924", "0.6200409", "0.61991286", "0.6197165", "0.618848", "0.6186953", "0.6184191", "0.618215", "0.6181354", "0.6180121", "0.6178694", "0.61653954", "0.6163149", "0.6142087", "0.6127572", "0.61132896", "0.60963553", "0.60890734", "0.6086386", "0.6054095", "0.60540146", "0.60430443", "0.60425353", "0.6035139", "0.6034837", "0.6025897", "0.6018769", "0.6013801", "0.6001937", "0.6001389", "0.5985643", "0.5983683", "0.59734917" ]
0.6956176
9
Retrieves a color as Integer from the Resources
public int getColor(int id) { return ContextCompat.getColor(context, id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "public Integer getColor() {\n\t\treturn color;\n\t}", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "public int getColor();", "public int getColor();", "@ColorInt\n public int getColor() {\n return mColor;\n }", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "static int getColor(Context context, @AttrRes int color) {\n TypedValue tv = new TypedValue();\n context.getTheme().resolveAttribute(color, tv, true);\n return tv.data;\n }", "public int getColor()\r\n {\r\n return m_iColor;\r\n }", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor() {\n return color;\n }", "public int getColor() {\n \t\treturn color;\n \t}", "@ColorInt\n public int getColor() {\n return Color.HSVToColor(mColorHSV);\n }", "public int getColor() {\n return this.color;\n }", "public int getColor() {\n\t\treturn getMappedColor(color);\n\t}", "int getColour();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public int getColorId() {\n return colorId;\n }", "public short getColor()\n {\n return font.getColorPaletteIndex();\n }", "public Integer getColor(int resId){\n if(Build.VERSION.SDK_INT >= 23) {\n return getRootView().getResources().getColor(resId, null);\n }\n return getRootView().getResources().getColor(resId);\n }", "public short getColor() {\n\t\treturn this.color;\n\t}", "public static int ColorToInt(Color c) {\n\t\treturn android.graphics.Color.argb(cap((int) (c.getAlpha() * 255), 0, 255), cap((int) (c.getRed() * 255), 0, 255), cap((int) (c.getGreen() * 255), 0, 255), cap((int) (c.getBlue() * 255), 0, 255));\n\t}", "int getAsInt32Color(int a) {\r\n\t\tint r = (int) (x * 255);\r\n\t\tint g = (int) (y * 255);\r\n\t\tint b = (int) (z * 255);\r\n\t\tif (r > 255) {\r\n\t\t\tr = 255;\r\n\t\t}\r\n\t\tif (g > 255) {\r\n\t\t\tg = 255;\r\n\t\t}\r\n\t\tif (b > 255) {\r\n\t\t\tb = 255;\r\n\t\t}\r\n\r\n\t\tif (r < 0) {\r\n\t\t\tr = 0;\r\n\t\t}\r\n\t\tif (g < 0) {\r\n\t\t\tg = 0;\r\n\t\t}\r\n\t\tif (b < 0) {\r\n\t\t\tb = 0;\r\n\t\t}\r\n\r\n\t\treturn (b | g << 8 | r << 16 | a << 24);\r\n\t}", "public Integer convertRubiksColorToInteger(RubiksColor color) {\n return rubiksColorMap.get(color);\n }", "public String getColorNum() {\n return (String)getAttributeInternal(COLORNUM);\n }", "static public int getRed(int color) {\n return (color >> 16) & 0xff;\n }", "public String getColor() {\n return colorID;\n }", "public Integer getColorCd() {\n\t\treturn colorCd;\n\t}", "public int getIconCustomColor() {\n int value;\n try {\n String[] splits = _icon.split(\"\\\\|\");\n value = Integer.valueOf(splits[3]);\n } catch (Exception e) {\n value = 0;\n }\n return value;\n }", "public int getIntColor(final double value) {\n final Color color = getColor(value);\n return ((byte) (color.getOpacity() * 255) << 24) + ((byte) (color.getRed() * 255) << 16)\n + ((byte) (color.getGreen() * 255) << 8) + ((byte) (color.getBlue() * 255));\n }", "public int getColor() {\r\n return Color;\r\n }", "public int getRgbColor()\n {\n return _rgbColor;\n }", "private static int get(int colour) {\r\n\t\t// If the color is incorrect (less than 0) the color is set invisible\r\n\t\tif (colour < 0) {\r\n\t\t\treturn 255;\r\n\t\t}\r\n\r\n\t\t// taking each number of the argument\r\n\t\tint r = colour / 100 % 10;\r\n\t\tint g = colour / 10 % 10;\r\n\t\tint b = colour % 10;\r\n\r\n\t\t// returning the 6*6*6 color\r\n\t\treturn r * 6 * 6 + g * 6 + b;\r\n\t}", "public native int getNumberColors() throws MagickException;", "Integer getTxtColor();", "public int getColorID(int id) {\n return getResources().getColor(id);\n }", "java.awt.Color getColor();", "public String getColorId() {\n return colorId;\n }", "@SuppressLint(\"NewApi\")\n public int color(int res){\n if (Build.VERSION.SDK_INT < 23){\n return application.getResources().getColor(res);\n }\n else{\n return application.getResources().getColor(res, null);\n }\n }", "public native int getColors() throws MagickException;", "public int getColorAsInt(String colorValue) throws NumberFormatException\n {\n if (colorValue == null)\n throw new NullPointerException(\"colorValue may not be null\");\n \n if (namedColors != null)\n {\n Integer value = namedColors.get(colorValue);\n if (value != null)\n return value.intValue();\n }\n \n return Integer.decode(colorValue).intValue();\n }", "public int getColor(ItemStack par1ItemStack)\n {\n \n NBTTagCompound nbttagcompound = par1ItemStack.getTagCompound();\n\n if (nbttagcompound == null)\n {\n return 4984077;\n }\n else\n {\n NBTTagCompound nbttagcompound1 = nbttagcompound.getCompoundTag(\"display\");\n return nbttagcompound1 == null ? 4984077 : (nbttagcompound1.hasKey(\"color\") ? nbttagcompound1.getInteger(\"color\") : 4984077);\n }\n \n }", "public int getRed() {\n\t\treturn 100;\n\t}", "public static int getRed(int color) {\n return (color & 0x00FF0000) >> 16;\n }", "public RGBColor getColor(){\r\n return this._color;\r\n }", "@ColorInt\n public static int fetchPrimaryColor(Context context) {\n TypedValue typedValue = new TypedValue();\n\n TypedArray a =\n context.obtainStyledAttributes(typedValue.data, new int[]{R.attr.colorPrimary});\n int color = a.getColor(0, ContextCompat.getColor(context, android.R.color.holo_blue_light));\n\n a.recycle();\n\n return color;\n }", "public int color() {\n\t\treturn color;\n\t}", "public final int getR() {\n\t\treturn red;\n\t}", "public Color getColor();", "public Color getColor();", "public Color getColor();", "int getTint(){\n return getPercentageValue(\"tint\");\n }", "public int getColorIndex() {\n return colorIndex;\n }", "public Color getColor() { return color.get(); }", "String getColor();", "public static int getColor(ItemStack stack) {\n\t\tString type = StackUtils.getType(stack, TAG_FULL_COLOR);\n\t\tif (type == \"BYTE\") return -1;\n\t\telse return StackUtils.get(stack, -1, TAG_COLOR);\n\t}", "public int _c(int res_id) {\n\t\treturn mContext.getResources().getColor(res_id);\n\t}", "public String getColor() {\n\t\t\r\n\t final String uri = colorsBeUrl+\"/colors_be/getColor\";\r\n\t \r\n\t //TODO: Autowire the RestTemplate in all the examples\r\n\t RestTemplate restTemplate = new RestTemplate();\r\n\t \r\n\t String result = restTemplate.getForObject(uri, String.class);\r\n\t System.out.println(result);\r\n\t return result;\r\n\t \r\n\t}", "public GameColor getColor();", "int getNumColors();", "private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }", "public Color getColor() {\n return color;\r\n }", "public String getColor(){\n\t\treturn color;\n\t}", "public String getColor(){\r\n return color;\r\n }", "int getRed(){\n return getPercentageValue(\"red\");\n }", "int getHighLightColor();", "public int getRed(Object inData) {\n if (is_sRGB) {\n boolean needAlpha = (supportsAlpha && isAlphaPremultiplied);\n int alp = 0;\n int red = 0;\n switch (transferType) {\n case DataBuffer.TYPE_BYTE:\n byte bdata[] = (byte[])inData;\n red = bdata[0] & 0xff;\n if (needAlpha) {\n alp = bdata[numColorComponents] & 0xff;\n }\n break;\n case DataBuffer.TYPE_USHORT:\n short sdata[] = (short[])inData;\n red = sdata[0]&0xffff;\n if (needAlpha) {\n alp = sdata[numColorComponents] & 0xffff;\n }\n break;\n case DataBuffer.TYPE_INT:\n int idata[] = (int[])inData;\n red = idata[0];\n if (needAlpha) {\n alp = idata[numColorComponents];\n }\n break;\n default:\n throw new\n UnsupportedOperationException(\"This method has not \"+\n \"been implemented for transferType \" + transferType);\n }\n if (nBits[0] != 8) {\n int shift = nBits[0] - 8;\n red = ((shift > 0) \n ? (red>>shift)\n : (red<<(-shift)));\n }\n if (needAlpha) {\n return (alp != 0)\n ? (int) (red*((1<<nBits[numColorComponents])-1.f)/alp)\n : 0;\n }\n else {\n return red;\n }\n }\n // REMIND: possible grayscale optimization here\n // else if (colorSpaceType == ColorSpace.TYPE_GRAY) {\n // return getGray(inData);\n // }\n\n // Not TYPE_GRAY or TYPE_RGB ColorSpace\n int pixel[];\n if (inData instanceof int[]) {\n pixel = (int[])inData;\n } else {\n pixel = DataBuffer.toIntArray(inData);\n if (pixel == null) {\n throw new UnsupportedOperationException(\"This method has not been \"+\n \"implemented for transferType \" + transferType);\n }\n }\n\n // Normalize the pixel in order to convert it\n float[] norm = getNormalizedComponents(pixel, 0, null, 0);\n // Note that getNormalizedComponents returns non-premultiplied values\n float[] rgb = colorSpace.toRGB(norm);\n return (int) (rgb[0] * 255.0f);\n }", "public static int colorStringToInt(String color) {\r\n\t\tswitch (color.toUpperCase()) {\r\n\t\tcase \"MAGENTA\":\r\n\t\t\treturn 16711935;\r\n\t\tcase \"BLACK\":\r\n\t\t\treturn 0;\r\n\t\tcase \"WHITE\":\r\n\t\t\treturn 16767215;\r\n\t\tcase \"ORANGE\":\r\n\t\t\treturn 16762880;\r\n\t\tcase \"CYAN\":\r\n\t\t\treturn 65535;\r\n\t\tcase \"PINK\":\r\n\t\t\treturn 16756655;\r\n\t\tdefault:\r\n\t\t\tthrow new IllegalStateException(\"il colore inserito non è corretto\");\r\n\t\t}\r\n\t}", "public String getColor() {\r\n return color;\r\n }", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public IsColor getColor() {\n\t\treturn ColorBuilder.parse(getColorAsString());\n\t}", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public int getmColorId() {\n return mColorId;\n }", "public Color getColor() {\n return color;\n }", "public String getColor(){\n return this._color;\n }", "public String getColor()\n {\n return this.color;\n }", "public static int color(Context context) {\n\t\tSharedPreferences prefs = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tint bg = prefs.getInt(\"menu.background\", 0x7c000000);\n\t\tint alpha =\t((bg>>24)&0xFF);\n\t\tint red = \t((bg>>16)&0xFF);\n\t\tint green = ((bg>>8)&0xFF);\n\t\tint blue = \t((bg)&0xFF);\n\t\tdouble lum = ((0.2126*(red)+0.7152*(green)+0.0722*(blue))*((alpha)/255.0))/255.0;\n\t\tif(lum>0.35)\n\t\t\treturn 0xFF000000;//black\n\t\telse return 0xFFFFFFFF;//white\n\t}", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public String obtenColor() {\r\n return color;\r\n }", "public String getColor() {\n return this.color;\n }", "public Color getColor() {\n \t\treturn color;\n \t}", "public RMColor getColor()\n {\n return getStyle().getColor();\n }", "public String getColor() { \n return color; \n }", "public final String getColorCode() {\n\t\treturn colorCode;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public static int getColorByClientID(int cid)\r\n\t{\r\n\t\tswitch(cid%8)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t\treturn (int)Long.parseLong(\"ffff0000\",16);\r\n\t\t\tcase 1:\r\n\t\t\t\treturn (int)Long.parseLong(\"ff00ff00\",16); \r\n\t\t\tcase 2:\r\n\t\t\t\treturn (int)Long.parseLong(\"ff0000ff\",16); \r\n\t\t\tcase 3:\r\n\t\t\t\treturn (int)Long.parseLong(\"ffffff00\",16); \r\n\t\t\tcase 4:\r\n\t\t\t\treturn (int)Long.parseLong(\"ffff00ff\",16); \r\n\t\t\tcase 5:\r\n\t\t\t\treturn (int)Long.parseLong(\"ff00ffff\",16); \r\n\t\t\tcase 6:\r\n\t\t\t\treturn (int)Long.parseLong(\"ffffffff\",16);\r\n\t\t\tcase 7:\r\n\t\t\t\treturn (int)Long.parseLong(\"ff000000\",16);\r\n\t\t\tdefault:\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public static int getColor(int r, int g, int b) {\r\n return 0xff000000 | (r << 16) | (g << 8) | b;\r\n }" ]
[ "0.7637121", "0.70607483", "0.70405614", "0.69255495", "0.69255495", "0.6897822", "0.6862999", "0.6860524", "0.68253446", "0.6797276", "0.6797276", "0.67731386", "0.6746452", "0.6725443", "0.67210466", "0.66924924", "0.6653618", "0.6645843", "0.6645843", "0.6645843", "0.6645843", "0.6645843", "0.6607171", "0.65933967", "0.65932953", "0.65783685", "0.657021", "0.6552896", "0.6544484", "0.65441126", "0.6514143", "0.650342", "0.64892006", "0.6471855", "0.6436586", "0.643257", "0.638791", "0.63670653", "0.63537", "0.6351398", "0.63112843", "0.62802047", "0.62763876", "0.62649417", "0.62585646", "0.6245151", "0.62360984", "0.6223971", "0.6220666", "0.6211534", "0.61964214", "0.61921024", "0.6174696", "0.615925", "0.615925", "0.615925", "0.61580485", "0.61336964", "0.6132921", "0.61279523", "0.6087283", "0.6084242", "0.60836303", "0.60803366", "0.6079475", "0.6071514", "0.6037856", "0.6036736", "0.60363287", "0.6036323", "0.6025736", "0.6020477", "0.6018818", "0.60104907", "0.60085547", "0.60085547", "0.5993602", "0.59859234", "0.59859234", "0.59859234", "0.59859234", "0.59859234", "0.59859234", "0.59859234", "0.59859234", "0.5979654", "0.59696615", "0.5968975", "0.5959743", "0.5958643", "0.5955814", "0.5947247", "0.593807", "0.5931918", "0.5929518", "0.59293795", "0.5928885", "0.59280694", "0.59280694", "0.5927066", "0.59269583" ]
0.0
-1
Created by lenovo on 2017/8/20.
public interface HallDao { Hall queryHallById(int hallId); boolean deleteById(int hallId); boolean addHall(Hall hall); int count(); List<Hall> findAll(@Param("offset")int offset, @Param("size")int size); boolean updateHall(Hall hall); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void init() {\n\n }", "private void poetries() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo6081a() {\n }", "private void init() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo4359a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n }", "private void kk12() {\n\n\t}", "public void mo55254a() {\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void m50366E() {\n }", "Petunia() {\r\n\t\t}", "private void init() {\n\n\n\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "static void feladat7() {\n\t}", "protected void onFirstUse() {}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "static void feladat9() {\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void onPostInit()\n {\n\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public contrustor(){\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.59105635", "0.5841549", "0.56869626", "0.5598404", "0.55433136", "0.5533411", "0.5510873", "0.5510873", "0.5450131", "0.54134476", "0.5413194", "0.54033566", "0.5392615", "0.538776", "0.5378038", "0.5371619", "0.535515", "0.53543025", "0.53495955", "0.53463024", "0.53428787", "0.53216743", "0.53121036", "0.53121036", "0.52991456", "0.5288625", "0.5284528", "0.5284528", "0.5284528", "0.5284528", "0.5284528", "0.5284528", "0.5284528", "0.5274622", "0.5268445", "0.52679276", "0.5265503", "0.5264563", "0.5254189", "0.5252152", "0.52495736", "0.5249268", "0.5235489", "0.52316767", "0.5227004", "0.5216394", "0.5216394", "0.5216394", "0.5216394", "0.5216394", "0.5216394", "0.52138317", "0.5210221", "0.5199017", "0.51843965", "0.51609296", "0.51609296", "0.51609296", "0.51609296", "0.51609296", "0.5154124", "0.5154124", "0.5146323", "0.5140498", "0.51350766", "0.5129457", "0.5117747", "0.51157445", "0.51088375", "0.5097965", "0.5097965", "0.50936466", "0.50906795", "0.508552", "0.508552", "0.508552", "0.5080335", "0.50765514", "0.50765514", "0.50765514", "0.50684357", "0.5065478", "0.50633496", "0.5057366", "0.50543076", "0.50534594", "0.5052699", "0.5051697", "0.5051371", "0.50505984", "0.5048957", "0.50459397", "0.5043798", "0.50386107", "0.50386107", "0.50386107", "0.5033655", "0.5032256", "0.5031986", "0.5020175", "0.5018653" ]
0.0
-1
check if moving player_cell by vector collides with any nearby cell or hostile pherome
private boolean collides(Cell player_cell, Point vector, Set<Cell> nearby_cells, Set<Pherome> nearby_pheromes) { Iterator<Cell> cell_it = nearby_cells.iterator(); Point destination = player_cell.getPosition().move(vector); while (cell_it.hasNext()) { Cell other = cell_it.next(); if ( destination.distance(other.getPosition()) < 0.5*player_cell.getDiameter() + 0.5*other.getDiameter() + 0.00011) return true; } Iterator<Pherome> pherome_it = nearby_pheromes.iterator(); while (pherome_it.hasNext()) { Pherome other = pherome_it.next(); if (other.player != player_cell.player && destination.distance(other.getPosition()) < 0.5*player_cell.getDiameter() + 0.0001) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean collides(Rectangle player) {\r\n return player.overlaps(boundsTop) || player.overlaps(boundsBot);\r\n }", "private void processPlayerCollision() {\n\t\t// This starts by converting the player vertices to global positions.\n\t\tVector3 playerGlobalPosition = player.getGlobalPositionVector();\n\t\tVector3 playerGlobalRotation = player.getGlobalRotationVector();\n\n\t\tVector3 playerVertex1 = new Vector3(player.hitboxPoints[0], player.hitboxPoints[1]);\n\t\tVector3 playerVertex2 = new Vector3(player.hitboxPoints[2], player.hitboxPoints[3]);\n\t\tVector3 playerVertex3 = new Vector3(player.hitboxPoints[4], player.hitboxPoints[5]);\n\t\t// TODO: Confirm this is correct.\n\t\tVector3 playerVertex1Global = new Vector3(playerVertex1.x * -Math.sin(Math.toRadians(playerGlobalRotation.z)), playerVertex1.y * Math.cos(Math.toRadians(playerGlobalRotation.z))).add(playerGlobalPosition);\n\t\tVector3 playerVertex2Global = new Vector3(playerVertex2.x * -Math.sin(Math.toRadians(playerGlobalRotation.z)), playerVertex2.y * Math.cos(Math.toRadians(playerGlobalRotation.z))).add(playerGlobalPosition);\n\t\tVector3 playerVertex3Global = new Vector3(playerVertex3.x * -Math.sin(Math.toRadians(playerGlobalRotation.z)), playerVertex3.y * Math.cos(Math.toRadians(playerGlobalRotation.z))).add(playerGlobalPosition);\n\n\t\tfor (AsteroidsAsteroid a : asteroids) {\n\t\t\t// If any of the vertices collide and the player is alive, lose a life.\n\t\t\tif ((a.collides(playerVertex1Global) || a.collides(playerVertex2Global) || a.collides(playerVertex3Global)) && player.isShowing()) {\n\t\t\t\tloseLife();\n\t\t\t}\n\t\t}\n\t}", "public boolean willBoxesCollide(Unit player, float deltaX, float deltaY) {\n\tScene currentScene = WorldMap.getInstance().getCurrentScene();\n\tfor (Obstacle obstacle : currentScene.getObstacleList()) {\n\t if (player.collisionBetweenBoxes(deltaX, deltaY, obstacle) && player.getPosZ() < obstacle.getProtrusionHeight())\n\t\treturn true;\n\t}\n\t \n\treturn false;\n }", "private boolean isInDoor(Entity player){\n Sprite playerSprite= (Sprite) player.getComponent(Sprite.class);\n for(int i = 0; i<Main.colliderWallMap.size(); i++){\n if(Main.colliderWallMap.get(i).intersects(playerSprite.getValue().getX(), playerSprite.getValue().getY(),playerSprite.getValue().getWidth(), playerSprite.getValue().getHeight())){\n return false;\n }\n }\n\n return true;\n }", "private boolean playerDetection() {\n\t\tAxisAlignedBB axisalignedbb = new AxisAlignedBB(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).grow(DETECTION_RANGE);\n\t\tList<EntityPlayer> list = world.getEntitiesWithinAABB(EntityPlayer.class, axisalignedbb);\n\n\t\treturn !list.isEmpty();\n\t}", "public boolean playerCollide(Player player) {\n return RectF.intersects(new RectF(this.rect), player.getRect());\n }", "public void checkPlayerCollisions() {\n\t\t//Iterate over the players\n\t\tfor (PlayerFish player : getPlayers()) {\n\t\t\t//Get collidables parallel.\n\t\t\tcollidables.parallelStream()\n\t\t\t\n\t\t\t//We only want the collidables we actually collide with\n\t\t\t.filter(collidable -> player != collidable && player.doesCollides(collidable))\n\t\t\t\n\t\t\t//We want to do the for each sequentially, otherwise we get parallelism issues\n\t\t\t.sequential()\n\t\t\t\n\t\t\t//Iterate over the elements\n\t\t\t.forEach(collidable -> {\n\t\t\t\tplayer.onCollide(collidable);\n\t\t\t\tcollidable.onCollide(player);\n\t\t\t});\n\t\t}\n\t}", "private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tif(dragon1 != null && (left == dragon1 || right == dragon1)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t\tif(dragon2 != null && (left == dragon2 || right == dragon2)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}", "public boolean colidesWith(Entity e, boolean player){\n\t\tthis.setBounds((int) x, (int)y, Tile.size, Tile.size);\n\t\tif(player)\n\t\t\te.setBounds((int) (main.getCamOfSetX() + e.getPx()), (int) (main.getCamOfSetY() + e.getPy()), (int)e.getWidth(), (int)e.getHeight());\n\t\telse\n\t\t\te.setBounds((int)e.getX(), (int)e.getY(), (int)e.getWidth(), (int)e.getHeight());\n\t\treturn this.intersects(e);\n\t}", "private void checkRegTileCollisions(float deltaTime) {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\t//overlap between player and tile\n\t\t\t\n\t\t\t//experiment with these values to get close to perfect collisions *************************\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t\n\t\t\t\t\t//check y - collisions\n\t\t\t\t\tif(player.position.y > tile.position.y + (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y + 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f; //prev. optimal was .3\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.y < tile.position.y - (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y - 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//check x - collision\n\t\t\t\t\tif(player.position.x > tile.position.x + (tile.bounds.width / 2) + correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x + 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.x < tile.position.x - (tile.bounds.width / 2) - correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x - 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\trecheckTileCollisions(); //fix frame-skipping \n\t}", "private void intersectPlayerWithWall(Entity entity){\n player.setXVelocity(0);\n player.setYVelocity(0);\n\n //sets the x and y pos to be the correct wall placment, will need to know where the wall is relative to the player to do this\n\n int wallCenterYPos = (entity.getY() + (entity.getHeight() / 2));\n int playerCenterYPos = (player.getY() + (player.getHeight() / 2));\n int wallCenterXPos = (entity.getX() + (entity.getWidth() / 2));\n int playerCenterXPos = (player.getX() + (player.getWidth() / 2));\n\n //uses Minkowski sum\n\n float wy = (entity.getWidth() + player.getWidth()) * (wallCenterYPos - playerCenterYPos);\n float hx = (entity.getHeight() + player.getHeight()) * (wallCenterXPos - playerCenterXPos);\n\n if (wy > hx) {\n if (wy > -hx) {\n //bottom of player hitting wall\n //push the player off the wall so the collision ends\n player.setY(entity.getY() - player.getHeight());\n return;\n\n } else {\n //left of wall\n //push the player off the wall so the collision ends\n player.setX(entity.getX() + entity.getWidth());\n return;\n }\n } else {\n if (wy > -hx) {\n //right of wall\n //push the player off the wall so the collision ends\n player.setX(entity.getX() - player.getWidth());\n return;\n } else {\n //top of player hitting wall\n //push the player off the wall so the collision ends\n player.setY(entity.getY() + entity.getHeight());\n return;\n }\n\n }\n }", "void checkHandleContactWithPlayer() {\n Player curPlayer = this.mainSketch.getCurrentActivePlayer();\n\n if (this.doesAffectPlayer) {\n // boundary collision for player\n if (contactWithCharacter(curPlayer)) { // this has contact with non-player\n if (!this.charactersTouchingThis.contains(curPlayer)) { // new collision detected\n curPlayer.changeNumberOfVerticalBoundaryContacts(1);\n this.charactersTouchingThis.add(curPlayer);\n }\n curPlayer.handleContactWithVerticalBoundary(this.startPoint.x);\n\n } else { // this DOES NOT have contact with player\n if (this.charactersTouchingThis.contains(curPlayer)) {\n curPlayer.setAbleToMoveRight(true);\n curPlayer.setAbleToMoveLeft(true);\n curPlayer.changeNumberOfVerticalBoundaryContacts(-1);\n this.charactersTouchingThis.remove(curPlayer);\n }\n }\n }\n }", "@Override\n public boolean isCollided(gameObject obj){\n return Rect.intersects(obj.getastRect(), getRectplayer1())||\n Rect.intersects(obj.getastRect(), getRectplayer2()) ||\n Rect.intersects(obj.getastRect(), getRectplayer3()) ||\n Rect.intersects(obj.getastRect(), getRectplayer4());\n }", "protected void checkEntityCollisions(long time) {\n\t\tRectangle2D.Float pla1 = player1.getLocationAsRect();\n\t\tRectangle2D.Float pla2 = player2.getLocationAsRect();\n\t\tfor(int i = 0; i < ghosts.length; i++)\n\t\t{\n\t\t\tGhost g = ghosts[i];\n\t\t\t\n\t\t\tif(g.isDead())\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tRectangle2D.Float ghRect = g.getLocationAsRect();\n\t\t\t\n\t\t\tif(ghRect.intersects(pla1))\n\t\t\t\tonPlayerCollideWithGhost(time, player1, i);\n\t\t\t\n\t\t\tif(ghRect.intersects(pla2))\n\t\t\t\tonPlayerCollideWithGhost(time, player2, i);\n\t\t}\n\t}", "boolean collideWithVehicles(Vehicle v);", "public String playerCollide(PlayerObject player)\n {\n String collision;\n\n Rect oldPos = player.getRectangle();\n\n\n if (Rect.intersects(rectangle, player.getRectangle()))\n {\n if (isTouchable && isMovable )\n {\n if (Constants.xVelocity > 0) {\n return \"right\";\n }\n\n if (Constants.xVelocity < 0) {\n return \"left\";\n }\n\n if (Constants.yVelocity > 0) {\n return \"bottom\";\n }\n\n if (Constants.yVelocity < 0) {\n return \"top\";\n }\n }\n\n if (isTouchable & !isMovable)\n {\n return \"0\";\n }\n\n }\n\n return \"null\";\n }", "boolean isCellAlive(int x, int y);", "private void checkCollisions() {\n float x = pacman.getPos().x;\n float y = pacman.getPos().y;\n\n GameEntity e;\n for (Iterator<GameEntity> i = entities.iterator(); i.hasNext(); ) {\n e = i.next();\n // auf kollision mit spielfigur pruefen\n if (Math.sqrt((x - e.getPos().x) * (x - e.getPos().x) + (y - e.getPos().y) * (y - e.getPos().y)) < 0.5f)\n if (e.collide(this, pacman))\n i.remove();\n }\n }", "public void checkBoundaries(Player pl) {\n\t\tPoint loc = gameMap.toGridLocation(pl.getLocation());\n\t\tint locationX = loc.x;\n\t\tint locationY = loc.y;\n\t\t\n\t\tif(gameMap.getType(loc.x, loc.y) == GameMap.WALL)\n\t\t{\n\t\t\tif(loc.x > 0)\n\t\t\t\tpl.getLocation().x -= 1f;\n\t\t\telse\n\t\t\t\tpl.getLocation().x += 1f;\n\t\t}\n\t\t\n\t\tPoint[] surrounding = gameMap.getSurrounding((int) locationX, (int) locationY);\n\t\t\n\t\tRectangle2D.Float player = pl.getLocationAsRect();\n\t\tfor(Point p : surrounding)\n\t\t{\n\t\t\tRectangle2D.Float rect = new Rectangle2D.Float(p.x * 16 + 112, p.y * 16 + 32, 16, 16);\n\t\t\tif(rect.intersects(player))\n\t\t\t{\n\t\t\t\tbyte type = gameMap.getType(p.x, p.y);\n\t\t\t\tif(isSpecial(pl, type))\n\t\t\t\t{\n\t\t\t\t\tspecialMovement(pl, type);\n//\t\t\t\t\tSystem.out.println(pl.getClass().getSimpleName() + \" hit a boundary\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(type == GameMap.ORB)\n\t\t\t\t{\n\t\t\t\t\tgameMap.setType(p.x, p.y, GameMap.EATEN_ORB);\n\t\t\t\t\t\n\t\t\t\t\tonOrbCollect(pl);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void checkPlayerCollisions(int x, int y){\n\t\tint wHitBoxX = 100;\n\t\tint wHitBoxY = 150;\n\t\t\n\t\tfor(int i = 0; i<enemy_num; i++){\n\t\t\tfor(int j = 0; j<enemy_arrow_num[i]; j++){\n\t\t\t\tif(enemy_arrows[i][j][0] > x && enemy_arrows[i][j][0] < (x+wHitBoxX)){\n\t\t\t\tif(enemy_arrows[i][j][1] > y && enemy_arrows[i][j][1] < (y+wHitBoxY)){\n\t\t\t\t \tremove_arrow(i,j);\n\t\t\t\t}}\n\t\t\t}\n\t\t}\n\t\t\n\t\n\t}", "public static boolean collision(String direction, int speed){\n\t\tMain.p.updateHitboxs();\n\t\t/*LeftBottomHitbox[0] = Main.p.xLeft;\n\t\tLeftBottomHitbox[1] = Main.p.yLeft;\n\t\tRightBottomHitbox[0] = Main.p.xRight;\n\t\tRightBottomHitbox[1] = Main.p.yRight;\n\t\tLeftTopHitbox[0] = Main.p.xLeft;\n\t\tLeftTopHitbox[1] = Main.p.yLeft-(3 * Main.SCALE);\n\t\tRightTopHitbox[0] = Main.p.xRight;\n\t\tRightTopHitbox[1] = Main.p.yRight-(3 * Main.SCALE);\n\t\tif(!direction.equals(\"p\")){\n\t\t\tresult1 = checkCollision(speed, direction, LeftBottomHitbox);\n\t\t\tresult2 = checkCollision(speed, direction, RightBottomHitbox);\n\t\t\tresult3 = checkCollision(speed, direction, LeftTopHitbox);\n\t\t\tresult4 = checkCollision(speed, direction, RightTopHitbox);\n\t\t\tif(animationSwitchCount == 4)\n\t\t\t\tMain.p.pg.animationSet = 1;\n\t\t\tanimationSwitchCount = 0;\n\t\t\treturn result1 || result2 || result3 || result4;\n\t\t}\n\t\tresult1 = checkPlayerCollision(LeftBottomHitbox[0], LeftBottomHitbox[1]);\n\t\tresult2 = checkPlayerCollision(RightBottomHitbox[0], RightBottomHitbox[1]);\n\t\tresult3 = checkPlayerCollision(LeftTopHitbox[0], LeftTopHitbox[1]);\n\t\tresult4 = checkPlayerCollision(RightTopHitbox[0], RightTopHitbox[1]);\n\t\treturn result1 || result2 || result3 || result4;\n\t\t\t*/\n\t\tArrayList<int[]> tiles = new ArrayList<int[]>();\n\t\tint tempX, tempY;\n\t\tboolean copy = false, xOverextended = false, yOverextended = false;\n\t\t\n\t\tif(direction.equals(\"x\")){\n\t\t\tx = Main.p.getXStart() + speed;\n\t\t\ty = Main.p.getYStart();\n\t\t}\n\t\telse if (direction.equals(\"y\")){\n\t\t\tx = Main.p.getXStart();\n\t\t\ty = Main.p.getYStart() + speed;\n\t\t}\n\t\tif(!direction.equals(\"p\")){\n\t\t\tfor(int yCount = 0; yCount <= Main.p.getCOLLISIONSIZEY(); yCount++){\n\t\t\t\ttempY = y + (yCount * Main.T);\n\t\t\t\tif(tempY > y + Main.p.getCOLLISIONDISTANCEY()){\n\t\t\t\t\ttempY = y + Main.p.getCOLLISIONDISTANCEY();\n\t\t\t\t\tyOverextended = true;\n\t\t\t\t}\n\t\t\t\tfor(int xCount = 0; xCount <= Main.p.getCOLLISIONSIZEX(); xCount++){\n\t\t\t\t\ttempX = x + (xCount * Main.T);\n\t\t\t\t\tif(tempX > x + Main.p.getCOLLISIONDISTANCEX()){\n\t\t\t\t\t\txOverextended = true;\n\t\t\t\t\t\ttempX = x + Main.p.getCOLLISIONDISTANCEX();\n\t\t\t\t\t}\n\t\t\t\t\ttempTile = Main.p.getCurrentTile(tempX, tempY);\n\t\t\t\t\tfor(int i = 0; i < tiles.size(); i++){\n\t\t\t\t\t\tif(tempTile[0] == tiles.get(i)[0] && tempTile[1] == tiles.get(i)[1]){\n\t\t\t\t\t\t\tcopy = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(!copy){\n\t\t\t\t\t\tif(collisionOccured())\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\ttiles.add(tempTile);\n\t\t\t\t\t}\n\t\t\t\t\tcopy = false;\n\t\t\t\t\tif(xOverextended){\n\t\t\t\t\t\txOverextended = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(yOverextended)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//If no tile collision is found sprite collisions are checked\n\t\tfor(int i = 0; i < Main.currentLocation.ls.sprites.size(); i++){\n\t\t\tif(Main.currentLocation.ls.sprites.get(i) != null && Main.currentLocation.ls.sprites.get(i).playerCollision(x, y))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void checkCollisions() {\n int x1 = 0;\n int x2 = 0;\n for(CollisionBox e : cols) {\n for(CollisionBox f : cols) {\n if(\n x2 > x1 && // Skip checking collisions twice\n// (\n// e != f || // The entities are not the same entity\n// ( // One of the entities's parent object is not the bullet of the other's (aka ignore player bullets colliding with player)\n// // And also check they're not both from the same entity (two bullets colliding both going in the same direction from the same entity)\n// f.getParent() != null && // The first entity has a parent and\n// e.getParent() != null && // The second entity has a parent and\n// f.getParent().getParent() != null && // The first entity's parent has a parent and\n// e.getParent().getParent() != null && // The second entity's parent has a parent and\n// f.getParent().getParent() != e.getParent() && // The first entity's parent's parent is not the second entity's parent\n// e.getParent().getParent() != f.getParent() &&// The second entity's parent's parent is not the first entity's parent\n// f.getParent().getParent() != e.getParent().getParent() // The first and second entities' parents' parents are not the same\n// )\n// ) &&\n SAT.isColliding(e, f) // The entities are colliding\n ) { // Collide the Entities\n Entity ep = e.getParent();\n Entity fp = f.getParent();\n ep.collide(fp);\n fp.collide(ep);\n }\n x2++;\n }\n x1++;\n x2 = 0;\n }\n }", "public boolean intersects(Obstacle v){\n \treturn box.intersects(v.getBox()); \t\r\n }", "public static boolean canPlayerMove(Player player){\r\n int playerX = 0;\r\n int playerY = 0;\r\n int nX;\r\n int nY;\r\n //finding the player on the board\r\n for(int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n if(player.getPosition() == board[i][j]) {\r\n playerX = i;\r\n playerY = j;\r\n }\r\n }\r\n }\r\n //making sure that the player stays on the board\r\n\r\n if(playerY != board[0].length-1) {\r\n nX = playerX;\r\n nY = playerY + 1;\r\n if (board[nX][nY].west && board[playerX][playerY].east && !board[nX][nY].isOnFire) {//if the tile will accept the player\r\n return true;\r\n }\r\n }\r\n\r\n if(playerY != 0) {\r\n nX = playerX;\r\n nY = playerY - 1;\r\n if (board[nX][nY].east && board[playerX][playerY].west && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n if(playerX != 0) {\r\n nX = playerX - 1;\r\n nY = playerY;\r\n if (board[nX][nY].south && board[playerX][playerY].north && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n if(playerX != board.length-1) {\r\n nX = playerX + 1;\r\n nY = playerY;\r\n if (board[nX][nY].north && board[playerX][playerY].south && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "private boolean isBallCollideCelling(GOval ball) {\n return ball.getY() <= 0;\n }", "private void updateTileCollisions(Mob mob) {\n\t\tif (mob instanceof Player) {\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().x, Display.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().y, Display.getHeight() - mob.getHeight() / 2)));\n\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().x, tilemap.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().y, tilemap.getHeight()) - mob.getHeight() / 2));\r\n\t\t}\r\n\r\n\t\tPoint center = mob.getScreenPosition().add(offset);\r\n\r\n\t\tboolean hitGround = false; // used to check for vertical collisions and determine \r\n\t\t// whether or not the mob is in the air\r\n\t\tboolean hitWater = false;\r\n\r\n\t\t//update mob collisions with tiles\r\n\t\tfor (int i = 0; i < tilemap.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < tilemap.grid[0].length; j++) {\r\n\r\n\t\t\t\tif (tilemap.grid[i][j] != null &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x > center.x - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x < center.x + (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y > center.y - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y < center.y + (250)) {\r\n\r\n\t\t\t\t\tRectangle mobRect = mob.getBounds();\r\n\t\t\t\t\tRectangle tileRect = tilemap.grid[i][j].getBounds();\r\n\r\n\t\t\t\t\t// if mob intersects a tile\r\n\t\t\t\t\tif (mobRect.intersects(tileRect)) {\r\n\r\n\t\t\t\t\t\t// get the intersection rectangle\r\n\t\t\t\t\t\tRectangle rect = mobRect.intersection(tileRect);\r\n\r\n\t\t\t\t\t\t// if the mob intersects a water tile, adjust its movement accordingly\r\n\t\t\t\t\t\tif (tilemap.grid[i][j].type == TileMap.WATER) { \r\n\r\n\t\t\t\t\t\t\tmob.gravity = mob.defaultGravity * 0.25f;\r\n\t\t\t\t\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed * 0.35f;\r\n\t\t\t\t\t\t\tmob.moveSpeed = mob.defaultMoveSpeed * 0.7f;\r\n\r\n\t\t\t\t\t\t\tif (!mob.inWater) { \r\n\t\t\t\t\t\t\t\tmob.velocity.x *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.velocity.y *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.inWater = true;\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thitWater = true;\r\n\t\t\t\t\t\t\tmob.jumping = false;\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\t\t// if intersection is vertical (and underneath player)\r\n\t\t\t\t\t\t\tif (rect.getHeight() < rect.getWidth()) {\r\n\r\n\t\t\t\t\t\t\t\t// make sure the intersection isn't really horizontal\r\n\t\t\t\t\t\t\t\tif (j + 1 < tilemap.grid[0].length && \r\n\t\t\t\t\t\t\t\t\t\t(tilemap.grid[i][j+1] == null || \r\n\t\t\t\t\t\t\t\t\t\t!mobRect.intersects(tilemap.grid[i][j+1].getBounds()))) {\r\n\r\n\t\t\t\t\t\t\t\t\t// only when the mob is falling\r\n\t\t\t\t\t\t\t\t\tif (mob.velocity.y <= 0) {\r\n\t\t\t\t\t\t\t\t\t\tmob.velocity.y = 0;\r\n\t\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.inAir = false;\t\r\n\t\t\t\t\t\t\t\t\t\tmob.jumping = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// if intersection is horizontal\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tmob.velocity.x = 0;\r\n\r\n\t\t\t\t\t\t\t\tif (mobRect.getCenterX() < tileRect.getCenterX()) {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tfloat xToCenter = Math.abs((float)(mobRect.getCenterX() - tileRect.getCenterX()));\r\n\t\t\t\t\t\t\tfloat yToCenter = Math.abs((float)(mobRect.getCenterY() - tileRect.getCenterY())); \r\n\r\n\t\t\t\t\t\t\t// Check under the mob to see if it touches a tile. If so, hitGround = true\r\n\t\t\t\t\t\t\tif (yToCenter <= (mobRect.getHeight() / 2 + tileRect.getHeight() / 2) && \r\n\t\t\t\t\t\t\t\t\txToCenter <= (mobRect.getWidth() / 2 + tileRect.getWidth() / 2))\r\n\t\t\t\t\t\t\t\thitGround = true;\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if mob doesn't intersect a tile vertically, they are in the air\r\n\t\tif (!hitGround) {\r\n\t\t\tmob.inAir = true;\r\n\t\t}\r\n\t\t// if the mob is not in the water, restore its default movement parameters\r\n\t\tif (!hitWater) {\r\n\t\t\tmob.gravity = mob.defaultGravity;\r\n\t\t\tmob.moveSpeed = mob.defaultMoveSpeed;\r\n\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed;\r\n\t\t\tmob.inWater = false;\r\n\t\t}\r\n\t}", "void checkCollision(Entity other);", "public abstract boolean collide(int x, int y, int z, int dim, Entity entity);", "public int check4CollisionWithYellow(Player player)\n {\n int number_of_collisions = 0;\n int x_cord = getMidPoint(player.getX_cordinate());\n int y_cord = getMidPoint(player.getY_cordinate());\n int yellowx1 = getMidPoint(ludo.getYellowPlayer1().x_cordinate);\n int yellowx2 = getMidPoint(ludo.getYellowPlayer2().x_cordinate);\n int yellowx3 = getMidPoint(ludo.getYellowPlayer3().x_cordinate);\n int yellowx4 = getMidPoint(ludo.getYellowPlayer4().x_cordinate);\n int yellowy1 = getMidPoint(ludo.getYellowPlayer1().y_cordinate);\n int yellowy2 = getMidPoint(ludo.getYellowPlayer2().y_cordinate);\n int yellowy3 = getMidPoint(ludo.getYellowPlayer3().y_cordinate);\n int yellowy4 = getMidPoint(ludo.getYellowPlayer4().y_cordinate);\n number_of_collisions += collisionDetection(x_cord, y_cord, yellowx1, yellowy1);\n number_of_collisions += collisionDetection(x_cord, y_cord, yellowx2, yellowy2);\n number_of_collisions += collisionDetection(x_cord, y_cord, yellowx3, yellowy3);\n number_of_collisions += collisionDetection(x_cord, y_cord, yellowx4, yellowy4);\n return number_of_collisions;\n\n }", "public boolean checkCollisions(Tuple camera) {\n\n\t\t// already exploded\n\t\tif(disabled > 0) {\n\t\t\treturn false;\n\t\t} // if\n\t\t\n\t\t// collision detected\n\t\tif(location.distance(camera) - size < SHIP_SIZE) {\n\t\t\tdisabled = 1;\n\t\t\treturn true;\n\t\t} // if\n\t\treturn false;\n\t}", "private boolean checkCollisions(int keycode) {\n \t\t\n \t\tint sX = super.getX()/Main.gridSize;\n \t\tint sY = super.getY()/Main.gridSize;\n \t\t\n \t\tif (World.currentMap().solidAtPoint(sX-1, sY) && keycode == Keyboard.KEY_A) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX+1, sY) && keycode == Keyboard.KEY_D) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY-1) && keycode == Keyboard.KEY_W) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY+1) && keycode == Keyboard.KEY_S) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean isUseableByPlayer(EntityPlayer player){\n\t return worldObj.getTileEntity(xCoord, yCoord, zCoord) != this ? false : player.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 64.0D;\n\t}", "private boolean isCellOccupied(Cell c) {\n Worm[] opponentWorms = opponent.worms;\n Worm[] playerWorms = player.worms;\n int i = 0;\n int j = 0;\n boolean foundOpponentWorm = false;\n boolean foundPlayerWorm = false;\n while ((i < opponentWorms.length) && (!foundOpponentWorm)) {\n if ((opponentWorms[i].position.x == c.x) && (opponentWorms[i].position.y == c.y)) {\n foundOpponentWorm = true;\n } else {\n i++;\n }\n }\n while ((j < playerWorms.length) && (!foundPlayerWorm)) {\n if ((playerWorms[j].position.x == c.x) && (playerWorms[j].position.y == c.y)) {\n foundPlayerWorm = true;\n } else {\n j++;\n }\n }\n return (foundOpponentWorm || foundPlayerWorm);\n }", "public int checkCollision(Direction direction, GameObject object) {\n\n Position tempPosition = adjacentPosition(direction, object);\n\n if (object instanceof Player) {\n\n for (int i = 1; i < gameObjects.length; i++) {\n if (!gameObjects[i].getPosition().comparePosition(tempPosition)) {\n continue;\n }\n if (!(gameObjects[i] instanceof SpotX)) {\n return i;\n }\n }\n return -1;\n } else {\n for (int i = 1; i < gameObjects.length; i++) {\n if (!gameObjects[i].getPosition().comparePosition(tempPosition)) {\n continue;\n }\n return i;\n }\n return -1;\n }\n\n }", "private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}", "public boolean moveable() {\n //check reach border\n if (reachBorder()) {\n return false;\n }\n //get the location of the next spot to move to\n //move up\n Point nextLocation = this.getCenterLocation();\n if (direction == 12) {\n nextLocation = new Point(this.getCenterX(),\n this.getCenterY() - speed);\n }\n //move right\n if (direction == 3) {\n nextLocation = new Point(this.getCenterX() + speed,\n this.getCenterY());\n\n }\n //move down\n if (direction == 6) {\n nextLocation = new Point(this.getCenterX(),\n this.getCenterY() + speed);\n\n }\n //move left\n if (direction == 9) {\n nextLocation = new Point(this.getCenterX() - speed,\n this.getCenterY());\n }\n\n // get all objects in a circle of radius tileSize * 2 around the players\n //these objects are those which can possibly colide with the players\n int checkRadius = GameUtility.GameUtility.TILE_SIZE * 2;\n for (GameObject gameObject : GameManager.getGameObjectList()) {\n if (GameUtility.GameUtility.distance(gameObject.getCenterLocation(),\n this.getCenterLocation()) < checkRadius) {\n if ((GameUtility.GameUtility.dectectCollision(\n gameObject.getCenterLocation(),\n nextLocation)) && !(GameUtility.GameUtility.dectectCollision(\n gameObject.getCenterLocation(),\n this.getCenterLocation())) && gameObject.getType() != GameObjectType.POWER_UP && gameObject.getType() != GameObjectType.MONSTER && gameObject.getType() != GameObjectType.PLAYER) {\n return false;\n }\n }\n }\n return true;\n\n }", "public boolean isSafeFromAllPlayersExcept(Cell refugecell, Player p1, Player p2){\n ArrayList<Cell> reachableCells = new ArrayList<Cell>();\n int range;\n List<Player> players = state.getPlayers();\n for(Player p: players){\n if(!p.equals(p1)&&!p.equals(p2)){\n range = p.getNumberMoveRemaining()+p.getBombRange();\n reachableCells = getReacheableCellsInRange(p.getCell(), range);\n // the current player would not be safe from p\n if(reachableCells.contains(refugecell)){\n return false;\n }\n }\n }\n // the current player would be safe on refugecell from all enemies except from p2\n return true;\n }", "private boolean checkNearbyVillagers() {\n\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tSprite as = sprites.get(it.next());\n\t\t\tif (as instanceof Villager) {\n\t\t\t\tVillager v = (Villager) as;\n\t\t\t\tif (v.checkTalkable(player.pos, player.direction)) {\n\t\t\t\t\treturn executeTalkableVillager(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isHit(Collideable otherCol){\n return this.collideable.getHitX() - otherCol.getHitX() < 50\n && this.collideable.getHitX() - otherCol.getHitX() > -50\n && this.collideable.getHitY() - otherCol.getHitY() > -30\n && this.collideable.getHitY() - otherCol.getHitY() < 30;\n }", "private static void checkCollisions() {\n ArrayList<Entity> bulletsArray = bullets.entities;\n ArrayList<Entity> enemiesArray = enemies.entities;\n for (int i = 0; i < bulletsArray.size(); ++i) {\n for (int j = 0; j < enemiesArray.size(); ++j) {\n if (j < 0) {\n continue;\n }\n if (i < 0) {\n break;\n }\n Entity currentBullet = bulletsArray.get(i);\n Entity currentEnemy = enemiesArray.get(j);\n if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) {\n ++player.hiScore;\n if (currentBullet.collided(currentEnemy)) {\n --i;\n }\n if (currentEnemy.collided(currentBullet)) {\n --j;\n }\n }\n }\n }\n textHiScore.setString(\"HISCORE:\" + player.hiScore);\n\n // Check players with bonuses\n ArrayList<Entity> bonusArray = bonus.entities;\n for (int i = 0; i < bonusArray.size(); ++i) {\n Entity currentBonus = bonusArray.get(i);\n if (Collision.boxBoxOverlap(player, currentBonus)) {\n if (currentBonus.collided(player)) {\n --i;\n player.collided(currentBonus);\n }\n }\n }\n }", "private boolean collide(int row, int col, Ship ship) {\n if (ship.getIsVertical()) {\n if (col != ship.getCol()) return false;\n if (row < ship.getRow()) return false;\n if (row >= ship.getRow() + ship.getSize()) return false;\n return true;\n } else {\n if (row != ship.getRow()) return false;\n if (col < ship.getCol()) return false;\n if (col >= ship.getCol() + ship.getSize()) return false;\n return true;\n }\n }", "private boolean isNotColliding(double x, double y, double z, double p_179926_7_) {\n\t\t\tdouble d0 = (x - this.parentEntity.posX) / p_179926_7_;\n\t\t\tdouble d1 = (y - this.parentEntity.posY) / p_179926_7_;\n\t\t\tdouble d2 = (z - this.parentEntity.posZ) / p_179926_7_;\n\t\t\tAxisAlignedBB axisalignedbb = this.parentEntity.getEntityBoundingBox();\n\n\t\t\tfor (int i = 1; (double)i < p_179926_7_; ++i) {\n\t\t\t\taxisalignedbb = axisalignedbb.offset(d0, d1, d2);\n\n\t\t\t\tif (!this.parentEntity.world.getCollisionBoxes(this.parentEntity, axisalignedbb).isEmpty()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}", "void checkHandleContactWithNonPlayerCharacters() {\n if (this.doesAffectNonPlayers) {\n // boundary collision for non-player characters\n for (ACharacter curCharacter : this.mainSketch.getCurrentActiveLevelDrawableCollection().getCharactersList()) {\n if (this.contactWithCharacter(curCharacter)) {\n curCharacter.handleContactWithVerticalBoundary(this.startPoint.x);\n\n } else if (curCharacter instanceof ControllableEnemy) { // this DOES NOT have contact with character AND character is controllable\n ((ControllableEnemy) curCharacter).setAbleToMoveLeft(true);\n ((ControllableEnemy) curCharacter).setAbleToMoveRight(true);\n }\n }\n }\n }", "public boolean isValidMultiplayerMove(int xMove, int yMove, ArrayList<Entity> objects, \r\n ArrayList<NonPlayerCharacter> npcs, ArrayList<Item> items, World world){\n for (int i = 0; i < objects.size(); i++)//collisioned an object\r\n {\r\n if (x + xMove == objects.get(i).getX() && y + yMove == objects.get(i).getY()) {\r\n objects.get(i).setCollisioned(true);\r\n return false;\r\n } else {\r\n objects.get(i).setCollisioned(false);\r\n }\r\n }\r\n\r\n //ArrayList<NonPlayerCharacter> npcs = ((GameState) game.getGameState()).getNpcs();\r\n for (int i = 0; i < npcs.size(); i++) {\r\n if (x + xMove == npcs.get(i).getX() && y + yMove == npcs.get(i).getY()) {\r\n npcs.get(i).setCollisioned(true);\r\n return false;\r\n }\r\n }\r\n\r\n //ArrayList<Item> items = ((GameState) game.getGameState()).getItems();\r\n for (int i = 0; i < items.size(); i++) {\r\n if (x + xMove == items.get(i).getX() && y + yMove == items.get(i).getY()) {\r\n items.get(i).setCollisioned(true);\r\n return false;\r\n }\r\n }\r\n\r\n /*if (((GameState) game.getGameState()).getWorld().getTile((int) (x + xMove), (int) (y + yMove)).isSolid()) {\r\n return false;\r\n }*/\r\n if (world.getTile((int) (x + xMove), (int) (y + yMove)).isSolid()) {\r\n return false;\r\n }\r\n \r\n if (world.getTile((int) (x + xMove), (int) (y + yMove)).getId() == 2) {\r\n return false;\r\n }\r\n\r\n /*if (x + xMove == ((GameState) game.getGameState()).getPlayer().getX()\r\n && y + yMove == ((GameState) game.getGameState()).getPlayer().getY()) {\r\n return false;\r\n }*/\r\n return true;\r\n }", "private boolean collide(int row, int col, Ship[] ships) {\n for (Ship ship : ships) {\n if (collide(row, col, ship)) return true;\n }\n return false;\n }", "private void collide() {\n int collisionRange;\n \n if(isObstacle) {\n for(Thing thg: proximity) {\n if(\n thg.isObstacle\n &&\n !thg.equals(this)\n ) {\n collisionRange = (thg.size + this.size)/2;\n deltaA = this.distance(thg);\n \n if( \n Math.abs(deltaA[0]) <= collisionRange\n &&\n Math.abs(deltaA[1]) <= collisionRange\n ){\n if(deltaA[0] > deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == 1) {\n dA[0] = 0;\n }\n }\n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == -1) {\n dA[1] = 0;\n }\n }\n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n if(dA[0] != 0) {\n dA[1] = dA[0];\n }\n if(dA[1] != 0) {\n dA[0] = dA[1];\n }\n }\n }\n \n if(deltaA[0] < deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == -1) {\n dA[0] = 0;\n }\n } \n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == 1) {\n dA[1] = 0;\n }\n } \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = dA[0];\n }\n }\n \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = -dA[0];\n }\n }\n }\n }\n }\n }", "public int check4CollisionWithGreen(Player player)\n {\n int number_of_collisions = 0;\n int x_cord = getMidPoint(player.getX_cordinate());\n int y_cord = getMidPoint(player.getY_cordinate());\n int greenx1 = getMidPoint(ludo.getGreenPlayer1().x_cordinate);\n int greenx2 = getMidPoint(ludo.getGreenPlayer2().x_cordinate);\n int greenx3 = getMidPoint(ludo.getGreenPlayer3().x_cordinate);\n int greenx4 = getMidPoint(ludo.getGreenPlayer4().x_cordinate);\n int greeny1 = getMidPoint(ludo.getGreenPlayer1().y_cordinate);\n int greeny2 = getMidPoint(ludo.getGreenPlayer2().y_cordinate);\n int greeny3 = getMidPoint(ludo.getGreenPlayer3().y_cordinate);\n int greeny4 = getMidPoint(ludo.getGreenPlayer4().y_cordinate);\n number_of_collisions += collisionDetection(x_cord, y_cord, greenx1, greeny1);\n number_of_collisions += collisionDetection(x_cord, y_cord, greenx2, greeny2);\n number_of_collisions += collisionDetection(x_cord, y_cord, greenx3, greeny3);\n number_of_collisions += collisionDetection(x_cord, y_cord, greenx4, greeny4);\n return number_of_collisions;\n }", "public boolean tilePlayerPlacable(float xTile, float yTile, int player)\r\n/* 196: */ {\r\n/* 197:220 */ return (tileInBounds(xTile, yTile)) && \r\n/* 198:221 */ (getStartPositionOnTile(player, xTile, yTile));\r\n/* 199: */ }", "private Player checkIfEatsYellowPlayer(Player player)\n {\n int x_cord = getMidPoint(player.x_cordinate);\n int y_cord = getMidPoint(player.y_cordinate);\n int yellow_x1 = getMidPoint(ludo.getYellowPlayer1().x_cordinate);\n int yellow_x2 = getMidPoint(ludo.getYellowPlayer2().x_cordinate);\n int yellow_x3 = getMidPoint(ludo.getYellowPlayer3().x_cordinate);\n int yellow_x4 = getMidPoint(ludo.getYellowPlayer4().x_cordinate);\n int yellow_y1 = getMidPoint(ludo.getYellowPlayer1().y_cordinate);\n int yellow_y2 = getMidPoint(ludo.getYellowPlayer2().y_cordinate);\n int yellow_y3 = getMidPoint(ludo.getYellowPlayer3().y_cordinate);\n int yellow_y4 = getMidPoint(ludo.getYellowPlayer4().y_cordinate);\n if (collisionDetection(x_cord, y_cord, yellow_x1, yellow_y1) == 1)\n {\n return yellow_player1;\n }\n else if (collisionDetection(x_cord, y_cord, yellow_x2, yellow_y2) == 1)\n {\n return yellow_player2;\n }\n else if (collisionDetection(x_cord, y_cord, yellow_x3, yellow_y3) == 1)\n {\n return yellow_player3;\n }\n else if (collisionDetection(x_cord, y_cord, yellow_x4, yellow_y4) == 1)\n {\n return yellow_player4;\n }\n else\n {\n return null;\n }\n }", "private boolean shouldAttackPlayer(EntityPlayer player) {\n ItemStack itemStack = player.inventory.armorInventory[3];\n if (itemStack != null && itemStack.getItem() == Item.getItemFromBlock(Blocks.pumpkin))\n return false;\n Vec3 lookVec = player.getLook(1.0F).normalize();\n Vec3 posVec = Vec3.createVectorHelper(this.posX - player.posX, this.boundingBox.minY + this.height / 2.0 - player.posY - player.getEyeHeight(), this.posZ - player.posZ);\n double distance = posVec.lengthVector();\n posVec = posVec.normalize();\n double dotProduct = lookVec.dotProduct(posVec);\n return dotProduct > 1.0 - 0.025 / distance ? player.canEntityBeSeen(this) : false;\n }", "private boolean checkVillagerCollision(float dt, int direction) {\n\t\tboolean found = false;\n\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\twhile (it.hasNext() && !found) {\n\t\t\tSprite as = sprites.get(it.next());\n\t\t\tif (as instanceof Villager) {\n\t\t\t\tVillager v = (Villager) as;\n\t\t\t\tfound = player.checkCollision(dt, v, direction);\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}", "public int check4CollisionWithRed(Player player)\n {\n \n int number_of_collisions = 0;\n int x_cord = getMidPoint(player.getX_cordinate());\n int y_cord = getMidPoint(player.getY_cordinate());\n int redx1 = getMidPoint(ludo.getRedPlayer1().x_cordinate);\n int redx2 = getMidPoint(ludo.getRedPlayer2().x_cordinate);\n int redx3 = getMidPoint(ludo.getRedPlayer3().x_cordinate);\n int redx4 = getMidPoint(ludo.getRedPlayer4().x_cordinate);\n int redy1 = getMidPoint(ludo.getRedPlayer1().y_cordinate);\n int redy2 = getMidPoint(ludo.getRedPlayer2().y_cordinate);\n int redy3 = getMidPoint(ludo.getRedPlayer3().y_cordinate);\n int redy4 = getMidPoint(ludo.getRedPlayer4().y_cordinate);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx1, redy1);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx2, redy2);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx3, redy3);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx4, redy4);\n return number_of_collisions;\n }", "private void checkWeaponCollisions(GObject element) {\r\n\t\tGObject topLeft = getElementAt(element.getX() - 1, element.getY());\r\n\t\tGObject topRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY());\r\n\t\tGObject bottomLeft = getElementAt(element.getX() - 1, element.getY() + element.getHeight());\r\n\t\tGObject bottomRight = getElementAt(element.getX() + element.getWidth() + 1, element.getY() + element.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(element);\r\n\t\t\telement = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}", "public boolean collides (){\n if(shipX<=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=40 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY<=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=55){\n return true;\n }\n }\n else if(shipX<=astX && shipY<=astY){\n if(Math.abs(shipX-astX)<=60 && Math.abs(shipY-astY)<=55){\n return true;\n }\n }\n return false;\n }", "private void intersectEnemyWithWall(Entity enemy, Entity wall){\n enemy.setXVelocity(0);\n enemy.setYVelocity(0);\n\n //sets the x and y pos to be the correct wall placment, will need to know where the wall is relative to the player to do this\n\n int wallCenterYPos = (wall.getY() + (wall.getHeight() / 2));\n int playerCenterYPos = (enemy.getY() + (enemy.getHeight() / 2));\n int wallCenterXPos = (wall.getX() + (wall.getWidth() / 2));\n int playerCenterXPos = (enemy.getX() + (enemy.getWidth() / 2));\n\n //uses Minkowski sum\n\n float wy = (wall.getWidth() + enemy.getWidth()) * (wallCenterYPos - playerCenterYPos);\n float hx = (wall.getHeight() + enemy.getHeight()) * (wallCenterXPos - playerCenterXPos);\n\n if (wy > hx) {\n if (wy > -hx) {\n //bottom of player hitting wall\n //push the player off the wall so the collision ends\n enemy.setY(wall.getY() - enemy.getHeight());\n return;\n\n } else {\n //left of wall\n //push the player off the wall so the collision ends\n enemy.setX(wall.getX() + wall.getWidth());\n return;\n }\n } else {\n if (wy > -hx) {\n //right of wall\n //push the player off the wall so the collision ends\n enemy.setX(wall.getX() - enemy.getWidth());\n return;\n } else {\n //top of player hitting wall\n //push the player off the wall so the collision ends\n enemy.setY(wall.getY() + wall.getHeight());\n return;\n }\n\n }\n }", "@Override\n\tpublic boolean collides(Vector3 v) {\n\t\treturn false;\n\t}", "public void checkCollision(Actor player) {\n\n for (int i = 0; i < activePickups.size(); i++) {\n Pickup p = activePickups.get(i);\n\n if (p.getBounds().intersects(player.getBounds())) {\n p.despawn();\n if (p instanceof FogLightsPickup) {\n PlayerInventory.incrementFogLights();\n } else if (p instanceof SlowMotionPickup) {\n PlayerInventory.incrementSlowMotion();\n } else if (p instanceof InvincibilityPickup) {\n PlayerInventory.incrementInvincibility();\n\n } else if (p instanceof CoinPickup) {\n coinsPickedUp++;\n canvas.playSound(\"coin.wav\");\n }\n }\n }\n }", "public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tboolean collided = false;\r\n\t\t\t\tfor (int enemyIndex = 0; enemyIndex < enemy.size(); enemyIndex++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy e = enemy.get(enemyIndex);\r\n\t\t\t\t\tif(((AvatarBullet) b).collidedWith(e))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\t\tenemy.remove(enemyIndex);\r\n\t\t\t\t\t\tenemyIndex --;\r\n\t\t\t\t\t\tcollided = true;\r\n\t\t\t\t\t\tint score = getScore()+1;\r\n\t\t\t\t\t\tsetScore(score);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (b instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tif (((EnemyBullet) b).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\tint health = Avatar.getLives()-1;\r\n\t\t\t\t\tavatar.setLives(health);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int platformIndex = 0; platformIndex < platforms.size(); platformIndex++)\r\n\t\t{\r\n\t\t\tPlatforms p = platforms.get(platformIndex);\r\n\t\t\tif (p instanceof Platforms)\r\n\t\t\t{\r\n\t\t\t\t//boolean collided = false;\r\n\t\t\t\t//Avatar a = avatar.get(enemyIndex);\r\n\t\t\t\tif(((Platforms) p).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(false);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean isLegalJump(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\t\tPlayer white = currentGame.getWhitePlayer();\n\t\t\tint whiteCol = curPos.getWhitePosition().getTile().getColumn();\n\t\t\tint whiteRow = curPos.getWhitePosition().getTile().getRow();\n\t\t\tint blackCol = curPos.getBlackPosition().getTile().getColumn();\n\t\t\tint blackRow = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\tint rChange = 0, cChange = 0;\n\t\t\tif(dir == MoveDirection.North) rChange = -2;\n\t\t\telse if(dir == MoveDirection.South) rChange = 2;\n\t\t\telse if(dir == MoveDirection.East) cChange = 2;\n\t\t\telse if(dir == MoveDirection.West) cChange = -2;\n\t\t\telse return false;\n\t\t\t\n\t\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\t\t\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || blackCol != (whiteCol + (cChange / 2) ) ) return false;\n\t\t\t\t\twhiteCol += cChange;\n\t\t\t\t\tif(whiteCol < 1 || whiteCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (whiteCol -cChange) + tmp;\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == whiteRow || w.getTargetTile().getRow() == whiteRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || blackRow != (whiteRow + (rChange / 2) ) ) return false;\n\t\t\t\t\twhiteRow += rChange;\n\t\t\t\t\tif(whiteRow < 1 || whiteRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (whiteRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == whiteCol || w.getTargetTile().getColumn() == whiteCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t} else {\n\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || whiteCol != (blackCol + (cChange / 2) ) ) return false;\n\t\t\t\t\tblackCol += cChange;\n\t\t\t\t\tif(blackCol < 1 || blackCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (blackCol -cChange) + tmp;\n\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == blackRow || w.getTargetTile().getRow() == blackRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || whiteRow != (blackRow + (rChange / 2) ) ) return false;\n\t\t\t\t\tblackRow += rChange;\n\t\t\t\t\tif(blackRow < 1 || blackRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (blackRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == blackCol || w.getTargetTile().getColumn() == blackCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t}\n\t\t\treturn true;\r\n }", "public void checkCollision(){\r\n\r\n\t\t\t\tsmile.updateVelocity();\r\n\r\n\t\t\t\tsmile.updatePosition();\r\n\r\n\t\t\t\tif (smile.updateVelocity() > 0){\r\n\r\n\t\t\t\t\tfor (int k = 0; k < arrayPlat.size(); k++){\r\n\r\n\t\t\t\t\t\tif (smile.getNode().intersects(arrayPlat.get(k).getX(), arrayPlat.get(k).getY(), Constants.PLATFORM_WIDTH, Constants.PLATFORM_HEIGHT)){\r\n\r\n\t\t\t\t\t\t\tsmile.setVelocity(Constants.REBOUND_VELOCITY);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t}", "void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }", "public int CollisionBetween2RedPlayers(Player player)\n {\n int total_collisions = 0;\n try\n {\n RedPlayer red_player = (RedPlayer) player;\n total_collisions += check4CollisionWithRed(player);\n player.setCollisions(total_collisions);\n }\n catch (Exception e)\n {\n return -1;\n }\n return total_collisions;\n }", "@Override\n\tpublic boolean isCollided(SpaceShip invader, Rocket rocket) {\n\t\t//(posX + width) /2 , (posY + height) /2\n\t\tint spaceshipCenterX = (int)(invader.getPosition().getX() + invader.getSize().getWidth()) / 2;\n\t\tint spaceshipCenterY = (int)(invader.getPosition().getY() + invader.getSize().getHeight()) / 2;\n\t\tPoint spaceshipCenter = new Point(spaceshipCenterX, spaceshipCenterY);\n\t\tif (spaceshipCenter == rocket.getPosition())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean checkSeesPlayer(int x, int y) {\r\n\t\tint enemy;\r\n\t\tif (creature.getCreature().team == 1) {\r\n\t\t\tenemy = 2;\r\n\t\t} else if (creature.getCreature().team == 2) {\r\n\t\t\tenemy = 1;\r\n\t\t} else {\r\n\t\t\tenemy = 0; //No enemy\r\n\t\t}\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Creature c : handler.getWorld().getEntityManager().getCreatures()) {\r\n\t\t\tif (c.getCreature().team == enemy) {\r\n\t\t\t\tif(c.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\t\tseenEnemy = c;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void checkCollisions() {\n\t\t List<Missile> missiles = player.getMissiles();\n\t\t for(Missile n : missiles) {\n\t\t\t Rectangle r1 = n.getBounds();\n\t\t\t for(Mushroom mush : mushrooms) {\n\t\t\t\t Rectangle r2 = mush.getBounds();\n\t\t\t\t r2.x += 8;\n\t\t\t\t if(r1.intersects(r2)) {\n\t\t\t\t\t mush.hitCnt += 1;\n\t\t\t\t\t if(mush.hitCnt == 3) {\n\t\t\t\t\t\t score += 5;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t\t mush.setVisible(false);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t score += 1;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Missile hits Centipede\n\t\t //missiles = player.getMissiles();\n\t\t for(Missile m: missiles) {\n\t\t\t Rectangle rm = m.getBounds();\n\t\t\t for(int i = 0; i < centipede.size(); i++) {\n\t\t\t\t Segment s = centipede.get(i);\n\t\t\t\t Rectangle rs = s.getBounds();\n\t\t\t\t if(rs.intersects(rm)) {\n\t\t\t\t\ts.hit();\n\t\t\t\t\tscore = (s.hitCnt < 2 ? score +2 : score + 0);\n\t\t\t\t\tif(s.hitCnt == 2){\n\t\t\t\t\t\t//split centipede\n\t\t\t\t\t\tscore += 5;\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t\tcentipede.remove(i);\n\t\t\t\t\t\t//mushrooms.add(new Mushroom(s.getX(), s.getY()));\n\t\t\t\t\t}else {\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if missile hits spider\n\t\t missiles = player.getMissiles();\n\t\t for(Missile m : missiles) {\n\t\t\t Rectangle mBound = m.getBounds();\n\t\t\t Rectangle spiderBound = spider.getBounds();\n\t\t\t if(mBound.intersects(spiderBound)) {\n\t\t\t\t spiderHitCnt += 1;\n\t\t\t\t if(spiderHitCnt == 2) {\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t\t spider.setVisible(false);\n\t\t\t\t\t score += 600;\n\t\t\t\t } else {\n\t\t\t\t\t score += 100;\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if centipede hits mushroom\n\t\t for(Segment c : centipede) {\n\t\t\t Rectangle cB = c.getBounds();\n\t\t\t for(Mushroom m: mushrooms) {\n\t\t\t\t Rectangle mB = new Rectangle(m.getX(), m.getY() + 5, m.getWidth(), m.getHeight() - 10);\n\t\t\t\t mB.y += 3;\n\t\t\t\t if(cB.intersects(mB)) {\n\t\t\t\t\t//makes each segment to go downs\n\t\t\t\t\tc.y += 16;\n\t\t\t\t\tc.dx = -c.dx;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Centipede hits Player\n\t\t Rectangle playerBounds = player.getBounds();\n\t\t for(Segment s : centipede) {\n\t\t\t Rectangle sB = s.getBounds();\n\t\t\t if(playerBounds.intersects(sB)) {\n\t\t\t\t playerLives -= 1;\n\t\t\t\t playerHitCnt += 1;\n\t\t\t\t if(playerHitCnt > MAX_HIT_COUNT) {\n\t\t\t\t\t// System.out.println(playerLives+\" \"+ x);\n\t\t\t\t\t player.setVisible(false);\n\t\t\t\t\t inGame = false;\n\t\t\t\t }else {\n\t\t\t\t\t\tplayer.x = 707;\n\t\t\t\t\t\tplayer.y = 708;\n\t\t\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\t\t\tplayer = new Player(300, 400);\n\t\t\t\t\t\tregenMushrooms();\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\n\t\t //check if Spider hits Player\n\t\t playerBounds = player.getBounds();\n\t\t Rectangle spiderBounds = spider.getBounds();\n\t\t if(spiderBounds.intersects(playerBounds)) {\n\t\t\tplayerLives -= 1;\n\t\t\tplayerHitCnt += 1;\n\t\t\tif(playerLives > MAX_HIT_COUNT) {\n\t\t\t\t//System.out.println(playerLives+\" \"+ y);\n\t\t\t\tplayer.setVisible(false);\n\t\t\t\tspider.setVisible(false);\n\t\t\t}else {\n\t\t\t\tregenMushrooms();\n\t\t\t\tcentipede.clear();\n\t\t\t\tcreateCentipede();\n\t\t\t\tplayer.x = 707;\n\t\t\t\tplayer.y = 708;\n\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\tplayer = new Player(300, 400);\n\t\t\t}\n\t\t}\n\t }", "private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }", "@Test\n\tpublic void testPlayerAndWallCollision() {\n\t\tEngine engine = new Engine(20);\n\t\tint x = engine.getMoveableObject(0).getX() + 14;\n\t\tint y = engine.getMoveableObject(0).getY();\n\t\tfor (int i = 0; i < 18; i++) {\n\t\t\tengine.update();\n\t\t}\n\t\tassertEquals(\"failure - player did not invert from wall correctly (x coord incorrect)\", x, engine.getMoveableObject(0).getX(), 0.0);\n\t\tassertEquals(\"failure - player did not invert from wall correctly (y coord incorrect)\", y, engine.getMoveableObject(0).getY(), 0.0);\n\t}", "public int check4CollisionWithBlue(Player player)\n {\n int number_of_collisions = 0;\n int x_cord = getMidPoint(player.x_cordinate);\n int y_cord = getMidPoint(player.y_cordinate);\n int blux1 = getMidPoint(getBlue_player1().x_cordinate);//blue_player1.x_cordinate;\n int blux2 = getMidPoint(getBlue_player2().x_cordinate);\n int blux3 = getMidPoint(getBlue_player3().x_cordinate);//blue_player3.x_cordinate;\n int blux4 = getMidPoint(getBlue_player4().x_cordinate);//blue_player4.x_cordinate;\n int bluy1 = getMidPoint(getBlue_player1().y_cordinate);//blue_player1.y_cordinate;\n int bluy2 = getMidPoint(getBlue_player2().y_cordinate);//blue_player2.y_cordinate;\n int bluy3 = getMidPoint(getBlue_player3().y_cordinate);//blue_player3.y_cordinate;\n int bluy4 = getMidPoint(getBlue_player4().y_cordinate);//blue_player4.y_cordinate;\n number_of_collisions += collisionDetection(x_cord, y_cord, blux1, bluy1);\n number_of_collisions += collisionDetection(x_cord, y_cord, blux2, bluy2);\n number_of_collisions += collisionDetection(x_cord, y_cord, blux3, bluy3);\n number_of_collisions += collisionDetection(x_cord, y_cord, blux4, bluy4);\n return number_of_collisions;\n }", "public boolean intersects(BaseGameObject other) {\r\n return (other.getPosx() - this.getPosx())\r\n * (other.getPosx() - this.getPosx())\r\n + (other.getPosy() - this.getPosy())\r\n * (other.getPosy() - this.getPosy())\r\n < (other.bound + this.bound) * (other.bound + this.bound);\r\n }", "public boolean containsPoint(Player player)\n {\n //Initially calculate the squared values of the distance between the player and the object\n float xSquared = (player.getX() - x)*(player.getX() - x);\n\t\tfloat ySquared = (player.getY() - y)*(player.getY() - y);\n float radiusSquared = radius*radius;\n //While our asteroid is within the x bounds of our player.\n while (x > player.getX() && x < player.getX()+player.getWidth())\n {\n xSquared = 0; //Set to zero so we can calculate distance from the top\n //of the square rather than the top left x value\n //If statement for if the asteroid is below the player\n if (y > player.getY()+player.getHeight())\n {\n ySquared = ((player.getY()+player.getHeight())-y)*((player.getY()+player.getHeight())-y);\n if (xSquared + ySquared - radiusSquared <= 0)\n return true;\n else\n return false;\n }\n //For if the asteroid is above the player do nothing but compare\n\t\t if (xSquared + ySquared - radiusSquared <= 0)\n\t\t\t return true;\n\t\t else\n return false;\n }\n //While our asteroid is within the y bounds of our player\n while (y > player.getY() && y < player.getY()+player.getHeight())\n {\n ySquared = 0; //Similar to pervious while statement. We only care about\n //the x-component this time rather than the y-component.\n //If the asteroid is to the right of the player\n if (x > player.getX()+player.getWidth())\n {\n xSquared = ((player.getX()+player.getWidth())-x)*((player.getX()+player.getWidth())-x);\n if (xSquared + ySquared - radiusSquared <= 0)\n return true;\n else\n return false;\n }\n //Asteroid is to the left so compare\n if (xSquared + ySquared - radiusSquared <= 0)\n\t\t\t return true;\n\t\t else\n return false;\n }\n return false;\n }", "public void checkCollisionTile(Entity entity) {\n\t\t\tint entityLeftX = entity.worldX + entity.collisionArea.x;\n\t\t\tint entityRightX = entity.worldX + entity.collisionArea.x + entity.collisionArea.width;\n\t\t\tint entityUpY = entity.worldY + entity.collisionArea.y;\n\t\t\tint entityDownY = entity.worldY + entity.collisionArea.y + entity.collisionArea.height;\n\t\t\t\n\t\t\tint entityLeftCol = entityLeftX/gamePanel.unitSize;\n\t\t\tint entityRightCol = entityRightX/gamePanel.unitSize;\n\t\t\tint entityUpRow = entityUpY/gamePanel.unitSize;\n\t\t\tint entityDownRow = entityDownY/gamePanel.unitSize;\n\t\t\t\n\t\t\tint point1;\n\t\t\tint point2;\n\t\t\t//This point is used for diagonal movement\n\t\t\tint point3;\n\t\t\t\n\t\t\tswitch(entity.direction) {\n\t\t\t\t//Lateral and longitudinal movements\n\t\t\t\tcase \"up\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"down\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t//Diagonal Movements\n\t\t\t\tcase \"upleft\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"upright\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase \"downleft\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"downright\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "private void collision() {\n\t\tfor(int i = 0; i < brownMeteors.length; i++) {\n\t\t\tif( distance(brownMeteors[i].getLayoutX() + ENTITIES_SIZE/2, brownMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(brownMeteors[i]);\n\t\t\t\t\n\t\t\t\t//Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter; \n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t//player vs grey Meteor\n\t\tfor(int i = 0; i < greyMeteors.length; i++) {\n\t\t\tif( distance(greyMeteors[i].getLayoutX() + ENTITIES_SIZE/2, greyMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(greyMeteors[i]);\n\n\t\t\t\t//Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter;\n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//laser vs brown Meteor\n\t\tfor(int i = 0; i < lasers.size(); i++) {\n\t\t\tfor(int j = 0; j < brownMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif(lasers.get(i).getBoundsInParent().intersects(brownMeteors[j].getBoundsInParent())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(brownMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\n\t\t\t\t\t//Update score +\n\t\t\t\t\tsc.score += 1; \n\t\t\t\t\tbreak; //kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tfor(int i = 0; i < lasers.size(); i++) {\n\t\t\tfor(int j = 0; j < greyMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif(lasers.get(i).getBoundsInParent().intersects(greyMeteors[j].getBoundsInParent())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(greyMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\n\t\t\t\t\t//Update score +\n\t\t\t\t\tsc.score += 1; \n\t\t\t\t\tbreak; //kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t}", "public static boolean checkCollisionGameObject(GameObject plr, GameObject obs){\n\t\tif(plr.getWidth() <= 0 || \n\t\t plr.getHeight() <= 0 || \n\t\t obs.getWidth() <= 0 ||\n\t\t obs.getHeight() <= 0 ){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tint obsW = (int) (obs.getWidth() + obs.getX());\n\t\tint obsH = (int) (obs.getHeight() + obs.getY());\n\t\tint plrW = (int) (plr.getWidth() + plr.getX());\n\t\tint plrH = (int) (plr.getHeight() + plr.getY());\n\t\t\n\t\treturn ((obsW < obs.getX() || obsW > plr.getX()) &&\n\t\t\t\t(obsH < obs.getY() || obsH > plr.getY()) &&\n\t\t\t\t(plrW < plr.getX() || plrW > obs.getX()) &&\n\t\t\t\t(plrH < plr.getY() || plrH > obs.getY()));\n\t}", "@Override\r\n public void update() {\r\n super.update();\r\n hero.checkForTileCollision(getXOverlap(hero.oldx,hero.oldx+width,hero.x,hero.x+width), getYOverlap(hero.oldy,hero.oldy+hero.height,hero.y, hero.y+hero.height));\r\n int i = 0;\r\n\r\n while (turningPoints[i]!= null)\r\n {\r\n if (intersects(turningPoints[i].x,turningPoints[i].y, turningPoints[i].width,turningPoints[i].height))\r\n {\r\n vx = -vx;\r\n vy = -vy;\r\n }\r\n i++;\r\n }\r\n }", "private void checkCollision(Graphics g) {\n\t\t// collision detection for the tanks\n\t\tGraphics2D g2d = (Graphics2D) g.create();\n\t\tRectangle heroRectangle = hero.getBounds();\n\t\tRectangle hero2Rectangle = computer.getBounds();\n\t\tArrayList<Missile> heroMissiles = hero.getMissiles();\n\t\tArrayList<Missile> hero2Missile = computer.getMissiles();\n\n\t\t// hero1 --------------------\n\t\tAffineTransform at = g2d.getTransform();\n\t\tg2d.setTransform(at);\n\t\tat.rotate(Math.toRadians(hero.getAngle()), hero.getX() + hero.getImageWidth() / 2,\n\t\t\t\thero.getY() + hero.getImageHeight() / 2);\n\t\tGeneralPath heroPath = new GeneralPath();\n\t\theroPath.append(heroRectangle.getPathIterator(at), true);\n\t\tArea heroArea = new Area(heroPath);\n\n\t\t// hero2 ------------------------------\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tat.rotate(Math.toRadians(computer.getAngle()), computer.getX() + computer.getImageWidth() / 2,\n\t\t\t\tcomputer.getY() + computer.getImageHeight() / 2);\n\t\tGeneralPath hero2Path = new GeneralPath();\n\t\thero2Path.append(hero2Rectangle.getPathIterator(at), true);\n\t\tArea hero2Area = new Area(hero2Path);\n\n\t\t// tank1 -- tank2 collision\n\t\thero2Area.intersect(heroArea);\n\t\tif (!hero2Area.isEmpty()) {\n\t\t\tplay(\"tank-tank.wav\");\n\t\t\tposxt2 = computer.getX();\n\t\t\tposyt2 = computer.getY();\n\t\t\tposyt1 = hero.getY();\n\t\t\tposxt1 = hero.getX();\n\t\t\t\n\t\t\texplodet2 = true;\n\t\t\texplodet1 = true;\n\t\t\tg2d.setColor(Color.RED);\n\t\t\tg2d.fill(heroArea);\n\t\t\tcomputer.spawnGenerator();\n\t\t\twhile (getValidRespawnPosition((int) computer.getX(), (int) computer.getY(), computer.getImageWidth(),\n\t\t\t\t\tcomputer.getImageHeight())) {\n\t\t\t\tcomputer.spawnGenerator();\n\t\t\t}\n\n\t\t\thero.spawnGenerator();\n\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\thero.spawnGenerator();\n\t\t\t}\n\t\t}\n\n\t\t// tank2 -- tank1 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m = heroMissiles.get(i);\n\t\t\tRectangle tank1BulletRect = m.getBounds();\n\t\t\tGeneralPath tank1BulletPath = new GeneralPath();\n\t\t\ttank1BulletPath.append(tank1BulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tank1BulletArea = new Area(tank1BulletPath);\n\t\t\thero2Area.intersect(tank1BulletArea);\n\t\t\tif (!hero2Area.isEmpty()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposxt2 = computer.getX();\n\t\t\t\tposyt2 = computer.getY();\n\t\t\t\texplodet2 = true;\n\t\t\t\tif (computer.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp1score++;\n\t\t\t\t\tcomputer.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) computer.getX(), (int) computer.getY(),\n\t\t\t\t\t\t\tcomputer.getImageWidth(), computer.getImageHeight())) {\n\t\t\t\t\t\tcomputer.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\theroMissiles.remove(i);\n\t\t\t\tcomputer.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// tank1 -- tank1 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m1 = heroMissiles.get(i);\n\t\t\tRectangle tankBulletRect = m1.getBounds();\n\t\t\tGeneralPath tankBulletPath = new GeneralPath();\n\t\t\ttankBulletPath.append(tankBulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tankBulletArea = new Area(tankBulletPath);\n\t\t\theroArea.intersect(tankBulletArea);\n\t\t\tif (!heroArea.isEmpty() && m1.isReflected()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposyt1 = hero.getY();\n\t\t\t\tposxt1 = hero.getX();\n\t\t\t\texplodet1 = true;\n\t\t\t\tif (hero.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp2score++;\n\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\theroMissiles.remove(i);\n\t\t\t\thero.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\n\t\t// tank1 -- tank2 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < hero2Missile.size(); i++) {\n\t\t\tMissile m1 = hero2Missile.get(i);\n\t\t\tRectangle tank2BulletRect = m1.getBounds();\n\t\t\tGeneralPath tank2BulletPath = new GeneralPath();\n\t\t\ttank2BulletPath.append(tank2BulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tank2BulletArea = new Area(tank2BulletPath);\n\t\t\theroArea.intersect(tank2BulletArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposyt1 = hero.getY();\n\t\t\t\tposxt1 = hero.getX();\n\t\t\t\texplodet1 = true;\n\t\t\t\tif (hero.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp2score++;\n\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thero2Missile.remove(i);\n\t\t\t\thero.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\n\t\t// tank1 -- powerup collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < powerupArray.size(); i++) {\n\t\t\tRectangle powerupRectangle = (powerupArray.get(i)).getBounds();\n\t\t\tGeneralPath powerupPath = new GeneralPath();\n\t\t\tpowerupPath.append(powerupRectangle.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea powerupArea = new Area(powerupPath);\n\t\t\theroArea.intersect(powerupArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\tplay(\"powerup.wav\");\n\t\t\t\tif ((powerupArray.get(i)).getPowerupType() == 5) {\n\t\t\t\t\thero.setIndex(1);\n\t\t\t\t}\n\t\t\t\tint powerupType = (powerupArray.get(i)).getPowerupType();\n\t\t\t\thero.setCurrentPowerup(powerupType);\n\t\t\t\tpowerupArray.remove(i);\n\t\t\t}\n\t\t}\n\n\t\t// tank2 -- powerup collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < powerupArray.size(); i++) {\n\t\t\tRectangle powerupRectangle = (powerupArray.get(i)).getBounds();\n\t\t\tGeneralPath powerupPath = new GeneralPath();\n\t\t\tpowerupPath.append(powerupRectangle.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea powerupArea = new Area(powerupPath);\n\t\t\thero2Area.intersect(powerupArea);\n\t\t\tif (!hero2Area.isEmpty()) {\n\t\t\t\tplay(\"powerup.wav\");\n\t\t\t\tint powerupType = (powerupArray.get(i)).getPowerupType();\n\t\t\t\tcomputer.setCurrentPowerup(powerupType);\n\t\t\t\tpowerupArray.remove(i);\n\t\t\t}\n\t\t}\n\n\t\t// tank 1 and wall collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (Wall w : wallArray) {\n\t\t\tRectangle wallRect = w.getBounds();\n\t\t\tGeneralPath wallPath = new GeneralPath();\n\t\t\twallPath.append(wallRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea wallArea = new Area(wallPath);\n\t\t\theroArea.intersect(wallArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\thero.setX(hero.getPrevX());\n\t\t\t\thero.setY(hero.getPrevY());\n\t\t\t}\n\t\t}\n\t}", "public boolean tileReachObjectives(float xTile, float yTile)\r\n/* 122: */ {\r\n/* 123:136 */ return (!tileInBounds(xTile, yTile)) || \r\n/* 124:137 */ (this.reach[((int)xTile)][((int)yTile)] != 0);\r\n/* 125: */ }", "public boolean playerCollideTest(PlayerObject player)\n {\n if (this.isTouchable)\n {\n return true;\n\n }\n else return false;\n }", "public void checkCollisions(ArrayList<Collidable> other);", "@Override\n\tpublic boolean hasCollide(Entity e) {\n\t\treturn rect.intersects(e.getRectangle());\n\t}", "private Player checkIfEatsGreenPlayer(Player player)\n {\n int x_cord = getMidPoint(player.x_cordinate);\n int y_cord = getMidPoint(player.y_cordinate);\n int green_x1 = getMidPoint(ludo.getGreenPlayer1().x_cordinate);\n int green_x2 = getMidPoint(ludo.getGreenPlayer2().x_cordinate);\n int green_x3 = getMidPoint(ludo.getGreenPlayer3().x_cordinate);\n int green_x4 = getMidPoint(ludo.getGreenPlayer4().x_cordinate);\n int green_y1 = getMidPoint(ludo.getGreenPlayer1().y_cordinate);\n int green_y2 = getMidPoint(ludo.getGreenPlayer2().y_cordinate);\n int green_y3 = getMidPoint(ludo.getGreenPlayer3().y_cordinate);\n int green_y4 = getMidPoint(ludo.getGreenPlayer4().y_cordinate);\n if (collisionDetection(x_cord, y_cord, green_x1, green_y1) == 1)\n {\n return green_player1;\n }\n else if (collisionDetection(x_cord, y_cord, green_x2, green_y2) == 1)\n {\n return green_player2;\n }\n else if (collisionDetection(x_cord, y_cord, green_x3, green_y3) == 1)\n {\n return green_player3;\n }\n else if (collisionDetection(x_cord, y_cord, green_x4, green_y4) == 1)\n {\n return green_player4;\n }\n else\n {\n return null;\n }\n }", "public boolean collidesWith(ICollider other);", "@Override\r\n\tpublic boolean collides (Entity other)\r\n\t{\r\n\t\tif (other == owner || other instanceof Missile)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn super.collides(other);\r\n\t}", "private void checkForCollisionWithSelf() {\r\n if (isInSnake(snake[0].row,snake[0].column,true)) {\r\n gameOver();\r\n }\r\n }", "public void checkCollision() {}", "public int canPoseBombAndStillBeSafe() {\n Player currentPlayer = state.getCurrentPlayer();\n List<Player> players = state.getPlayers();\n Maze maze = state.getMaze();\n Cell[][] tabcells = maze.getCells();\n for (Player p : players) {\n if (!p.equals(currentPlayer)) {\n if (canBombThisEnemyAndRunSafe(currentPlayer,p)) {\n return 1;\n }\n }\n }\n return 0;\n }", "@Override\n public boolean checkCollideSingle(GameObject gameObject, int x, int y) {\n if (!(gameObject instanceof Player) || !isAlive())\n return false;\n\n boolean result = super.withinRange(x, y);\n\n if (result) {\n if (prev + (hitInterval * 10) < System.currentTimeMillis()) {\n prev = System.currentTimeMillis();\n startHitTime = prev + 300;\n startHit = true;\n }\n }\n\n if (result) {\n if (startHitTime < System.currentTimeMillis() && startHit) {\n HUD.getInstance().removeHealth(getDamage());\n setStatus(PlayerStatus.FIGHTING);\n startHit = false;\n }\n }\n\n return result;\n }", "public boolean hitsWall(Entity e, ICollisionArea box) {\n\t\t// prevent playerfish from leaving the screen\n\t\tif (e instanceof PlayerFish) {\n\t\t\treturn box.isOutside(0, 0, getWidth(), getHeight());\n\t\t} else {\n\t\t\tdouble dw = 2.0 * box.getWidth() + 1;\n\t\t\tdouble dh = 2.0 * box.getHeight() + 1;\n\t\t\treturn box.isOutside(-dw, -dh, getWidth() + dw, getHeight() + dh);\n\t\t}\n\t}", "private void checkIfOccupied(int row, int col) {\n if (status == MotionStatus.DOWN || AIisAttacking) {\n\n// if (player && playerAttacks != null) {\n// // Ignore touch if player has previously committed an attack on that cell.\n// for (int i = 0; i < playerAttacks.size(); i++) {\n// if (playerAttacks.get(i).equals(row,col)) {\n// Log.i(\"for\", \"You Hit this Previously!\");\n// }\n// }\n// }\n\n for (int i = 0; i < occupiedCells.size(); i++) {\n if (occupiedCells.get(i).x == row && occupiedCells.get(i).y == col) {\n Point p = new Point(row, col);\n selectedShip = findWhichShip(p); //Touching View Updated\n Log.i(\"checkIfOccupied getHit\", \"\" + getHit() + \", (\" + row + \", \" + col + \")\");\n setHit(true);\n break;\n }\n }\n\n if (selectedShip == null) {\n setHit(false);\n Log.i(\"checkIfOccupied getHit\", \"\" + getHit() + \", (\" + row + \", \" + col + \")\");\n }\n\n } else if (status == MotionStatus.MOVE) {//MotionStatus.MOVE\n if (selectedShip != null) {//Need to make sure none of the current ship parts will overlap another.\n int rowHolder = selectedShip.getHeadCoordinatePoint().x;\n int colHolder = selectedShip.getHeadCoordinatePoint().y;\n int tempRow, tempCol;\n selectedShip.moveShipTo(row, col);\n for (Ship s : ships) {\n if (s != selectedShip) {\n\n for (int i = 0; i < selectedShip.getShipSize(); i++) {\n tempRow = selectedShip.getBodyLocationPoints()[i].x;\n tempCol = selectedShip.getBodyLocationPoints()[i].y;\n\n for (int j = 0; j < s.getShipSize(); j++) {\n if (tempRow == s.getBodyLocationPoints()[j].x && tempCol == s.getBodyLocationPoints()[j].y) {\n selectedShip.moveShipTo(rowHolder, colHolder);\n }\n }//for\n }//for\n }\n }//for\n }\n }//Move\n }", "private boolean detectCollisions(GameState mGaemState,ArrayList<GameObject> objects,SoundEngine se,ParticleSystem ps){\n boolean playerHit = false;\n for (GameObject go1:objects){\n if (go1.checkActive()){\n //the 1st object is active\n //so worth checking\n\n for (GameObject go2:objects){\n if (go2.checkActive()){\n //the 2nd object is active\n //so worth checking\n if (RectF.intersects(go1.getTransform().getCollider(),go2.getTransform().getCollider())){\n\n //switch goes here\n //there has been a collision\n //but does it matter?\n switch (go1.getTag() + \" with \" + go2.getTag()){\n case \"Player with Alien Laser\":\n playerHit = true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player with Alien\":\n playerHit =true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player Laser with Alien\":\n mGaemState.increaseScore();\n //respawn the alien\n ps.emitParticles(new PointF(go2.getTransform().getLocation().x,go2.getTransform().getLocation().y));\n go2.setInactive();\n go2.spawn(objects.get(Level.PLAYER_INDEX).getTransform());\n go1.setInactive();\n se.playAlienExplode();\n\n break;\n\n default:\n break;\n }\n\n }\n }\n }\n }\n }\n return playerHit;\n }", "private boolean checkCollision(int x, int y) {\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Nonmoving n : handler.getWorld().getEntityManager().getNonmoving()) {\r\n\t\t\tif(n.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(Objects o : handler.getWorld().getEntityManager().getObjects()) {\r\n\t\t\tif(o.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "void checkCol() {\n Player player = gm.getP();\n int widthPlayer = (int) player.getImg().getWidth();\n int heightPlayer = (int) player.getImg().getHeight();\n Bullet dummyBuullet = new Bullet();\n int widthBullet = (int) dummyBuullet.getImg().getWidth();\n int heightBullet = (int) dummyBuullet.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n // the bullet must be an enemy bullet\n if (bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the bullet location is inside the rectangle of player\n if ( Math.abs( bullet.getX() - player.getX() ) < widthPlayer / 2\n && Math.abs( bullet.getY() - player.getY() ) < heightPlayer / 2 ) {\n // 1) destroy the bullet\n // 2) decrease the life of a player\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n bullet.setActive(false);\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n break;\n }\n }\n }\n // 2'nd case\n // the enemy is hit with player bullet\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n if (!bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the player bullet location is inside the rectangle of enemy\n if (Math.abs(enemy.getX() - bullet.getX()) < (widthBullet / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - bullet.getY()) < (heightBullet / 2 + heightEnemy / 2)) {\n // 1) destroy the player bullet\n // 2) destroy the enemy\n if (destroyedEnemy % 3 == 0 && destroyedEnemy != 0) onlyOnce = 0;\n destroyedEnemy++;\n gm.increaseScore();\n enemy.setActive(false);\n\n\n if(enemy.hTitanium()) {\n gm.getTitaniumList()[gm.getTitaniumIndex()].setX(enemy.getX());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setY(enemy.getY());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setActive(true);\n gm.increaseTitaniumIndex();\n }\n\n if(enemy.hBonus()) {\n \tgm.getBonusList()[gm.getBonusIndex()].setX(enemy.getX());\n \tgm.getBonusList()[gm.getBonusIndex()].setY(enemy.getY());\n \tgm.getBonusList()[gm.getBonusIndex()].setActive(true);\n \tgm.increaseBonusIndex();\n }\n bullet.setActive(false);\n break;\n }\n }\n }\n }\n }\n\n // 3'rd case\n // the player collided with enemy ship\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n // the condition when the enemy rectangle is inside the rectangle of player\n if (Math.abs(enemy.getX() - player.getX()) < (widthPlayer / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - player.getY()) < (heightPlayer / 2 + heightEnemy / 2)) {\n // 1) destroy the enemy\n // 2) decrease the player's life\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n enemy.setActive(false);\n\n break;\n }\n }\n }\n\n for (Bonus bonus : gm.getBonusList()) {\n if (bonus.isActive()) {\n int widthBonus = (int) bonus.getImg().getWidth();\n int heightBonus = (int) bonus.getImg().getHeight();\n if (Math.abs(bonus.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(bonus.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n bonus.setActive(false);\n if (bonus.getType() == 1) {\n if (player.getLives() < player.getMaxLives()) {\n player.setLives(player.getLives() + 1);\n }\n }\n else{\n superAttack = 1;\n }\n }\n }\n }\n\n for (Titanium titanium : gm.getTitaniumList()) {\n if (titanium.isActive()) {\n int widthBonus = (int) titanium.getImg().getWidth();\n int heightBonus = (int) titanium.getImg().getHeight();\n if (Math.abs(titanium.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(titanium.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n titanium.setActive(false);\n gm.getP().increaseTitanium();\n }\n }\n }\n\n }", "boolean insideSprite(Sprite s){\n if (s._hitbox.length == 1) {\n if (_hitbox.length == 1) {\n return PVector.dist(s._getCenter(),this._getCenter()) <\n s._hitbox[0].x - this._hitbox[0].x;\n }\n return _insideCirc(_getPoints(), s._getCenter(), s._hitbox[0].x);\n }\n if (s._hitbox.length == 1) {\n // TODO: check if center is in middle but NOT touching any side\n // (will want to adapt existing _circPoly to separate side-touching\n // code into individual method)\n return false;\n }\n return _insidePts(this._getPoints(), s._getPoints());\n }", "public boolean canMine(EntityPlayer player, int X, int Y, int Z);", "private Player checkIfEatsRedPlayer(Player player)\n {\n int x_cord = getMidPoint(player.x_cordinate);//player.x_cordinate;\n int y_cord = getMidPoint(player.y_cordinate);//player.y_cordinate;\n int redx1 = getMidPoint(getRed_player1().x_cordinate);\n int redx2 = getMidPoint(getRed_player2().x_cordinate);\n int redx3 = getMidPoint(getRed_player3().x_cordinate);\n int redx4 = getMidPoint(getRed_player4().x_cordinate);\n int redy1 = getMidPoint(getRed_player1().y_cordinate);\n int redy2 = getMidPoint(getRed_player2().y_cordinate);\n int redy3 = getMidPoint(getRed_player3().y_cordinate);\n int redy4 = getMidPoint(getRed_player4().y_cordinate);\n if (collisionDetection(x_cord, y_cord, redx1, redy1) == 1)\n {\n return getRed_player1();\n }\n else if (collisionDetection(x_cord, y_cord, redx2, redy2) == 1)\n {\n return getRed_player2();\n }\n else if (collisionDetection(x_cord, y_cord, redx3, redy3) == 1)\n {\n return getRed_player3();\n }\n else if (collisionDetection(x_cord, y_cord, redx4, redy4) == 1)\n {\n return getRed_player4();\n }\n else\n {\n return null;\n }\n }", "private void CheckWorldCollision() {\n\t\tfor(WorldObj obj : World.CurrentWorld.SpawnedObjects) {\n\t\t\tif(bounds.overlaps(obj.bounds))\n\t\t\t\tobj.OnCollision(this);\n\t\t\tif(MapRenderer.CurrentRenderer.ItemAnimation != null) {\n\t\t\t\tif(obj.ai != null) {\n\t\t\t\t\tif(dir == LEFT)\n\t\t\t\t\tAttackBounds.set(pos.x+(dir*1.35f)+0.5f,pos.y,1.35f,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tAttackBounds.set(pos.x+0.5f,pos.y,1.35f,1);\n\t\t\t\t\tif(obj.healthBarTimer > 0.4f)\n\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\tif(!Terrain.CurrentTerrain.isSolid((int)(pos.x+0.5f+(0.3f*dir)), (int)(pos.y+0.5f)))\n\t\t\t\t\tobj.ai.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\tHitTimer = 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(obj.damageable) {\n\t\t\t\t\tif(AttackBounds.overlaps(obj.bounds)) {\n\t\t\t\t\t\tobj.onDamaged(this, UsedItem, GetATK());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void collisionHappened(int position);", "public void updateMountedMovingPlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.posX >> 4;\r\n int var3 = (int)player.posZ >> 4;\r\n double var4 = player.managedPosX - player.posX;\r\n double var6 = player.managedPosZ - player.posZ;\r\n double var8 = var4 * var4 + var6 * var6;\r\n\r\n if (var8 >= 64.0D)\r\n {\r\n int var10 = (int)player.managedPosX >> 4;\r\n int var11 = (int)player.managedPosZ >> 4;\r\n int var12 = this.playerViewRadius;\r\n int var13 = var2 - var10;\r\n int var14 = var3 - var11;\r\n\r\n if (var13 != 0 || var14 != 0)\r\n {\r\n for (int var15 = var2 - var12; var15 <= var2 + var12; ++var15)\r\n {\r\n for (int var16 = var3 - var12; var16 <= var3 + var12; ++var16)\r\n {\r\n if (!this.overlaps(var15, var16, var10, var11, var12))\r\n {\r\n this.getPlayerInstance(var15, var16, true).addPlayer(player);\r\n }\r\n\r\n if (!this.overlaps(var15 - var13, var16 - var14, var2, var3, var12))\r\n {\r\n PlayerManager.PlayerInstance var17 = this.getPlayerInstance(var15 - var13, var16 - var14, false);\r\n\r\n if (var17 != null)\r\n {\r\n var17.removePlayer(player);\r\n }\r\n }\r\n }\r\n }\r\n\r\n this.filterChunkLoadQueue(player);\r\n player.managedPosX = player.posX;\r\n player.managedPosZ = player.posZ;\r\n }\r\n }\r\n }", "public static boolean checkHit(int row, int col, BattleshipModel currentModel){\n boolean hit = false;\n\n //check if it is a hit on the computer's aircraft carrier\n if ((currentModel.computerAircraftCarrier.start.Across <= col) && (col <= currentModel.computerAircraftCarrier.end.Across)){\n if ((currentModel.computerAircraftCarrier.start.Down <= row) && (row <= currentModel.computerAircraftCarrier.end.Down))\n {\n //it's a hit on the aircraft carrier\n hit = true;\n }\n }\n\n //check if it's a hit on the battleship\n if ((currentModel.computerBattleship.start.Across <= col) && (col <= currentModel.computerBattleship.end.Across)){\n if ((currentModel.computerBattleship.start.Down <= row) && (row <= currentModel.computerBattleship.end.Down))\n {\n //it's a hit on the battleship\n hit = true;\n }\n }\n\n //check if it's a hit on the cruiser\n if ((currentModel.computerCruiser.start.Across <= col) && (col <= currentModel.computerCruiser.end.Across)){\n if ((currentModel.computerCruiser.start.Down <= row) && (row <= currentModel.computerCruiser.end.Down))\n {\n //it's a hit on the cruiser\n hit = true;\n }\n }\n\n //check if it's a hit on the destroyer;\n if ((currentModel.computerDestroyer.start.Across <= col) && (col <= currentModel.computerDestroyer.end.Across)){\n if ((currentModel.computerDestroyer.start.Down <= row) && (row <= currentModel.computerDestroyer.end.Down))\n {\n //it's a hit on the destroyer\n hit = true;\n }\n }\n\n //check if it's a hit on th submarine\n if ((currentModel.computerSubmarine.start.Across <= col) && (col <= currentModel.computerSubmarine.end.Across)){\n if ((currentModel.computerSubmarine.start.Down <= row) && (row <= currentModel.computerSubmarine.end.Down))\n {\n //it's a hit on the submarine\n hit = true;\n }\n }\n\n\n if (!hit){\n //record as a miss\n Misses miss = new Misses(row, col);\n currentModel.computerMisses.add(miss);\n System.out.println(\"You missed!\");\n } else if (hit) {\n Hits hit1 = new Hits(row, col);\n currentModel.computerHits.add(hit1);\n System.out.println(\"That was a hit\");\n }\n\n //Hit for AI to user\n int airow, aicol;\n boolean aihit = false;\n\n airow = rn.nextInt(10) + 1;\n aicol = rn.nextInt(10) + 1;\n\n //check if it is a hit on the computer's aircraft carrier\n if ((currentModel.AircraftCarrier.start.Across <= aicol) && (aicol <= currentModel.AircraftCarrier.end.Across)){\n if ((currentModel.AircraftCarrier.start.Down <= airow) && (airow <= currentModel.AircraftCarrier.end.Down))\n {\n //it's a hit on the aircraft carrier\n aihit = true;\n }\n }\n\n //check if it's a hit on the battleship\n if ((currentModel.Battleship.start.Across <= aicol) && (aicol <= currentModel.Battleship.end.Across)){\n if ((currentModel.Battleship.start.Down <= airow) && (airow <= currentModel.Battleship.end.Down))\n {\n //it's a hit on the battleship\n aihit = true;\n }\n }\n\n //check if it's a hit on the cruiser\n if ((currentModel.Cruiser.start.Across <= aicol) && (aicol <= currentModel.Cruiser.end.Across)){\n if ((currentModel.Cruiser.start.Down <= airow) && (airow <= currentModel.Cruiser.end.Down))\n {\n //it's a hit on the cruiser\n aihit = true;\n }\n }\n\n //check if it's a hit on the destroyer;\n if ((currentModel.Destroyer.start.Across <= aicol) && (aicol <= currentModel.Destroyer.end.Across)){\n if ((currentModel.Destroyer.start.Down <= airow) && (airow <= currentModel.Destroyer.end.Down))\n {\n //it's a hit on the destroyer\n aihit = true;\n }\n }\n\n //check if it's a hit on th submarine\n if ((currentModel.Submarine.start.Across <= aicol) && (aicol <= currentModel.Submarine.end.Across)){\n if ((currentModel.Submarine.start.Down <= airow) && (airow <= currentModel.Submarine.end.Down))\n {\n //it's a hit on the submarine\n aihit = true;\n }\n }\n\n if (!aihit){\n //record as a miss\n Misses aimiss = new Misses(airow, aicol);\n currentModel.Misses.add(aimiss);\n System.out.println(\"The computer missed!\");\n } else if (aihit) {\n Hits aihit1 = new Hits(airow, aicol);\n currentModel.Hits.add(aihit1);\n System.out.println(\"The computer hit\");\n }\n\n //return the updated battleship model as a string (json)\n Gson gson = new Gson();\n String CurrentStateJson = gson.toJson(currentModel);\n\n // return CurrentStateJson;\n return hit;\n\n }", "public void checkHits() {\n\t\t// your code here\n\t\tfor (int i = 0; i < enemyX.length; i++) {\n\t\t\tif (distance((int)xI, (int)yI, enemyX[i], enemyY[i]) <= DIAM_ENEMY/2 + DIAM_LAUNCHER/2) {\n\t\t\t}\n\t\t}\n\t}", "private void checkCollision() {\n for (int i = snakeSize; i > 0; i--) {\n if (i>4 && x[0] == x[i] && y[0] == y[i]){\n isInGame=false;\n }\n }\n\n if (x[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (x[0] < 0) {\n isInGame=false;\n }\n\n if (y[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (y[0] < 0) {\n isInGame=false;\n }\n\n\n }" ]
[ "0.6774878", "0.67404544", "0.6619627", "0.6567287", "0.6499284", "0.647308", "0.64278", "0.6426571", "0.6389503", "0.638513", "0.6270162", "0.6264328", "0.6247132", "0.6204516", "0.61876816", "0.61493444", "0.6132956", "0.6116706", "0.60984534", "0.60719556", "0.6065575", "0.6041777", "0.6031092", "0.6021116", "0.6020181", "0.60131377", "0.6006515", "0.60015523", "0.5975947", "0.59736824", "0.5967491", "0.5965531", "0.5964467", "0.59639716", "0.59632367", "0.5962359", "0.59413195", "0.5933713", "0.5919763", "0.5915461", "0.5914011", "0.591245", "0.58947176", "0.5886317", "0.58811957", "0.5869634", "0.5855769", "0.58416057", "0.58409643", "0.58399665", "0.5837907", "0.5834565", "0.5831633", "0.5826327", "0.58242863", "0.58127326", "0.5807444", "0.580183", "0.58002216", "0.5800023", "0.5794335", "0.57914746", "0.5790976", "0.57887703", "0.5783891", "0.57800144", "0.57764703", "0.57609713", "0.57560676", "0.5748883", "0.5736749", "0.5730534", "0.57304245", "0.5729528", "0.5729266", "0.5724404", "0.5716194", "0.57145846", "0.57134235", "0.57119644", "0.5708383", "0.5705026", "0.57030106", "0.570073", "0.5696508", "0.56962657", "0.56837016", "0.56818086", "0.5677639", "0.5673447", "0.5670169", "0.5658402", "0.5652905", "0.56513584", "0.56452745", "0.5644953", "0.56442344", "0.5642637", "0.5642183", "0.5641011" ]
0.8126
0
convert an angle (in 2deg increments) to a vector with magnitude Cell.move_dist (max allowed movement distance)
private Point extractVectorFromAngle(int arg) { double theta = Math.toRadians( 2* (double)arg ); double dx = Cell.move_dist * Math.cos(theta); double dy = Cell.move_dist * Math.sin(theta); return new Point(dx, dy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Vector2 angleToVector(Vector2 outVector, float angle) {\n\t\treturn Constants.angleToVector(outVector, angle);\n\t}", "public static double convertAngle(double angle) {\n // Reuse convertDistance() for calculating correct angle\n return convertDistance(Math.PI * BASE_WIDTH * angle / 360.0);\n }", "void turnToDir(float angle) { \n float radian = radians(angle);\n _rotVector.set(cos(radian), sin(radian));\n _rotVector.setMag(1);\n }", "public static double getNewVelocity(double velocity, double maxVelocity, double distance) {\n if (distance < 0) {\n // If the distanceToEdges is negative, then change it to be positive\n // and change the sign of the input velocity and the result\n return -getNewVelocity(-velocity, maxVelocity, -distance);\n }\n\n final double goalVel;\n\n if (distance == Double.POSITIVE_INFINITY) {\n goalVel = maxVelocity;\n } else {\n goalVel = Math.min(getMaxVelocity(distance), maxVelocity);\n }\n\n if (velocity >= 0) {\n return Math.max(velocity - Rules.DECELERATION, Math.min(goalVel, velocity + Rules.ACCELERATION));\n }\n // else\n return Math.max(velocity - Rules.ACCELERATION, Math.min(goalVel, velocity + maxDecel(-velocity)));\n }", "public static int convertAngle(double angle) {\n // Using convertDistance method to calculate constant rotation of the robot + scaling\n return convertDistance((Math.PI * BASE_WIDTH * angle / 360.0) * 100) / 100;\n }", "double getVelComp(double vel, double angle)\n {\n angle = Math.toRadians(angle);\n double cos = Math.cos(angle);\n double sin = Math.sin(angle);\n ux = vel*cos;\n uy = vel*sin;\n this.angle = angle; \n return ux;\n }", "public void updateAngle() {\n\t\tfloat ak = 0;\n\t\tfloat gk = 0;\n\t\tak = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterX() - x);\n\t\tgk = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterY() - y);\n\t\tangleDesired = (float) Math.toDegrees(Math.atan2(ak*-1, gk));\n\t\t// if the angle and the angleDesired are opposites the Vector point into the opposite direction\n\t\t// this means the angle will be the angle of the longer vector which is always angle\n\t\t// so if that happens the angleDesired is offset so this won't happen\n\t\tangle = Commons.calculateAngleAfterRotation(angle, angleDesired, rotationDelay);\n\t}", "public double direction(){\n return Math.atan2(this.y, this.x);\n }", "final static double getMaxVelocity(double distance) {\n final double decelTime = Math.max(1, Math.ceil(\n //sum of 0... decelTime, solving for decelTime\n //using quadratic formula, then simplified a lot\n Math.sqrt(distance + 1) - 0.5));\n\n final double decelDist = (decelTime) * (decelTime - 1);\n // sum of 0..(decelTime-1)\n // * Rules.DECELERATION*0.5;c\n\n return ((decelTime - 1) * 2) + ((distance - decelDist) / decelTime);\n }", "protected double findAngleToEnemy(Movable enemy){\n\t\tdouble enemyX = enemy.getX() - x;\n\t\tdouble enemyY = enemy.getY() - y;\n\t\treturn Math.atan2(enemyX, enemyY);\n\t}", "private int DirectionCalculation(int angle)\r\n\t{\t\r\n\t\treturn (int) ((angle/14.28)+1); //Angle divided by (100/(parts-1)) = 1-8\r\n\t}", "private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}", "public static double convertDistance(double distance) {\n // Compute and return the correct value (in degrees)\n return (360.0 * distance / (WHEEL_CIRC));\n }", "public void moveDistance(double distance, double angle) {\n\t\tdouble startX = posX;\n\t\tdouble startY = posY;\n\t\trotateTo(angle);\n\t\twhile(Math.sqrt((startX * startX) + (startY * startY)) < distance) {\t\n\t\t//I thought while loops broke things? Do we need to fix this? [Yes. -Thomas]\n\t\t\tif (angleToForward < angle) {\n\t\t\t\t//right greater\n\t\t\t\tmotorRB.set(0.25);\n\t\t\t\tmotorRF.set(0.25);\n\t\t\t\tmotorLB.set(-0.1);\n\t\t\t\tmotorLF.set(-0.1);\n\t\t\t} else if (angleToForward > angle) {\n\t\t\t\tmotorRB.set(0.1);\n\t\t\t\tmotorRF.set(0.1);\n\t\t\t\tmotorLB.set(-0.25);\n\t\t\t\tmotorLF.set(-0.25);\n\t\t\t} else {\n\t\t\t\tmotorRB.set(0.25);\n\t\t\t\tmotorRF.set(0.25);\n\t\t\t\tmotorLB.set(-0.25);\n\t\t\t\tmotorLF.set(-0.25);\n\t\t\t}\n\t\t}\n\t}", "public double getRight(double max) {\n return Math.max(max, max - (this.length * Math.cos(Math.toRadians(this.theta)))); \n }", "public float angle(Vector2f vec) {\n return (float) Math.acos(dot(vec) / (length() * vec.length()));\n }", "public static double lengthToRadians(double distance) {\n return lengthToRadians(distance, TurfConstants.UNIT_DEFAULT);\n }", "private PVector angleAsVector(float theta) {\n\t\tPVector result = new PVector(0,0);\r\n\t\tresult.x = (float) Math.cos(theta);\r\n\t\tresult.y = (float) Math.sin(theta);\r\n\t\treturn result;\r\n\t}", "public Velocity(double angle, double mag){\n\t\tthis(Math.cos(angle),-Math.sin(angle),mag);\n\t}", "@NotNull\n @Override\n public OctilinearDirection toOctilinear() {\n Direction direction;\n double diff = angle % 45;\n if (diff < 45 / 2) {\n direction = fromAngle(angle - diff);\n }\n else {\n direction = fromAngle(angle + (45 - diff));\n }\n return direction.toOctilinear();\n }", "public Vector2D(double angle)\n\t{\n\t\tx = Math.cos(Math.toRadians(angle));\n\t\ty = Math.sin(Math.toRadians(angle));\n\t}", "public double getDirectionMove();", "public double speed() {\n /* dx = sin(angle) * speed\n dy = cos(angle-180) * speed = -cos(angle)\n sqrt((dx)^2 + (-dy)^2 = sin(angle)^2*speed^2 + cos(angle)^2*speed^2)=\n sqrt(speed^2 *(cos(angle)^2+sin(angle)^2) = sqrt(speed^2*1)=speed\n */\n //distance math functions\n //to calculate the square root of the sum of squares of numbers passed to it as arguments.\n return Math.hypot(this.dx, this.dy);\n }", "public static int convertAngle(double angle) {\n return convertDistance(Math.PI * BASE_WIDTH * angle / 360.0);\n }", "public double fromVelocityToSpeed() {\n return Math.sqrt(Math.pow(this.getDx(), 2) + Math.pow(this.getDy(), 2));\n }", "private float angleDistance(float from, float to) {\n float d = to - from;\n if (d > Math.PI) {\n return d - (float) Math.PI;\n }\n if (d < -Math.PI) {\n return d + (float) Math.PI;\n }\n return d;\n }", "public double getDistance(){\n return sensor.getVoltage()*100/2.54 - 12;\n }", "public float angle (Vector2f other)\n {\n return FloatMath.acos(dot(other) / (length() * other.length()));\n }", "public static double bestDirTurn(double startAngle, double targetAngle) {\n double delta = (targetAngle - startAngle + 540) % 360 - 180;\n return delta;\n }", "public double calculateDegToAttack() {\r\n\t\tdouble randX = Math.random() * (MAX_X - MIN_X + 1) + MIN_X;\r\n\t\tdouble tempX = randX - this.getX();\r\n\t\tdouble tempY = this.getY() - Y_HEIGHT;\r\n\t\tdouble degRads = 0;\r\n\t\tdouble deg = 0;\r\n\t\tSystem.out.println(\"x: \" + tempX + \" y: \" + tempY);\r\n\t\tif(tempX<0) {\r\n\t\t\ttempX*=-1;\r\n\t\t\tdegRads = Math.atan(tempY/tempX);\r\n\t\t\tdeg = Math.toDegrees(degRads);\r\n\t\t\tdeg = deg + ((90-deg)*2);\r\n\t\t}else {\r\n\t\t\tdegRads = Math.atan(tempY/tempX);\r\n\t\t\tdeg = Math.toDegrees(degRads);\r\n\t\t}\r\n\t\tif(deg < 0) {\r\n\t\t\tdeg+=360;\r\n\t\t}\r\n\t\tSystem.out.println(\"degs: \" + deg);\r\n\t\tspaceToAttack = new space(randX, Y_HEIGHT);\r\n\t\treturn deg;\r\n\t}", "public float getAngle() {\n if(vectorAngle < 0 )\n return (float) Math.toDegrees(Math.atan(longComponent / latComponent));\n else\n return vectorAngle;\n\n }", "private double changeDirection(double theta) {\n // Check angle not out of bounds\n theta = (theta > MAX_ANGLE) ? MAX_ANGLE : theta;\n theta = (theta < -MAX_ANGLE) ? -MAX_ANGLE : theta;\n\n return theta;\n }", "public void updateAngle(Vector2 angleVector) {\n Vector2 vel = angleVector;\n //regularizes angles to be between 0 and 2pi\n float angle = (float)((getBody().getAngle() + Math.PI * 4) % (Math.PI * 2));\n float nextangle = (float)((Math.atan2(vel.y, vel.x) + Math.PI * 4) % (Math.PI * 2));\n float altangle = (float)((nextangle > angle) ? nextangle - Math.PI * 2 : nextangle + Math.PI *2);\n\n //checks which direction to turn angle\n float dist1 = Math.abs(nextangle - angle);\n float dist2 = Math.abs(altangle - angle);\n\n //sets direction appropriately\n int direction = (nextangle > angle) ? 1 : -1;;\n if (dist2 < dist1) {\n direction = direction * -1;\n }\n getBody().setAngularVelocity(ANG_VEL * direction * Math.min(dist1, dist2));\n }", "public static int vectorAngle(int x, int y) {\n return (Math.round((float)Math.toDegrees(Math.atan2(x, y))));\n }", "public double magnitude(Coordinates vector);", "public static Vector VectorRotate2D(final Vector vector, final float angle) {\n float dx = vector.x, dy = vector.y;\n float c = cos(angle), s = sin(angle);\n\n return new Vector((dx * c) - (dy * s),\n (dx * s) + (dy * c),\n vector.z);\n }", "public double toAngle()\n\t{\n\t\treturn Math.toDegrees(Math.atan2(y, x));\n\t}", "public double betweenAngle(Coordinates vectorA, Coordinates vectorB);", "public Point2 move(double distance, double angle) {\r\n if (distance < 0) {\r\n throw new IllegalArgumentException(\"distance is less than zero\");\r\n }\r\n if (angle < 0 || angle > 360) {\r\n throw new IllegalArgumentException(\"angle should be in range 0 to 360\");\r\n } else {\r\n Vector2 dirVectorUp = Vector2.dirVector(angle);\r\n dirVectorUp.multiply(distance);\r\n position.moveX(dirVectorUp.getX());\r\n position.moveY(dirVectorUp.getY());\r\n return position;\r\n }\r\n }", "public double angle(final Vec4 o) {\n return Math.asin(Math.sqrt(normalized().cross(o.normalized()).lengthSq()));\n }", "public float getDistance();", "@Override\n\tpublic double calculateVelocity() {\n\t\tdouble result = distance / time + velocitySame - velocityReverse;\n\t\treturn result;\n\t}", "public float getVelAngle() {\n\t\tif (velocity.y == 0f && velocity.x == 0f)\n\t\t\treturn restrictAngle((float) Math.random() * float2pi);\n\t\tfloat result = (float) Math.atan2(velocity.y, velocity.x);\n\t\treturn restrictAngle(result);\n\t}", "@Override\n\tpublic float vectorToAngle(Vector2 vector) {\n\t\treturn Constants.vectorToAngle(vector);\n\t}", "public double translateAngle( Figure f, double angle, double dir);", "private double getDistance() {\n\t\tfinal double h2 = 86.7;\n\t\t// h1: height of top of camera\n\t\tfinal double h1 = 17.6;\n\n\t\t// a1: angle of camera (relative to chasis)\n\t\tfinal double a1 = 36.175;\n\t\t// a2: angle of target relative to a1\n\t\tfinal double a2 = ty.getDouble(0.0);\n\n\t\t// distance: distance from camera to base of target\n\t\tfinal double distance = ((h2 - h1) / Math.tan(Math.toRadians(a1 + a2)));\n\n\t\tfinal double d = Math.sqrt(Math.pow(h2 - h1, 2) + Math.pow(distance, 2));\n\t\tSmartDashboard.putNumber(\"Py Distance\", d);\n\n\t\treturn (distance);\n\n\t}", "public static Velocity fromAngleAndSpeed(double angle, double speed) {\n double adjustAngle = angle - 90;\n double nextX = speed * Math.cos(Math.toRadians(adjustAngle));\n double nextY = speed * Math.sin(Math.toRadians(adjustAngle));\n return new Velocity(nextX, nextY);\n }", "private float normalize(float angle) {\n\t\tfloat a = angle;\n\t\twhile (a > 180)\n\t\t\ta -= 360;\n\t\twhile (a < -180)\n\t\t\ta += 360;\n\t\treturn a;\n\t}", "public static Velocity fromAngleAndSpeed(double angle, double speed) {\r\n angle -= 90;\r\n angle *= Math.PI / (180);\r\n double dx = Math.cos(angle) * speed;\r\n double dy = Math.sin(angle) * speed;\r\n return new Velocity(dx, dy);\r\n }", "private void setDirection() {\n directionX = corePos.getX() - projectile.getX();\n directionY = corePos.getY() - projectile.getY();\n\n double length = Math.sqrt(directionX*directionX + directionY*directionY);\n\n if (length != 0) {\n directionX = directionX/length;\n directionY = directionY/length;\n }\n }", "private void calculateMovement() {\r\n \tmovementY = (int)(movementSpeed * Math.sin(Math.toRadians(movementDirection - 90)));\r\n \tmovementX = (int)(movementSpeed * Math.cos(Math.toRadians(movementDirection - 90)));\r\n }", "public static double Calculate(double distance) {\n double speed = 0.0; //Rad/s\n double speedRPM = 0.0; //RPM\n //Angle in Degrees for the Outer Port\n\n double numerator = -(9.81/2) * Math.pow(distance, 2);\n double denominator = ((2.49 - shooterHeight) - (distance * Math.tan(shooterAngleRads))) * Math.pow(Math.cos(shooterAngleRads), 2);\n\n speed = ((1/shooterWheelRadius) * Math.sqrt(numerator / denominator)); // Rads/Sec for the wheel\n speedRPM = speed * (30/(Math.PI)); //RPM Conversion\n //System.out.printf(\"Wheel Speed: %s RPM\\nWheel Tangential Velocity is: %s m/s\\nMotor Speed: %s RPM\\nMotor Tangential Velocity: %s m/s\\n\", speedRPM, speed*shooterWheelRadius, speedRPM * 3, speed * 3 * shooterWheelRadius);\n return (speedRPM*3)/6000;\n }", "private double degToRadian(double angle)\n\t{\n\t\treturn angle/180*Math.PI;\n\t}", "public double angle() {\n return Math.atan2(_y,_x);\n }", "public double getAbsPosition() {\n double distCM = ToFSerial.get() - startDist;\n //System.out.println(\"Dist in CM \" + distCM);\n\n double distIn = distCM * Constants.k_CMtoIn;\n //System.out.println(\"Dist in In \" + distIn);\n\n return (int) (1000 * distIn); \n\n }", "public Vector2 withMagnitude(double magnitude) {\n return new Vector2(Degrees.cos(getRotation()) * magnitude, Degrees.sin(getRotation()) * magnitude);\n }", "public static float map180to360(float angle) {\n return (angle + 360) % 360;\n }", "public double getYDirection() {\r\n return Math.sin(Math.toRadians(angle));\r\n }", "public int calculatePWMfromAngle(double angle) {\n return (int) restrict((angle + 1.04)/.00180, min, max);\n }", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "public double\nangleInXYPlane()\n{\n\tBVector2d transPt = new BVector2d(\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n\t\n\t// debug(\"transPt: \" + transPt);\n\n\tdouble angle = MathDefines.RadToDeg * new Vector2d(1.0, 0.0).angle(transPt);\n\tif (transPt.getY() < 0.0)\n\t{\n\t\t// debug(\"ang0: \" + (360.0 - angle));\n\t\treturn(360.0 - angle);\n\t}\n\t// debug(\"ang1: \" + angle);\n\treturn(angle);\n}", "public double angle()\n {\n return Math.atan2(this.y, this.x);\n }", "public static void gh_compute_ref_max_accel( Int32Vect2 ref_vector) {\n\t\t if (ref_vector.x == 0 && ref_vector.y == 0) {\n\t\t\t gh_max_accel_ref.x = gh_max_accel_ref.y =(int) ( gh_max_accel * 0.707);\n\t\t }\n\t\t else {\n\t\t\t gh_compute_route_ref(ref_vector);\n\t\t\t /* Compute maximum acceleration*/\n\t\t\t gh_max_accel_ref.x = INT_MULT_RSHIFT(gh_max_accel, c_route_ref, INT32_TRIG_FRAC);\n\t\t\t gh_max_accel_ref.y = INT_MULT_RSHIFT(gh_max_accel, s_route_ref, INT32_TRIG_FRAC);\n\t\t }\n\t }", "public static Velocity fromAngleAndSpeed(double angle, double speed) {\n double dx = Math.sin(Math.toRadians(angle)) * Math.abs(speed);\n double dy = Math.cos(Math.toRadians(angle - 180)) * Math.abs(speed);\n return new Velocity(dx, dy);\n }", "public double findAngleOfAttack() {\n\t\tdouble dy = this.trailingPt.y - this.leadingPt.y; // trailingPt goes first since positive numbers are down\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// y-axis in Canvas\n\t\tdouble dx = this.leadingPt.x - this.trailingPt.x;\n\t\treturn Math.atan2(dy, dx);\n\t}", "public double theta() { return Math.atan2(y, x); }", "public void getDistance() {\n projDistance = 2 * sin(toRadians(launchAngle)) * getVelocity() / 9.8 * cos(toRadians(launchAngle)) * getVelocity();\n }", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n int newLeftTarget;\n int newRightTarget;\n int moveCounts;\n double max;\n double error;\n double steer;\n double leftSpeed;\n double rightSpeed;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftMotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightMotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftMotor.setTargetPosition(newLeftTarget);\n rightMotor.setTargetPosition(newRightTarget);\n\n leftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n leftMotor.setPower(speed);\n rightMotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while (opModeIsActive() &&\n (leftMotor.isBusy() && rightMotor.isBusy())) {\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if any one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftMotor.setPower(leftSpeed);\n rightMotor.setPower(rightSpeed);\n\n // Display drive status for the driver.\n telemetry.addData(\"Err/St\", \"%5.1f/%5.1f\", error, steer);\n telemetry.addData(\"Target\", \"%7d:%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Actual\", \"%7d:%7d\", leftMotor.getCurrentPosition(),\n rightMotor.getCurrentPosition());\n telemetry.addData(\"Speed\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n telemetry.update();\n }\n\n // Stop all motion;\n\n rightMotor.setPower(0);\n leftMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n\n // Ensure that the opmode is still activ\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftmotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightmotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftmotor.setTargetPosition(newLeftTarget);\n rightmotor.setTargetPosition(newRightTarget);\n\n leftmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n\n maxSpeed = speed;\n speed = INCREMENT;\n rampUp = true;\n\n leftmotor.setPower(speed);\n rightmotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while ((leftmotor.isBusy() && rightmotor.isBusy())) {\n if (rampUp){\n speed += INCREMENT ;\n if (speed >= maxSpeed ) {\n speed = maxSpeed;\n }\n }\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if either one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftmotor.setPower(leftSpeed);\n rightmotor.setPower(rightSpeed);\n }\n\n // Stop all motion;\n leftmotor.setPower(0);\n rightmotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n gyroHold(TURN_SPEED,angle,0.166);\n\n }", "public static int convertDistance(double distance) {\n // Using arc length formula to calculate the distance + scaling\n return (int) ((180 * distance) / (Math.PI * WHEEL_RAD) * 100) / 100;\n }", "double getDistance();", "private static double angulo(Point2D.Double p2,Point2D.Double p1){\n \t\n return Math.atan2(p2.x - p1.x, p2.y - p1.y);\n }", "public static Vector polar(double magnitude, double angle) {\n\t\tdouble rads = Math.toRadians(angle);\n\t\tdouble x = magnitude * Math.cos(rads);\n\t\tdouble y = magnitude * Math.sin(rads);\n\t\treturn new Vector(x, y);\n\t}", "public static Direction fromAngle(double angle) {\n if (inRange(angle, 45, 135)) {\n return Direction.up;\n } else if (inRange(angle, 0, 45) || inRange(angle, 315, 360)) {\n return Direction.right;\n } else if (inRange(angle, 225, 315)) {\n return Direction.down;\n } else {\n return Direction.left;\n }\n\n }", "public double getDistance() { \n\t\treturn Math.pow(input.getAverageVoltage(), exp) * mul; \n\t}", "public float reverseVerticalDirection(float angle) {\n return (float) (2*Math.PI-angle);\n }", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n int newLeftTarget;\n int newRightTarget;\n int moveCounts;\n double max;\n double error;\n double steer;\n double leftSpeed;\n double rightSpeed;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = robot.leftDrive.getCurrentPosition() + moveCounts;\n newRightTarget = robot.rightDrive.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n robot.leftDrive.setTargetPosition(newLeftTarget);\n robot.rightDrive.setTargetPosition(newRightTarget);\n\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n robot.leftDrive.setPower(speed);\n robot.rightDrive.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while (opModeIsActive() &&\n (robot.leftDrive.isBusy() && robot.rightDrive.isBusy())) {\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if either one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n robot.leftDrive.setPower(leftSpeed);\n robot.rightDrive.setPower(rightSpeed);\n\n // Display drive status for the driver.\n telemetry.addData(\"Err/St\", \"%5.1f/%5.1f\", error, steer);\n telemetry.addData(\"Target\", \"%7d:%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Actual\", \"%7d:%7d\", robot.leftDrive.getCurrentPosition(),\n robot.rightDrive.getCurrentPosition());\n telemetry.addData(\"Speed\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n telemetry.update();\n }\n\n // Stop all motion;\n robot.leftDrive.setPower(0);\n robot.rightDrive.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n }", "private Vector3f calculateVectorDirectionBetweenEyeAndCenter() {\n\t\tVector3f br = new Vector3f();\n\n\t\tbr.x = player.getPosition().x - camera.getPosition().x;\n\t\tbr.y = player.getPosition().y - camera.getPosition().y;\n\t\tbr.z = player.getPosition().z - camera.getPosition().z;\n\n\t\treturn br;\n\t}", "public Wall(double distance, double angle){\n\t\tthis.distance = distance;\n\t\tthis.angle = angle;\n\t}", "protected float getMovementSpeed() {\r\n\t\tfloat speed = getSpeed();\r\n\t\treturn speed / 17f + (float) Math.pow(Math.sqrt(speed), 1.225f) * 0.985f;\r\n\t}", "public static float deg2rad(float deg) {return deg*D2R;}", "private Point translatePoint(Point start, double angle, double distance) {\n\t\tif (distance==0)\n\t\t\treturn start;\n\t\tangle = angle*0.0174532778; //Convert to radians = pi/180\n\t\tPoint p = new Point(start.x+distance*Math.sin(angle), start.y-distance*Math.cos(angle) );\n\t\treturn p;\n\t}", "public static double angularDistance(double a1, double a2) {\n return floorMod((a2 - a1 + Math.PI), PI2) - Math.PI;\n }", "public void walk( float dist ) {\r\n\t\tmove((float) Math.sin(angle * MathUtils.degRad) * dist, 0, (float) Math.cos(angle * MathUtils.degRad) * dist);\r\n\t}", "private double getDistance(Vector2i tile, Vector2i goal) {\n\t\t double dx = tile.getX() - goal.getX();\n\t\t double dy = tile.getY() - goal.getY();\n\t\t return Math.sqrt(dx * dx + dy *dy); //distance \n\t }", "public static double angle(Point2D a) {\n\t\treturn Math.atan2(a.getY(), a.getX());\n\t}", "public double angle(Vector2D v)\n\t{\n\t\treturn Math.toDegrees(Math.acos(this.dot(v)/v.length()/this.length()));\n\t}", "public static Velocity fromAngleAndSpeed(double angle, double speed) {\r\n double dx = speed * Math.sin(Math.toRadians(angle));\r\n double dy = -speed * Math.cos(Math.toRadians(angle));\r\n return new Velocity(dx, dy);\r\n }", "private double angleTo(Point2D that) {\r\n double dx = that.x - this.x;\r\n double dy = that.y - this.y;\r\n return Math.atan2(dy, dx);\r\n }", "private void calculateVelocity() {\n\t\tthis.velocity = Math.sqrt((this.roughRange *this.roughRange * this.gravity_Math)\n\t\t\t\t/ ((this.roughRange * Math.sin(2 * angle)) + (2\n\t\t\t\t\t\t* Constant.heroBaseHeight * Math.cos(angle) * Math\n\t\t\t\t\t\t\t.cos(angle))));\n\t\t\n\t}", "public static Velocity fromAngleAndSpeed(double angle, double speed) {\n double dx = speed * Math.sin(Math.toRadians(angle));\n double dy = speed * Math.cos(Math.toRadians(angle));\n return new Velocity(dx, -dy);\n }", "public static int direction(float x, float y){\n float [][] compass = {{0,1},{1,0},{0,-1},{-1,0}};\r\n x=Math.abs(x);\r\n y=Math.abs(y);\r\n float max=0.0f;\r\n int best_di=-1;\r\n for(int i=0; i<4; i++){\r\n float dot_product = x*compass[i][0]+y*compass[i][1];\r\n System.out.println(dot_product);\r\n\r\n if(dot_product>max){\r\n max=dot_product; \r\n best_di=i;\r\n }\r\n }\r\n return best_di;\r\n }", "public float getMotor_ang_target_velocity() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 132);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 124);\n\t\t}\n\t}", "public static double normalizeAngle(double a, double center)\r\n/* 25: */ {\r\n/* 26: 91 */ return a - 6.283185307179586D * FastMath.floor((a + 3.141592653589793D - center) / 6.283185307179586D);\r\n/* 27: */ }", "public static Velocity fromAngleAndSpeed(double angle, double speed) {\n double dx = speed * Math.sin(Math.toRadians(angle));\n double dy = -speed * Math.cos(Math.toRadians(angle));\n return new Velocity(dx, dy);\n }", "static double calculateAngle(Line2D line, ArrowEnd end) {\n \t\t// Translate the line to 0,0\n \t\tdouble x1 = line.getX1();\n \t\tdouble y1 = line.getY1();\n \t\tdouble x2 = line.getX2();\n \t\tdouble y2 = line.getY2();\n \t\tdouble opposite = y2-y1;\n \t\tdouble adjacent = x2-x1;\n \n \t\tdouble radians = Math.atan(opposite/adjacent);\n \n \t\tif (adjacent < 0) radians += Math.PI;\n \n \t\t// TODO: Flip for other end\n \t\treturn radians;\n \t}", "public double passAlign() {\n \tdouble angle;\n \tif (MasterController.ourSide == TeamSide.LEFT) {\n \t\tangle = angleToX();\n \t} else {\n \t\tangle = angleToNegX();\n \t}\n \tdouble amount = -0.7 * angle;\n\t\tDebug.log(\"Angle: %f, Rotating: %f\", angle, amount);\n\t\trotate(amount); // TODO: Test if works as expected\n\t\treturn amount;\n\t}", "public double getdegRotationToTarget() {\n NetworkTableEntry tx = m_table.getEntry(\"tx\");\n double x = tx.getDouble(0.0);\n return x;\n }", "private static int convertDistance(double radius, double distance) {\n \t\treturn (int) ((180.0 * distance) / (Math.PI * radius));\n \t}", "public Velocity fromAngleAndSpeed(double angle, double speed) {\r\n double dX = Math.sin(Math.toRadians(angle)) * speed;\r\n double dY = Math.cos(Math.toRadians(angle)) * speed;\r\n return new Velocity(dX, dY);\r\n }" ]
[ "0.5840469", "0.57579994", "0.5729309", "0.55956465", "0.5591559", "0.5543021", "0.55079764", "0.54421216", "0.54390967", "0.5423474", "0.5414196", "0.54114634", "0.53775376", "0.53494126", "0.5324078", "0.5309863", "0.52913445", "0.5244293", "0.52210456", "0.52179027", "0.52108335", "0.52032954", "0.51683545", "0.5157168", "0.51561093", "0.5126391", "0.51226825", "0.51216143", "0.51112753", "0.505961", "0.50587696", "0.5055635", "0.5035734", "0.5022137", "0.50164896", "0.49727693", "0.49715963", "0.49647364", "0.49540123", "0.49528304", "0.49456668", "0.4935901", "0.4935001", "0.4932044", "0.4931438", "0.49235258", "0.4906856", "0.49066484", "0.490444", "0.49023262", "0.49008203", "0.48963147", "0.48922014", "0.48894796", "0.48852327", "0.48830363", "0.48771274", "0.48696893", "0.48621637", "0.48589936", "0.48571938", "0.48561588", "0.48548952", "0.4852136", "0.48496315", "0.48489413", "0.4842391", "0.48420054", "0.48390254", "0.4836383", "0.48335537", "0.48245862", "0.48226035", "0.4822393", "0.4813439", "0.48110664", "0.48094305", "0.4808564", "0.47947624", "0.4783933", "0.47822207", "0.4776956", "0.47763026", "0.47720572", "0.47700828", "0.4769561", "0.47676295", "0.4767323", "0.4766937", "0.4762334", "0.4752562", "0.47411954", "0.4737672", "0.4735832", "0.4735824", "0.47262874", "0.47229165", "0.47220117", "0.4720412", "0.47203642" ]
0.60688627
0
/ class com.tencent.android.tpush.XGPushTextMessage.AnonymousClass1 / renamed from: a
public XGPushTextMessage createFromParcel(Parcel parcel) { return new XGPushTextMessage(parcel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "AnonymousClass1() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.telephony.SmsCbCmasInfo.1.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.<init>():void\");\n }", "AnonymousClass1() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.location.GpsClock.1.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.1.<init>():void\");\n }", "AnonymousClass1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "AnonymousClass2(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "public interface AnonymousClass0RF {\n}", "public interface C15428f {\n\n /* renamed from: com.ss.android.ugc.asve.context.f$a */\n public static final class C15429a {\n /* renamed from: a */\n public static String m45146a(C15428f fVar) {\n return \"\";\n }\n\n /* renamed from: b */\n public static String m45147b(C15428f fVar) {\n return \"\";\n }\n }\n\n /* renamed from: a */\n boolean mo38970a();\n\n /* renamed from: b */\n String mo38971b();\n\n /* renamed from: c */\n String mo38972c();\n\n /* renamed from: d */\n int mo38973d();\n\n /* renamed from: e */\n int mo38974e();\n}", "public AnonymousClass0W5(FragmentActivity fragmentActivity) {\n super(fragmentActivity);\n this.A00 = fragmentActivity;\n }", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface C1255b {\n /* renamed from: a */\n public static final C1255b f3973a = new C34771();\n /* renamed from: b */\n public static final C1255b f3974b = new C34782();\n /* renamed from: c */\n public static final C1255b f3975c = new C34793();\n /* renamed from: d */\n public static final C1255b f3976d = f3974b;\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$1 */\n class C34771 implements C1255b {\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n }\n\n C34771() {\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$2 */\n class C34782 implements C1255b {\n C34782() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$3 */\n class C34793 implements C1255b {\n C34793() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null) {\n throw new RuntimeException(\"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: a */\n void mo1031a(Throwable th);\n }", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "public int getMessageClass() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.telephony.SmsCbCmasInfo.getMessageClass():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.getMessageClass():int\");\n }", "void mo80456b(Message message);", "public interface AnonymousClass05L {\n}", "void mo80453a(Message message);", "AnonymousClass1(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void\");\n }", "public interface AnonymousClass4O {\n}", "public interface AnonymousClass179 {\n void AEP(Status status);\n}", "@Override // com.zhihu.android.sugaradapter.SugarHolder\n /* renamed from: a */\n public void mo56529a(Object obj) {\n }", "public interface C22932f {\n /* renamed from: a */\n void mo59932a(String str, JSONObject jSONObject);\n}", "public final java.lang.Void call() {\n /*\n // Method dump skipped, instructions count: 303\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oculus.durableiap.DurableIAPStorage.AnonymousClass2.call():java.lang.Object\");\n }", "public java.lang.String a(android.content.Context r7, java.lang.String r8, int r9, java.lang.String r10) {\n /*\n r6 = this;\n r0 = 0\n com.huawei.android.pushselfshow.utils.b.b r1 = new com.huawei.android.pushselfshow.utils.b.b // Catch:{ Exception -> 0x001d }\n r1.<init>() // Catch:{ Exception -> 0x001d }\n java.lang.String r1 = r1.a(r7, r8, r10) // Catch:{ Exception -> 0x001d }\n if (r1 == 0) goto L_0x0015\n int r2 = r1.length() // Catch:{ Exception -> 0x0013 }\n if (r2 <= 0) goto L_0x0015\n return r1\n L_0x0013:\n r2 = move-exception\n goto L_0x001f\n L_0x0015:\n java.lang.String r2 = \"PushSelfShowLog\"\n java.lang.String r3 = \"download failed\"\n com.huawei.android.pushagent.utils.a.e.a(r2, r3) // Catch:{ Exception -> 0x0013 }\n goto L_0x0036\n L_0x001d:\n r2 = move-exception\n r1 = r0\n L_0x001f:\n java.lang.String r3 = \"PushSelfShowLog\"\n java.lang.StringBuilder r4 = new java.lang.StringBuilder\n java.lang.String r5 = \"download err\"\n r4.<init>(r5)\n java.lang.String r2 = r2.toString()\n r4.append(r2)\n java.lang.String r2 = r4.toString()\n com.huawei.android.pushagent.utils.a.e.a(r3, r2)\n L_0x0036:\n if (r9 <= 0) goto L_0x0039\n goto L_0x003a\n L_0x0039:\n r9 = 1\n L_0x003a:\n int r9 = r9 + -1\n if (r9 <= 0) goto L_0x0045\n java.lang.String r7 = r6.a(r7, r8, r9, r10)\n if (r7 == 0) goto L_0x0045\n return r1\n L_0x0045:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.huawei.android.pushselfshow.richpush.tools.d.a(android.content.Context, java.lang.String, int, java.lang.String):java.lang.String\");\n }", "private MailCode(final String text) {\n this.text = text;\n }", "public Message newMessage(String message, Object p0) {\n/* 69 */ return new SimpleMessage(message);\n/* */ }", "public final java.lang.Void call() {\n /*\n // Method dump skipped, instructions count: 303\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oculus.durableiap.DurableIAPStorage.AnonymousClass2.call():java.lang.Object\");\n }", "public abstract java.lang.Object a ( ) {\n/* .annotation system Ldalvik/annotation/Signature; */\n/* value = { */\n/* \"()TT;\" */\n/* } */\n}", "public interface C30793j {\n /* renamed from: a */\n void mo80452a();\n\n /* renamed from: a */\n void mo80453a(Message message);\n\n /* renamed from: a */\n void mo80454a(File file, long j);\n\n /* renamed from: b */\n void mo80455b();\n\n /* renamed from: b */\n void mo80456b(Message message);\n\n /* renamed from: c */\n void mo80457c();\n}", "public void handleMessage(android.os.Message r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.telecom.ConnectionServiceAdapterServant.1.handleMessage(android.os.Message):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.1.handleMessage(android.os.Message):void\");\n }", "@Override // com.zhihu.android.p1973v.p1974a.BaseDelegate\n /* renamed from: b */\n public String mo110892b() {\n return C6969H.m41409d(\"G6A8CD854A538A221F3409146F6F7CCDE6DCDC014B633A424A83B9E41F1EACEF87986C71BAB3FB9\");\n }", "public interface AnonymousClass1MS {\n void AHV();\n\n void AHo();\n}", "public interface AnonymousClass1lE {\n void A7X(String str, String str2, String str3);\n\n void A7Z(String str, String str2, @Nullable Map<String, String> map);\n\n void A7b(String str, String str2, Throwable th, @Nullable Map<String, String> map);\n\n void A7d(String str, String str2, @Nullable Map<String, String> map);\n\n void A7f(String str, String str2);\n\n void A8G(String str, String str2, boolean z);\n\n boolean A9J(String str);\n}", "public CallMessage() {\n\t}", "public Alarm_Msg(){ }", "public ParcelableMessage(String name, String text) {\n\t\tsuper(name, text);\n\t}", "public final java.lang.Void call() {\n /*\n // Method dump skipped, instructions count: 303\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oculus.durableiap.DurableIAPStorage.AnonymousClass2.call():java.lang.Object\");\n }", "public /* bridge */ /* synthetic */ java.lang.Object createFromParcel(android.os.Parcel r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.1.createFromParcel(android.os.Parcel):java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.createFromParcel(android.os.Parcel):java.lang.Object\");\n }", "@Override // com.igexin.push.p671g.p673b.AbstractC5937h\n /* renamed from: a */\n public void mo39819a() {\n try {\n StringBuilder sb = new StringBuilder();\n sb.append(C5871f.f24630f.getPackageName());\n sb.append(MqttTopic.MULTI_LEVEL_WILDCARD);\n sb.append(C5792l.m35140a(this.f24367b, (String) this.f24366a.get(PushClientConstants.TAG_PKG_NAME)));\n sb.append(MqttTopic.MULTI_LEVEL_WILDCARD);\n sb.append((String) this.f24366a.get(PushClientConstants.TAG_PKG_NAME));\n sb.append(MqttTopic.TOPIC_LEVEL_SEPARATOR);\n sb.append((String) this.f24366a.get(\"serviceName\"));\n sb.append(MqttTopic.MULTI_LEVEL_WILDCARD);\n sb.append(C5792l.m35148a((String) this.f24366a.get(PushClientConstants.TAG_PKG_NAME), (String) this.f24366a.get(\"serviceName\")) ? \"1\" : \"0\");\n C5792l.m35143a(this.f24367b, \"30026\", sb.toString(), (String) this.f24366a.get(\"messageId\"), (String) this.f24366a.get(\"taskId\"), (String) this.f24366a.get(\"id\"));\n ActivityC5721b.m34806a(\"feedback actionId=30026 result=\" + sb.toString());\n } catch (Throwable unused) {\n }\n }", "public interface C39682m {\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$a */\n public interface C39683a {\n /* renamed from: a */\n int mo98966a(C29296g gVar);\n\n /* renamed from: b */\n int mo98967b(C29296g gVar);\n\n /* renamed from: c */\n float mo98968c(C29296g gVar);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$b */\n public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }\n}", "public AnonymousClass13V(java.lang.String r5, java.lang.String r6, android.media.MediaCodecInfo.CodecCapabilities r7, boolean r8, boolean r9, boolean r10) {\n /*\n r4 = this;\n r4.<init>()\n if (r5 == 0) goto L_0x005c\n r4.A02 = r5\n r4.A01 = r6\n r4.A00 = r7\n r4.A05 = r8\n r3 = 1\n if (r9 != 0) goto L_0x0021\n if (r7 == 0) goto L_0x0021\n int r1 = X.AnonymousClass0W2.A00\n r0 = 19\n if (r1 < r0) goto L_0x0021\n java.lang.String r0 = \"adaptive-playback\"\n boolean r1 = r7.isFeatureSupported(r0)\n r0 = 1\n if (r1 != 0) goto L_0x0022\n L_0x0021:\n r0 = 0\n L_0x0022:\n r4.A03 = r0\n r2 = 21\n if (r7 == 0) goto L_0x0036\n int r0 = X.AnonymousClass0W2.A00\n if (r0 < r2) goto L_0x0036\n java.lang.String r0 = \"tunneled-playback\"\n boolean r1 = r7.isFeatureSupported(r0)\n r0 = 1\n if (r1 != 0) goto L_0x0037\n L_0x0036:\n r0 = 0\n L_0x0037:\n r4.A07 = r0\n if (r10 != 0) goto L_0x004a\n if (r7 == 0) goto L_0x005a\n int r0 = X.AnonymousClass0W2.A00\n if (r0 < r2) goto L_0x005a\n java.lang.String r0 = \"secure-playback\"\n boolean r0 = r7.isFeatureSupported(r0)\n if (r0 == 0) goto L_0x005a\n L_0x004a:\n r4.A06 = r3\n java.lang.String r1 = X.C233415j.A02(r6)\n java.lang.String r0 = \"video\"\n boolean r0 = r0.equals(r1)\n r4.A04 = r0\n return\n L_0x005a:\n r3 = 0\n goto L_0x004a\n L_0x005c:\n r0 = 0\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.AnonymousClass13V.<init>(java.lang.String, java.lang.String, android.media.MediaCodecInfo$CodecCapabilities, boolean, boolean, boolean):void\");\n }", "void mo23214a(Message message);", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "public Message newMessage(String message, Object p0, Object p1) {\n/* 77 */ return new SimpleMessage(message);\n/* */ }", "public static void innerClassUsage() {\n final SimpleInterface.InnerClass<String> inner =\n new SimpleInterface.InnerClass<String>();\n }", "public interface AnonymousClass1Kl {\n public static final AnonymousClass1Kl A00 = new AnonymousClass1Kj(new AnonymousClass1Km().A00);\n @Deprecated\n public static final AnonymousClass1Kl A01 = new AnonymousClass1Kn();\n\n Map<String, String> A43();\n}", "public interface C3210f extends C11871b<DeletedProgramBroadcastReceiver> {\n\n /* renamed from: com.bamtechmedia.dominguez.channels.tv.f$a */\n /* compiled from: FeatureChannelModule_ProvidesWatchNextProgramBroadcastReceiver */\n public interface C3211a extends C11872a<DeletedProgramBroadcastReceiver> {\n }\n}", "public MessageInfo() { }", "public final void a(d.r.a.o object) {\n Object object2;\n object = (h$q)object;\n c c10 = ((h$q)object).f;\n String string2 = \"OnNotificationClickTask\";\n if (c10 == null) {\n s.m(string2, \"current notification item is null\");\n return;\n }\n c10 = t.b((a)c10);\n Object object3 = ((h$q)object).c;\n Object object4 = this.a.getPackageName();\n int n10 = ((String)object4).equals(object3);\n if (n10 != 0) {\n object2 = this.a;\n d.r.a.u.d.a((Context)object2);\n }\n if ((object2 = ((h$q)object).d) != null) {\n object3 = object2;\n }\n if (n10 == 0) {\n object = new StringBuilder(\"notify is \");\n ((StringBuilder)object).append(c10);\n ((StringBuilder)object).append(\" ; isMatch is \");\n ((StringBuilder)object).append(n10 != 0);\n object = ((StringBuilder)object).toString();\n s.a(string2, (String)object);\n return;\n }\n long l10 = 1030L;\n object4 = new h$y(l10);\n object2 = new HashMap();\n ((HashMap)object2).put(\"type\", \"2\");\n long l11 = ((h$q)object).e;\n String string3 = String.valueOf(l11);\n String string4 = \"messageID\";\n ((HashMap)object2).put(string4, string3);\n ((HashMap)object2).put(\"platform\", object3);\n string3 = d0.k(this.a, (String)object3);\n boolean bl2 = TextUtils.isEmpty((CharSequence)string3);\n if (!bl2) {\n object3 = \"remoteAppId\";\n ((HashMap)object2).put(object3, string3);\n } else {\n string3 = \"ap\";\n ((HashMap)object2).put(string3, object3);\n }\n ((h$y)object4).c = object2;\n l.b().e((d.r.a.o)object4);\n object3 = new StringBuilder(\"notification is clicked by skip type[\");\n n10 = c10.n();\n ((StringBuilder)object3).append(n10);\n object4 = \"]\";\n ((StringBuilder)object3).append((String)object4);\n object3 = ((StringBuilder)object3).toString();\n s.m(string2, (String)object3);\n int n11 = c10.n();\n n10 = 1;\n if (n11 == n10) {\n string2 = this.a;\n object3 = c10.k();\n object = ((h$q)object).d;\n object2 = new m$e(this, (Context)string2, (String)object, (Map)object3);\n object4 = new Thread((Runnable)object2);\n ((Thread)object4).start();\n object = new m$a(this, c10);\n n.c((Runnable)object);\n return;\n }\n int n12 = 2;\n int n13 = 0x10000000;\n if (n11 != n12) {\n n12 = 3;\n if (n11 == n12) {\n object = new m$c(this, c10);\n n.c((Runnable)object);\n return;\n }\n n12 = 4;\n if (n11 != n12) {\n object = new StringBuilder(\"illegitmacy skip type error : \");\n int n14 = c10.n();\n ((StringBuilder)object).append(n14);\n object = ((StringBuilder)object).toString();\n s.a(string2, (String)object);\n return;\n }\n object3 = c10.m();\n try {\n object4 = Intent.parseUri((String)object3, (int)n10);\n object2 = object4.getPackage();\n string4 = ((h$q)object).d;\n String string5 = null;\n String string6 = \"; but remote pkgName is \";\n if (string4 != null) {\n bl2 = TextUtils.isEmpty((CharSequence)object2);\n if (!bl2 && !(bl2 = (string4 = ((h$q)object).d).equals(object2))) {\n string3 = \"open activity error : local pkgName getOpenPkgName is \";\n object4 = new StringBuilder(string3);\n object = ((h$q)object).d;\n ((StringBuilder)object4).append((String)object);\n ((StringBuilder)object4).append(string6);\n ((StringBuilder)object4).append((String)object2);\n object = ((StringBuilder)object4).toString();\n s.a(string2, (String)object);\n return;\n }\n object2 = object4.getComponent();\n if (object2 != null) {\n object2 = object4.getComponent();\n string5 = object2.getPackageName();\n }\n n12 = (int)(TextUtils.isEmpty(string5) ? 1 : 0);\n if (n12 == 0 && (n12 = (int)(((String)(object2 = ((h$q)object).d)).equals(string5) ? 1 : 0)) == 0) {\n object2 = \"open activity component error : local pkgName getOpenPkgName is \";\n object4 = new StringBuilder((String)object2);\n object = ((h$q)object).d;\n ((StringBuilder)object4).append((String)object);\n ((StringBuilder)object4).append(string6);\n ((StringBuilder)object4).append(string5);\n object = ((StringBuilder)object4).toString();\n s.a(string2, (String)object);\n return;\n }\n } else {\n bl2 = TextUtils.isEmpty((CharSequence)object2);\n if (!bl2) {\n string4 = this.a;\n bl2 = (string4 = string4.getPackageName()).equals(object2);\n if (!bl2) {\n object4 = \"open activity error : local pkgName is \";\n object = new StringBuilder((String)object4);\n object4 = this.a;\n object4 = object4.getPackageName();\n ((StringBuilder)object).append((String)object4);\n ((StringBuilder)object).append(string6);\n ((StringBuilder)object).append((String)object2);\n object = ((StringBuilder)object).toString();\n s.a(string2, (String)object);\n return;\n }\n }\n if ((object2 = object4.getComponent()) != null) {\n object2 = object4.getComponent();\n string5 = object2.getPackageName();\n }\n n12 = (int)(TextUtils.isEmpty(string5) ? 1 : 0);\n if (n12 == 0) {\n object2 = this.a;\n n12 = (int)(((String)(object2 = object2.getPackageName())).equals(string5) ? 1 : 0);\n if (n12 == 0) {\n object4 = \"open activity component error : local pkgName is \";\n object = new StringBuilder((String)object4);\n object4 = this.a;\n object4 = object4.getPackageName();\n ((StringBuilder)object).append((String)object4);\n ((StringBuilder)object).append(string6);\n ((StringBuilder)object).append(string5);\n object = ((StringBuilder)object).toString();\n s.a(string2, (String)object);\n return;\n }\n }\n }\n if ((object = ((h$q)object).d) == null) {\n object = this.a;\n object = object.getPackageName();\n }\n object4.setPackage((String)object);\n object4.addFlags(n13);\n object = c10.k();\n m.g((Intent)object4, (Map)object);\n object = this.a;\n object.startActivity((Intent)object4);\n }\n catch (Exception exception) {\n object2 = \"open activity error : \";\n object4 = new StringBuilder((String)object2);\n ((StringBuilder)object4).append((String)object3);\n object3 = ((StringBuilder)object4).toString();\n s.b(string2, (String)object3, exception);\n }\n object = new m$d(this, c10);\n n.c((Runnable)object);\n return;\n }\n object = c10.m();\n n11 = (int)(((String)object).startsWith((String)(object3 = \"http://\")) ? 1 : 0);\n if (n11 == 0 && (n11 = (int)(((String)object).startsWith((String)(object3 = \"https://\")) ? 1 : 0)) == 0) {\n n10 = 0;\n object4 = null;\n }\n if (n10 != 0) {\n object = Uri.parse((String)object);\n object3 = new Intent(\"android.intent.action.VIEW\", (Uri)object);\n object3.setFlags(n13);\n object4 = c10.k();\n m.g((Intent)object3, (Map)object4);\n try {\n object4 = this.a;\n object4.startActivity((Intent)object3);\n }\n catch (Exception exception) {\n object4 = \"startActivity error : \";\n object3 = new StringBuilder((String)object4);\n ((StringBuilder)object3).append(object);\n object = ((StringBuilder)object3).toString();\n s.a(string2, (String)object);\n }\n } else {\n object = \"url not legal\";\n s.a(string2, (String)object);\n }\n object = new m$b(this, c10);\n n.c((Runnable)object);\n }", "public interface AnonymousClass0Y6 {\n void A3h();\n\n void A41();\n}", "public interface C48855s {\n\n /* renamed from: a */\n public static final C48856a f124209a = C48856a.f124210a;\n\n /* renamed from: shark.s$a */\n public static final class C48856a {\n\n /* renamed from: a */\n static final /* synthetic */ C48856a f124210a = new C48856a();\n\n private C48856a() {\n }\n }\n\n /* renamed from: a */\n void mo123342a(C48857t tVar);\n}", "public interface C2368d {\n\n /* renamed from: com.google.android.exoplayer2.upstream.d$a */\n public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }\n\n /* renamed from: a */\n int mo1684a(byte[] bArr, int i, int i2);\n\n /* renamed from: a */\n long mo1685a(C2369e c2369e);\n\n /* renamed from: a */\n Uri mo1686a();\n\n /* renamed from: b */\n void mo1687b();\n}", "public Class(String name) {\n\t\tthis.name = name;\n\t\tarrayMethods = new ArrayList<Method>();\n\t\tcode_Smells = new HashMap<String, Boolean>();\n\n\t}", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "private static class <init>\n implements e\n{\n\n public String a()\n {\n return \"\";\n }", "public AbstractMT() {\n\t\tthis.m = new SwiftMessage(true);\n\t\tif (getMessageType() != null) {\n\t\t\tthis.m.getBlock2().setMessageType(getMessageType());\n\t\t}\n\t}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) {\n/* 118 */ return new SimpleMessage(message);\n/* */ }", "private AppText() {\n\n }", "static PushNotificationBuilder m1154a(String str) {\n String[] split = str.split(f497z[0]);\n Object obj = split[0];\n PushNotificationBuilder basicPushNotificationBuilder = f497z[5].equals(obj) ? new BasicPushNotificationBuilder(C0448e.f753e) : f497z[4].equals(obj) ? new CustomPushNotificationBuilder(C0448e.f753e) : new BasicPushNotificationBuilder(C0448e.f753e);\n basicPushNotificationBuilder.mo2199a(split);\n return basicPushNotificationBuilder;\n }", "public ImMessage() {\r\n }", "@Override // com.meizu.cloud.pushsdk.handler.p750a.C6687c\n /* renamed from: l */\n public MessageV3 mo42868a(Intent intent) {\n MPushMessage mPushMessage = (MPushMessage) intent.getSerializableExtra(PushConstants.MZ_PUSH_PRIVATE_MESSAGE);\n return MessageV3.parse(mo42886e(intent), mo42877b(intent), mPushMessage.getTaskId(), mPushMessage);\n }", "private static void m60890a(String str) {\n CrashlyticsLogUtils.m83485a(new IllegalStateException(C6969H.m41409d(\"G4C91C715AD70BC21E300D0\") + str + \" dispatch holder class,please fix it!!\"));\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) {\n/* 127 */ return new SimpleMessage(message);\n/* */ }", "private void internalHandleMessage(android.os.Message r1) throws android.os.RemoteException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.telecom.ConnectionServiceAdapterServant.1.internalHandleMessage(android.os.Message):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.1.internalHandleMessage(android.os.Message):void\");\n }", "public void displayMessage(Message mes)//Method which accepts the object of ABSTRACT/INTERFACE Message\n\t{\n\t\tSystem.out.println(mes.greet()+ \" ,This is an example of Anonymous classas an argument \");\n\t\t}", "public interface AnonymousClass21R<T> {\n void A2C();\n\n void A2t(Throwable th);\n\n void A6Y(T t);\n\n void A9F(AnonymousClass21P<T> v);\n}", "void onAnything(String unformatedMessage);", "public interface C9715b {\n\n /* renamed from: com.tencent.mm.modelvideo.b$a */\n public interface C9714a {\n /* renamed from: ad */\n void mo9058ad(String str, int i);\n\n /* renamed from: h */\n void mo9075h(String str, int i, int i2);\n\n /* renamed from: ml */\n void mo21050ml(int i);\n\n void onDataAvailable(String str, int i, int i2);\n }\n\n /* renamed from: a */\n void mo8712a(C9714a c9714a);\n\n /* renamed from: dV */\n void mo8713dV(String str);\n\n boolean isVideoDataAvailable(String str, int i, int i2);\n\n /* renamed from: r */\n void mo8715r(String str, String str2, String str3);\n\n void requestVideoData(String str, int i, int i2);\n}", "public interface C35590c {\n /* renamed from: a */\n void mo56317a(Context context, Bundle bundle, C4541a c4541a);\n}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) {\n/* 109 */ return new SimpleMessage(message);\n/* */ }", "public String toString() {return classSimpleName+\"#\"+name;}", "void onMessageToast(String string);", "public Message newMessage(String message, Object... params) {\n/* 61 */ return new SimpleMessage(message);\n/* */ }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public static void main(String[] args) {\n\n //Implementation of Anonymous Inner Class using Interface\n PrintInterface pi = new PrintInterface() {\n @Override\n public void display() {\n System.out.println(\"Mayur knows Inner Class\");\n }\n\n @Override\n public boolean isDisplayed() {\n return false;\n }\n };\n pi.display();\n System.out.println(pi.isDisplayed());\n\n\n //Implementation of Anonymous Inner Class using abstract calss\n PrintMessage pm = new PrintMessage() {\n @Override\n void printMessage() {\n System.out.println(\"Print the Message----\");\n }\n };\n pm.printMessage();\n}", "private final void m11061a(android.app.Activity r5, app.zenly.locator.experimental.inbox.p092i.C3708a r6) {\n /*\n r4 = this;\n app.zenly.locator.experimental.inbox.j.b r0 = r6.mo10234a()\n co.znly.models.i r0 = r0.mo10237a()\n if (r0 == 0) goto L_0x0011\n java.util.List r0 = r0.getPhoneNumbersList()\n if (r0 == 0) goto L_0x0011\n goto L_0x0015\n L_0x0011:\n java.util.List r0 = kotlin.collections.C12848o.m33640a()\n L_0x0015:\n androidx.appcompat.app.a$a r1 = new androidx.appcompat.app.a$a\n r1.<init>(r5)\n r2 = 2131231362(0x7f080282, float:1.8078803E38)\n r1.mo527a(r2)\n r2 = 2132018240(0x7f140440, float:1.9674781E38)\n r1.mo548c(r2)\n app.zenly.locator.experimental.inbox.b$a r2 = new app.zenly.locator.experimental.inbox.b$a\n r2.<init>(r4, r6)\n r1.mo530a(r2)\n android.widget.ArrayAdapter r2 = new android.widget.ArrayAdapter\n r3 = 2131624347(0x7f0e019b, float:1.8875871E38)\n r2.<init>(r5, r3, r0)\n app.zenly.locator.experimental.inbox.b$b r3 = new app.zenly.locator.experimental.inbox.b$b\n r3.<init>(r4, r0, r6, r5)\n r1.mo536a(r2, r3)\n androidx.appcompat.app.a r5 = r1.mo542a()\n r5.show()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.experimental.inbox.C3689b.m11061a(android.app.Activity, app.zenly.locator.experimental.inbox.i.a):void\");\n }", "void onUnknown(String unformatedMessage);", "public interface bj\n extends bl\n{\n\n public abstract void a(a a1);\n\n public abstract void b(a a1);\n\n public abstract Ad c();\n\n public abstract String d();\n\n public abstract a e();\n\n public abstract b f();\n\n // Unreferenced inner class com/vungle/publisher/bj$a\n /* block-local class not found */\n class a {}\n\n\n // Unreferenced inner class com/vungle/publisher/bj$b\n /* block-local class not found */\n class b {}\n\n}", "public OOP_207(){\n\n }", "public FlowMonMessage(){}", "public void handleMessage(android.os.Message r5) {\n /*\n r4 = this;\n r0 = r5.what;\t Catch:{ Exception -> 0x001d }\n switch(r0) {\n case 0: goto L_0x0009;\n case 1: goto L_0x0022;\n case 2: goto L_0x0033;\n default: goto L_0x0005;\n };\n L_0x0005:\n super.handleMessage(r5);\n return;\n L_0x0009:\n r0 = r5.obj;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r1 = 0;\n r1 = r0[r1];\t Catch:{ Exception -> 0x001d }\n r1 = (android.content.Context) r1;\t Catch:{ Exception -> 0x001d }\n r2 = 1;\n r0 = r0[r2];\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.String) r0;\t Catch:{ Exception -> 0x001d }\n com.tencent.smtt.utils.s.b(r1, r0);\t Catch:{ Exception -> 0x001d }\n goto L_0x0005;\n L_0x001d:\n r0 = move-exception;\n r0.printStackTrace();\n goto L_0x0005;\n L_0x0022:\n r0 = r5.obj;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r1 = r4.a;\t Catch:{ Exception -> 0x001d }\n r2 = 0;\n r0 = r0[r2];\t Catch:{ Exception -> 0x001d }\n r0 = (android.content.Context) r0;\t Catch:{ Exception -> 0x001d }\n r1.c(r0);\t Catch:{ Exception -> 0x001d }\n goto L_0x0005;\n L_0x0033:\n r0 = r5.obj;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r2 = r4.a;\t Catch:{ Exception -> 0x001d }\n r1 = 0;\n r1 = r0[r1];\t Catch:{ Exception -> 0x001d }\n r1 = (android.content.Context) r1;\t Catch:{ Exception -> 0x001d }\n r3 = 1;\n r0 = r0[r3];\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.String) r0;\t Catch:{ Exception -> 0x001d }\n r2.e(r1, r0);\t Catch:{ Exception -> 0x001d }\n goto L_0x0005;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.smtt.utils.t.handleMessage(android.os.Message):void\");\n }", "public void testAnonymousInnerClassName() {\n ClassScope s = new ClassScope();\n assertEquals(\"Anonymous$1\", s.getClassName());\n s = new ClassScope();\n assertEquals(\"Anonymous$2\", s.getClassName());\n }", "private C6310a m35240b() {\n return new C6310a() {\n public final void handleMsg(Message message) {\n }\n };\n }", "AnonymousClass1fD(String str) {\n this.loggingValue = str;\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n/* 101 */ return new SimpleMessage(message);\n/* */ }", "AnonymousClass1(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2) {\n/* 85 */ return new SimpleMessage(message);\n/* */ }", "@Override\r\n\t\tpublic String getClassName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void m23075a() {\n }", "public interface C0394b extends IInterface {\n\n /* renamed from: android.support.v4.media.session.b$a */\n /* compiled from: IMediaSession */\n public static abstract class C0395a extends Binder implements C0394b {\n\n /* renamed from: android.support.v4.media.session.b$a$a */\n /* compiled from: IMediaSession */\n private static class C0396a implements C0394b {\n\n /* renamed from: a */\n private IBinder f822a;\n\n C0396a(IBinder iBinder) {\n this.f822a = iBinder;\n }\n\n public IBinder asBinder() {\n return this.f822a;\n }\n\n /* renamed from: a */\n public void mo716a(String str, Bundle bundle, ResultReceiverWrapper resultReceiverWrapper) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (resultReceiverWrapper != null) {\n obtain.writeInt(1);\n resultReceiverWrapper.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public boolean mo719a(KeyEvent keyEvent) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n boolean z = true;\n if (keyEvent != null) {\n obtain.writeInt(1);\n keyEvent.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() == 0) {\n z = false;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo714a(C0391a aVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeStrongBinder(aVar != null ? aVar.asBinder() : null);\n this.f822a.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo726b(C0391a aVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeStrongBinder(aVar != null ? aVar.asBinder() : null);\n this.f822a.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public boolean mo718a() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n boolean z = false;\n this.f822a.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public String mo720b() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(6, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public String mo729c() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(7, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: d */\n public PendingIntent mo732d() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (PendingIntent) PendingIntent.CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: e */\n public long mo734e() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readLong();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: f */\n public ParcelableVolumeInfo mo736f() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(10, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (ParcelableVolumeInfo) ParcelableVolumeInfo.CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo707a(int i, int i2, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(i);\n obtain.writeInt(i2);\n obtain.writeString(str);\n this.f822a.transact(11, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo722b(int i, int i2, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(i);\n obtain.writeInt(i2);\n obtain.writeString(str);\n this.f822a.transact(12, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: g */\n public MediaMetadataCompat mo737g() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(27, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (MediaMetadataCompat) MediaMetadataCompat.CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: h */\n public PlaybackStateCompat mo738h() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(28, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (PlaybackStateCompat) PlaybackStateCompat.CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: i */\n public List<QueueItem> mo739i() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(29, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.createTypedArrayList(QueueItem.CREATOR);\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: j */\n public CharSequence mo740j() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(30, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: k */\n public Bundle mo741k() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(31, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: l */\n public int mo742l() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(32, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: m */\n public boolean mo743m() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n boolean z = false;\n this.f822a.transact(45, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: n */\n public int mo744n() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(37, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: o */\n public boolean mo745o() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n boolean z = false;\n this.f822a.transact(38, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: p */\n public int mo746p() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(47, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo710a(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (mediaDescriptionCompat != null) {\n obtain.writeInt(1);\n mediaDescriptionCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(41, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo711a(MediaDescriptionCompat mediaDescriptionCompat, int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (mediaDescriptionCompat != null) {\n obtain.writeInt(1);\n mediaDescriptionCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeInt(i);\n this.f822a.transact(42, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo725b(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (mediaDescriptionCompat != null) {\n obtain.writeInt(1);\n mediaDescriptionCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(43, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo706a(int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(i);\n this.f822a.transact(44, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: q */\n public void mo747q() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(33, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo715a(String str, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(34, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo727b(String str, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(35, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo709a(Uri uri, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(36, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: r */\n public void mo748r() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(13, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public void mo731c(String str, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(14, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: d */\n public void mo733d(String str, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(15, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo724b(Uri uri, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(16, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo708a(long j) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeLong(j);\n this.f822a.transact(17, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: s */\n public void mo749s() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(18, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: t */\n public void mo750t() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(19, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: u */\n public void mo751u() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(20, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: v */\n public void mo752v() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(21, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: w */\n public void mo753w() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(22, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: x */\n public void mo754x() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(23, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo723b(long j) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeLong(j);\n this.f822a.transact(24, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo712a(RatingCompat ratingCompat) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (ratingCompat != null) {\n obtain.writeInt(1);\n ratingCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(25, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo713a(RatingCompat ratingCompat, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (ratingCompat != null) {\n obtain.writeInt(1);\n ratingCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(51, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo717a(boolean z) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(z ? 1 : 0);\n this.f822a.transact(46, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo721b(int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(i);\n this.f822a.transact(39, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo728b(boolean z) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(z ? 1 : 0);\n this.f822a.transact(40, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public void mo730c(int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(i);\n this.f822a.transact(48, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: e */\n public void mo735e(String str, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(26, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n /* renamed from: a */\n public static C0394b m1153a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"android.support.v4.media.session.IMediaSession\");\n if (queryLocalInterface == null || !(queryLocalInterface instanceof C0394b)) {\n return new C0396a(iBinder);\n }\n return (C0394b) queryLocalInterface;\n }\n\n /* JADX WARNING: type inference failed for: r1v0 */\n /* JADX WARNING: type inference failed for: r1v1, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v3, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v4, types: [android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper] */\n /* JADX WARNING: type inference failed for: r1v6, types: [android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper] */\n /* JADX WARNING: type inference failed for: r1v7, types: [android.view.KeyEvent] */\n /* JADX WARNING: type inference failed for: r1v9, types: [android.view.KeyEvent] */\n /* JADX WARNING: type inference failed for: r1v10, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v12, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v13, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v15, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v16, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v18, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v19, types: [android.support.v4.media.RatingCompat] */\n /* JADX WARNING: type inference failed for: r1v21, types: [android.support.v4.media.RatingCompat] */\n /* JADX WARNING: type inference failed for: r1v22, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v24, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v25, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v27, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v28, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v30, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v31, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v33, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v34, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v36, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v37, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v39, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v40, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v42, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v43 */\n /* JADX WARNING: type inference failed for: r1v44 */\n /* JADX WARNING: type inference failed for: r1v45 */\n /* JADX WARNING: type inference failed for: r1v46 */\n /* JADX WARNING: type inference failed for: r1v47 */\n /* JADX WARNING: type inference failed for: r1v48 */\n /* JADX WARNING: type inference failed for: r1v49 */\n /* JADX WARNING: type inference failed for: r1v50 */\n /* JADX WARNING: type inference failed for: r1v51 */\n /* JADX WARNING: type inference failed for: r1v52 */\n /* JADX WARNING: type inference failed for: r1v53 */\n /* JADX WARNING: type inference failed for: r1v54 */\n /* JADX WARNING: type inference failed for: r1v55 */\n /* JADX WARNING: type inference failed for: r1v56 */\n /* JADX WARNING: Multi-variable type inference failed. Error: jadx.core.utils.exceptions.JadxRuntimeException: No candidate types for var: r1v0\n assigns: [?[int, float, boolean, short, byte, char, OBJECT, ARRAY], android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper, android.os.Bundle, android.view.KeyEvent, android.support.v4.media.RatingCompat, android.support.v4.media.MediaDescriptionCompat]\n uses: [android.os.Bundle, android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper, android.view.KeyEvent, android.support.v4.media.RatingCompat, android.support.v4.media.MediaDescriptionCompat]\n mth insns count: 440\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.fillTypeCandidates(TypeSearch.java:237)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.run(TypeSearch.java:53)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.runMultiVariableSearch(TypeInferenceVisitor.java:99)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.visit(TypeInferenceVisitor.java:92)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:27)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$1(DepthTraversal.java:14)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$0(DepthTraversal.java:13)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:13)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:30)\n \tat jadx.core.ProcessClass.lambda$processDependencies$0(ProcessClass.java:49)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:49)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:35)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n */\n /* JADX WARNING: Unknown variable types count: 15 */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public boolean onTransact(int r4, android.os.Parcel r5, android.os.Parcel r6, int r7) throws android.os.RemoteException {\n /*\n r3 = this;\n r0 = 51\n r1 = 0\n r2 = 1\n if (r4 == r0) goto L_0x042d\n r0 = 1598968902(0x5f4e5446, float:1.4867585E19)\n if (r4 == r0) goto L_0x0427\n r0 = 0\n switch(r4) {\n case 1: goto L_0x03f8;\n case 2: goto L_0x03d9;\n case 3: goto L_0x03c5;\n case 4: goto L_0x03b1;\n case 5: goto L_0x03a1;\n case 6: goto L_0x0391;\n case 7: goto L_0x0381;\n case 8: goto L_0x0368;\n case 9: goto L_0x0358;\n case 10: goto L_0x033f;\n case 11: goto L_0x0327;\n case 12: goto L_0x030f;\n case 13: goto L_0x0303;\n case 14: goto L_0x02e4;\n case 15: goto L_0x02c5;\n case 16: goto L_0x029a;\n case 17: goto L_0x028a;\n case 18: goto L_0x027e;\n case 19: goto L_0x0272;\n case 20: goto L_0x0266;\n case 21: goto L_0x025a;\n case 22: goto L_0x024e;\n case 23: goto L_0x0242;\n case 24: goto L_0x0232;\n case 25: goto L_0x0217;\n case 26: goto L_0x01f8;\n case 27: goto L_0x01df;\n case 28: goto L_0x01c6;\n case 29: goto L_0x01b6;\n case 30: goto L_0x019d;\n case 31: goto L_0x0184;\n case 32: goto L_0x0174;\n case 33: goto L_0x0168;\n case 34: goto L_0x0149;\n case 35: goto L_0x012a;\n case 36: goto L_0x00ff;\n case 37: goto L_0x00ef;\n case 38: goto L_0x00df;\n case 39: goto L_0x00cf;\n case 40: goto L_0x00bc;\n case 41: goto L_0x00a1;\n case 42: goto L_0x0082;\n case 43: goto L_0x0067;\n case 44: goto L_0x0057;\n case 45: goto L_0x0047;\n case 46: goto L_0x0034;\n case 47: goto L_0x0024;\n case 48: goto L_0x0014;\n default: goto L_0x000f;\n }\n L_0x000f:\n boolean r4 = super.onTransact(r4, r5, r6, r7)\n return r4\n L_0x0014:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n r3.mo730c(r4)\n r6.writeNoException()\n return r2\n L_0x0024:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r3.mo746p()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x0034:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x0040\n r0 = 1\n L_0x0040:\n r3.mo717a(r0)\n r6.writeNoException()\n return r2\n L_0x0047:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n boolean r4 = r3.mo743m()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x0057:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n r3.mo706a(r4)\n r6.writeNoException()\n return r2\n L_0x0067:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x007b\n android.os.Parcelable$Creator<android.support.v4.media.MediaDescriptionCompat> r4 = android.support.p041v4.media.MediaDescriptionCompat.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n r1 = r4\n android.support.v4.media.MediaDescriptionCompat r1 = (android.support.p041v4.media.MediaDescriptionCompat) r1\n L_0x007b:\n r3.mo725b(r1)\n r6.writeNoException()\n return r2\n L_0x0082:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x0096\n android.os.Parcelable$Creator<android.support.v4.media.MediaDescriptionCompat> r4 = android.support.p041v4.media.MediaDescriptionCompat.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n r1 = r4\n android.support.v4.media.MediaDescriptionCompat r1 = (android.support.p041v4.media.MediaDescriptionCompat) r1\n L_0x0096:\n int r4 = r5.readInt()\n r3.mo711a(r1, r4)\n r6.writeNoException()\n return r2\n L_0x00a1:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x00b5\n android.os.Parcelable$Creator<android.support.v4.media.MediaDescriptionCompat> r4 = android.support.p041v4.media.MediaDescriptionCompat.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n r1 = r4\n android.support.v4.media.MediaDescriptionCompat r1 = (android.support.p041v4.media.MediaDescriptionCompat) r1\n L_0x00b5:\n r3.mo710a(r1)\n r6.writeNoException()\n return r2\n L_0x00bc:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x00c8\n r0 = 1\n L_0x00c8:\n r3.mo728b(r0)\n r6.writeNoException()\n return r2\n L_0x00cf:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n r3.mo721b(r4)\n r6.writeNoException()\n return r2\n L_0x00df:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n boolean r4 = r3.mo745o()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x00ef:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r3.mo744n()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x00ff:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x0113\n android.os.Parcelable$Creator r4 = android.net.Uri.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n android.net.Uri r4 = (android.net.Uri) r4\n goto L_0x0114\n L_0x0113:\n r4 = r1\n L_0x0114:\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0123\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x0123:\n r3.mo709a(r4, r1)\n r6.writeNoException()\n return r2\n L_0x012a:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0142\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x0142:\n r3.mo727b(r4, r1)\n r6.writeNoException()\n return r2\n L_0x0149:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0161\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x0161:\n r3.mo715a(r4, r1)\n r6.writeNoException()\n return r2\n L_0x0168:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo747q()\n r6.writeNoException()\n return r2\n L_0x0174:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r3.mo742l()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x0184:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.os.Bundle r4 = r3.mo741k()\n r6.writeNoException()\n if (r4 == 0) goto L_0x0199\n r6.writeInt(r2)\n r4.writeToParcel(r6, r2)\n goto L_0x019c\n L_0x0199:\n r6.writeInt(r0)\n L_0x019c:\n return r2\n L_0x019d:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.CharSequence r4 = r3.mo740j()\n r6.writeNoException()\n if (r4 == 0) goto L_0x01b2\n r6.writeInt(r2)\n android.text.TextUtils.writeToParcel(r4, r6, r2)\n goto L_0x01b5\n L_0x01b2:\n r6.writeInt(r0)\n L_0x01b5:\n return r2\n L_0x01b6:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.util.List r4 = r3.mo739i()\n r6.writeNoException()\n r6.writeTypedList(r4)\n return r2\n L_0x01c6:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.support.v4.media.session.PlaybackStateCompat r4 = r3.mo738h()\n r6.writeNoException()\n if (r4 == 0) goto L_0x01db\n r6.writeInt(r2)\n r4.writeToParcel(r6, r2)\n goto L_0x01de\n L_0x01db:\n r6.writeInt(r0)\n L_0x01de:\n return r2\n L_0x01df:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.support.v4.media.MediaMetadataCompat r4 = r3.mo737g()\n r6.writeNoException()\n if (r4 == 0) goto L_0x01f4\n r6.writeInt(r2)\n r4.writeToParcel(r6, r2)\n goto L_0x01f7\n L_0x01f4:\n r6.writeInt(r0)\n L_0x01f7:\n return r2\n L_0x01f8:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0210\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x0210:\n r3.mo735e(r4, r1)\n r6.writeNoException()\n return r2\n L_0x0217:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x022b\n android.os.Parcelable$Creator<android.support.v4.media.RatingCompat> r4 = android.support.p041v4.media.RatingCompat.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n r1 = r4\n android.support.v4.media.RatingCompat r1 = (android.support.p041v4.media.RatingCompat) r1\n L_0x022b:\n r3.mo712a(r1)\n r6.writeNoException()\n return r2\n L_0x0232:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n long r4 = r5.readLong()\n r3.mo723b(r4)\n r6.writeNoException()\n return r2\n L_0x0242:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo754x()\n r6.writeNoException()\n return r2\n L_0x024e:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo753w()\n r6.writeNoException()\n return r2\n L_0x025a:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo752v()\n r6.writeNoException()\n return r2\n L_0x0266:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo751u()\n r6.writeNoException()\n return r2\n L_0x0272:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo750t()\n r6.writeNoException()\n return r2\n L_0x027e:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo749s()\n r6.writeNoException()\n return r2\n L_0x028a:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n long r4 = r5.readLong()\n r3.mo708a(r4)\n r6.writeNoException()\n return r2\n L_0x029a:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x02ae\n android.os.Parcelable$Creator r4 = android.net.Uri.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n android.net.Uri r4 = (android.net.Uri) r4\n goto L_0x02af\n L_0x02ae:\n r4 = r1\n L_0x02af:\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x02be\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x02be:\n r3.mo724b(r4, r1)\n r6.writeNoException()\n return r2\n L_0x02c5:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x02dd\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x02dd:\n r3.mo733d(r4, r1)\n r6.writeNoException()\n return r2\n L_0x02e4:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x02fc\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x02fc:\n r3.mo731c(r4, r1)\n r6.writeNoException()\n return r2\n L_0x0303:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo748r()\n r6.writeNoException()\n return r2\n L_0x030f:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n int r7 = r5.readInt()\n java.lang.String r5 = r5.readString()\n r3.mo722b(r4, r7, r5)\n r6.writeNoException()\n return r2\n L_0x0327:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n int r7 = r5.readInt()\n java.lang.String r5 = r5.readString()\n r3.mo707a(r4, r7, r5)\n r6.writeNoException()\n return r2\n L_0x033f:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.support.v4.media.session.ParcelableVolumeInfo r4 = r3.mo736f()\n r6.writeNoException()\n if (r4 == 0) goto L_0x0354\n r6.writeInt(r2)\n r4.writeToParcel(r6, r2)\n goto L_0x0357\n L_0x0354:\n r6.writeInt(r0)\n L_0x0357:\n return r2\n L_0x0358:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n long r4 = r3.mo734e()\n r6.writeNoException()\n r6.writeLong(r4)\n return r2\n L_0x0368:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.app.PendingIntent r4 = r3.mo732d()\n r6.writeNoException()\n if (r4 == 0) goto L_0x037d\n r6.writeInt(r2)\n r4.writeToParcel(r6, r2)\n goto L_0x0380\n L_0x037d:\n r6.writeInt(r0)\n L_0x0380:\n return r2\n L_0x0381:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r3.mo729c()\n r6.writeNoException()\n r6.writeString(r4)\n return r2\n L_0x0391:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r3.mo720b()\n r6.writeNoException()\n r6.writeString(r4)\n return r2\n L_0x03a1:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n boolean r4 = r3.mo718a()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x03b1:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.os.IBinder r4 = r5.readStrongBinder()\n android.support.v4.media.session.a r4 = android.support.p041v4.media.session.C0391a.C0392a.m1090a(r4)\n r3.mo726b(r4)\n r6.writeNoException()\n return r2\n L_0x03c5:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.os.IBinder r4 = r5.readStrongBinder()\n android.support.v4.media.session.a r4 = android.support.p041v4.media.session.C0391a.C0392a.m1090a(r4)\n r3.mo714a(r4)\n r6.writeNoException()\n return r2\n L_0x03d9:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x03ed\n android.os.Parcelable$Creator r4 = android.view.KeyEvent.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n r1 = r4\n android.view.KeyEvent r1 = (android.view.KeyEvent) r1\n L_0x03ed:\n boolean r4 = r3.mo719a(r1)\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x03f8:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0410\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r7 = r7.createFromParcel(r5)\n android.os.Bundle r7 = (android.os.Bundle) r7\n goto L_0x0411\n L_0x0410:\n r7 = r1\n L_0x0411:\n int r0 = r5.readInt()\n if (r0 == 0) goto L_0x0420\n android.os.Parcelable$Creator<android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper> r0 = android.support.p041v4.media.session.MediaSessionCompat.ResultReceiverWrapper.CREATOR\n java.lang.Object r5 = r0.createFromParcel(r5)\n r1 = r5\n android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper r1 = (android.support.p041v4.media.session.MediaSessionCompat.ResultReceiverWrapper) r1\n L_0x0420:\n r3.mo716a(r4, r7, r1)\n r6.writeNoException()\n return r2\n L_0x0427:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r6.writeString(r4)\n return r2\n L_0x042d:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x0441\n android.os.Parcelable$Creator<android.support.v4.media.RatingCompat> r4 = android.support.p041v4.media.RatingCompat.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n android.support.v4.media.RatingCompat r4 = (android.support.p041v4.media.RatingCompat) r4\n goto L_0x0442\n L_0x0441:\n r4 = r1\n L_0x0442:\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0451\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x0451:\n r3.mo713a(r4, r1)\n r6.writeNoException()\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.p041v4.media.session.C0394b.C0395a.onTransact(int, android.os.Parcel, android.os.Parcel, int):boolean\");\n }\n }\n\n /* renamed from: a */\n void mo706a(int i) throws RemoteException;\n\n /* renamed from: a */\n void mo707a(int i, int i2, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo708a(long j) throws RemoteException;\n\n /* renamed from: a */\n void mo709a(Uri uri, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo710a(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException;\n\n /* renamed from: a */\n void mo711a(MediaDescriptionCompat mediaDescriptionCompat, int i) throws RemoteException;\n\n /* renamed from: a */\n void mo712a(RatingCompat ratingCompat) throws RemoteException;\n\n /* renamed from: a */\n void mo713a(RatingCompat ratingCompat, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo714a(C0391a aVar) throws RemoteException;\n\n /* renamed from: a */\n void mo715a(String str, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo716a(String str, Bundle bundle, ResultReceiverWrapper resultReceiverWrapper) throws RemoteException;\n\n /* renamed from: a */\n void mo717a(boolean z) throws RemoteException;\n\n /* renamed from: a */\n boolean mo718a() throws RemoteException;\n\n /* renamed from: a */\n boolean mo719a(KeyEvent keyEvent) throws RemoteException;\n\n /* renamed from: b */\n String mo720b() throws RemoteException;\n\n /* renamed from: b */\n void mo721b(int i) throws RemoteException;\n\n /* renamed from: b */\n void mo722b(int i, int i2, String str) throws RemoteException;\n\n /* renamed from: b */\n void mo723b(long j) throws RemoteException;\n\n /* renamed from: b */\n void mo724b(Uri uri, Bundle bundle) throws RemoteException;\n\n /* renamed from: b */\n void mo725b(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException;\n\n /* renamed from: b */\n void mo726b(C0391a aVar) throws RemoteException;\n\n /* renamed from: b */\n void mo727b(String str, Bundle bundle) throws RemoteException;\n\n /* renamed from: b */\n void mo728b(boolean z) throws RemoteException;\n\n /* renamed from: c */\n String mo729c() throws RemoteException;\n\n /* renamed from: c */\n void mo730c(int i) throws RemoteException;\n\n /* renamed from: c */\n void mo731c(String str, Bundle bundle) throws RemoteException;\n\n /* renamed from: d */\n PendingIntent mo732d() throws RemoteException;\n\n /* renamed from: d */\n void mo733d(String str, Bundle bundle) throws RemoteException;\n\n /* renamed from: e */\n long mo734e() throws RemoteException;\n\n /* renamed from: e */\n void mo735e(String str, Bundle bundle) throws RemoteException;\n\n /* renamed from: f */\n ParcelableVolumeInfo mo736f() throws RemoteException;\n\n /* renamed from: g */\n MediaMetadataCompat mo737g() throws RemoteException;\n\n /* renamed from: h */\n PlaybackStateCompat mo738h() throws RemoteException;\n\n /* renamed from: i */\n List<QueueItem> mo739i() throws RemoteException;\n\n /* renamed from: j */\n CharSequence mo740j() throws RemoteException;\n\n /* renamed from: k */\n Bundle mo741k() throws RemoteException;\n\n /* renamed from: l */\n int mo742l() throws RemoteException;\n\n /* renamed from: m */\n boolean mo743m() throws RemoteException;\n\n /* renamed from: n */\n int mo744n() throws RemoteException;\n\n /* renamed from: o */\n boolean mo745o() throws RemoteException;\n\n /* renamed from: p */\n int mo746p() throws RemoteException;\n\n /* renamed from: q */\n void mo747q() throws RemoteException;\n\n /* renamed from: r */\n void mo748r() throws RemoteException;\n\n /* renamed from: s */\n void mo749s() throws RemoteException;\n\n /* renamed from: t */\n void mo750t() throws RemoteException;\n\n /* renamed from: u */\n void mo751u() throws RemoteException;\n\n /* renamed from: v */\n void mo752v() throws RemoteException;\n\n /* renamed from: w */\n void mo753w() throws RemoteException;\n\n /* renamed from: x */\n void mo754x() throws RemoteException;\n}", "public void handleMessage(android.os.Message r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleMessage(android.os.Message):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleMessage(android.os.Message):void\");\n }", "protected JBuilderRenameClassRefactoring()\n\t{\n\t\tsuper();\n\t}", "SmsCbCmasInfo(android.os.Parcel r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.<init>(android.os.Parcel):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.<init>(android.os.Parcel):void\");\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n/* 145 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3) {\n/* 93 */ return new SimpleMessage(message);\n/* */ }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public SystemMessage() {\r\n\t}", "public interface Ka extends b<d> {\n\n /* compiled from: FragmentModule_ThirdPartyReviewFragment$app_bazaarRelease */\n public static abstract class a extends b.a<d> {\n }\n}", "@Override\r\n\tpublic void visitJavaClass(JavaClass javaClass) {\n\t\t\r\n\t\t\r\n\t\tvisitClassName=javaClass.getClassName();\r\n\t\t\r\n\t\t//log.debug(\"className:+\"+visitClassName);\r\n\t\tsuper.visitJavaClass(javaClass);\r\n\t\t\r\n\t}", "@Override\n public TransponderMessage newMessage() {\n super.newMessage();\n setModule(\"somevertical\");\n return this;\n }", "public AmqpMessage() {}", "public MessageThreadFragment() {\n }", "@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}", "private StatusMessage() {\n\n\t}" ]
[ "0.6588048", "0.58940417", "0.58197784", "0.5769233", "0.5642725", "0.56208736", "0.56008565", "0.5495542", "0.5477696", "0.54442775", "0.5414954", "0.54115415", "0.54063946", "0.53430134", "0.5339142", "0.53220123", "0.5317197", "0.530497", "0.52561855", "0.52124214", "0.52066797", "0.51589024", "0.5154731", "0.5153583", "0.5138432", "0.5124551", "0.5124136", "0.5123491", "0.5120947", "0.5116985", "0.510516", "0.50980175", "0.5095568", "0.50947964", "0.50926226", "0.50918734", "0.50659996", "0.5064109", "0.5062833", "0.5059787", "0.50537896", "0.5048589", "0.50403297", "0.50399023", "0.5037443", "0.5037134", "0.5021475", "0.50152624", "0.50120944", "0.50094414", "0.50083244", "0.49982148", "0.49915355", "0.4969792", "0.49691844", "0.49671066", "0.4966561", "0.494982", "0.49474856", "0.49402717", "0.49369606", "0.49314883", "0.49161857", "0.49078324", "0.49041525", "0.49023426", "0.48961222", "0.48903155", "0.4883238", "0.48801315", "0.48791575", "0.48783267", "0.487421", "0.48652318", "0.4862791", "0.48601317", "0.48537746", "0.48504788", "0.48482662", "0.48462147", "0.48449394", "0.4842532", "0.48349077", "0.48328277", "0.48321235", "0.4828995", "0.48289183", "0.4824553", "0.48224652", "0.4814306", "0.48116878", "0.48110983", "0.4809423", "0.48047376", "0.48019093", "0.4801089", "0.47988144", "0.47965056", "0.4796223", "0.47929412", "0.47845095" ]
0.0
-1
/ renamed from: a
public XGPushTextMessage[] newArray(int i) { return new XGPushTextMessage[i]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
TODO Autogenerated method stub
@Override public void update(Invoice invoice) { invoiceDao.update(invoice); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Invoice findByInvId(Integer invId) { return invoiceDao.findByInvId(invId); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int findPageCount(Invoice invoice) { return invoiceDao.findPageCount(invoice); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Invoice> findPageList(Pager pager) { return invoiceDao.findPageList(pager); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Called when the Custom View is assigned a size
@Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); canvasBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); drawCanvas = new Canvas(canvasBitmap); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void sizeChanged () {\n }", "public void configure(T aView) { aView.setMinSize(80,22); }", "public void configure(T aView) { aView.setMinSize(120,60); }", "public void configure(T aView) { aView.setMinSize(120,60); }", "public void configure(T aView) { aView.setMinSize(120,60); }", "public void configure(T aView) { aView.setMinSize(120,60); }", "public void configure(T aView) { aView.setMinSize(120,60); }", "public void configure(T aView) { aView.setMinSize(120,60); }", "protected abstract void onResize(int width, int height);", "public void configure(T aView) { aView.setMinSize(100,60); }", "public void configure(T aView) { aView.setMinSize(100,60); }", "@Override\n protected final void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n this.invalidate();\n }", "@Override\n\tpublic void onResize(int width, int height) {\n\t}", "protected abstract void setSize();", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n this.w = w;\n this.h = h;\n }", "public void configure(T aView) { aView.setPrefSize(110,20); }", "public abstract void sizeChanged(SizeChangedEvent event);", "public void onResized(Integer width,Integer height);", "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\twidth = w;\n\t\theigth = h;\n\t\tajestPosition();\n\t\tthis.invalidate();\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\t}", "void onResized(int width, int height);", "private void handleSizeChange(Object observable) {\n imageView.fitToSize(getWidth(), getHeight());\n placeHolder.setGlyphSize(Math.min(getWidth(), getHeight()) * 0.6);\n }", "@Override\r\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\r\n\t\tif (w > 0 && h > 0) {\r\n\t\t\tcontainerWidth = w;\r\n\t\t\tcontainerHeight = h;\r\n\t\t}\r\n\t}", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n setGameCards();\n }", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\n\t\t// save device height width, we use it a lot of places\n\t\tmViewHeight = h;\n\t\tmViewWidth = w;\n\n\t\t// fix up the image\n\t\tsetInitialImageBounds();\n\t}", "@Override\r\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\r\n\t\t// 图所占范围大小\r\n\t\tchart.setChartRange(w, h);\r\n\t}", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n viewMatrix = null;\n }", "public void showRectangleSizeSetup() {\n sizeArea.removeAllViewsInLayout();\n sizeArea.addView(heightEdit);\n sizeArea.addView(widthEdit);\n }", "public interface OnSizeChangedListener {\n public void onSizeChanged();\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }", "@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n mId = w / 2;\n mId = mId - mViewsCount * 9;\n }", "void setSize(Dimension size);", "public void setSize();", "@Override\n public void settings(){\n size(500, 500);\n }", "@Before\n public void setDimension() {\n this.view.setDimension(new Dimension(WITDH, HEIGHT));\n }", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n w -= getPaddingRight() + getPaddingLeft();\n h -= getPaddingTop() + getPaddingBottom();\n\n int right = w;\n int bottom = h;\n int top = 0;\n int left = 0;\n\n if (mElement != null) {\n // Maintain aspect ratio. Certain kinds of animated drawables\n // get very confused otherwise.\n final int intrinsicWidth = mElement.getIntrinsicWidth();\n final int intrinsicHeight = mElement.getIntrinsicHeight();\n final float intrinsicAspect = (float) intrinsicWidth / intrinsicHeight;\n final float boundAspect = (float) w / h;\n if (intrinsicAspect != boundAspect) {\n if (boundAspect > intrinsicAspect) {\n // New width is larger. Make it smaller to match height.\n final int width = (int) (h * intrinsicAspect);\n left = (w - width) / 2;\n right = left + width;\n } else {\n // New height is larger. Make it smaller to match width.\n final int height = (int) (w * (1 / intrinsicAspect));\n top = (h - height) / 2;\n bottom = top + height;\n }\n }\n mElement.setBounds(left, top, right, bottom);\n }\n\n super.onSizeChanged(w, h, oldw, oldh);\n }", "public void setSize(PlayerSize size) {\n if (size == this.size) {\n return; // Return, already sized like that\n }\n\n PlayerSize oldSize = this.size;\n this.size = size;\n\n updateSizeSafely(getView());\n\n if (mListener != null) {\n mListener.onPlayerSizeChanged(size, oldSize);\n }\n }", "@Override\n\tpublic void resized() {\n\t}", "public void setSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setSize( size.x, size.y );\n }", "@Override\n protected void onSizeChanged (int w, int h, int oldw, int oldh) {\n mXSize = w;\n mYSize = h;\n\n mZBoundOut = new RectF(w/2-w/2.5f, h/2-w/2.5f, w/2+w/2.5f, h/2+w/2.5f);\n mZBoundOut2 = new RectF(\n w/2-w/2.5f-ZRING_CURSOR_ADD, h/2-w/2.5f-ZRING_CURSOR_ADD,\n w/2+w/2.5f+ZRING_CURSOR_ADD, h/2+w/2.5f+ZRING_CURSOR_ADD);\n mZBoundIn = new RectF(\n w/2-w/2.5f+ZRING_WIDTH, h/2-w/2.5f+ZRING_WIDTH,\n w/2+w/2.5f-ZRING_WIDTH, h/2+w/2.5f-ZRING_WIDTH);\n mZBoundIn2 = new RectF(\n w/2-w/2.5f+ZRING_WIDTH+ZRING_CURSOR_ADD, h/2-w/2.5f+ZRING_WIDTH+ZRING_CURSOR_ADD,\n w/2+w/2.5f-ZRING_WIDTH-ZRING_CURSOR_ADD, h/2+w/2.5f-ZRING_WIDTH-ZRING_CURSOR_ADD);\n\n if (LOCAL_LOGV) Log.v(TAG, \"New view size = (\"+w+\", \"+h+\")\");\n }", "private void basicSize(){\n setSize(375,400);\n }", "@Override\n\tpublic void setResolution(Dimension size) {\n\n\t}", "public abstract void setSize(Dimension d);", "@Override\r\n public void getSize(final SizeReadyCallback cb) {\n super.getSize(new SizeReadyCallback() {\r\n @Override\r\n public void onSizeReady(int width, int height) {\r\n cb.onSizeReady(displayWidth / 2, displayHeight / 2);\r\n }\r\n });\r\n }", "@Override\n protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n super.onMeasure(widthMeasureSpec, heightMeasureSpec);\n }", "private void extendedSize(){\n setSize(600,400);\n }", "public void configure(T aView)\n {\n aView.setMinSize(120,60);\n aView.addTab(\"One\", new BoxView());\n }", "public void setSize(int size);", "@Override\r\n\tprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n\t\tsuper.onMeasure(widthMeasureSpec, heightMeasureSpec);\r\n\t}", "@Override\r\n\tprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n\t\tsuper.onMeasure(widthMeasureSpec, heightMeasureSpec);\r\n\t\tinitPaint();\r\n\t}", "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\t\tif( mr > 0.1f*h ) {\n\t\t\tmr=0.1f*h;\n\t\t\tif( m != null ) {\n\t\t\t\t((CircleObjectKE)m).setR(mr);\n\t\t\t}\n\t\t}\n\t}", "public void configure(T aView)\n {\n aView.setMinSize(120,60);\n aView.setText(\"Title\");\n }", "@Override\n public void onSizeChanged(int width, int height) {\n int horizontalMargin = (int) (width * 0.07);\n int verticalMargin = (int) (height * 0.07);\n // set margins for torch button\n FrameLayout.LayoutParams torchButtonParams = (FrameLayout.LayoutParams) mTorchButton.getLayoutParams();\n if (torchButtonParams.leftMargin != horizontalMargin && torchButtonParams.topMargin != verticalMargin) {\n torchButtonParams.setMargins(horizontalMargin, verticalMargin, horizontalMargin, verticalMargin);\n mTorchButton.setLayoutParams(torchButtonParams);\n }\n // set margins for text view\n FrameLayout.LayoutParams statusViewParams = (FrameLayout.LayoutParams) mStatusTextView.getLayoutParams();\n if (statusViewParams.bottomMargin != verticalMargin) {\n if (android.os.Build.VERSION.SDK_INT <= 7) {\n statusViewParams.setMargins(0, verticalMargin, 0, verticalMargin);\n } else {\n statusViewParams.setMargins(horizontalMargin, verticalMargin, horizontalMargin, verticalMargin);\n }\n mStatusTextView.setLayoutParams(statusViewParams);\n }\n }", "public void showCircleSizeSetup() {\n sizeArea.removeAllViewsInLayout();\n sizeArea.addView(radiusEdit);\n }", "@Override\n\tprotected void changeSize(int x, int y, int previousX, int previousY) {\n this.setWidth(this.getWidth()+(x-previousX));\n this.setHeight(this.getHeight()+(y-previousY));\n this.setX(this.getX()+(x-previousX));\n\t}", "public void setSizeModifier(Dimension size) {\n\t\tthis.size = size;\n\t}", "@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tviewState.set(ViewState.RESIZE);\n\t\t\t\t\n\t\t\t}", "private void customize() {\r\n panel.setSize(new Dimension(width, height));\r\n panel.setLayout(new BorderLayout());\r\n }", "public void size(final int theWidth, final int theHeight);", "public void setSize(Dimension size) {\r\n this.size = size;\r\n }", "@ReactProp(name = \"size\")\n public void setSize(ReactSwipeRefreshLayout view, Dynamic size) {\n if (size.isNull()) {\n view.setSize(SwipeRefreshLayout.DEFAULT);\n } else if (size.getType() == ReadableType.Number) {\n view.setSize(size.asInt());\n } else if (size.getType() == ReadableType.String) {\n setSize(view, size.asString());\n } else {\n throw new IllegalArgumentException(\"Size must be 'default' or 'large'\");\n }\n }", "@Override\n public void resize(int width, int height) {\n \n }", "public void setSize(double size) \n {\n this.size = size;\n }", "@Override\r\npublic void componentResized(ComponentEvent arg0) {\n\tsetSizeBackgr(getSize());\r\n\tsetSizeHat (getSize());\r\n\tsetSizeGift(getSize());\r\n}", "@Override\n protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n int width = measureWidth(widthMeasureSpec);\n int height = measureHeight(heightMeasureSpec);\n setMeasuredDimension(width, height);\n }", "@Override\n\tpublic void setCustomView(View view, LayoutParams layoutParams) {\n\t\t\n\t}", "public void setFrameSize();", "public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }", "@Override public void onSizeChanged(int w, int h, int oldw, int oldh)\n {\n super.onSizeChanged(w, h, oldw, oldh);\n // Release the buffer, if any and it will be reallocated on the next draw\n mBuffer = null;\n }", "@Override\n\tpublic void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tmRequiredRadius = (int) (Math.sqrt(w * w + h * h) / 3);\n\t}", "void childResized(int w, int h);", "public void setSize(int size) {\n\tthis.sizeNumber = sizeNumber;\r\n}", "public void notifyChildrenOfSizeChange() {\n Util.runDescendentsLayout(this);\n }", "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tint[] viewLocation = new int[2];\n\t\tthis.getLocationOnScreen(viewLocation);\n\n\t\tif (h > w) {\n\t\t\tsquareRealSize = w / 5;\n\t\t} else {\n\t\t\tsquareRealSize = h / 5;\n\t\t}\n\n\t\t// 小方块的大小\n\t\tsquareDisplaySize = squareRealSize * 9 / 10;\n\n\t\tsquareOffsetX = 0;\n\t\tsquareOffsetY = 0;\n\t\t\n\t\tthis.w = getWidth();\n\t\tthis.h = getHeight();\n\t}", "@Override\r\n\tpublic void resize() {\n\t\t\r\n\t}", "public void setPreferredSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setPreferredSize( size.x, size.y );\n }", "@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n // Set the movement bounds for the ballParent\n box.set(0, 0, w, h);\n }", "protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n\n //create Bitmap of certain w,h\n bitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);\n\n //apply bitmap to graphic to start drawing.\n canvas = new Canvas(bitmap);\n }", "public void setSize(int size) {\r\n _size = size;\r\n }", "@Override\n public void resize(int width, int height) {\n\n }", "@Override\n\tpublic void resize() {\n\t\t\n\t}", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh)\n {\n super.onSizeChanged(w, h, oldw, oldh);\n //initialize canvas background\n canvasBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);\n canvas = new Canvas(canvasBitmap);\n }", "public void setSize(int _size)\r\n {\r\n size = _size;\r\n }", "@Override\n\tprotected void onLayout(boolean changed, int left, int top, int right,\n\t\t\tint bottom) {\n\t\t super.onLayout(changed, left, top, right, bottom);\n\t\twidth = getWidth();\n\t\theight = getHeight();\n\t\tcenterX = (width) / 2;\n\t\tcenterY = (height) / 2;\n\t\tradius = centerX - 75;\n\t}", "void rootViewSizeChange()\n {\n int rootW = (int) Math.ceil(_rootView.getWidth());\n int rootH = (int) Math.ceil(_rootView.getHeight());\n _canvas.setWidth(rootW*_scale); _canvas.setHeight(rootH*_scale);\n }", "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tif (w != oldw && mIsFirstLoad == false) {\n\t\t\tmIsFirstLoad = false;\n\t\t\tif (mIsShowTextsSingleLine) {\n\t\t\t\tupdateSingleLineTextVisiable();\n\t\t\t}\n\t\t}\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\t}", "@Override\r\n public void resize(int width, int height) {\r\n\r\n }", "public void setSize(int size) {\r\n this.size = size;\r\n }", "public void setSize(int size){\n this.size = size;\n }", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n if (w == 0 || h == 0) return;\n createGame();\n }", "@Override\n protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n widthMeasureSpec = widthMeasureSpec + 1;\n widthMeasureSpec -= 1;\n super.onMeasure(widthMeasureSpec, heightMeasureSpec);\n }", "protected abstract void resize();", "private void setUpView(int width, int height){\n addKeyListener(new KeyPadListener());\n setFocusable(true);\n setLayout(null);\n setBounds(0,0,width,height);\n setBackground(new Color(0,0,0,0));\n requestFocus();\n addMouseListener(new MouseCatcher());\n }", "@Override\n\tpublic void setCustomView(View view) {\n\t\t\n\t}", "public void settings() { size(1200, 800); }", "@Override\n\tpublic void resize(float width, float height) {\n\t}", "@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\twidthAttitude=e.getComponent().getSize().getWidth()/Width;\n\t\theightAttitude=e.getComponent().getSize().getHeight()/Height;\n\t}", "@Override\n\tpublic void init() \n\t{\n\t\tthis.m_view.setCenter(new Vector2f(1024f,1024f));\n\t\t// initilisation de m_centerSought\n\t\tthis.m_centerSought = this.m_view.getCenter();\n\t\t// zoom\n\t\tthis.m_zoom = this.m_zoomSought = 1f;\t\t\n\t\t// size\n\t\tthis.m_sizeNormal = m_size = m_sizeSought = m_sizeBackup = m_sizeInit = this.getView().getSize();\n\t\tthis.m_sizeDown = Vector2f.mul(this.m_sizeNormal, 0.8f);\n\t\tthis.m_sizeUp = Vector2f.mul(m_sizeNormal, 1.2f);\n\t\t\n\t\t// cadre\n\t\tm_cadre = new IntRect(m_spaceScrolling,m_spaceScrolling,(int)this.getView().getSize().x - m_spaceScrolling * 2,(int) this.getView().getSize().y - m_spaceScrolling * 2);\n\t\t\n\t}", "public void setSize(int size) {\n this.size = size;\n }", "protected void createDialogSize ()\n {\n }" ]
[ "0.7545453", "0.7036929", "0.70200086", "0.70200086", "0.70200086", "0.70200086", "0.70200086", "0.70200086", "0.69936013", "0.6984243", "0.6984243", "0.69112027", "0.6850194", "0.6829609", "0.6826482", "0.68244004", "0.6812234", "0.6797711", "0.6795378", "0.6759823", "0.6755806", "0.6724325", "0.66946083", "0.66872156", "0.66376185", "0.6631409", "0.6589254", "0.65734583", "0.6562779", "0.6554188", "0.64950997", "0.6490947", "0.6475146", "0.6469706", "0.6469035", "0.6436125", "0.64175874", "0.6397386", "0.6396295", "0.6392141", "0.6372528", "0.6372498", "0.63685924", "0.6360308", "0.6359929", "0.63300455", "0.631958", "0.6313516", "0.63104254", "0.63068694", "0.6305891", "0.6302065", "0.6292558", "0.62903243", "0.62876314", "0.62746227", "0.62703174", "0.6270187", "0.6250932", "0.62396914", "0.6227898", "0.62161714", "0.62131256", "0.6206547", "0.620556", "0.6193562", "0.6192524", "0.6191152", "0.61805177", "0.61769414", "0.617441", "0.6173025", "0.6169262", "0.6165802", "0.6163975", "0.6147028", "0.6133886", "0.6129533", "0.61293685", "0.61268556", "0.61211944", "0.6117475", "0.6115564", "0.61114585", "0.6109394", "0.6107002", "0.61033124", "0.6100419", "0.60965407", "0.6094765", "0.60940415", "0.6091518", "0.6089577", "0.6086164", "0.6078071", "0.6064207", "0.60516435", "0.60494286", "0.6044646", "0.6041143" ]
0.63530225
45
/ Se activa cuando el usuario oprime la pantalla para dibujar
@Override protected void onDraw(Canvas canvas) { if(getBackgroundBitmap() != null){ Bitmap bmp= getBackgroundBitmap(); bmp = cutBottom(bmp); canvas.drawBitmap(bmp, 0,0, canvasPaint); canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint); // canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint); canvas.drawPath(drawPath, drawPaint); }else{ canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint); canvas.drawPath(drawPath, drawPaint); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }", "private void masuk(){\n Preferences.setLoggedInUser(getBaseContext(),Preferences.getRegisteredUser(getBaseContext()));\n Preferences.setLoggedInStatus(getBaseContext(), true);\n startActivity(new Intent(getBaseContext(),MainActivity.class));\n finish();\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "private void loggedInUser() {\n\t\t\n\t}", "public void flagUser() {\n\t\tsuper.flagUser();\n\t}", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "public JFPrincipioActivo() {\n initComponents();\n this.activarControles(false);\n this.listarPrincipiosActivos();\n }", "private static void iniciarAmbienteDeUsuario() {\r\n\r\n\t\tnew AmbienteParaUsuarioEscolherGerenciamento(user);\r\n\r\n\t}", "@FXML\n\tpublic void enableMyUser(ActionEvent event) {\n\t\tif (!txtDisableMyUser.getText().isEmpty()) {\n\t\t\tSystemUser user = restaurant.returnUser(txtDisableMyUser.getText());\n\n\t\t\tif (user != null) {\n\t\t\t\ttry {\n\t\t\t\t\tuser.setCondition(Condition.ACTIVE);\n\t\t\t\t\trestaurant.saveUsersData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"Tu usuario ha sido habilitado\");\n\t\t\t\t\tdialog.setTitle(\"Usuario Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtDisableMyUser.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se ha podido guardar el nuevo estado del usuario\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este usuario no existe\");\n\t\t\t\tdialog.setTitle(\"Error, usuario inexistente\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "@Override\n public void run() {\n User user = new UserSessionDataSource(MainActivity.this).SelectTableUser();\n Grua grua = new GruaSessionDataSource(MainActivity.this).SelectTableUser();\n if(user.getId() == -1)\n return;\n Toast.makeText(getApplicationContext(),\"Entrando en modo desconectado\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(MainActivity.this, InitActivity.class);\n intent.putExtra(Register.JSON_USER, user.toJSON());\n intent.putExtra(Register.JSON_GRUA, grua.toJSON());\n startActivity(intent);\n }", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void activate(){\r\n\r\n\t}", "public final void activateAccount() {\n\t\tthis.setIsAccountLocked(false);\n\t}", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }", "protected void aktualisieren() {\r\n\r\n\t}", "public void ponerUsuarioInactivo(String idUsuario);", "private void btnAgregarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {\n String v_nombre=\" \";\n\n if(txtNombreAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Digite un nombre, por favor\", \"Informacion\");\n return;\n }\n v_nombre=txtNombreAU.getText(); \n //Valido la contrasenia\n if(txtContraseniaAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar una contraseña\", \"Informacion\");\n return;\n }\n if(!validarContraseniaUsuario(txtContraseniaAU.getText())){\n return;\n }\n String v_contrasenia=txtContraseniaAU.getText();\n //Valido nombre completo\n if(txtNombreCompletoAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar el nombre completo\", \"Informacion\");\n return;\n }\n String v_nombreCompleto=txtNombreCompletoAU.getText();\n \n //Valido que se escogio un valor para el cargo\n int v_cargo=0;\n //10 = Administrador, 20=Funcionario\n if(rbtnAdministradorAU.isSelected()){\n v_cargo=10;\n }else if(rbtnFuncionarioAU.isSelected()){\n v_cargo=20;\n }else{\n Utilidades.mensajeInformacion(\"Escoga un cargo\", \"Informacion\");\n return;\n }\n \n //Creo y agreggo un usuario dependiendo del cargo escogido (Administrador o funcionario)\n try{\n boolean agregado=false;\n if(v_cargo==10){\n Administrador nuevoUsuario=new Administrador(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n\n } \n if(v_cargo==20){\n Funcionario nuevoUsuario=new Funcionario(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n }\n\n\n if(agregado){\n Utilidades.mensajeExito(\"Se agrego el Usuario\", \"Agregacion Exitosa\");\n limpiarCamposAgregarUsuario();\n }else{\n Utilidades.mensajeError(\"El Usuario a agregar ya existe\", \"Error\");\n }\n\n }catch (IOException ex) {\n Logger.getLogger(Funcionario.class.getName()).log(Level.SEVERE, null, ex);\n Utilidades.mensajeAdvertencia(\"Se ha interrumpido la conexion con el servidor\", \"Error\");\n }\n \n }", "private void charge_up() throws GB_Exception {\n try{\n if(PersonalDataController.getInstance().existRegistry(username)){\n putPersonalInformation();\n }else{\n putDefaultInformation();\n }\n } catch (SQLException | IOException ex) {\n LOG.error(ex);\n throw new GB_Exception(\"Error al carga informacion de usuario. Comuniquese con su administrador.\");\n }\n }", "public void effacerUtilisateur() {\r\n this.modele.effacerUtilisateur(this.modele);\r\n this.modele = new Utilisateurs();\r\n }", "@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }", "private void commitApuesta() {\n\t\tif(tipo != -1){\n\t\t\tmodelo.setDestLogin(ModeloApuestas.DEST_APOSTUBERRI);\n\t\t\tmodelo.setApuestaInProgress(apostado.get(), tipo);\n\t\t\tif(!myController.isScreenLoaded(\"login\")){\n\t\t\t\tmyController.loadScreen(ScreensFramework.Login, ScreensFramework.Login_FXML);\n\t\t\t}\n\t\t\tmyController.setScreenOverlay(\"login\");\n\t\t}\n\t\t\n\t\t\n\t}", "public void premutoLogin()\n\t{\n\t\tnew _FINITO_funzione_loginGUI();\n\t}", "private void verifyActiveUser(){\r\n\t\tif(request.getUserPrincipal() == null)\r\n\t\t{\t\t\r\n\t\t\trequest.getSession().removeAttribute(\"isActive\");\r\n\t\t\trequest.getSession().invalidate();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tresponse.sendRedirect(\"login.jsp\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "boolean activateAccount(Integer userId);", "@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }", "@Override\n\tpublic void execute() {\n\t\tsecurity.on();\n\t}", "private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public cambiarContrasenna() {\n initComponents();\n txtNombreUsuario.setEnabled(false);\n inicializarComponentes();\n cargarUsuarios();\n }", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "private void RealizarAccion() {\n if (ValidarCampos()) {\n\n persona.setPrimerNombre(txtPrimerNombre.getText());\n persona.setSegundoNombre(txtSegundoNombre.getText());\n persona.setPrimerApellido(txtPrimerApellido.getText());\n persona.setSegundoApellido(txtSegundoApellido.getText());\n persona.setTelefono(txtTelefono.getText());\n persona.setCedula(txtCedula.getText());\n persona.setCorreo(txtCorreo.getText());\n persona.setDireccion(txtDireccion.getText());\n\n empleado.setFechaInicio(dcFechaInicio.getDate());\n empleado.setSalario(Double.parseDouble(txtSalario.getText()));\n empleado.setCargo(txtCargo.getText());\n empleado.setUsuarioByUserModificacion(SessionHelper.usuario);\n empleado.setFechaModificacion(new Date());\n empleado.setRegAnulado(false);\n\n switch (btnAction.getText()) {\n case \"Guardar\":\n int maxid = personaBean.MaxId() + 1;\n persona.setIdPersona(maxid);\n\n Dbcontext.guardar(persona);\n\n empleado.setIdEmpleado(maxid);\n empleado.setPersona(persona);\n empleado.setUsuarioByUserCreacion(SessionHelper.usuario);\n empleado.setFechaCreacion(new Date());\n\n Dbcontext.guardar(empleado);\n break;\n\n case \"Actualizar\":\n\n Dbcontext.actualizar(persona);\n\n Dbcontext.actualizar(empleado);\n break;\n }\n if (ifrRegistroEmpleados.isActive) {\n ifrRegistroEmpleados.CargarTabla();\n }\n\n Mensajes.OperacionExitosa(this);\n dispose();\n } else {\n Mensajes.InformacionIncompleta(this);\n }\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tUsuarioPojo user = null;\r\n\t\t\t\tUsuarioPersistencia up = new UsuarioPersistencia();\r\n\r\n\t\t\t\t//int id = up.obtenerIdEmple();\r\n\t\t\t\tString usuarioMail = txtUsuario.getText();\r\n\t\t\t\tString password = new String(pwdPass.getPassword()); // DNI de momento\r\n\t\t\t\tString passwordC = new String(pwdConfPass.getPassword());\r\n\t\t\t\tString apenom = txtApenom.getText();\r\n\t\t\t\tString dni = txtDni.getText();\r\n\t\t\t\tint numSS = Integer.parseInt(txtSegSoc.getText());\r\n\t\t\t\tString cuenta = txtCuenta.getText();\r\n\r\n\t\t\t\tif (password.equals(passwordC)) {\r\n\t\t\t\t\t// creamos un objeto usuario si coinciden las contraseñas\r\n\t\t\t\t\tuser = new UsuarioPojo(apenom, numSS, cuenta, dni, usuarioMail, password);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\t// insertaremos el usuario si coinciden las contraseñas\r\n\t\t\t\t\tup = new UsuarioPersistencia();\r\n\t\t\t\t\tint res = up.insertarUser(user);\r\n\r\n\t\t\t\t\tif (res == 1) { // se habrá registrado al usuario\r\n\t\t\t\t\t\tSystem.out.println(\"Insertado correctamente\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro insertado correctamente\",\r\n\t\t\t\t\t\t\t\t\"Resultado del Registro\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tdispose(); // dispose cierra ventana actual, System.exit(0) sale del programa\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mostramos msg si no coinciden las contraseñas, manteniendo el control en dreg\r\n\t\t\t\t\tSystem.out.println(\"No insertado\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Contraseñas introducidas no coinciden\", \"Error de contraseña\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t// limpiamos campos de contraseña\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void onResume() {\n if(currentUser != null){\n btnEnviar.setEnabled(false);\n DatabaseReference referenciaTipo = FirebaseDatabase.getInstance().getReference().child(\"usuarios\").child(currentUser);\n referenciaTipo.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Usuarios usuarios = dataSnapshot.getValue(Usuarios.class);\n nombreUsuarioLog = usuarios.getNombre();\n textNombre.setText(nombreUsuarioLog);\n btnEnviar.setEnabled(true);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }else{\n returnLogin();\n }\n super.onResume();\n }", "@Override\r\n protected final String loginAsAutoUser(boolean launch) {\r\n \t//login(DDConstants.AUTO_USERNAME, DDConstants.AUTO_PASSWORD, launch);\r\n \tsuper.login(getAutoUserName(), getAutoPassword(), launch);\r\n\r\n \tchooseApp();\r\n\r\n \treturn getCurrentUser();\r\n }", "public void subeUsuario() {\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\tstrNickname = nicknameText.getText().toString().trim();\n\t\t\n\t\tif (strNickname.equals(\"\")) {\n\t\t\tToast.makeText(this, \"Nickname no puede estar vacío\",Toast.LENGTH_LONG).show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tguardarPreferences();\n\t\t\n\t\t//lanzamos un uploadService\n\t\tIntent uploadService = new Intent(getApplicationContext(),UploadUserService.class);\n\t\t\n\t\tuploadService.putExtra(\"id\", userId);\n\t\tuploadService.putExtra(\"nickname\", strNickname);\n\t\tuploadService.putExtra(\"mail\", strEmail);\n\t\tuploadService.putExtra(\"dob\", dayOfBirth);\n\t\tuploadService.putExtra(\"pass\", strPassword);\n\t\tuploadService.putExtra(\"genero\", gender);\n\t\tuploadService.putExtra(\"avatar\", strAvatar);\n\t\t\n\t\tstartService(uploadService);\n\t}", "private void initUser() {\n\t}", "public void activate() {\n\t\tactivated = true;\n\t}", "public DialogRegistroUser(Login vl, boolean b) {\r\n\t\tsuper();\r\n\t\tinicializar();\r\n\t}", "private void entrar() {\n\n Connection con = Conexao.abrirConexao();\n UsuarioDAO ud = new UsuarioDAO(con);\n String login = txtLOGIN.getText();\n String senha = txtSENHA.getText();\n String nome;\n\n if (txtLOGIN.getText().equals(\"admin\")) {\n nome = \"Administrador\";\n } else {\n nome = ud.retornarUsuario(login);\n }\n\n if (/*ud.logar(login, senha) == 0 ||*/ login.equals(\"admin\") && senha.equals(\"admin\")) {\n lblERRO.setText(\"\");\n JFrame principal = new frm_PRINCIPAL(login, nome);\n this.dispose();\n principal.setVisible(true);\n\n } else {\n\n lblERRO.setText(\"Usuário e/ou Senha Inválidos!\");\n }\n Conexao.fecharConexao(con);\n }", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "private void controladorLogin(Controlador controlador){\n this.contLogin = controlador.getLogin();\n login.setControlContinuar(contLogin);\n }", "public void conectar() {\n\t\tif (isOnline()) {\n\t\t\tregister_user();\n\n\t\t} else {\n\t\t\tToast notification = Toast.makeText(this,\n\t\t\t\t\t\"Activa tu conexión a internet\", Toast.LENGTH_SHORT);\n\t\t\tnotification.setGravity(Gravity.CENTER, 0, 0);\n\t\t\tnotification.show();\n\t\t\t//progreso.setVisibility(View.GONE);\n\t\t\tsetProgressBarIndeterminateVisibility(false);\n\t\t}\n\t}", "@Override\n public void onStart() {\n super.onStart();\n //Se toma el usuario actual ... si está validado\n FirebaseUser currentUser = mAuth.getCurrentUser();\n updateUI(currentUser);\n }", "@Override\r\n protected void onStart() {\r\n super.onStart();\r\n if(mAuth.getCurrentUser() !=null)\r\n {\r\n finish();\r\n startActivity(new Intent(this,Account.class));\r\n }\r\n }", "@XmlTransient\n\tpublic boolean isCanActivateUser() {\n\t\treturn (isSecurityAdministrator() && isSelfRegistrationEnabled());\n\t}", "void activateUser(String email, String activationToken);", "@Override\r\n\t\t\tpublic void done(User user, BmobException ex) {\n\t\t\t\tprogress.dismiss();\r\n\t\t\t\tif(ex==null){\r\n\t\t\t\t\tToast.makeText(mContext, \"登录成功\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\tIntent intent = new Intent(LoginActivity.this,GeXingQmActivity.class);\r\n\t\t\t\t\tbllUsrCache.editUsrCache(userSysID, BaseConstant.USER_PHONE,phoneNum);\r\n\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToast.makeText(mContext, \"登录失败:code=\"+ex.getErrorCode()+\",错误描述:\"+ex.getLocalizedMessage(), Toast.LENGTH_LONG).show();\r\n\t\t\t\t}\r\n\t\t\t}", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "void updateActivationCode(User user) ;", "final String loginAsAutoUser() {\r\n \treturn loginAsAutoUser(false);\r\n }", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "public boolean cambiarActividadDeUsuario(Usuario usuario, boolean bloquear) {\n\n if (bloquear) {\n usuario.setActivo(false);\n } else {\n usuario.setActivo(true);\n }\n\n try {\n this.usuarioFacade.edit(usuario);\n } catch (Exception e) {\n return false;\n }\n return true;\n }", "private void activarControles(boolean estado) {\n this.panPrincipioActivo.setEnabled(estado);\n this.lblNombre.setEnabled(estado);\n this.txtNombre.setEditable(estado);\n this.lblDescripcion.setEnabled(estado);\n this.txtDescripcion.setEditable(estado);\n this.chkVigente.setEnabled(estado);\n this.btnAceptar.setEnabled(estado);\n this.btnCancelar.setEnabled(estado);\n \n this.panListadoPA.setEnabled(! estado);\n this.tblListadoPA.setEnabled(! estado);\n this.btnNuevo.setEnabled(! estado);\n this.btnModificar.setEnabled(! estado);\n \n if(estado == true){\n this.txtNombre.requestFocusInWindow();\n }else{\n this.tblListadoPA.requestFocusInWindow();\n }\n }", "@FXML private void setToNewUser(){\n\t\tshowPassword();\n\t\tclearFields();\n\t\thideLackMessages();\n\t\tchangeCancelButton.setText(\"Anuluj\");\n\t\tnewUser = true;\n\t}", "private void metodoSalvarUsuarioFirebase(final Usuarios variavelClasseUsuarios) {\n\n refAutenticacaofb = ConfiguracaoFirebase.metodoAutenticacaoFirebase();\n refAutenticacaofb.createUserWithEmailAndPassword(variavelClasseUsuarios.getEmail(),\n variavelClasseUsuarios.getSenha()).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n\n idUsuario = task.getResult().getUser().getUid();\n variavelClasseUsuarios.setId(idUsuario);\n variavelClasseUsuarios.salvarUsuario();\n\n if(pegarTipoUsuarioSwitch() == \"Cliente\"){\n\n startActivity(new Intent(CadastroUsuario.this, Home.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Usuário salvo com sucesso\", Toast.LENGTH_LONG).show();\n }else{\n\n startActivity(new Intent(CadastroUsuario.this, PainelEmpresa.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Empresa inserida com sucesso!\", Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n\n\n }\n });\n\n }", "public Aplikasi_Master_User() {\n initComponents();\n kon.setKoneksi();\n BacaTabelUser();\n tkd_user.setVisible(true);\n }", "@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}", "public void fechar() {\n\n try {\n geraLog.criaLog(codigoUsuario, \"Principal\", \"Fez Logoff do Sistema\");\n } catch (IOException ex) {\n Logger.getLogger(JfLogin.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n this.dispose();\n\n }", "public void StartLogIn(){\n\t}", "@Then(\"^o sistema deve permitir a autenticao do usuario no sistema SmartLink Deca$\")\n\tpublic void o_sistema_deve_permitir_a_autenticao_do_usuario_no_sistema_SmartLink_Deca() throws Throwable {\n\t\t\n\t\tPageObject_Login.CheckLoginSucess();\n\t\t\n\t\t// Encerrar o Browser\n\t\tCloseBrowser();\n\t\t\n\t\t/** Report Extent **/\n\t\tStopReport();\n\t\t/** Report Extent **/\t\t\n\t\t\n\t}", "public String registrarActividad(){\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tBloque bloque = context.getApplication().evaluateExpressionGet(context, \"#{bloque}\", Bloque.class);\n\t\tActividad actividad = context.getApplication().evaluateExpressionGet(context, \"#{actividad}\", Actividad.class);\n\t\tEncargado encargado = context.getApplication().evaluateExpressionGet(context, \"#{encargado}\", Encargado.class);\n\t\t\n\t\ttry {\n\t\t\tactividad.registrarActividad();\n\t\t\tactividad.registrarActividad_Bloque(bloque.getTematica());\n\t\t\tactividad.registrarActividad_Encargado(encargado.getCedula());\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\t\t\t\n\t\t// put the user object into the POST request \n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"actividad\", actividad);\n\t\t\n\t\treturn \"principalAdministrador.xhtml\";\n\t}", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "public void activate()\n {\n }", "@Override\n\tpublic void onActivate() {\n\t\tsetCurrentPageWhenReady(StaticPageNames.Core_UserLogin, 30, pageName -> {\n\t\t\t//TODO: Show error popup\n\t\t\tlogger.severe(\"Failed to load Login page, timed out while waiting for page!\");\n\t\t});\n\t}", "public void activarNuevoAlmacen() {\n\t\ttxtId.setVisible(false);\n\t\tpnAlmacen.setVisible(true);\n\t\tsetTxtUbicacion(\"\");\n\t\tgetPnTabla().setVisible(false);\n\t\tadd(pnAlmacen,BorderLayout.CENTER);\n\t \n\t}", "@Override\n public void onAuthenticated(AuthData authData) {\n Intent intent = new Intent(getApplicationContext(), ActiveUserActivity.class);\n startActivity(intent);\n }", "public synchronized boolean desactivarPerfil(String nombreUsuario) throws ExceptionViajesCompartidos{\n \tthis.limpiarTransacciones();\n Usuario u = this.buscarUsuarioPorNombre(nombreUsuario);\n\t\tif (u == null){\n\t\t\tthrow new ExceptionViajesCompartidos(\"El usuario ha desactivar no se encuentra registrado en el sistema\");\n\t\t}\n\t\tif (!this.isUsuarioActivo(nombreUsuario)){\n\t\t\tthrow new ExceptionViajesCompartidos(\"El usuario ya se encuentra desactivado\");\n\t\t}\n\t\t\n\t\tthis.iniciarTransaccion();\n\t\tCharacter inactivo = \"B\".charAt(0);\n\t\tu.setEstado(inactivo);\n\t\ttry{\n\t\t \tentitymanager.getTransaction( ).commit( );\t\n\t\t}catch(RollbackException e){\n\t\t \tString error= ManejadorErrores.parsearRollback(e);\n\t\t \tthrow new ExceptionViajesCompartidos(\"ERROR: \"+error);\n\t\t}\n\t\t\n\t\treturn true;\n }", "public ModificarUser() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"Cotizador Encinales\");\n this.jLabel7.setText(\"\");\n this.jLabel8.setText(\"\");\n this.jLabel9.setText(\"\");\n this.jLabel10.setText(\"\");\n \n evitarPegar(this.TxtModCorreo);\n evitarPegar(this.TxtModNombre);\n evitarPegar(this.TxtModPassword);\n evitarPegar(this.TxtModUsuario);\n }", "protected void login() {\n\t\t\r\n\t}", "public String asignarActividad() throws SQLException {\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\n\t\t//Bloque bloque = context.getApplication().evaluateExpressionGet(context, \"#{bloque}\", Bloque.class);\n\t\tActividad actividad = context.getApplication().evaluateExpressionGet(context, \"#{actividad}\", Actividad.class);\n\t\tAsistente asistente = context.getApplication().evaluateExpressionGet(context, \"#{asistente}\", Asistente.class);\n\t\t\n\t\tSystem.out.println(\"resultado: \"+actividad.getNombreActividad());\n\t actividad.registrarActividad_Asistente(asistente.getCedula());\n\t\t\n\t\t// put the user object into the POST request \n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"actividad\", actividad);\n\t\t\n\t\treturn\"principalAsistente.xhtml\";\n\t}", "@Override\n public void activate() {\n \n }", "@Override\n\tpublic void execute() throws Exception {\n\t\tSystem.out.println(\" The generated values here===\"+getView().getValues());\n\t\tSystem.out.println(\" The User value here===\"+getView().getValue(\"user\"));\n\t\tString userName = getView().getValueString(\"user\");\n\t\tif(Is.emptyString(userName)){\n\t\t\taddWarning(\"Enter Your Username \", null);\n\t\t\treturn;\n\t\t}\n\t\tUser user = User.find(userName);\n\t\tif(user==null){\n\t\t\taddError(\"Username not found\", null);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString password = RandomStringUtils.randomAlphanumeric(15);\n\t\tuser.setPassword(password);\n\t\tuser.setFirstLogin(false);\n\t\t\n\t\tSystem.out.println(\" The New password ==\"+ password);\n\t\tXPersistence.getManager().merge(user);\n\t\tSystemWideSetup.sendMail( user.getEmail(), \"User Credentials\", \" Your New Password Generated is: \" + password);\t\n\t\taddMessage(\"Your New Password Has been forwarded to your Mail \", null);\n\t}", "private void serchUser() {\n if (!userNameTextField.getText().isEmpty() && !passwordPasswordField.getText().isEmpty()) {\n try {\n User user = UserController.searchUserByUserName(userNameTextField.getText());\n if (user != null) {\n if (passwordPasswordField.getText().equals(user.getPassword())) {\n closeFadeOut();\n Hi hi = new Hi();\n hi.setUser(user);\n hi.setVisible(true);\n dispose();\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Please enter username and password\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n }", "@Action(value = \"user_active\", results = {@Result(name = \"active\", location = \"/WEB-INF/jsp/msg.jsp\")})\n public String active() {\n\n User exsitUser = userService.active(user.getCode());\n\n if (exsitUser == null) {\n\n this.addActionMessage(\"激活失败,验证码无效!\");\n\n } else {\n\n exsitUser.setState(1);\n exsitUser.setCode(null);\n userService.updateState(exsitUser);\n this.addActionMessage(\"激活成功,请登录!\");\n }\n\n return \"active\";\n }", "public ManageUser() {\r\n \t\tinitComponents();\r\n \t\taddActionListener();\r\n \t}", "@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}", "public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}", "void markAsUserSession();", "@Override\n\tpublic void registrarAtencion(TramiteUsuario tramite) {\n\t\ttramite.setSecUsuario1( Usuario.getUsuarioBean() );\n\t\ttramite.setSecUsuario2( Usuario.getUsuarioBean() );\n\t\ttramite.setEstado(1);\n\t\ttramite.setEstadoTramiteFinal( ParametroUtil.EstadoTramite.ATENDIDO.value );\n\t\ttramite.setFechaRegistro( new Date() );\n\t\ttramiteDAO.registrarMovimiento( tramite );\n\t\t\n\t\ttramite.getTramite().setEstado( ParametroUtil.EstadoTramite.ATENDIDO.value );\n\t\ttramiteDAO.registrar( tramite.getTramite() );\n\t\t\n\t}", "public void activated() \r\n\t{\r\n\t\t\r\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tmLoading.start(\"正在登陆中。。。\");\n\t\t}", "public void recogerUsuarioFirebase() {\n //if user is not valid\n FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser();\n if (currentUser == null) {\n startActivity(StartActivity.createIntent(this));\n finish();\n return;\n } else {\n uniqueID = currentUser.getUid();\n }\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdatabseExecuteQuery(\"UPDATE userdetails SET verify=1 where username='\"+Username+\"'\");\n\t\t\t\t\n\t\t\t\t//after that make verifiacation GUI again \n\t\t\t\tnew Verification();\n\t\t\t}", "public void bienvenida(){\n System.out.println(\"Bienvenid@ a nuestro programa de administracion de parqueos\");\n }", "public vistaEjemplo() {\n initComponents();\n con=new Conexion();\n data = new Datas(con);\n usuario = new Usuario();\n jTApellido.setEnabled(false);\n jTMail.setEnabled(false);\n jTNombre.setEnabled(false);\n jTPassword.setEnabled(false);\n JdcFechaDeEntrada.setEnabled(false);\n jBPdf.setEnabled(false);\n }", "@Scheduled(cron=\"0 0 * * * *\")\r\n\tpublic void task(){\r\n\t\t\r\n\t\ttry{\r\n\t\t\tloginUsers();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void activate() {\n\t\t\n\t}", "protected void doActivate() throws FndException\n {\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_add_whom_user_mointor);\n\n proxy = userSingleton.getCurrentProxy();\n User user = userSingleton.getCurrentUser();\n loggedInUserID = user.getId();\n\n\n setupAddMonitorBtn();\n setupAddMonitorByBtn();\n\n }", "public adminUsuarios() {\n initComponents();\n showUsuarios();\n }", "private void autoLogon() {\n\n // Get the username from the shared preferences file\n String strMailID = null;\n SharedPreferences appPreferences = getSharedPreferences(RegistrationScreenActivity.PREFERENCES_FILENAME, MODE_PRIVATE);\n if( appPreferences.contains(RegistrationScreenActivity.KEY_MAIL_ID) ) {\n strMailID = appPreferences.getString(RegistrationScreenActivity.KEY_MAIL_ID, null);\n }\n\n // If the username is not stored in the file, then request\n // the user to explicitly login by providing the credentials\n if(strMailID != null) {\n\n // Fetch the data from the database\n DatabaseHandler dbHandler = new DatabaseHandler(getApplicationContext());\n AccountInformation accountInfo = dbHandler.getAccountInfo(strMailID);\n if(accountInfo != null) {\n\n // If the account exists, then check auto logon is set to true\n if( !accountInfo.getIfSignedOut() && accountInfo.getIfAlwaysSignIn() ) {\n\n strUserMailID = accountInfo.getEmail();\n strUserName = accountInfo.getName();\n\n // Do auto login by auto displaying the home screen\n Intent intent = new Intent(this, HomeScreenActivity.class);\n intent.putExtra(RegistrationScreenActivity.KEY_MAIL_ID, strUserMailID);\n intent.putExtra(RegistrationScreenActivity.KEY_NAME, strUserName);\n startActivity(intent);\n\n } else {\n\n // Request user to enter the credentials\n Toast.makeText(getApplicationContext(), \"Session signed out previously. \\n \" +\n \"Please enter credentials to login\", Toast.LENGTH_LONG).show();\n }\n } else {\n // Display error if the account does not exists\n Toast.makeText(getApplicationContext(), \"No such user exists. \\n \" +\n \"Please register to login\", Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n protected void onPostExecute(UserData loggedUser) {\n super.onPostExecute(loggedUser);\n if(loggedUser!=null ){\n UserData.setCurrentUser(loggedUser);\n Log.i(\"Loogen in user\" ,loggedUser.name);\n switch (loggedUser.role){\n case \"user\":\n Intent i = new Intent(LoginActivity.this,DonorActivity.class);\n startActivity(i);\n break;\n case \"courier\":\n i = new Intent(LoginActivity.this,DeliveryScreen.class);\n startActivity(i);\n break;\n case \"warhouse\":\n i = new Intent(LoginActivity.this,WareHouseActivity.class);\n startActivity(i);\n break;\n }\n }else {\n Toast.makeText(LoginActivity.this,\"אחד מהפרטים שגויים אנא נסה שנית..\", Toast.LENGTH_LONG).show();\n }\n }", "protected void confirmLogin() {\n String nameString1 = this.adminName.getText();\n String passwordString1 = this.adminPassword.getText();\n UserType userType = (UserType) this.user_type_combobox.getSelectedItem();\n if (\"系统管理员\".equals(userType.getName())) {\n AdminDao adminDao = new AdminDao();\n SystemAdmin admin = adminDao.selectAdmin(nameString1, passwordString1);\n if (admin == null) {\n JOptionPane.showMessageDialog(this, \"用户名或者密码错误!!\");\n return;\n }\n IndexFrame indexFrame = new IndexFrame(userType, admin, passwordString1);\n indexFrame.setVisible(true);\n this.dispose();\n }\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful())\n {\n //verifier si l'utilisateur est etudiant ou volontaire pour le diriger\n startActivity(new Intent(getActivity(), profil_etd.class));\n }\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n //caso sucesso ao fazer login usuario\n if (task.isSuccessful()){\n progressBarLogin.setVisibility(View.GONE);\n //instancio a activity de destino\n startActivity(new Intent(getApplicationContext(),SolicitacaoAreaActivity.class));\n finish();//fecha a activity atual\n }else{\n Toast.makeText(AutentinticacaoActivity.this,\n \"Erro ao fazer login\",\n Toast.LENGTH_SHORT).show();\n progressBarLogin.setVisibility(View.GONE);\n }\n\n\n }", "public void agregarNuevoUsuarioAdmin(){\n //recupero objeto rol administrador\n usuario.setRol(new ListadoRoles().getListaRoles().get(0));\n usuarioBean.setUsuario(usuario);\n usuarioBean.agregarUsuario();\n FacesContext context = FacesContext.getCurrentInstance(); \n context.addMessage(null, new FacesMessage(\"Éxito\", \"Se agregó un Usuario Administrador correctamente.\" ));\n RequestContext.getCurrentInstance().execute(\"PF('dlgAltaUsuario').hide();\");\n }" ]
[ "0.69417596", "0.68795997", "0.67777246", "0.67285615", "0.66288275", "0.65561795", "0.6551121", "0.6547028", "0.64943194", "0.64188194", "0.63473934", "0.6312574", "0.62919664", "0.629017", "0.6277861", "0.62769157", "0.6267766", "0.6245163", "0.6235925", "0.62258095", "0.62153083", "0.62143147", "0.6207653", "0.62068206", "0.62028676", "0.6187074", "0.61786485", "0.6170015", "0.6136914", "0.61257046", "0.6121818", "0.6117005", "0.6113099", "0.6112739", "0.61104614", "0.6108917", "0.61070234", "0.61038846", "0.6102409", "0.6083864", "0.60775656", "0.6077369", "0.60680914", "0.60658455", "0.6064157", "0.60597223", "0.6058873", "0.6058163", "0.6053651", "0.6052848", "0.60370636", "0.60366374", "0.60323787", "0.6029005", "0.60263294", "0.6020782", "0.6019014", "0.6018374", "0.60169697", "0.6010476", "0.60044646", "0.6003223", "0.59911424", "0.59854996", "0.59776896", "0.5977196", "0.59738576", "0.5973001", "0.59727883", "0.5961905", "0.59529996", "0.5932875", "0.59186226", "0.59146935", "0.5914506", "0.5911467", "0.59114164", "0.5910593", "0.59105706", "0.5905764", "0.5902563", "0.58996326", "0.5896967", "0.58934534", "0.5888149", "0.58814", "0.5880487", "0.5877752", "0.5877461", "0.5876693", "0.5876063", "0.5867811", "0.5867325", "0.58659905", "0.58623254", "0.5859438", "0.5857471", "0.58563834", "0.58551013", "0.5854628", "0.5853329" ]
0.0
-1
/ Corta la parte final de un Bitmap
private Bitmap cutBottom(Bitmap origialBitmap) { Bitmap cutBitmap = Bitmap.createBitmap(origialBitmap.getWidth(), origialBitmap.getHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(cutBitmap); Rect srcRect = new Rect(0, 6*(origialBitmap.getHeight() / 7), origialBitmap.getWidth() , origialBitmap.getHeight()); Rect desRect = new Rect(0, 0, origialBitmap.getWidth(), origialBitmap.getHeight() / 7); canvas.drawBitmap(origialBitmap, srcRect, desRect, null); return cutBitmap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finalize(){\r\n srcImage = null;\r\n sigmas = null;\r\n xDataRound = null;\r\n yDataRound = null;\r\n zDataRound = null;\r\n super.finalize();\r\n }", "@Override\r\n\t protected void onPostExecute(Bitmap outBitmap) {\r\n\t\t\tLog.d(\"asdf\", \"ONPOSTEXE\");\r\n\t\t\tRectF dest = new RectF(x, y, x + width, y + height);\r\n\t\t\timageWrapper imwrap = new imageWrapper(outBitmap, startState, dest);\r\n\t\t\tfinal HashMap<Integer, imageWrapper> map = mapRef.get();\r\n\t\t\tmap.put(resId, imwrap);\r\n\t }", "void mo12205a(Bitmap bitmap);", "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n mask = null;\r\n\r\n if (keepProgressBar == false) {\r\n disposeProgressBar();\r\n }\r\n\r\n try {\r\n super.finalize();\r\n } catch (Throwable er) { }\r\n }", "public static native int nativeRecoBitmap(Bitmap bitmap, int lft, int rgt, int top, int btm, byte[]bresult, int maxsize);", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tpreserved(bitmap);\n\t\t}", "Bitmap m7900a(Bitmap bitmap);", "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n super.finalize();\r\n }", "public static void forceClearBitmap() {\n System.gc();\n System.runFinalization();\n System.gc();\n }", "private void cargarBitmaps(TipoMunicion tipo) {\n switch (tipo){\n case RIFLE:\n bala = utils.getBitmapFromAssets(\"balas/bullet1.png\");\n break;\n case PISTOLA:\n bala = utils.getBitmapFromAssets(\"balas/bullet3.png\");\n break;\n case BIGPISTOLA:\n bala = utils.getBitmapFromAssets(\"balas/bullet2.png\");\n break;\n }\n\n Matrix matrix = new Matrix();\n switch (direccion) {\n case NORTE:\n matrix.postRotate(-90);\n break;\n case SUR:\n matrix.postRotate(90);\n break;\n case ESTE:\n matrix.postRotate(0);\n break;\n case OESTE:\n matrix.postRotate(180);\n break;\n }\n bala = Bitmap.createBitmap(bala, 0, 0, bala.getWidth(), bala.getHeight(), matrix, true);\n bala = Bitmap.createScaledBitmap(bala, altoPantalla * 1/80, altoPantalla * 1/80, false);\n }", "public void finalize() {\r\n\t\tdestImage = null;\r\n\t\tsrcImage = null;\r\n\t\tsuper.finalize();\r\n\t}", "public void process(Bitmap bitmap) {\n this.bitmap = getCompressedBitmap(bitmap);\n execute();\n }", "public void run() {\n sight.setImageBitmap(bmp);\n // old = null;\n }", "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n sliceBuffer = null;\r\n super.finalize();\r\n }", "public static native Bitmap nativeRecoStillImage(Bitmap bitmap, int tryhard, int bwantimg, byte[]bresult, int maxsize, int []rets);", "public void onPostExecute(ResizeBundle result) {\n JpegPictureCallback.this.saveFinalPhoto(result.jpegData, name, result.exif, cameraProxy);\n }", "Bitmap getBitmap(){\n Bitmap bm = frame;\n frame = null;\n return bm;\n }", "public void finalize() {\r\n srcImage = null;\r\n destImage = null;\r\n buffer = null;\r\n validBuffer = null;\r\n idealBuffer = null;\r\n objectBuffer = null;\r\n super.finalize();\r\n }", "public Bitmap getFinalShapesImage();", "private void preprocess(Bitmap bitmap) {\n convertBitmapToByteBuffer(bitmap);\n }", "private Bitmap ensureGLCompatibleBitmap(Bitmap bitmap) {\n\t\tif (bitmap == null || bitmap.getConfig() != null) {\n\t\t\treturn bitmap;\n\t\t}\n\t\tBitmap newBitmap = bitmap.copy(Config.ARGB_8888, false);\n\t\tbitmap.recycle();\n\t\tSystem.gc();\n\t\t//Log.i(TAG, \"***bitmap**\" + (bitmap == null) + \" \" + (newBitmap == null));\n\t\treturn newBitmap;\n\t}", "public void onPostExecute(Bitmap[] bitmapArr) {\n super.onPostExecute(bitmapArr);\n int length = bitmapArr.length;\n int i = 0;\n while (i < length) {\n if (bitmapArr[i] != null) {\n i++;\n } else {\n return;\n }\n }\n if (this.f81196b != null) {\n this.f81196b.onLoadImage(bitmapArr);\n }\n }", "@Override\n\tprotected void onPostExecute(Bitmap result) {\n\t\tsuper.onPostExecute(result);\n\n\t\tmsg.what = 1;\n\t\tpuente_envio.dispatchMessage(msg);\n\t\t// imgImagen.setImageBitmap(result);\n\n\t}", "public void onPostExecute(ResizeBundle result) {\n LongshotPictureCallback.this.saveFinalPhoto(result.jpegData, LongshotPictureCallback.this.mName, result.exif, camera, externalBundle);\n }", "public void showbitmap3() {\n \n \t}", "private Bitmap rotateBitmap(Bitmap bitmap){\n Matrix matrix = new Matrix();\n matrix.postRotate(90);\n return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n }", "@Override\n protected void onPostExecute(Bitmap Re) {\n t34.setImageBitmap(Re);\n }", "public void showbitmap4() {\n \n \t}", "public void onPostExecute(TE te) {\n if (te != null) {\n PhotoModule.this.mAppController.getCameraAppUI().updatePeekThumbUri(null);\n PhotoModule.this.mAppController.getCameraAppUI().updatePeekThumbBitmap(te.bitmap);\n }\n }", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "private void rebuildImageIfNeeded() {\n Rectangle origRect = this.getBounds(); //g.getClipBounds();\n// System.out.println(\"origRect \" + origRect.x + \" \" + origRect.y + \" \" + origRect.width + \" \" + origRect.height);\n\n backBuffer = createImage(origRect.width, origRect.height);\n// System.out.println(\"Image w \" + backBuffer.getWidth(null) + \", h\" + backBuffer.getHeight(null));\n Graphics backGC = backBuffer.getGraphics();\n backGC.setColor(Color.BLACK);\n backGC.fillRect(0, 0, origRect.width, origRect.height);\n// updateCSysEntList(combinedRotatingMatrix);\n paintWorld(backGC);\n }", "public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }", "void deleteCurrentImageBuffered();", "public Bitmap saveBitmap(int sampleSize, int radius, int strokeWidth) {\n\r\n try {\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n options.inJustDecodeBounds = true; //Chỉ đọc thông tin ảnh, không đọc dữ liwwuj\r\n BitmapFactory.decodeFile(pathImage, options); //Đọc thông tin ảnh\r\n options.inSampleSize = sampleSize; //Scale bitmap xuống 1 lần\r\n options.inJustDecodeBounds = false; //Cho phép đọc dữ liệu ảnh ảnh\r\n Bitmap originalSizeBitmap = BitmapFactory.decodeFile(pathImage, options);\r\n\r\n Bitmap mutableBitmap = originalSizeBitmap.copy(Bitmap.Config.ARGB_8888, true);\r\n RectF originalRect =\r\n new RectF(0, 0, mutableBitmap.getWidth(), mutableBitmap.getHeight());\r\n\r\n originalSizeBitmap.recycle();\r\n originalSizeBitmap = null;\r\n System.gc();\r\n\r\n Canvas canvas = new Canvas(mutableBitmap);\r\n\r\n float[] originXy = getOriginalPoint(originalRect);\r\n circlePaint.setStrokeWidth(strokeWidth);\r\n canvas.drawCircle(originXy[0], originXy[1], radius, circlePaint);\r\n return mutableBitmap;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n Toast.makeText(getContext(), \"can not draw original bitmap\", Toast.LENGTH_SHORT)\r\n .show();\r\n return getBitmapScreenShot();\r\n }\r\n }", "public Bitmap espejo() {\n Bitmap bmp = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), bitmap.getConfig());\n int pixel, red, green, blue, alpha;\n //Recorremos todos los pixeles de la imagen\n for (int i = 0; i < bitmap.getWidth(); i++) {\n for (int j = 0; j < bitmap.getHeight(); j++) {\n pixel = bitmap.getPixel(i, j);\n red = Color.red(pixel);\n green = Color.green(pixel);\n blue = Color.blue(pixel);\n alpha = Color.alpha(pixel);\n //Pixel a pixel invertimos sus posiciones y recreamos la imagen ya invertida\n bmp.setPixel(bitmap.getWidth() - i - 1, j, Color.argb(alpha, red, green, blue));\n }\n }\n return bmp;\n }", "public void post() {\r\n // If first or second frame, don't update or save.\r\n if(firstFrame||secondFrame|| (!isTiling)) return;\r\n\r\n // Find image ID from reverse row order\r\n int imgid=tileImgCnt%tileNum+(tileNum-tileImgCnt/tileNum-1)*tileNum;\r\n int idx=(imgid%tileNum);\r\n int idy=(imgid/tileNum);\r\n\r\n // DAVE: in forward row order\r\n imgid = tileImgCnt;\r\n idx=(imgid%tileNum);\r\n idy=(imgid/tileNum);\r\n\r\n // Get current image from sketch and draw it into buffer\r\n p.loadPixels();\r\n tileImg.set(idx*p.width, idy*p.height, p.g);\r\n\r\n // DAVE: time to stream output image?\r\n if (idx==tileNum-1)\r\n appendTGA(tileImg.pixels);\r\n\r\n // Increment tile index\r\n tileImgCnt++;\r\n perc=100*((float)tileImgCnt/(float)tileNumSq);\r\n if(perc-percMilestone>5 || perc>99) {\r\n p.println(p.nf(perc,3,2)+\"% completed. \"+tileImgCnt+\"/\"+tileNumSq+\" images saved.\");\r\n percMilestone=perc;\r\n }\r\n\r\n if(tileImgCnt==tileNumSq) tileFinish();\r\n else tileInc();\r\n }", "public void recycleBitmapData(){\n\t\tif(bmpData != null){\n\t\t\tbmpData.recycle();\n\t\t\tbmpData = null;\n\t\t}\n\t}", "@Override\n protected void onDraw(Canvas canvas) {\n\n if(getBackgroundBitmap() != null){\n Bitmap bmp= getBackgroundBitmap();\n bmp = cutBottom(bmp);\n canvas.drawBitmap(bmp, 0,0, canvasPaint);\n canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint);\n // canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint);\n canvas.drawPath(drawPath, drawPaint);\n\n }else{\n canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint);\n canvas.drawPath(drawPath, drawPaint);\n }\n\n }", "private void compressCamBitmap(String imagePath) {\n\t\tnew ImageCompressionAsyncTask(true,getActivity()){\n\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\tsharedImagePath=result;\n\t\t\t\tif(cameraImagePath!=null){\n\t\t\t\t\tFile tempFile=new File(cameraImagePath);\n\t\t\t\t\ttempFile.delete();\n\t\t\t\t\tcameraImagePath=null;\n\t\t\t\t}\n\t\t\t};\n\n\t\t}.execute(imagePath);\n\t}", "void imFinished();", "private Bitmap createBitmap(Bitmap bitmap, int w, int h, float scale) {\n\n Matrix matrix = new Matrix();\n matrix.setScale(scale, scale);\n //matrix.postTranslate(-bitmap.getWidth() / 2, -bitmap.getHeight() / 2);\n matrix.postRotate(orientation);\n /*if (orientation == 90 || orientation == 270) {\n matrix.postTranslate(bitmap.getHeight() / 2, bitmap.getWidth() / 2);\n } else {\n matrix.postTranslate(bitmap.getWidth() / 2, bitmap.getHeight() / 2);\n }*/\n //canvas.drawBitmap(bitmap, matrix, paint);\n //try {\n // canvas.setBitmap(null);\n //} catch (Exception e) {\n //don't promt, this will crash on 2.x\n //}\n return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n\n //return result;\n }", "private static native void getPageImage(Bitmap bitmap);", "private void desenhaCanosuperior(Canvas canvas) {\n canvas.drawBitmap(canoSuperior, posicao, 0, null);\n }", "private Bitmap postBitmap(Post p) {\n byte[] loadedBytes = Base64.decode(p.getImageURL(), Base64.DEFAULT);\n Bitmap loadedBitmap = BitmapFactory.decodeByteArray(loadedBytes, 0, loadedBytes.length);\n return loadedBitmap;\n }", "@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n\n // Add bitmap to cache\n if (bitmap != null) {\n synchronized (sHardBitmapCache) {\n sHardBitmapCache.put(resourceId, bitmap);\n }\n }\n\n if (imageViewReference != null) {\n ImageView imageView = imageViewReference.get();\n BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView);\n // Change bitmap only if this process is still associated with it\n if (this == bitmapDownloaderTask) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }", "public @NotNull Image flipH()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n if (this.format != ColorFormat.RGBA)\n {\n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n long bytesPerLine = Integer.toUnsignedLong(this.width) * this.format.sizeof;\n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n // OPTION 1: Move pixels with memCopy()\n long src = Integer.toUnsignedLong(y * this.width + this.width - 1 - x) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(y * this.width + x) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, bytesPerLine);\n \n // OPTION 2: Just copy data pixel by pixel\n // output.put(y * this.width + x, this.data.getBytes(y * this.width + (this.width - 1 - x)));\n }\n }\n \n this.data.free();\n \n this.data = output;\n }\n else\n {\n // OPTION 3: Faster implementation (specific for 32bit pixels)\n // NOTE: It does not require additional allocations\n IntBuffer ptr = this.data.toBuffer().asIntBuffer();\n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width / 2; x++)\n {\n int backup = ptr.get(y * this.width + x);\n ptr.put(y * this.width + x, ptr.get(y * this.width + this.width - 1 - x));\n ptr.put(y * this.width + this.width - 1 - x, backup);\n }\n }\n }\n this.mipmaps = 1;\n }\n \n return this;\n }", "@Override\n protected void processLogic() {\n mBitmap = Bitmap.createBitmap(SystemUtils.getScreenWidth(), SystemUtils.getScreenHeight(), Config.ARGB_8888);\n mCanvas = new Canvas(mBitmap);\n mCanvas.drawColor(Color.WHITE);\n ivGraffit.setImageBitmap(mBitmap);\n mPaint = new Paint();\n mPaint.setColor(Color.GREEN);\n // 设置线宽\n mPaint.setStrokeWidth(15);\n mPaint.setAntiAlias(true);\n\n }", "protected void onPostExecute(Bitmap result) {\n\n\n\n bmImage.setImageBitmap(result);\n bmImage.setBackgroundResource( R.color.trans );\n }", "protected void onPostExecute(Bitmap result){\n imageView.setImageBitmap(result);\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n result.compress(Bitmap.CompressFormat.PNG, 0, byteStream);\n byte bitmapBytes[] = byteStream.toByteArray();\n item.ImageBitmapBytes = bitmapBytes;\n }", "public void InitParam(Bitmap[] bm, int vitesse, int intru, int laserColor) {\n screenSizeX = getResources().getDisplayMetrics().widthPixels;\n screenSizeY = getResources().getDisplayMetrics().heightPixels;\n\n //On recupere toutes nos images\n this.bm = bm;\n\n //On recupere la couleur du laser\n this.laserColor = laserColor;\n\n //Et celui qui est l'intru\n this.intru = intru;\n\n //On creer nos tableau avec comme longueur notre nombre d'images\n pathMeasure = new PathMeasure[this.bm.length];\n pathLength = new float[this.bm.length];\n pos = new float[this.bm.length][2]; // ici 2 positions, x et y\n animPath = new Path[this.bm.length];\n distance = new float[this.bm.length];\n resultBitmap = new Bitmap[this.bm.length];\n\n //On boucle pour instancier chaque objets de nos tableaux\n for(int j=0;j<this.bm.length;j++){\n\n animPath[j]= getRandomPath();\n pathMeasure[j] = new PathMeasure(animPath[j],false);\n pathLength[j] = pathMeasure[j].getLength();\n\n resultBitmap[j] = Bitmap.createBitmap(bm[j], 0, 0,\n bm[j].getWidth() - 1, bm[j].getHeight() - 1);\n }\n\n //On definit le pas\n step = vitesse;\n\n // On creer la matrice\n matrix = new Matrix();\n\n //Parametre dans le cas ou l'ecran est touché / pour les laser\n fired=false;\n touchedPosition = new float[2];\n distGaucheRest = new float[2];\n distGaucheRest[0]=0;\n distGaucheRest[1]=screenSizeY;\n fireGauchePas = new float[2];\n fireGauchePas[0]=0;\n fireGauchePas[1]=0;\n\n distDroitRest = new float[2];\n distDroitRest[0]=screenSizeX;\n distDroitRest[1]=screenSizeY;\n fireDroitPas = new float[2];\n fireDroitPas[0]=0;\n fireDroitPas[1]=0;\n\n //Au cas ou le vaiseau explose\n xplosed=false;\n countBeforeXplose=0;\n\n }", "public void onPostExecute(byte[] originalJpegData) {\n PhotoModule.this.mInHdrProcess = false;\n ExifInterface exif = Exif.getExif(originalJpegData);\n final NamedEntity name = PhotoModule.this.mNamedImages.getNextNameEntity();\n if (PhotoModule.this.mShouldResizeTo16x9) {\n ResizeBundle dataBundle = new ResizeBundle();\n dataBundle.jpegData = originalJpegData;\n dataBundle.targetAspectRatio = 1.7777778f;\n dataBundle.exif = exif;\n new AsyncTask<ResizeBundle, Void, ResizeBundle>() {\n /* Access modifiers changed, original: protected|varargs */\n public ResizeBundle doInBackground(ResizeBundle... resizeBundles) {\n return PhotoModule.this.cropJpegDataToAspectRatio(resizeBundles[0]);\n }\n\n /* Access modifiers changed, original: protected */\n public void onPostExecute(ResizeBundle result) {\n JpegPictureCallback.this.saveFinalPhoto(result.jpegData, name, result.exif, cameraProxy);\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new ResizeBundle[]{dataBundle});\n } else {\n JpegPictureCallback.this.saveFinalPhoto(originalJpegData, name, exif, cameraProxy);\n }\n if (PhotoModule.this.isOptimizeCapture && exif.hasThumbnail()) {\n PhotoModule.this.updateThumbnail(exif);\n }\n }", "public void run() {\n // Create copy of photo\n //\n Bitmap photo = BitmapFactory.decodeByteArray(mdata, 0, mdata.length).copy(Bitmap.Config.RGB_565, true);\n\n //\n // Correct rotation issues with orientation (i.e. landscape right saved upside down)\n //\n float rotate = 0.0f;\n Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();\n int rotation = display.getRotation();\n if (rotation == Surface.ROTATION_0) {\n //Portrait\n if (!isBackCameraSelected) {\n rotate = 270;\n } else {\n rotate = 90;\n }\n } else if (rotation == Surface.ROTATION_90) {\n //Landscape left - ok for both front and back\n rotate = 0;\n } else if (rotation == Surface.ROTATION_180) {\n rotate = 270;\n } else if (rotation == Surface.ROTATION_270) {\n //Landscape right\n rotate = 180;\n }\n\n Bitmap scaled;\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n // Notice that width and height are reversed\n scaled = Bitmap.createScaledBitmap(photo, screenHeight, screenWidth, true);\n } else {// LANDSCAPE MODE\n //No need to reverse width and height\n scaled = Bitmap.createScaledBitmap(photo, screenWidth, screenHeight, true);\n //photo = scaled;\n }\n int w = scaled.getWidth();\n int h = scaled.getHeight();\n // Setting post rotate to 90\n Matrix mtx = new Matrix();\n mtx.postRotate(rotate);\n // Rotating Bitmap\n photo = Bitmap.createBitmap(scaled, 0, 0, w, h, mtx, true);\n\n //\n // Write the copyright\n //\n float scale = getResources().getDisplayMetrics().density;\n Canvas canvasView = new Canvas(photo);\n Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);\n paint.setColor(Common.COPYRIGHT_TEXT_COLOR);\n paint.setTextSize((int) (Common.COPYRIGHT_TEXT_SIZE * scale));\n\n paint.setShadowLayer(1f, 0f, 1f, Color.LTGRAY);\n String mRight = \"md5:\" + copyrightMD5 + \" sha1:\" + copyrightSHA1;\n //canvasView.drawText(mRight, 0, 25, paint);\n\n canvasView.save();\n canvasView.rotate(rotate, 0, Common.COPYRIGHT_Y_AXIS_OFFSET);\n canvasView.drawText(mRight, 0, Common.COPYRIGHT_Y_AXIS_OFFSET, paint);\n canvasView.restore();\n\n //\n // Fetch the path\n //\n pictureFile = getOutputMediaFile(MEDIA_TYPE_IMAGE);\n if (pictureFile == null) {\n Log.d(TAG, \"Error creating media file, check storage permissions...\");\n return;\n }\n\n //\n // Write the new byte data...\n //\n try {\n FileOutputStream fos = new FileOutputStream(pictureFile);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n photo.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n byte[] bitmapdata = bos.toByteArray();\n fos.write(bitmapdata);\n fos.close();\n } catch (FileNotFoundException e) {\n Log.d(TAG, \"File not found: \" + e.getMessage());\n } catch (IOException e) {\n Log.d(TAG, \"Error accessing file: \" + e.getMessage());\n }\n\n //\n // Add EXIF data to JPEG\n //\n try {\n ExifInterface exif = new ExifInterface(pictureFile.getAbsolutePath());\n String userComment = exif.getAttribute(\"UserComment\"); // here, x is always null...\n\n\n //\n // Generate copyright specific to media\n //\n String mediaCopyright = generateMediaCopyright(pictureFile, MEDIA_TYPE_IMAGE);\n\n //\n // update copyrightJSONObject with copyright\n //\n exif.setAttribute(\"UserComment\", mediaCopyright);\n\n //\n // GPS Data\n //\n // Set GPS location.\n //exif.setAttribute(ExifInterface.TAG_GPS_LATITUDE, String.valueOf(mCurrentLocation.getLatitude()));\n //exif.setAttribute(ExifInterface.TAG_GPS_LONGITUDE, String.valueOf(mCurrentLocation.getLongitude()));\n //exif.setAttribute(ExifInterface.TAG_GPS_TIMESTAMP, mLastUpdateTime);\n\n //\n // Save attributes\n //\n exif.saveAttributes();\n\n //exif = exif.getAttribute(\"UserComment\"); // x = \"testtest\"\n } catch (IOException e) {\n Log.e(TAG, \"EXIF save error:\" + e.getMessage());\n }\n\n //\n // Add Image to Photos Gallery\n //\n final Uri uri = addMediaToGallery(pictureFile.getAbsolutePath(), getApplicationContext(), \"image\");\n\n //\n // Get Thumbnail\n //\n Bitmap thumbnail = ThumbnailUtils.extractThumbnail(BitmapFactory.decodeFile(pictureFile.getAbsolutePath()), 96, 96);\n\n //\n // Set thumbnail\n //\n imgviewThumbnail.post(new Runnable() {\n public void run() {\n imgviewThumbnail.setImageURI(uri);\n }\n });\n\n //\n // Create a media bean\n //\n String media_id = \"\";\n try {\n media_id = copyrightJsonObject.getString(\"media_id\");\n } catch (JSONException e) {\n // this shouldn't occur\n Log.e(TAG, \"JSONException trying to get media_id from copyright!\");\n }\n String mediaName = ImageUtils.getInstance()\n .getImageNameFromPath(pictureFile.getAbsolutePath());\n GalleryBean media = new GalleryBean(pictureFile.getAbsolutePath(),\n mediaName,\n \"image\",\n media_id,\n false,\n thumbnail,\n GalleryBean.GalleryType.NOT_SYNC);\n media.setDeviceId(SessionManager.getInstance().getDevice_id());\n media.setDeviceType(Common.DEVICE_TYPE);\n String mediaNamePrefix = mediaName.substring(0,\n mediaName.lastIndexOf('.'));\n media.setMediaNamePrefix(mediaNamePrefix);\n media.setMediaThumbBitmap(thumbnail);\n media.setLocalMediaPath(pictureFile.getAbsolutePath());\n Date date = new Date();\n media.setMediaDate(date.getTime());\n String mimeType = getContentResolver().getType(uri);\n media.setMimeType(mimeType);\n media.setCopyright(copyrightJsonObject.toString());\n\n MemreasTransferModel transferModel = new MemreasTransferModel(\n media);\n transferModel.setType(MemreasTransferModel.Type.UPLOAD);\n QueueAdapter.getInstance().getSelectedTransferModelQueue()\n .add(transferModel);\n\n // Start the service if it's not running...\n startQueueService();\n\n }", "@Override\n protected void onPreExecute() {\n imgPlaceDetail.setImageBitmap(getBitmapFromAssets(\"no_image_backdrop.png\"));\n //imgPlaceDetail.setImageResource(R.drawable.no_image_backdrop);\n //imgPlaceDetail.invalidate();\n\n }", "private void resizePhoto() {\n if (photoPath.length() == 0) {\n return;\n }\n Log.d(LOG_TAG, \"Path dell' immagine: \" + photoPath);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, options);\n\n options = new BitmapFactory.Options();\n\n options.inJustDecodeBounds = true;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n Log.d(LOG_TAG, \"Width:\" + bitmapWidth + \" height:\" + bitmapHeight);\n\n options.inSampleSize = calculateInSampleSize(options, bitmapWidth, bitmapHeight);\n\n options.inJustDecodeBounds = false;\n //halfHorizontal = bitmapWidth / 2;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n\n }", "@Override\n protected void onDraw(Canvas canvas) {\n\n\n if(slidePuzzle == null || bitmap == null)\n {\n return;\n }\n\n if(puzzleWidth != slidePuzzle.getWidth() || puzzleHeight != slidePuzzle.getHeight())\n {\n refreshDimensions();\n }\n\n boolean solved = slidePuzzle.isSolved();\n\n if (solved==true){\n canvas.drawText(\"Well done,\", 30, 90, text2);\n canvas.drawText(\"wait until\",30,120,text3);\n canvas.drawText(\"time out!\",30,150,text4);\n\n }\n\n //establecer el fondo\n Bitmap background = BitmapFactory.decodeResource(getResources(), R.drawable.wnocheestrellada);\n Rect dest = new Rect ( 0 , 0 , getWidth (), getHeight ());\n canvas . drawBitmap(background, null, dest, null);\n\n //dos corazones de vida\n\n /*final Bitmap image = BitmapFactory.decodeResource(getResources(), R.drawable.heart);\n Rect dest1 = new Rect (0, 0,80,80);\n canvas.drawBitmap(image, null, dest1,imagePaint);\n Bitmap image1 = BitmapFactory.decodeResource(getResources(), R.drawable.heart);\n Rect dest2 = new Rect (90,0,180,80);\n canvas.drawBitmap(image1, null, dest2, null);*/\n//meter un texto en un canvas\n\n\n int[] originalTiles = slidePuzzle.getTiles();\n\n if(tiles == null || tiles.length != originalTiles.length)\n {\n tiles = new int[originalTiles.length];\n }\n\n for(int i = 0; i < tiles.length; i++)\n {\n if(originalTiles[i] == originalTiles.length - 1)\n {\n continue;\n }\n\n if(dragInTarget && dragging.contains(i))\n {\n tiles[i - PuzzleSlide.DIRECTION_X[dragDirection] - puzzleWidth * PuzzleSlide.DIRECTION_Y[dragDirection]] = originalTiles[i];\n }\n else\n {\n tiles[i] = originalTiles[i];\n }\n }\n\n int delta = !dragInTarget ? 0 : (PuzzleSlide.DIRECTION_X[dragDirection] + puzzleWidth * PuzzleSlide.DIRECTION_Y[dragDirection]) * dragging.size();\n int shownHandleLocation = slidePuzzle.getHandleLocation() + delta;\n tiles[shownHandleLocation] = tiles.length - 1;\n\n int emptyTile = tiles.length - 1;\n\n for(int i = 0; i < tiles.length; i++)\n {\n if(!solved && originalTiles[i] == emptyTile)\n {\n continue;\n }\n\n int targetColumn = slidePuzzle.getColumnAt(i);\n int targetRow = slidePuzzle.getRowAt(i);\n\n int sourceColumn = slidePuzzle.getColumnAt(originalTiles[i]);\n int sourceRow = slidePuzzle.getRowAt(originalTiles[i]);\n\n targetRect.left = targetOffsetX + targetColumnWidth * targetColumn;\n targetRect.top = targetOffsetY + targetRowHeight * targetRow;\n targetRect.right = targetColumn < puzzleWidth - 1 ? targetRect.left + targetColumnWidth : targetOffsetX + targetWidth;\n targetRect.bottom = targetRow < puzzleHeight - 1 ? targetRect.top + targetRowHeight : targetOffsetY + targetHeight;\n\n sourceRect.left = sourceColumnWidth * sourceColumn;\n sourceRect.top = sourceRowHeight * sourceRow;\n sourceRect.right = sourceColumn < puzzleWidth - 1 ? sourceRect.left + sourceColumnWidth : sourceWidth;\n sourceRect.bottom = sourceRow < puzzleHeight - 1 ? sourceRect.top + sourceRowHeight : sourceHeight;\n\n boolean isDragTile = dragging != null && dragging.contains(i);\n\n boolean matchLeft;\n boolean matchRight;\n boolean matchTop;\n boolean matchBottom;\n\n int di = i;\n\n if(dragInTarget && dragging.contains(i))\n {\n di = di - PuzzleSlide.DIRECTION_X[dragDirection] - puzzleWidth * PuzzleSlide.DIRECTION_Y[dragDirection];\n }\n\n if(di == tiles[di])\n {\n matchLeft = matchRight = matchTop = matchBottom = true;\n }\n else\n {\n matchLeft = (di - 1) >= 0 && di % puzzleWidth > 0 && tiles[di] % puzzleWidth > 0 && tiles[di - 1] == tiles[di] - 1;\n matchRight = tiles[di] + 1 < tiles.length - 1 && (di + 1) % puzzleWidth > 0 && (tiles[di] + 1) % puzzleWidth > 0 && (di + 1) < tiles.length && (di + 1) % puzzleWidth > 0 && tiles[di + 1] == tiles[di] + 1;\n matchTop = (di - puzzleWidth) >= 0 && tiles[di - puzzleWidth] == tiles[di] - puzzleWidth;\n matchBottom = tiles[di] + puzzleWidth < tiles.length - 1 && (di + puzzleWidth) < tiles.length && tiles[di + puzzleWidth] == tiles[di] + puzzleWidth;\n }\n\n if(!matchLeft)\n {\n sourceRect.left += FRAME_SHRINK;\n targetRect.left += FRAME_SHRINK;\n }\n\n if(!matchRight)\n {\n sourceRect.right -= FRAME_SHRINK;\n targetRect.right -= FRAME_SHRINK;\n }\n\n if(!matchTop)\n {\n sourceRect.top += FRAME_SHRINK;\n targetRect.top += FRAME_SHRINK;\n }\n\n if(!matchBottom)\n {\n sourceRect.bottom -= FRAME_SHRINK;\n targetRect.bottom -= FRAME_SHRINK;\n }\n\n if(isDragTile)\n {\n targetRect.left += dragOffsetX;\n targetRect.right += dragOffsetX;\n targetRect.top += dragOffsetY;\n targetRect.bottom += dragOffsetY;\n }\n\n canvas.drawBitmap(bitmap, sourceRect, targetRect, tilePaint);\n\n if(!matchLeft)\n {\n //frame paint es un nuevo paint\n canvas.drawLine(targetRect.left, targetRect.top, targetRect.left, targetRect.bottom, framePaint);\n }\n\n if(!matchRight)\n {\n canvas.drawLine(targetRect.right - 1, targetRect.top, targetRect.right - 1, targetRect.bottom, framePaint);\n }\n\n if(!matchTop)\n {\n canvas.drawLine(targetRect.left, targetRect.top, targetRect.right, targetRect.top, framePaint);\n }\n\n if(!matchBottom)\n {\n canvas.drawLine(targetRect.left, targetRect.bottom - 1, targetRect.right, targetRect.bottom - 1, framePaint);\n }\n\n if(!solved && (showNumbers == ShowNumbers.ALL || (showNumbers == ShowNumbers.SOME && di != tiles[di])))\n {\n canvas.drawText(String.valueOf(originalTiles[i] + 1), (targetRect.left + targetRect.right) / 2, (targetRect.top + targetRect.bottom) / 2 - (textPaint.descent() + textPaint.ascent()) / 2, textPaint);\n }\n }\n }", "private void desenhaCanoInferior(Canvas canvas) {\n canvas.drawBitmap(canoInferior, posicao, alturaCanoInferior, null);\n }", "@Override\n\tpublic void onImageDownloadFinish(Bitmap googleimagebitmap) {\n\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t \t\n\t \tclass ToSaveCropped{\n\t \t\t\n\t \t\tfloat x=finalx;\n\t \t\tfloat y=finaly;\n\n\t\t\t\t\tprivate byte[] data = MainActivity.getbitmapData();\n\t\t\t Bitmap mImage = BitmapFactory.decodeByteArray(data, 0, data.length);\n\t\t\t \n\t\t\t Drawable myMask = getResources().getDrawable(R.drawable.mask);\n\t\t\t Bitmap mMask = ((BitmapDrawable) myMask).getBitmap();\n\t\t\t Bitmap mmImage = dv.bitmapRotate(mImage);\n\t\t\t \n\t\t\t Bitmap mmmImage = dv.getResizedBitmap(mmImage,height,width);\n\t\t\t \n\t\t\t Bitmap mmMask = dv.getResizedBitmap(mMask,wMask,wMask);\n\t\t\t\t\t\n\t\t\t\t\tpublic void onDraw(){\n\t\t\t\t\t\tCanvas canvas; \t\t\t\n\t \t\t\tint w = mmMask.getWidth(), h = mmMask.getHeight();\n\t \t\t\tBitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types\n\t \t\t\tcroppedBitmap = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap\n\t \t\t\tcanvas = new Canvas(croppedBitmap);\n\t \t\t\t\n\t \t\t\tPaint maskPaint = new Paint();\n\t \t\t\tmaskPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n\n\t Paint imagePaint = new Paint();\n\t imagePaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OVER));\n\t \t\t\t//Log.i(\"\"+x,\"\"+y);\n\t \t//canvas.drawBitmap(mMask,x,y,maskPaint);\n\t \tcanvas.drawBitmap(mmmImage,-x,-y,imagePaint);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t \t}\t \t\n\t \tToSaveCropped tsc = new ToSaveCropped();\n\t \ttsc.onDraw();\n\t \tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\t \tcroppedBitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);\n\t \tbitData = stream.toByteArray();\n\t\t\t\t\n\t\t\t\tSaveFile sv = new SaveFile();\n\t\t\t\tsv.save();\n\t\t\t\t\n\t\t\t\tMediaStore.Images.Media.insertImage(getContentResolver(), croppedBitmap, \"\", \"\");\n\t\t\t\t\n\t\t\t}", "@Override\n protected void onPostExecute(Bitmap bitmap) {\n log(\"BEGIN onPostExecute\");\n\n image.setImageBitmap(bitmap);\n\n log(\"END onPostExecute\");\n }", "private void refreshDimensions() {\n //tamano del canvas\n targetWidth = canvasWidth;\n targetHeight = canvasHeight;\n//de las imagenes\n sourceWidth = bitmap.getWidth();\n sourceHeight = bitmap.getHeight();\n\n double targetRatio = (double) targetWidth / (double) targetHeight;\n double sourceRatio = (double) sourceWidth / (double) sourceHeight;\n\n targetOffsetX = 0;\n targetOffsetY = 0;\n\n if(sourceRatio > targetRatio)\n {\n int newTargetHeight = (int) (targetWidth / sourceRatio);\n int delta = targetHeight - newTargetHeight;\n targetOffsetY = delta / 2;\n targetHeight = newTargetHeight;\n }\n else if(sourceRatio < targetRatio)\n {\n int newTargetWidth = (int) (targetHeight * sourceRatio);\n int delta = targetWidth - newTargetWidth;\n targetOffsetX = delta / 2;\n targetWidth = newTargetWidth;\n }\n\n puzzleWidth = slidePuzzle.getWidth();\n puzzleHeight = slidePuzzle.getHeight();\n\n targetColumnWidth = targetWidth / puzzleWidth;\n targetRowHeight = targetHeight / puzzleHeight;\n sourceColumnWidth = sourceWidth / puzzleWidth;\n sourceRowHeight = sourceHeight / puzzleHeight;\n }", "public abstract void setUpBitmap(Context context);", "public static File salvarBitMapEnUnidadInternaApp(Context context, Bitmap bitmap, String nombredelficheroDestino) {\n ContextWrapper wrapper = new ContextWrapper(context);\n File carpeta = wrapper.getDir(\"Images\", MODE_PRIVATE);\n File fileDestino = new File(carpeta, nombredelficheroDestino);\n try {\n OutputStream stream = new FileOutputStream(fileDestino);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n stream.flush();\n stream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return fileDestino;\n }", "private Bitmap getCompressedBitmap(Bitmap bitmap) {\n if (bitmap.getWidth() > MAX_WIDTH || bitmap.getHeight() > MAX_HEIGHT) {\n float scale = Math.min(((float) MAX_WIDTH / bitmap.getWidth()),\n ((float) MAX_HEIGHT / bitmap.getHeight()));\n Matrix matrix = new Matrix();\n matrix.postScale(scale, scale);\n Bitmap resizedImage = Bitmap.createBitmap(bitmap, 0, 0,\n bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n bitmap.recycle();\n return resizedImage;\n }\n return bitmap;\n }", "private void populateFromSprite() {\n long start = System.currentTimeMillis();\n int bitSetIndex = 0;\n BufferedImage bImage = (BufferedImage) sprite.m_image;\n //BufferedImage img = ImageIO.read(new File(\"assets/LoopBitmap.bmp\"));\n int color;\n // Loop through image according to scale\n for(int i = 0; i < sprite.getWidth(); i+=scale) {\n for(int j = 0; j < sprite.getHeight(); j+= scale) {\n // Get color at pixel i, j, if black set Bitmap index to true.\n color = bImage.getRGB(i, j);\n if(color == Color.BLACK.getRGB()) { //tempColor.equals(Color.black)) {\n this.set(bitSetIndex, true);\n //System.out.println(\"'BLACK' Color = \"+color + \" i=\"+ i + \", j=\"+j);\n }\n bitSetIndex++;\n }\n }\n long end = System.currentTimeMillis();\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n// System.out.println(\"BITMAP DONE :)\");\n// System.out.println(\"Time to build = \"+(end-start)+\"ms\");\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }", "public static Bitmap convertToMutable(Bitmap imgIn) {\n try {\n //this is the file going to use temporally to save the bytes.\n // This file will not be a imageView, it will store the raw imageView data.\n File file = new File(Environment.getExternalStorageDirectory() + File.separator + \"temp.tmp\");\n\n //Open an RandomAccessFile\n //Make sure you have added uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"\n //into AndroidManifest.xml file\n RandomAccessFile randomAccessFile = new RandomAccessFile(file, \"rw\");\n\n // get the width and height of the source bitmap.\n int width = imgIn.getWidth();\n int height = imgIn.getHeight();\n Bitmap.Config type = imgIn.getConfig();\n\n //Copy the byte to the file\n //Assume source bitmap loaded using options.inPreferredConfig = Config.ARGB_8888;\n FileChannel channel = randomAccessFile.getChannel();\n MappedByteBuffer map = channel.map(FileChannel.MapMode.READ_WRITE, 0, imgIn.getRowBytes()*height);\n imgIn.copyPixelsToBuffer(map);\n //recycle the source bitmap, this will be no longer used.\n imgIn.recycle();\n System.gc();// try to force the bytes from the imgIn to be released\n\n //Create a new bitmap to load the bitmap again. Probably the memory will be available.\n imgIn = Bitmap.createBitmap(width, height, type);\n map.position(0);\n //load it back from temporary\n imgIn.copyPixelsFromBuffer(map);\n //close the temporary file and channel , then delete that also\n channel.close();\n randomAccessFile.close();\n\n // delete the temp file\n file.delete();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return imgIn;\n }", "public final void prepareForSaving() {\r\n\t\tbi_image.pack();\r\n\t}", "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }", "@Override\r\n\t\tpublic void onPostExecute(Bitmap decodedImage){\r\n\t\t\timage.setImageBitmap(decodedImage);\r\n\t\t}", "public void onPostExecute(Boolean bool) {\n if (this.f8117b == null) {\n return;\n }\n if (bool.booleanValue()) {\n this.f8117b.a((Bitmap) null);\n } else {\n this.f8117b.c();\n }\n }", "private void prepararImagenYStorage() {\n mImageBitmap = null;\n\n //this.capturarFotoButton = (Button) findViewById(R.id.capturarFotoButton);\n// setBtnListenerOrDisable(\n// this.capturarFotoButton,\n// mTakePicSOnClickListener,\n// MediaStore.ACTION_IMAGE_CAPTURE\n// );\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {\n mAlbumStorageDirFactory = new FroyoAlbumDirFactory();\n } else {\n mAlbumStorageDirFactory = new BaseAlbumDirFactory();\n }\n }", "protected void onPostExecute(Bitmap result) {\n bmImage.setImageBitmap(result);\n //set the background to the new color\n\n //disable album art on touch rotation\n mainFragment.allowAlbumImageRoation = false;\n\n Bitmap blured = Blur.fastblur(bmImage.getContext(), result, 25);\n Drawable d = new BitmapDrawable(bmImage.getContext().getResources(), blured);\n mainFragment.lLayout.setBackgroundDrawable(d);\n\n }", "@Override\r\n\t protected void onPostExecute(Bitmap bitmap) {\r\n\t \tif (isCancelled()) {\r\n\t bitmap = null;\r\n\t }\r\n\r\n\t if (imageViewReference != null && bitmap != null) {\r\n\t final ImageView imageView = imageViewReference.get();\r\n\t final BitmapWorkerTask bitmapWorkerTask =\r\n\t getBitmapWorkerTask(imageView);\r\n\t if (this == bitmapWorkerTask && imageView != null) {\r\n\t imageView.setImageBitmap(bitmap);\r\n\t }\r\n\t }\r\n\t }", "protected static android.graphics.Bitmap m6543a(int r1, int r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ OutOfMemoryError -> 0x0007 }\n r0 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\t Catch:{ OutOfMemoryError -> 0x0007 }\n return r0;\n L_0x0007:\n java.lang.System.gc();\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\n r1 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.a(int, int):android.graphics.Bitmap\");\n }", "public void recycle() {\n \tif (mPreviousBitmap != null) {\n\t \tmPreviousBitmap.recycle(); \n\t \tmPreviousBitmap = null;\n \t}\n \tif (mCurrentBitmap != null) {\n\t \tmCurrentBitmap.recycle();\n\t mCurrentBitmap = null;\n \t}\n }", "@Override\n public void onComplete(Bitmap bitMap) {\n String localFileName = getLocalImageFileName(url);\n //Log.d(\"TAG\",\"save image to cache: \" + localFileName);\n\n saveImageToFile(bitMap,localFileName);\n //3. return the image using the listener\n listener.onComplete(bitMap);\n }", "private Bitmap processBitmap(Bitmap bitmap) {\n Bitmap pic = bitmap.copy(Bitmap.Config.ARGB_8888, true);\n\n // Get dimensions to base the following work off of.\n int picHeight = pic.getHeight();\n int picWidth = pic.getWidth();\n\n // In this block we're go to change every pixel to the closest 3-bit value. Then we're\n // going to \"dither\", or randomize, the adjacent, further pixels as to make the image\n // look more cleaner... for a 3-bit looking image that is... Ha!\n int x, y, oldPixel, newPixel;\n int quantError, rightPixel, bottomRightPixel, bottomPixel, bottomLeftPixel;\n for(y=0; y<picHeight; y++) {\n for(x=0; x<picWidth; x++) {\n oldPixel = pic.getPixel(x, y);\n newPixel = colorPicker(oldPixel);\n pic.setPixel(x, y, newPixel);\n\n quantError = computeQuantizationError(oldPixel, newPixel);\n\n if(x+1 < picWidth) { // Right pixel\n rightPixel = pic.getPixel(x+1, y);\n pic.setPixel(x+1, y, ditherPixel(rightPixel, quantError, 7.0/16.0));\n\n if (y+1 < picHeight) { // Right bottom pixel\n bottomRightPixel = pic.getPixel(x+1, y+1);\n pic.setPixel(x + 1, y+1, ditherPixel(bottomRightPixel, quantError, 1.0/16.0));\n }\n }\n if(y+1 < picHeight) { // Bottom pixel\n bottomPixel = pic.getPixel(x, y+1);\n pic.setPixel(x, y+1, ditherPixel(bottomPixel, quantError, 5.0/16.0));\n\n if (x-1 >= 0) { // Left bottom pixel\n bottomLeftPixel = pic.getPixel(x-1, y+1);\n pic.setPixel(x-1, y+1, ditherPixel(bottomLeftPixel, quantError, 3.0/16.0));\n }\n }\n }\n }\n\n return pic;\n }", "@Override\n\tprotected void onPostExecute(Bitmap bitmap) {\n\t\tif (imageViewReference != null && bitmap != null) {\n\t\t\tfinal ImageView imageView = imageViewReference.get();\n\t\t\tif (imageView != null) {\n\t\t\t\timageView.setImageBitmap(bitmap);\n\t\t\t\timageView.setVisibility(View.VISIBLE);\n\t\t\t\tmybitmap = bitmap;\n\t\t\t}\n\t\t}\n\t}", "private void CreateDecompression() {\n int iteradorY = 0;\n int iteradorarray = 0;\n int fila = 0;\n int columna = 0;\n while (iteradorY < width / 8 * height / 8) {\n int u = 1;\n int k = 1;\n double[][] Y = new double[8][8];\n double[][] CB = new double[8][8];\n double[][] CR = new double[8][8];\n for (int element = 0; element < 64; ++element) {\n Y[u - 1][k - 1] = (double) Ydes.get(iteradorarray);\n CB[u - 1][k - 1] = (double) CBdes.get(iteradorarray);\n CR[u - 1][k - 1] = (double) CRdes.get(iteradorarray);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n iteradorarray++;\n }\n ++iteradorY;\n //DESQUANTIZAMOS\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Y[m][n] = Y[m][n] * QtablesLuminance[quality][m][n];\n CB[m][n] = CB[m][n] * QtablesChrominance[quality][m][n];\n CR[m][n] = CR[m][n] * QtablesChrominance[quality][m][n];\n }\n }\n //INVERSA DE LA DCT2\n double[][] Ydct = dct3(Y);\n double[][] CBdct = dct3(CB);\n double[][] CRdct = dct3(CR);\n\n //SUMAR 128\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Ydct[m][n] = Ydct[m][n] + 128;\n CBdct[m][n] = CBdct[m][n] + 128;\n CRdct[m][n] = CRdct[m][n] + 128;\n int[] YCbCr = {(int) Ydct[m][n], (int) CBdct[m][n], (int) CRdct[m][n]};\n int[] RGB = YCbCrtoRGB(YCbCr);\n if (fila + m < height & columna + n < width) {\n FinalR[fila + m][columna + n] = RGB[0];\n FinalG[fila + m][columna + n] = RGB[1];\n FinalB[fila + m][columna + n] = RGB[2];\n }\n }\n }\n if (columna + 8 < width) columna = columna + 8;\n else {\n fila = fila + 8;\n columna = 0;\n }\n }\n }", "@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n if (imageViewReference != null && bitmap != null) {\n final ImageView imageView = imageViewReference.get();\n final BitmapWorkerTask bitmapWorkerTask =\n getBitmapWorkerTask(imageView);\n if (this == bitmapWorkerTask && imageView != null) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }", "public void update(Bitmap bitmap) {\r\n\t\tbufferStrat = this.canvas.getBufferStrategy();\r\n\r\n\t\tGraphics graphics = bufferStrat.getDrawGraphics();\r\n\t\tgraphics.drawImage(bitmap.getImage(), 0, 0, width * scale, height * scale, null);\r\n\t\tgraphics.dispose();\r\n\r\n\t\tbufferStrat.show();\r\n\t}", "public Bitmap get() {\n Throwable throwable2222222;\n Object object;\n block4: {\n boolean bl2 = this.zali;\n if (bl2) return this.zalh;\n Object object2 = this.zalg;\n Object object3 = new ParcelFileDescriptor.AutoCloseInputStream(object2);\n object = new DataInputStream((InputStream)object3);\n int n10 = ((DataInputStream)object).readInt();\n object3 = new byte[n10];\n int n11 = ((DataInputStream)object).readInt();\n int n12 = ((DataInputStream)object).readInt();\n String string2 = ((DataInputStream)object).readUTF();\n string2 = Bitmap.Config.valueOf((String)string2);\n ((DataInputStream)object).read((byte[])object3);\n {\n catch (Throwable throwable2222222) {\n break block4;\n }\n catch (IOException iOException) {}\n {\n String string3 = \"Could not read from parcel file descriptor\";\n object2 = new IllegalStateException(string3, iOException);\n throw object2;\n }\n }\n BitmapTeleporter.zaa((Closeable)object);\n object = ByteBuffer.wrap((byte[])object3);\n object3 = Bitmap.createBitmap((int)n11, (int)n12, (Bitmap.Config)string2);\n object3.copyPixelsFromBuffer((Buffer)object);\n this.zalh = object3;\n this.zali = bl2 = true;\n return this.zalh;\n }\n BitmapTeleporter.zaa((Closeable)object);\n throw throwable2222222;\n }", "public void resultImgSet(Bitmap bitmap) {\n fpResultImg.setImageBitmap(bitmap);\n }", "@Override\n\tprotected void onDestroy() {\n\t\tif (bitmap!=null) {\n\t\t\tif (!bitmap.isRecycled()) {\n\t\t\t\tbitmap.recycle();\n\t\t\t}\n\t\t}\n\t\tsuper.onDestroy();\n\t}", "private void setPixels() {\n\t\t\tfinal byte[] dest = new byte[(int) (getMetadata().get(0).getAxisLength(\n\t\t\t\tAxes.X) * getMetadata().get(0).getAxisLength(Axes.Y))];\n\t\t\tlong lastImage = -1;\n\n\t\t\t// fill in starting image contents based on last image's dispose\n\t\t\t// code\n\t\t\tif (getMetadata().getLastDispose() > 0) {\n\t\t\t\tif (getMetadata().getLastDispose() == 3) { // use image before last\n\t\t\t\t\tfinal long n = getMetadata().get(0).getPlaneCount() - 2;\n\t\t\t\t\tif (n > 0) lastImage = n - 1;\n\t\t\t\t}\n\n\t\t\t\tif (lastImage != -1) {\n\t\t\t\t\tfinal byte[] prev = getMetadata().getImages().get((int) lastImage);\n\t\t\t\t\tSystem.arraycopy(prev, 0, dest, 0, (int) (getMetadata().get(0)\n\t\t\t\t\t\t.getAxisLength(Axes.X) * getMetadata().get(0).getAxisLength(\n\t\t\t\t\t\t\tAxes.Y)));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// copy each source line to the appropriate place in the destination\n\n\t\t\tint pass = 1;\n\t\t\tint inc = 8;\n\t\t\tint iline = 0;\n\t\t\tfor (int i = 0; i < getMetadata().getIh(); i++) {\n\t\t\t\tint line = i;\n\t\t\t\tif (getMetadata().isInterlace()) {\n\t\t\t\t\tif (iline >= getMetadata().getIh()) {\n\t\t\t\t\t\tpass++;\n\t\t\t\t\t\tswitch (pass) {\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tiline = 4;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tiline = 2;\n\t\t\t\t\t\t\t\tinc = 4;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\tiline = 1;\n\t\t\t\t\t\t\t\tinc = 2;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tline = iline;\n\t\t\t\t\tiline += inc;\n\t\t\t\t}\n\t\t\t\tline += getMetadata().getIy();\n\t\t\t\tif (line < getMetadata().get(0).getAxisLength(Axes.Y)) {\n\t\t\t\t\tfinal int k = line * (int) getMetadata().get(0).getAxisLength(Axes.X);\n\t\t\t\t\tint dx = k + getMetadata().getIx(); // start of line in dest\n\t\t\t\t\tint dlim = dx + getMetadata().getIw(); // end of dest line\n\t\t\t\t\tif ((k + getMetadata().get(0).getAxisLength(Axes.X)) < dlim) dlim =\n\t\t\t\t\t\tk + (int) getMetadata().get(0).getAxisLength(Axes.X);\n\t\t\t\t\tint sx = i * getMetadata().getIw(); // start of line in\n\t\t\t\t\t// source\n\t\t\t\t\twhile (dx < dlim) {\n\t\t\t\t\t\t// map color and insert in destination\n\t\t\t\t\t\tfinal int index = getMetadata().getPixels()[sx++] & 0xff;\n\t\t\t\t\t\tdest[dx++] = (byte) index;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tgetMetadata().getColorTables().add(getMetadata().getAct());\n\t\t\tgetMetadata().getImages().add(dest);\n\t\t}", "private android.graphics.Bitmap m6555f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }", "public static native void process(Bitmap in, int width, int height, Bitmap out, int outputSize,\n float scale, float angleRadians);", "private void refreshImage() {\n Bitmap image = drawableToBitmap(getDrawable());\n int canvasSize = Math.min(canvasWidth, canvasHeight);\n if (canvasSize > 0 && image != null) {\n //Preserve image ratio if it is not square\n BitmapShader shader = new BitmapShader(ThumbnailUtils.extractThumbnail(image, canvasSize, canvasSize),\n Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);\n mPaint.setShader(shader);\n }\n }", "public Money (Bitmap res,int w, int h){\n\n x = 100;\n y = 100;\n dx = 30;\n spritesheet = res;\n height = h;\n width = w;\n row = 0;\n for (int i = 0; i < numbers; i++){\n imageMoney[i] = Bitmap.createBitmap(res, i*32 ,0,32,64);\n\n }\n\n randomize();\n\n\n //setBitmap(GamePanel.getArray().get(0),GamePanel.getArray().get(1));\n //name = \"King\";\n //spritesheet = BitmapFactory.decodeResource(getResources(), R.drawable.diamond);\n //y = GamePanel.HEIGHT;\n\n //number1 =res1;\n //number2 = res2;\n //startTime = System.nanoTime();\n }", "public void setBitmap(Bitmap bitmap) {\n\t\t\n\t}", "@Override\n public void dataLoaded(Bitmap bitmap) {\n ivCrop.setImageToCrop(bitmap);\n Bitmap bm = null;\n if (ivCrop.canRightCrop()) bm = ivCrop.crop();\n if (bm != null) ivShow.setImageBitmap(bm);\n }", "private void callbitmapmethod() {\n\t\ttry {\n\t\t\tencode.clear();\n\t\t\tfor (int i = 0; i < queueItemforApproval.size(); i++) {\n\t\t\t\t/**/\n\t\t\t\tQueueString en = new QueueString();\n\t\t\t\tif (queueItemforApproval.get(i).bitmap != null) {\n\t\t\t\t\tSystem.out.println(\"bitmap is:\"\n\t\t\t\t\t\t\t+ queueItemforApproval.get(i).bitmap);\n\t\t\t\t\ten.path = convertintobase64(queueItemforApproval.get(i).bitmap);\n\t\t\t\t\tSystem.out.println(\"path is :\" + en.path);\n\t\t\t\t\t// Bitmap bitmap = decodeBase64(en.path, i);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"bitmap is null\");\n\t\t\t\t}\n\t\t\t\tencode.add(en);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public Bitmap getBitmap() {\n\t\tBitmap bitmap;\n\t\tint intpixels[] = new int[getNrows()*getNcols()];\n\n// Log.i(\"min value\", Float.toString(getMinElevation()));\n// Log.i(\"max value\", Float.toString(getMaxElevation()));\n// Log.i(\"range value\", Float.toString(getMaxElevation()-getMinElevation()));\n\t\tfor(int k = 0; k<getNrows(); k++) {\n\t\t\tfor(int m=0; m<getNcols(); m++) {\n\t\t \t//normalize each float to a value from 0-255\n\n double range = 255/(getMaxElevation()-getMinElevation());\n\t\t \tintpixels[k+(m*getNrows())] = (int)(range*(getElevationData()[k][m]-getMinElevation()));\n\n //Log.i(\"pixel value\", Integer.toString(intpixels[m+(k*getNcols())]));\n\t\t \t//intpixels[k] = (int)( ((pixels[k]-min)/(max-min))*(double)255.0);\n\t\t \t//convert to greyscale ARGB value\n\t\t \t//intpixels[m+(k*getNcols())] = 0xFF000000 + intpixels[m+(k*getNcols())] + intpixels[m+(k*getNcols())]<<8 + intpixels[m+(k*getNcols())]<<16;\n\t\t\t}\t\n\t }\n\n for(int l=0;l<getNcols()*getNrows(); l++) {\n //intpixels[l] = 0xFF000000 + intpixels[l] + intpixels[l]<<8 + intpixels[l]<<16;\n intpixels[l] = Color.argb(255, intpixels[l], intpixels[l], intpixels[l]);\n }\n\t\tbitmap = Bitmap.createBitmap(intpixels, 0, getNrows(), getNrows(), getNcols(), Bitmap.Config.ARGB_8888);\n\n Matrix matrix = new Matrix();\n matrix.postRotate(90);\n bitmap = Bitmap.createBitmap(bitmap, 0, 0,\n bitmap.getWidth(), bitmap.getHeight(),\n matrix, true);\n try {\n FileOutputStream out = new FileOutputStream(\"/sdcard/field.png\");\n bitmap.compress(Bitmap.CompressFormat.PNG, 90, out);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n\n return bitmap;\n\t}", "public Bitmap getBitmap(){\n return bitmap;\n }", "public byte[] doInBackground(byte[]... data) {\n byte[] originalJpegData;\n byte[] originalJpegData2 = data[0];\n if (PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() > 0.0f && PhotoModule.this.isSupportBeauty() && (PhotoModule.this.mCameraId == 0 || PhotoModule.this.mCameraId == 1)) {\n Size size = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n float seek = PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() / 20.0f;\n int angle = PhotoModule.this.mCameraId == 1 ? MediaProviderUtils.ROTATION_270 : 90;\n if (originalJpegData2 != null) {\n originalJpegData2 = BeautifyHandler.processImageNV21(PhotoModule.this.mActivity, originalJpegData2, size.width(), size.height(), seek, angle);\n }\n }\n PhotoModule.this.mActivity.getButtonManager().mBeautyEnable = true;\n Size size2 = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n PhotoModule.this.mIsAddWaterMark = PhotoModule.this.mCameraSettings.isAddWaterMarkEnabled();\n if (PhotoModule.this.mFinalDrCheckResult.size() <= 1) {\n Log.d(PhotoModule.TAG, \"start to jpeg\");\n originalJpegData = PhotoModule.this.convertN21ToJpeg(originalJpegData2, size2.width(), size2.height());\n Log.d(PhotoModule.TAG, \"end to jpeg\");\n } else {\n int result = PhotoModule.this.mImageRefiner.processImage();\n Tag access$500 = PhotoModule.TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"processImage result = \");\n stringBuilder.append(result);\n Log.d(access$500, stringBuilder.toString());\n byte[] output = new byte[originalJpegData2.length];\n if (result < 0) {\n output = (byte[]) PhotoModule.this.mAddedImages.get(0);\n } else {\n int getOutputResult = PhotoModule.this.mImageRefiner.getOutputImageRaw(output);\n Tag access$5002 = PhotoModule.TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"getOutputResult = \");\n stringBuilder2.append(getOutputResult);\n Log.d(access$5002, stringBuilder2.toString());\n }\n PhotoModule.this.mImageRefiner.finish();\n PhotoModule.this.mImageRefiner = null;\n Log.d(PhotoModule.TAG, \"mImageRefiner = null\");\n Log.d(PhotoModule.TAG, \"compressToJpeg\");\n originalJpegData = PhotoModule.this.convertN21ToJpeg(output, size2.width(), size2.height());\n }\n if (cameraProxy.getCharacteristics().isFacingFront() && PhotoModule.this.isNeedMirrorSelfie()) {\n originalJpegData = PhotoModule.this.aftMirrorJpeg(originalJpegData);\n }\n if (!Keys.isAlgorithmsOn(PhotoModule.this.mActivity.getSettingsManager()) || PhotoModule.this.isDepthEnabled() || PhotoModule.this.mBurstResultQueue.isEmpty()) {\n return originalJpegData;\n }\n TotalCaptureResult totalCaptureResult = (TotalCaptureResult) PhotoModule.this.mBurstResultQueue.removeFirst();\n if (PhotoModule.this.mInHdrProcess) {\n PhotoModule.this.mBurstResultQueue.clear();\n }\n return PhotoModule.this.addExifTags(originalJpegData, totalCaptureResult, cameraProxy.getCharacteristics().isFacingFront(), PhotoModule.this.mJpegRotation);\n }", "@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n\n addBitmapToCache(url, bitmap);\n \n // write to cache file at the same time\n // Defect: Because transfer into bitmap, we can't save as GIF with transparent background\n // saveBitmapToCacheFile(url, bitmap);\n \n if (imageViewReference != null) {\n ImageView imageView = imageViewReference.get();\n BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView);\n // Change bitmap only if this process is still associated with it\n // Or if we don't use any bitmap to task association (NO_DOWNLOADED_DRAWABLE mode)\n if ((this == bitmapDownloaderTask) || (mode != Mode.CORRECT)) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }", "@Override\n\t\t\t\t\t\tpublic void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n\t\t \t\t\t\tDrawable drawable = iv_details_poster.getDrawable();\n\t\t \t\t\t\tBitmap bitmap = ImageUtil.drawableToBitmap(drawable);\n\t\t \t\t\t\tBitmap bit = Reflect3DImage.skewImage(bitmap, 60);\n\t\t \t\t\t\tiv_details_poster.setImageBitmap(bit);\n\t\t\t\t\t\t}", "public void prepareObjetivos(){\n\t\tfor( int x= 0 ; x < game.getAmountObjetivos();x++){\n\t\t\tObjetivo o = game.getObjetivo(x);\n\t\t\timage = o.getImage();\n\t\t\ttemporal = image.getImage().getScaledInstance(o.getAncho(), o.getAlto(), Image.SCALE_SMOOTH);\n\t\t\to.setImage(new ImageIcon(temporal));\n\t\t}\n\t\t\n\t}", "public BufferedImage doInBackground() {\n \t \tsynchronized(v2d)\r\n \t \t{\r\n \t \tv2d.simulate();\r\n \t \t\r\n \t \t//developers can use this functuon of 2d viwers to skip long renderings that are not actually updating the image\r\n \t \tif (v2d.skipRendering())\r\n \t \t\treturn finalImage;\r\n \t \t\r\n \t \t//this if is for the first time the two buffers are initialized and for when the user changes the size of the container; in this case a new image of the good size needs to be created.\r\n \t \tif (image == null || image.getWidth() != thisContainer.getWidth() || image.getHeight() != thisContainer.getHeight())\r\n \t \t\t\r\n \t \t\tif (thisContainer.getWidth() < 0 || thisContainer.getHeight() < 0)\r\n \t \t\t\treturn finalImage;\r\n \t \t\t\r\n \t \t\t//image = thisPanel.getGraphicsConfiguration().createCompatibleImage(thisPanel.getWidth(),thisPanel.getHeight());\r\n \t \t\timage = new BufferedImage(thisContainer.getWidth(), thisContainer.getHeight(),BufferedImage.TYPE_INT_ARGB);\r\n \t \t\t\r\n \t \t \t \t \t \t\r\n \t \t\tGraphics2D gc = image.createGraphics();\r\n \t \t\t\r\n \t \t\tgc.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\r\n \t \t\t\r\n\t gc.setColor(v2d.backgroundColor());\r\n\t gc.fillRect(0, 0, thisContainer.getWidth(), thisContainer.getHeight()); // fill in background\r\n\t \r\n\t if (!v2d.antialiasingSet)\r\n\t {\r\n\t \tif (v2d.antialiasing)\r\n\t \t{\t \t\t\r\n\t \t gc.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n\t \t RenderingHints.VALUE_ANTIALIAS_ON);\r\n\r\n\t \t gc.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\r\n\t \t RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t gc.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n\t \t RenderingHints.VALUE_ANTIALIAS_OFF);\r\n\r\n\t \t gc.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\r\n\t \t RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);\r\n\t \t}\r\n\t }\r\n\t \r\n\t zoomOriginX = this.thisContainer.getWidth()/2;\r\n\t zoomOriginY = this.thisContainer.getHeight()/2;\r\n\t \r\n\t //sets the proper transformation for the Graphics context that will passed into the rendering function\t \r\n\t \r\n\t \r\n\t gc.setTransform(AffineTransform.getTranslateInstance(zoomOriginX, zoomOriginY));\t \r\n\t gc.transform(AffineTransform.getScaleInstance(zoom,zoom));\t\t \r\n\t gc.transform(AffineTransform.getTranslateInstance(translatex-zoomOriginX, translatey-zoomOriginY));\r\n\t \r\n\t \r\n\t transform = gc.getTransform();\r\n \t \t\t \t\t\r\n \t \t\t\t\r\n\t v2d.render(gc);\r\n\t gc.setColor(Color.black);\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t gc.setTransform(AffineTransform.getTranslateInstance(0, 0));\r\n\t \t\r\n\t if ((new Date().getTime()- lastMouseMove) > v2d.getTooltipDelay())\r\n\t \tif (v2d.getToolTipEnabled() && v2d.getToolTipText().length() > 0)\r\n\t \t\tv2d.renderTooltip(gc);\r\n \t \t}\r\n\t \r\n \t return image;\r\n \t }", "private void reanderImage(ImageData data) {\n \n }", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\timgView.setImageBitmap(pngBM);\n\t\t\t\t\t\t}", "@Override\n protected void onCancelled(Bitmap result) {\n Log.i(LOG_TAG, \"onLayout() - Cancelled.\");\n layoutResultCallback.onLayoutCancelled();\n mLoadBitmap = null;\n }" ]
[ "0.6636859", "0.66344273", "0.6484427", "0.6337527", "0.6265529", "0.62226343", "0.6212407", "0.6197243", "0.61912984", "0.6181983", "0.61803055", "0.6170256", "0.61667675", "0.6151636", "0.6130517", "0.60333884", "0.5998623", "0.59979975", "0.5969983", "0.5952862", "0.5937479", "0.59334743", "0.5878254", "0.5840911", "0.5832747", "0.5828926", "0.5828713", "0.5812615", "0.5796451", "0.57868344", "0.578446", "0.5778523", "0.57706213", "0.57551223", "0.5730257", "0.5727427", "0.57162976", "0.5715", "0.57134706", "0.5707082", "0.5702782", "0.5693682", "0.5680443", "0.5671996", "0.5663603", "0.5656269", "0.5656229", "0.5644415", "0.5641439", "0.56369233", "0.5620532", "0.5619599", "0.56126887", "0.5595114", "0.5594871", "0.55945903", "0.5593975", "0.5592726", "0.55900997", "0.5589697", "0.55859566", "0.55782646", "0.55736166", "0.55721754", "0.5570423", "0.5569587", "0.55647737", "0.5563224", "0.5560741", "0.55603766", "0.55558443", "0.55555016", "0.5550865", "0.5548207", "0.55479676", "0.5543576", "0.55429906", "0.5541321", "0.5520213", "0.55113465", "0.55047727", "0.5500458", "0.54946053", "0.5494214", "0.5492246", "0.5488997", "0.54862046", "0.54857945", "0.54847693", "0.5475522", "0.5475407", "0.54681224", "0.5467337", "0.54672265", "0.54638106", "0.5461263", "0.5456861", "0.5452877", "0.5445546", "0.54443103", "0.54441094" ]
0.0
-1
set erase true or false
public void setErase(boolean isErase){ erase=isErase; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void erase();", "@Override\r\n\tpublic void erase() {\n\t\t\r\n\t}", "public void setErase(boolean isErase){\n erase=isErase;\n if(erase) drawPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR));\n else drawPaint.setXfermode(null);\n }", "public void setItDelete(boolean itDelete) {\n\t\t\n\t}", "public void setErase(boolean isClear){\n clear=isClear;\n if(clear)\n {\n drawPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR));\n }\n else\n {\n drawPaint.setXfermode(null);\n }\n }", "void setIfCanRemove(boolean set);", "public void setRemove(Boolean newValue);", "public Boolean autodelete();", "public final void erase()\n\t{\n\t\t for(int i=0;i<itsData.length;i++) itsData[i] = 0;\n\t\t clear();\n\t}", "boolean getIsErasing();", "public void erase() {\n g2.setPaint(Color.white);\r\n }", "boolean clear();", "public void erase()\n {\n canvas.eraseCircle(xPosition, yPosition, diameter);\n }", "boolean undoMove();", "public final native void setForDelete(boolean del) /*-{\n\t\tthis.forDelete = del;\n\t}-*/;", "public void clearMark()\n {\n mark = false;\n }", "@Override\n\tpublic boolean delete() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean delete() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean delete() {\n\t\treturn false;\n\t}", "boolean hasIsErasing();", "public void clearCommand(){\n up = false;\n left = false;\n right = false;\n }", "public boolean undo() {\n if (points.size()==0) {\n return false;\n }\n points.undo();\n repaint();\n return true;\n }", "@Override\n public boolean delete(Revue objet) {\n return false;\n }", "static void setNotEdit(){isEditing=false;}", "@Override\n public boolean undo() {\n // nothing required to be done\n return false;\n }", "@Override\n public boolean delete()\n {\n return false;\n }", "public void delete() {\n\t\tdeleted = true;\n\t}", "boolean isRemove();", "public void setIsdelete(Boolean isdelete) {\r\n this.isdelete = isdelete;\r\n }", "boolean hasForceDelete();", "public void removeKing(){\n this.king = false;\n }", "private void erase()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.erase(this);\n }", "public void setDeleted();", "@Override\n\tpublic boolean delete(Etape obj) {\n\t\treturn false;\n\t}", "public void clear(){\n this.clearing = true;\n }", "boolean hasDelete();", "boolean hasDelete();", "@Override\n\tpublic void erase() {\n\t\tSystem.out.println(\"Rectangle.erase()\");\n\t}", "private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }", "public void undo() {\n\t\t\r\n\t}", "public void setDelete(boolean delete) {\n\t\tthis.delete = delete;\n\t}", "boolean chipErase() throws Exception {\n Scales.sendByte((byte) 'e');\n /* Should return CR */\n if (Scales.getByte() != '\\r')\n throw new Exception(\"Chip erase failed! Programmer did not return CR after 'e'-command.\");\n return true; // Indicate supported command.\n }", "public void setDestroy() {\n\t\tdisparos--;\n\t\tif(disparos<=0) {\n\t\t\tdestroy=true;\n\t\t}\n\t}", "private void enableRemove(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(false);\n setSubmit.setDisable(true);\n addCS.setDisable(true);\n removeCS.setDisable(false);\n setCS.setDisable(true);\n addIT.setDisable(true);\n removeIT.setDisable(false);\n setIT.setDisable(true);\n addECE.setDisable(true);\n removeECE.setDisable(false);\n setECE.setDisable(true);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(false);\n dateSetText.setDisable(true);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(false);\n nameSetText.setDisable(true);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(true);\n }", "public boolean atomicRemove();", "boolean delete();", "public void deleteAnio()\r\n {\r\n this._has_anio= false;\r\n }", "@DeleteMapping\n void removeCoin() {\n coin = false;\n }", "public boolean delete();", "private void eraseAt(PointF p) {\n lastEraseTrace.add(sheet.toSheet(p));\n }", "boolean removAble(InputItem item);", "public void setDelete(boolean d) {\n\t\t\tdelete.set(d);\n\t\t}", "public void erase() {\n if (r.isVisible()) {\n Canvas canvas = Canvas.getCanvas();\n canvas.erase(r);\n }\n }", "void clearModifiedFlag();", "public void setRemoveLine(boolean b){\n\t\tremoveline = b;\n\t}", "public void remove() {\r\n setRemovable(true);\r\n }", "public void setIsDel(Boolean isDel) {\n this.isDel = isDel;\n }", "@Override\n void undo() {\n assert false;\n }", "public void clearEditMode() {\n\t\tmIsEditMode = false;\n\t\tmDeList.clear();\n\t}", "@Override\n\tpublic boolean preDelete() {\n\t\treturn false;\n\t}", "void unsetStraight();", "public void MarkForDeletion();", "public void setDeleted(boolean deleted);", "public void setDeleteOnExit(boolean flag);", "public void undo() {\n setExecuted(false);\n }", "public boolean undo(){\n\t\t\n\t\tif(this.grillaPrevia == null){\n\t\t\treturn false;\n\t\t}else{\n\t\t\tthis.grilla= (int[][])copyArray(this.grillaPrevia);\t\n\t\t\tthis.currentKeyX = this.currentKeyXPrevia;\n\t\t\tthis.currentKeyY = this.currentKeyYPrevia;\n\t\t\tthis.selected = this.selectedPrevia;\n\t\t\tthis.grillaPrevia = null;\n\t\t\tthis.acumulatedScore -= (2*SenkuPegs.getInstance().getPegs()[this.currentPegType].getScoreValue());\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "void unsetQuick();", "void unsetBegin();", "public boolean delete(A x){ \n return false; \n }", "@Override\n public boolean isUndo() {\n return false;\n }", "public boolean rm() {\n return false;\n }", "boolean hasDeleteCharacteristic();", "public void erase(int sector, int moteID) {\n\t\tmote.erase(sector, moteID);\n\t}", "public void delete(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex < currentText.getCharacterEdges().length - 1) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, false);\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex < texts.size() - 1) {\n currentText = codeWindow.getTextLineController().merge(currentText, codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex + 1), codeWindow);\n }\n //The cursors position is unchanged\n }\n }", "public void setIsDelete(Byte isDelete) {\n this.isDelete = isDelete;\n }", "public void setIsDelete(Byte isDelete) {\n this.isDelete = isDelete;\n }", "@Override\r\n\tpublic boolean delete() {\n\t\tif(dead==true || y > GamePanel.HEIGHT+side){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "public void clearModifiedFlag();", "public abstract boolean frontIsClear();", "private boolean delete(K key) {\n\t\t\tif (!keySet.contains(key)) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tint index = keySet.indexOf(key);\n\t\t\t\tkeySet.set(index, keySet.get(size - 1));\n\t\t\t\tvalueSet.set(index, valueSet.get(size - 1));\n\t\t\t\tkeySet.set(size - 1, null);\n\t\t\t\tvalueSet.set(size - 1, null);\n\t\t\t\tsize--;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}", "public void turn_off () {\n this.on = false;\n }", "public void undo() {\n }", "public static void eraseKeyboard(){\n\t\tfor(int i=0;i<16;i++)\n\t\t\tfor(int j=0;j<16;j++){\n\t\t\t\tdisplay[i][j].setIcon(DEFAULT);\n\t\t\t\tdisplay[i][j].setSelectedIcon(SCANNED);\n\t\t\t}\n\t}", "public void setOff(){\n state = false;\n //System.out.println(\"El requerimiento esta siendo atendido!\");\n }", "public void setClearMines(boolean b);", "void Undo() {\n if (shapes.size() > 0) {\n shapes.remove(shapes.size() - 1);\n lineColours.remove(lineColours.size() - 1);\n currentPenColour = lineColours.get(lineColours.size() - 1);\n fillColours.remove(fillColours.size() - 1);\n currentFillColour = fillColours.get(fillColours.size() - 1);\n writeFile.undoWrite();\n repaint();\n }\n }", "protected void doDeleteBoth() {\r\n\t\tif (renderer.surface != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.basemap, renderer.selectedRectangle, false);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.buildingmap, renderer.selectedRectangle, true);\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trepaint();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic boolean delete(Moteur obj) {\n\t\treturn false;\r\n\t}", "public void markForDeletion() {\n\t\tthis.mustBeDeleted = true;\n\t}", "@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t\tCollections.swap(model.getListOfShapes(), model.getListOfShapes().size()-1, i); \r\n\t\t\r\n\t\t/*if(print == true) {\r\n\t\t\t\r\n\t\t\tFrame.textArea.append(\"UNDO >>> Bring to back: \" + s +\"\\n\");\r\n\t\t}\r\n\t\t\r\n\t\tprint = true;*/\r\n\t\r\n\t\t\r\n\t}", "public void undo(){\r\n\t\tif(!savingList.get(savingList.size() - 1).substring(0, 1).equals(\"P\"))\r\n\t\t\ttextF.setText(\"\" + (Integer.parseInt(textF.getText()) + 1));\r\n\t\telse\r\n\t\t\ttankBut.setEnabled(true);\r\n\t\tsavingList.remove(savingList.size() - 1);\r\n\t\tdrawList.remove(drawList.size() - 1);\r\n\t\tdrawXList.remove(drawXList.size() - 1);\r\n\t\tdrawYList.remove(drawYList.size() - 1);\r\n\t\trepaint();\r\n\t}", "public boolean isItDelete() {\n\t\treturn false;\n\t}", "void undo() {\r\n if (_moveCount > 0) {\r\n undoPosition();\r\n }\r\n }", "public abstract void Delete(WriteOptions options, Slice key) throws IOException, BadFormatException, DecodeFailedException;", "public void setIsdelete(Integer isdelete) {\r\n this.isdelete = isdelete;\r\n }", "public boolean drawingIsClear(){\n boolean clear=true;\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()&&clear) {\r\n clear= ((TShape) iter.next())instanceof TInterpretationBoard;\r\n\r\n }\r\n }\r\n return\r\n clear;\r\n\r\n}", "@Override\n public void revoke() {\n\t\t\tcore(HexEditorConstants.CELL_STATUS_UNDO);\n\t\t\tif (singleCommand) {\n\t\t\t\ttable.select(row);\n\t\t\t\tcursor.setSelection(row, col + 1);\n\t\t\t}\n\t\t}", "@Override\n\t\tprotected void _delete() {\n\t\t\toldValue = 0;\n\t\t\tnewValue = 0;\n\t\t}", "private void delete() {\n\n\t}", "@Override\n\tprotected boolean setDeleteAttributes() throws Exception {\n\t\treturn false;\n\t}" ]
[ "0.7026254", "0.69154954", "0.66320837", "0.62373286", "0.60536367", "0.6019088", "0.5996638", "0.5965976", "0.591499", "0.5844495", "0.5719777", "0.56973064", "0.5640399", "0.56064135", "0.55978525", "0.55749273", "0.55697817", "0.55697817", "0.55697817", "0.55479884", "0.55441666", "0.5539263", "0.5535864", "0.5528364", "0.55281615", "0.55022717", "0.5499397", "0.5497425", "0.5495492", "0.54750687", "0.54643476", "0.5461904", "0.54529923", "0.5447538", "0.5435937", "0.5435566", "0.5435566", "0.5432336", "0.5432226", "0.5422767", "0.5421551", "0.5416705", "0.5414567", "0.5407994", "0.54061806", "0.5401839", "0.5399625", "0.53941", "0.53851384", "0.53792423", "0.5368317", "0.5353901", "0.5352354", "0.53371936", "0.53371894", "0.53368425", "0.5330981", "0.53247595", "0.5320541", "0.5309796", "0.5306378", "0.5300265", "0.5299606", "0.52949136", "0.52907026", "0.5282988", "0.52784055", "0.52688754", "0.5268106", "0.526757", "0.5261877", "0.5260777", "0.52598745", "0.5257041", "0.5256221", "0.5256221", "0.5236519", "0.52281535", "0.5225247", "0.5224688", "0.52183735", "0.521797", "0.5216364", "0.5209612", "0.5207058", "0.5206223", "0.52059484", "0.52022004", "0.5201912", "0.5199155", "0.518837", "0.51828754", "0.51778895", "0.5177596", "0.5177188", "0.5176941", "0.51737803", "0.51701003", "0.5164219", "0.51579344" ]
0.8208191
0
Allows a user to buy a selected monster.
public void BuyMonster(Monster monster, MyUser user) { persistIt.init(); List<Monster> monsters = persistIt.searchShopMonsters(); boolean found = false; for (int i = 0; i < monsters.size(); i++) { if (monsters.get(i).getId() == monster.getId()) { found = true; } } if (found == true) { monster.setOwner(user.getUsername()); persistIt.update(monster); user.setVirtualMoney((user.getVirtualMoney()-monster.getWorth())); } else { System.out.println("Error"); } persistIt.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n //give player plated armor\n AbstractDungeon.actionManager.addToBottom( // 2.Gain plated armor\n new com.megacrit.cardcrawl.actions.common.ApplyPowerAction(AbstractDungeon.player, AbstractDungeon.player,\n new com.megacrit.cardcrawl.powers.PlatedArmorPower(AbstractDungeon.player, 3), 3));\n }", "public void buySellEnergy(boolean buy, Player customer) {\n if (buy && energyQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Energy in the store\");\n } else {\n if (buy) {\n if (customer.getMoney() >= energyCost) {\n energyQuantity--;\n customer.addSubMoney(-energyCost);\n customer.addSubEnergy(1);\n if (energyQuantity == 0) {\n energyCost = 25;\n } else {\n energyCost += 2;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n } else {\n if (customer.getEnergy() >= 1) {\n customer.addSubMoney(energyCost - 5);\n if (energyQuantity == 0) {\n energyCost = 25;\n } else {\n energyCost -= 2;\n }\n customer.addSubEnergy(-1);\n energyQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have any of this item to sell\");\n }\n }\n }\n }", "public void buySellSmithore(boolean buy, Player customer) {\n if (buy && smithQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Smithore in the store\");\n } else {\n if (buy) {\n if (customer.getMoney() >= smithCost) {\n customer.addSubMoney(-smithCost);\n customer.addSubOre(1);\n smithQuantity--;\n if (smithQuantity == 0) {\n smithCost = 50;\n } else {\n smithCost += 5;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n } else {\n if (customer.getOre() >= 1) {\n customer.addSubMoney(smithCost-8);\n if (smithQuantity == 0) {\n smithCost = 50;\n } else {\n smithCost -= 5;\n }\n customer.addSubOre(-1);\n smithQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have any of this item to sell\");\n }\n }\n }\n }", "public void buy() throws CannotAffordException {\r\n\t\tGame game = Game.getInstance();\r\n\t\tgame.decreaseBudget(price);\r\n\t\tgame.getInventory().add(id);\r\n\t}", "@Override\r\n public void use(AbstractPlayer p, AbstractMonster m) {\r\n // Gain Block\r\n AbstractDungeon.actionManager.addToBottom(new GainBlockAction(p, p, block));\r\n\r\n // Food eaten += 3\r\n this.addToBot(new ApplyPowerAction(p, p, new FoodEatenPower(p, p, baseMagicNumber)));\r\n }", "public void purchase() {\r\n\t\tdo {\r\n\t\t\tString id = getToken(\"Enter customer id: \");\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tint quantity = getInteger(\"Enter quantity to purchase: \");\r\n\t\t\tboolean purchased = store.purchaseWasher(id, brand, model, quantity);\r\n\t\t\tif (purchased) {\r\n\t\t\t\tSystem.out.println(\"Purchased \" + quantity + \" of \" + brand + \" \" + model + \" for customer \" + id);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Purchase unsuccessful.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Make another Purchase?\"));\r\n\t}", "public void buyEquipment(Equipment equipmentForSale, Store store) {\n\t\tif (game.checkEquipmentFull()) {\n\t\t\tSystem.out.println(\"You can't add more equipment to your ship\");\n\t\t\tgame.goToStore();\n\t\t}\n\t\telse {\n\t\t\tboolean state = false;\n\t\t\twhile(state==false) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"This store sell \"+ equipmentForSale.getName());\n\t\t\t\tSystem.out.println(\"Price: \"+equipmentForSale.getSellingPrice());\n\t\t\t\tArrayList<Equipment> equipments = game.getSelectedShip().getEquipment();\n\t\t\t\tif(equipments.contains(equipmentForSale)) \n\t\t\t\t{\n\t\t\t\t\tstate = true;\n\t\t\t\t\tSystem.out.println(\"You can't add this equipment since you already have it set in your ship!\");\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Do you want to buy this equipment?\");\n\t\t\t\t\tSystem.out.println(\"(1) Yes\");\n\t\t\t\t\tSystem.out.println(\"(2) No\");\n\t\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\t\tif (selectedAction == 1 || selectedAction == 2) \n\t\t\t\t\t{\n\t\t\t\t\t\tstate = true;\n\t\t\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\t\tint equipmentPrice = equipmentForSale.getSellingPrice();\n\t\t\t\t\t\t\tif (game.checkEnoughMoney(equipmentPrice)) {\n\t\t\t\t\t\t\t\tgame.buyEquipment(equipmentForSale);\n\t\t\t\t\t\t\t\tSystem.out.println(\"The equipment has been added to your ship!\");\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Sorry your money is not enought to buy this equipment\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgame.goToStore();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Please input 1 or 2\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void SellMonster(Monster monster, MyUser user) {\r\n persistIt.init();\r\n List<Monster> monsters = persistIt.searchMonsters();\r\n boolean found = false;\r\n\r\n for (int i = 0; i < monsters.size(); i++) {\r\n if (monsters.get(i).getId() == monster.getId()) {\r\n found = true;\r\n }\r\n }\r\n if (found == true) {\r\n monster.setOwner(\"\");\r\n persistIt.update(monster);\r\n user.setVirtualMoney((\r\n user.getVirtualMoney()+monster\r\n .getWorth()));\r\n persistIt.update(user);\r\n }\r\n else {\r\n System.out.println(\"Error\");\r\n }\r\n persistIt.shutdown();\r\n }", "public void buySellFood(boolean buy, Player customer) {\n if (buy && foodQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Food in the store\");\n } else {\n if (buy) {\n if (customer.getMoney() >= foodCost) {\n foodQuantity--;\n customer.addSubMoney(-foodCost);\n customer.addSubFood(1);\n if (foodQuantity == 0) {\n foodCost = 30;\n } else {\n foodCost += 2;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item.\");\n }\n } else {\n if (customer.getFood() >= 1) {\n customer.addSubMoney(foodCost - 5);\n if (foodQuantity == 0) {\n foodCost = 30;\n } else {\n foodCost -= 2;\n }\n customer.addSubFood(-1);\n foodQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have any of this item to sell\");\n }\n }\n }\n }", "private void buyItem(ShopItem item) {\n int gold = world.getCharacter().getGold().get();\n if (world.isSurvivalMode() && item.getName().equals(\"Potion\")){\n this.potionNum = 0;\n System.out.println(\"This shop has 0 Potion left.\");\n }\n if (world.isBerserkerMode() && \n (item.getName().equals(\"Helmet\")\n || item.getName().equals(\"Shield\")\n || item.getName().equals(\"Armour\"))){\n this.defenseNum = 0;\n System.out.println(\"This shop has 0 defensive item left.\");\n }\n if (item.getPrice() > gold) {\n System.out.println(\"You don't have enough money.\");\n }\n loadItem(item.getName());\n world.getCharacter().setGold(gold - item.getPrice());\n System.out.println(\"You have bought Item : \" + item.getName() + \".\");\n }", "public BuyMonsterMove getBuyMonster(GameState state) {\n if (Tony == null) assignPlayers(state);\n if (castle1 == null) assignCastles(state);\n\n //TODO: Make Tony Smart\n List<Move> leg_moves = GameRules.getLegalMoves(state);\n\n int i = rand.nextInt(leg_moves.size());\n return (BuyMonsterMove) leg_moves.get(i);\n }", "public void doLogicBuy() {\n\t\tif (!player.isHuman) {\n\t\t\tif (player.money > estimatedFee * 1.5) //\n\t\t\t{\n\t\t\t\tint free = (int) (player.money - estimatedFee * 1.5);\n\t\t\t\tCell c = board.getCells().get(player.position);\n\t\t\t\tif (c instanceof TradeableCell) {\n\t\t\t\t\tTradeableCell tc = (TradeableCell) c;\n\t\t\t\t\tif (tc.getOwner() == null && tc.getPrice() < free) {\n\t\t\t\t\t\ttc.buy(player);\n\t\t\t\t\t\tboard.addMessage(\"Just bought\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void buySellChrystite(boolean buy, Player customer) {\n if (buy && crysQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Crystite in the store.\");\n } else {\n if (buy) {\n crysQuantity--;\n if (customer.getMoney() >= crysCost) {\n customer.addSubMoney(-crysCost);\n customer.addSubCrystite(1);\n if (crysQuantity == 0) {\n crysCost = 100;\n } else {\n crysCost += 10;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n } else {\n if (customer.getCrystite() >= 1) {\n customer.addSubMoney(crysCost-15);\n if (crysQuantity == 0) {\n crysCost = 100;\n } else {\n crysCost -= 10;\n }\n customer.addSubCrystite(-1);\n crysQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n }\n }\n }", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new ArtifactPower(p, magicNumber), magicNumber));\n }", "private void buyPlayer(FootballPlayer player, String playerName, int num) {\n\t\tint valid = game.addPlayer(playerName);\n\t\tif(valid==0) {\n\t\t\tplayerNameArray[num].setText(playerName);\n\t\t\timageArray[num].setIcon(MainGui.getShirt(player.getTeamName()));\n\t\t\tbuttonArray[num].setText(\"X\");\n\t\t\tlblBudgetText.setText(game.getCurrentUser().getBudget() + \" RGG\");\n\t\t\t\n\t\t} else if (valid==1) {\n\t\t\tJOptionPane.showMessageDialog(frame,\"You have already selected this player for your team\");\n\t\t} else if (valid==-1) {\n\t\t\tJOptionPane.showMessageDialog(frame,\"You don´t have enough budget too buy \" + playerName);\n\t\t}\n\t}", "public void purchaseTower(Tower towerType){ //This method will pruchase a tower from the player class given a Attacker Object\n if(this.coins()<towerType.getPrice()){ //checks to make sure that the player has neough money, if not it returns\n return;\n }\n\n myGame.addTower(Tower towerType); //calls the addTower method from the game class. Game will be resopnsible for storing towers not the player class\n this.coins-=towerType.getPrice(); //decrement the appropriate number of coins after purchsing the tower\n }", "private void buy() {\n if (asset >= S_I.getPirce()) {\n Item item = S_I.buy();\n asset -= item.getPrice();\n S_I.setAsset(asset);\n } else {\n System.out.println(\"cannot afford\");\n }\n }", "public void summonMonster() {\n if (Utility.checkAndPrompt(user, selectedCard == null,\n \"no card is selected yet\")) return;\n int place = getSelectedCardOnHandID();\n if (Utility.checkAndPrompt(user, !(selectedCard instanceof MonsterCard) || place == -1,\n \"you can’t summon this card\")) return;\n int placeOnField = getFirstEmptyPlaceOnMonstersField();\n if (Utility.checkAndPrompt(user, placeOnField == -1,\n \"monster card zone is full\")) return;\n if (Utility.checkAndPrompt(user, hasSummonedMonsterThisTurn,\n \"you already summoned/set on this turn\")) return;\n // event : [summon]\n CardEvent cardEvent = new CardEvent(selectedCard, CardEventInfo.ENTRANCE, null);\n if (!getPermissionFromAllEffects(cardEvent)) {\n\n UtilityView.showError(user, \"you don't have permission to summon\");\n return;\n }\n selectedCard.setFaceUp(true);\n int monsterLevel = ((MonsterCard) selectedCard).getCardLevel();\n if (monsterLevel <= 4) {\n summonMonsterLowLevel(place, placeOnField);\n UtilityView.playSoundWithoutCycle(\"summon.wav\");\n notifyAllEffectsForConsideration(cardEvent);\n Printer.showBoard(this, this.opponent);\n return;\n }\n if (monsterLevel <= 6) {\n if (Utility.checkAndPrompt(user, placeOnField == 1,\n \"there are not enough cards for tribute\")) return;\n int address = Integer.parseInt(UtilityView.obtainInformationInCertainWay(\"input the address of the card you want to tribute\", \"\\\\d+\"));\n if (Utility.checkAndPrompt(user, isMonsterAddressInvalid(address),\n \"there are no monsters on this address\")) return;\n summonMonsterMediumLevel(place, address);\n UtilityView.playSoundWithoutCycle(\"summon.wav\");\n notifyAllEffectsForConsideration(cardEvent);\n Printer.showBoard(this, this.opponent);\n return;\n }\n\n if (Utility.checkAndPrompt(user, placeOnField == 1 || placeOnField == 2,\n \"there are not enough cards for tribute\")) return;\n String input1, input2;\n //Printer.prompt(\"input two addresses for the cards you want to tribute in TWO DIFFERENT LINES:\");\n int firstTribute = Integer.parseInt(UtilityView.obtainInformationInCertainWay(\"input the first address for tribute\", \"\\\\d+\"));\n int secondTribute = Integer.parseInt(UtilityView.obtainInformationInCertainWay(\"input the second address for tribute\", \"\\\\d+\"));\n if (Utility.checkAndPrompt(user, isMonsterAddressInvalid(firstTribute) || isMonsterAddressInvalid(secondTribute),\n \"there is no monster on one of these addresses\")) return;\n if (Utility.checkAndPrompt(user, firstTribute == secondTribute,\n \"Tributes are the same!\")) return;\n summonMonsterHighLevel(firstTribute, secondTribute, place);\n UtilityView.playSoundWithoutCycle(\"summon.wav\");\n notifyAllEffectsForConsideration(cardEvent);\n\n Printer.showBoard(this, this.opponent);\n }", "@Override\n\t\tprotected JSONObject doInBackground(DatabaseConnection... params) {\n\t\t\treturn params[0].BuyItem(warrior_user, item_id, warrior_gold);\n\t\t}", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n\n AbstractDungeon.actionManager.addToBottom(new VFXAction(p, new BiteEffect(m.hb.cX-40.0F , m.hb.cY-40.0F, Color.PINK), 0.2F));\n\n AbstractDungeon.actionManager.addToBottom(\n new DamageAction(m, new DamageInfo(p, damage, damageTypeForTurn),\n AbstractGameAction.AttackEffect.NONE));\n AbstractDungeon.actionManager.addToBottom(new AddTemporaryHPAction(p, p, magicNumber));\n AbstractDungeon.actionManager.addToBottom(new VFXAction(p, new BiteEffect(m.hb.cX-40.0F , m.hb.cY-40.0F, Color.SCARLET), 0.2F));\n\n }", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "public void buy(int num) {\r\n\t\t// Make sure there is one in stock and enough gold and in market rooms\r\n\t\tif (marketItemCount[num-1] > 0 && currentPlayer.getGold() >= 7 && (currentPlayer.getCurrentRoom() == 18 || currentPlayer.getCurrentRoom() == 19 || currentPlayer.getCurrentRoom() == 24 || currentPlayer.getCurrentRoom() == 25)) {\r\n\t\t\t// Adjust item index based on how many left\r\n\t\t\tint itemIndex = 0;\r\n\t\t\tif (num == 2) itemIndex = 2;\r\n\t\t\tif (num == 3) itemIndex = 4;\r\n\t\t\twhile (market[itemIndex] == null) {\r\n\t\t\t\titemIndex++;\r\n\t\t\t}\r\n\t\t\tcurrentPlayer.pickup(market[itemIndex]);\r\n\t\t\tcurrentPlayer.updateGold(-7);\r\n\t\t\taddEvent(\"``\"+currentName+\"`` bought a \"+market[itemIndex].substring(0,market[itemIndex].length()-1).replace(\"1\",\"\"),true);\r\n\t\t\taddHistory(market[itemIndex].substring(0,market[itemIndex].length()-1).replace(\"1\",\"\").toUpperCase());\r\n\t\t\tmarket[itemIndex] = null;\r\n\t\t\tmarketItemCount[num-1] -= 1;\r\n\t\t\tupdateMarketAndTreasures(false);\r\n\t\t\tupdatePlayArea(currentPlayer, false);\r\n\t\t\t//updateDungeonRow(currentPlayer, false);\r\n\t\t\tupdateInfo(currentPlayer, false);\r\n\t\t}\r\n\t}", "public void use(AbstractPlayer p, AbstractMonster m) {\n for (AbstractMonster mo : AbstractDungeon.getCurrRoom().monsters.monsters)\n {\n if (!mo.isDeadOrEscaped())\n {\n AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new StrengthPower(mo, this.magicNumber), this.magicNumber));\n AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new VulnerablePower(mo, DEBUFF, false), DEBUFF));\n }\n }\n }", "private void bust() {\n //Dialog box pop-up\n JOptionPane.showMessageDialog(this, this.getPlayerName() + \" busted with a value of: \" + this.getValue(), \"BUSTED!\", JOptionPane.INFORMATION_MESSAGE);\n busted = true; //Hand busted\n }", "public void handleBuyGuppyCommand() {\n if (Aquarium.money >= GUPPYPRICE) {\n guppyController.addNewEntity();\n Aquarium.money -= GUPPYPRICE;\n }\n }", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n addToBot(new GainBlockAction(p,block));\n if (AbstractDungeon.player.hand.contains(this)){\n if (AbstractDungeon.player.hand.group.indexOf(this)-1 >= 0){\n addToBot(new RewindAction(AbstractDungeon.player.hand.group.get(AbstractDungeon.player.hand.group.indexOf(this)-1),AbstractDungeon.player.hand));\n }\n if (AbstractDungeon.player.hand.group.indexOf(this)+1 <= AbstractDungeon.player.hand.group.size()-1){\n addToBot(new RewindAction(AbstractDungeon.player.hand.group.get(AbstractDungeon.player.hand.group.indexOf(this)+1),AbstractDungeon.player.hand));\n }\n }\n }", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n addToBot(new DamageAction(m, new DamageInfo(p, damage, damageTypeForTurn), AbstractGameAction.AttackEffect.BLUNT_LIGHT));\n int count = 0;\n for (AbstractMonster monster : AbstractDungeon.getMonsters().monsters) {\n if (!monster.isDeadOrEscaped()) {\n count++;\n }\n }\n if (count > 1) {\n addToBot(new DamageAllEnemiesAction(p, multiDamage, damageTypeForTurn, AbstractGameAction.AttackEffect.BLUNT_LIGHT));\n }\n }", "public String chooseItem() {\n console.promptForString(\"\");\n console.promptForPrintPrompt(\"PLEASE ENTER THE NAME OF THE ITEM TO PURCHASE\");\n console.promptForPrintPrompt(\"-----------------------\");\n String toBuy = console.promptForString(\"BUY: \");\n\n return toBuy;\n }", "private void attack(int player){\n //grabs a random number\n int monster = monsterAttack();\n \n //monsters strength and modifier against the player\n double monAttack;\n double monMod;\n //players strength and modifier against the monster\n double playerAttack;\n double playerMod;\n //resets the buttons\n btnFire.setEnabled(true);\n btnWater.setEnabled(true);\n btnIce.setEnabled(true);\n btnEarth.setEnabled(true);\n //holds the types of attacks the player and monster will have\n Element mType;\n Element pType;\n \n //sets the monsters type of attack\n switch(monster){\n case 0:\n mType = new Earth();\n break;\n case 1:\n mType = new Fire();\n break;\n case 2:\n mType = new Water();\n break;\n case 3:\n mType = new Ice();\n break;\n default:\n mType = new Earth();\n System.out.println(\"Something went wrong with monster attack selection - given number\" + monster);\n break;\n }\n //sets the players attack type, and monsters modifier\n switch(player){\n case 0:\n pType = new Earth();\n playerAttack = c.getEarth();\n monMod = 1.0;\n btnEarth.setEnabled(false);\n break;\n case 1:\n pType = new Fire();\n playerAttack = c.getFire();\n monMod = mType.getFM();\n btnFire.setEnabled(false);\n break;\n case 2:\n pType = new Water();\n playerAttack = c.getWater();\n monMod = mType.getWM();\n btnWater.setEnabled(false);\n break;\n case 3:\n pType = new Ice();\n playerAttack = c.getIce();\n monMod = mType.getIM();\n btnIce.setEnabled(false);\n break;\n default:\n pType = new Earth();\n playerAttack = c.getEarth();\n monMod = 1.0;\n btnEarth.setEnabled(false);\n System.out.println(\"Something went wrong with player attack selection - given number\" + player);\n break;\n }\n //sets the monster's attack type, and player's modifier\n switch(monster){\n case 0:\n monAttack = m.getEarth();\n playerMod = 1.0;\n break;\n case 1:\n monAttack = m.getFire();\n playerMod = pType.getFM();\n break;\n case 2:\n monAttack = m.getWater();\n playerMod = pType.getWM();\n break;\n case 3:\n monAttack = m.getIce();\n playerMod = pType.getIM();\n break;\n default:\n System.out.println(\"Monster attack comparison error\");\n monAttack = m.getEarth();\n playerMod = 1.0;\n break;\n }\n //decide who won the Attack\n decide(playerAttack, playerMod, monAttack, monMod, pType, mType);\n \n }", "public void handleBuyEggCommand(){\n if(Aquarium.money >= EGGPRICE) {\n Aquarium.money -= EGGPRICE;\n Aquarium.egg++;\n }\n }", "public void goAdventuring() {\n\n game.createRandomMonster(4);\n if(RandomClass.getRandomTenPercent() == 5) {\n System.out.println(\"Your are walking down the road... Everything looks peaceful and calm.. Hit enter to continue!\");\n sc.nextLine();\n\n } else {\n game.battle();\n p.checkXp();\n }\n }", "public void onBuyGoldButtonClicked(View arg0) {\n\t\tLog.d(TAG, \"Buy gas button clicked.\");\n\n\t\t// if (mSubscribedToInfiniteGas) {\n\t\t// complain(\"No need! You're subscribed to infinite gas. Isn't that awesome?\");\n\t\t// return;\n\t\t// }\n\t\t//\n\t\t// if (mTank >= TANK_MAX) {\n\t\t// complain(\"Your tank is full. Drive around a bit!\");\n\t\t// return;\n\t\t// }\n\n\t\t// launch the gas purchase UI flow.\n\t\t// We will be notified of completion via mPurchaseFinishedListener\n\t\tsetWaitScreen(true);\n\t\tLog.d(TAG, \"Launching purchase flow for gas.\");\n\n\t\t/*\n\t\t * TODO: for security, generate your payload here for verification. See\n\t\t * the comments on verifyDeveloperPayload() for more info. Since this is\n\t\t * a SAMPLE, we just use an empty string, but on a production app you\n\t\t * should carefully generate this.\n\t\t */\n//\t\tString payload = \"\";\n\n//\t\tmHelper.launchPurchaseFlow(GameRenderer.mStart, SKU_350000, RC_REQUEST,mPurchaseFinishedListener, payload);\n\t}", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n AbstractDungeon.actionManager.addToBottom(new VFXAction(p, new FlameBarrierEffect(p.hb.cX, p.hb.cY), 0.5F));\n AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, m, new FlameWardPower(p, block, magicNumber)));\n }", "public void buyIn(double buyingAmount) {\n if (bankroll > buyingAmount) {\n bankroll -= buyingAmount;\n activePlayer = true;\n }\n }", "public TransactionResponse buyEnchantFromItem() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\tCalculation calc = hc.getCalculation();\r\n \t\tAccount acc = hc.getAccount();\r\n \t\tLog log = hc.getLog();\r\n \t\ttry {\r\n \t\t\tPlayer p = hp.getPlayer();\r\n \t\t\tString nenchant = \"\";\r\n \t\t\tnenchant = hyperObject.getMaterial();\r\n \t\t\tEnchantment ench = Enchantment.getByName(nenchant);\r\n \t\t\tString mater = p.getItemInHand().getType().toString();\r\n \t\t\tdouble price = hyperObject.getValue(EnchantmentClass.fromString(mater));\r\n \t\t\tif (price != 123456789) {\r\n \t\t\t\tif (!im.containsEnchantment(p.getItemInHand(), ench)) {\r\n \t\t\t\t\tif (im.canAcceptEnchantment(p.getItemInHand(), ench) && p.getItemInHand().getAmount() == 1) {\r\n \t\t\t\t\t\tif (acc.checkFunds(price, p)) {\r\n \t\t\t\t\t\t\tacc.withdraw(price, p);\r\n \t\t\t\t\t\t\tacc.depositAccount(price, tradePartner.getName());\r\n \t\t\t\t\t\t\tint l = hyperObject.getName().length();\r\n \t\t\t\t\t\t\tString lev = hyperObject.getName().substring(l - 1, l);\r\n \t\t\t\t\t\t\tint level = Integer.parseInt(lev);\r\n \t\t\t\t\t\t\tim.addEnchantment(p.getItemInHand(), ench, level);\r\n \t\t\t\t\t\t\tim.removeEnchantment(giveItem, ench);\r\n \t\t\t\t\t\t\tprice = calc.twoDecimals(price);\r\n \t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"PURCHASE_ENCHANTMENT_CHEST_MESSAGE\"), 1, calc.twoDecimals(price), hyperObject.getName(), tradePartner.getName()), calc.twoDecimals(price), hyperObject);\r\n \t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\tlog.writeSQLLog(p.getName(), \"purchase\", hyperObject.getName(), 1.0, price, 0.0, tradePartner.getName(), \"chestshop\");\r\n \t\t\t\t\t\t\ttradePartner.sendMessage(L.f(L.get(\"CHEST_ENCHANTMENT_BUY_NOTIFICATION\"), 1, calc.twoDecimals(price), hyperObject.getName(), p));\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.get(\"INSUFFICIENT_FUNDS\"), hyperObject);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.get(\"ITEM_ALREADY_HAS_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"ETransaction buyChestEnchant() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', owner='\" + tradePartner.getName() + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public void buyFuel() {\n this.fuelMod++;\n fuelMax += +750 * fuelMod;\n }", "public Purchase buyItem(Item item) {\n\t\tKeybladeWielder player = (KeybladeWielder) this.actorService.findByPrincipal();\n\t\t// Solo lo podremos comprar si disponemos del Munny que cuesta el item\n\t\tAssert.isTrue(item.getMunnyCost() <= player.getMaterials().getMunny());\n\t\tAssert.isTrue(item.getOnSell() == true);\n\t\tPurchase p = this.purchaseService.create();\n\t\tDate currentDate = new Date(System.currentTimeMillis() - 100);\n\n\t\tp.setPlayer(player);\n\t\tp.setPurchaseDate(currentDate);\n\t\tp.setItem(item);\n\t\tplayer.getMaterials().setMunny(player.getMaterials().getMunny() - item.getMunnyCost());\n\n\t\t// Hacemos set de la que sera la fecha en la que el objeto expirara\n\t\tDate expirationDate = new Date(currentDate.getTime() + p.getItem().getExpiration() * 24 * 60 * 60 * 1000);\n\t\tp.setExpirationDate(expirationDate);\n\n\t\tthis.purchaseService.save(p);\n\n\t\tthis.keybladeWielderService.save(player);\n\n\t\treturn p;\n\n\t}", "public static void attemptFinishDeclareAttack (SummonedMonster SumMonster){\r\n if (SumMonster.isExisting && !SumMonster.isPlayersMonster && Game.ActiveAttackingMonster.sumMonsterNumber!=0) { // only do something, if the monster exists at all and one has already chosen the attacking monster\r\n Game.ActiveGuardingMonster=SumMonster;\r\n updateDeclareAttackStatistic();\r\n declareAttackOnMonster(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster);\r\n }\r\n }", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n if (this.dontTriggerOnUseCard) {\n if (damage > 0) {\n AbstractDungeon.actionManager.addToBottom(new DamageAction(AbstractDungeon.getRandomMonster(), new DamageInfo(p, damage, damageTypeForTurn), AttackEffect.BLUNT_HEAVY));\n }\n otherCardsPlayed = 0;\n }\n }", "public void buyItem(Player player, int idz) {\r\n\t\ttry{\r\n\t\tItemDefinitions def = ItemDefinitions.getItemDefinitions(idz);\r\n\t\tif (def == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(!canExchange(idz) || EconomyPrices.getPrice(def.id) <= 5) {\r\n\t\t\r\n\t\t\tplayer.sendMessage(name(idz) + \" are not exchangeable~ or has not been added\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tsendPriceConfigs(player, idz);\r\n\t\tset(player, idz, EconomyPrices.getPrice(def.id), 1);\r\n\r\n\t\t}catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void changeActiveMonster(){\n //todo\n }", "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "protected void handleBuy(Message m) {\n return;\n }", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n modal.open();\n }", "private void buyProperty(Player currentPlayer, Square location) {\n String method = \"buyProperty\";\n PropertySquare square = (PropertySquare)location;\n\n recognizedSpeech.setText(\"\");\n if(square.getOwned()){\n convertTextToSpeech(square.getOwnedBy() + \"call rent\");\n //rent is subtracted and added\n\n if(m_manageFunds) {\n currentPlayer.subtractMoney(100);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(method + \"rent subtract money\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n String owner = square.getOwnedBy();\n for (int i = 0; i < m_numPlayers; i++) {\n if (players.get(i).getName().equals(owner)) {\n players.get(i).addMoney(100);\n Log.d(method + \"rent add money\", players.get(i).getName() +\n String.valueOf(players.get(i).getMoney()));\n }\n }\n }\n nextTurnRoll();\n\n } else {\n int price = ((PropertySquare) location).getPrice();\n convertTextToSpeech(\"Would you like to buy\" + square.getName() + \"for\" + price);\n\n while (m_tts.isSpeaking()) {\n speech = null;\n }\n\n speech = SpeechRecognizer.createSpeechRecognizer(this);\n speech.setRecognitionListener(this);\n speech.startListening(getIntent());\n\n }\n }", "public void buyFuelUpgrades()\n {\n if(play_state.getMoney() >= fuel_upgrade_cost) {\n play_state.setMoney(play_state.getMoney() - fuel_upgrade_cost);\n fuel_upgrade_cost += 100;\n play_state.getDriller().addMax_fuel(10);\n }\n }", "public int seppuku(Monster monster) {\n double orginalAttackRating = getAttackRating();\n int damage = (int) Math.pow(getRotundness(), getKungFuSkill());\n setAttackRating(damage);\n setHp(1);\n int damageDone = attack(monster);\n setAttackRating(orginalAttackRating);\n return damageDone;\n }", "public void buy(Item item) {\n // remove money from wallet\n try { \n wallet.removeMoney(item.getPrice());\n // remove item from room\n currentRoom.removeItem(item);\n // add item to inventory\n addToInventory(item);\n } catch (IllegalArgumentException e) {\n System.err.println(\"You don't have enough money to purchase \" + item.getDescription());\n }\n\n\n }", "public TransactionResponse buyEnchant() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\tCalculation calc = hc.getCalculation();\r\n \t\tAccount acc = hc.getAccount();\r\n \t\tLog log = hc.getLog();\r\n \t\tNotification not = hc.getNotify();\r\n \t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\ttry {\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tPlayer p = hp.getPlayer();\r\n \t\t\tString nenchant = hyperObject.getMaterial();\r\n \t\t\tEnchantment ench = Enchantment.getByName(nenchant);\r\n \t\t\tint shopstock = 0;\r\n \t\t\tshopstock = (int) hyperObject.getStock();\r\n \t\t\tif (shopstock >= 1) {\r\n \t\t\t\tString mater = p.getItemInHand().getType().toString();\r\n \t\t\t\tdouble price = hyperObject.getCost(EnchantmentClass.fromString(mater));\r\n \t\t\t\tprice = price + hyperObject.getPurchaseTax(price);\r\n \t\t\t\tif (price != 123456789) {\r\n \t\t\t\t\tif (!im.containsEnchantment(p.getItemInHand(), ench)) {\r\n \t\t\t\t\t\tif (acc.checkFunds(price, p)) {\r\n \t\t\t\t\t\t\tif (im.canAcceptEnchantment(p.getItemInHand(), ench) && p.getItemInHand().getAmount() == 1) {\r\n \t\t\t\t\t\t\t\thyperObject.setStock(shopstock - 1);\r\n \t\t\t\t\t\t\t\tacc.withdraw(price, p);\r\n \t\t\t\t\t\t\t\tacc.depositShop(price);\r\n \t\t\t\t\t\t\t\tif (hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\")) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint l = hyperObject.getName().length();\r\n \t\t\t\t\t\t\t\tString lev = hyperObject.getName().substring(l - 1, l);\r\n \t\t\t\t\t\t\t\tint level = Integer.parseInt(lev);\r\n \t\t\t\t\t\t\t\tim.addEnchantment(p.getItemInHand(), ench, level);\r\n \t\t\t\t\t\t\t\tboolean stax;\r\n \t\t\t\t\t\t\t\tstax = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\t\tdouble taxrate;\r\n \t\t\t\t\t\t\t\tif (!stax) {\r\n \t\t\t\t\t\t\t\t\ttaxrate = hc.getYaml().getConfig().getDouble(\"config.enchanttaxpercent\");\r\n \t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\ttaxrate = hc.getYaml().getConfig().getDouble(\"config.statictaxpercent\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble taxpaid = price - (price / (1 + taxrate / 100));\r\n \t\t\t\t\t\t\t\ttaxpaid = calc.twoDecimals(taxpaid);\r\n \t\t\t\t\t\t\t\tprice = calc.twoDecimals(price);\r\n \t\t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"ENCHANTMENT_PURCHASE_MESSAGE\"), 1, price, hyperObject.getName(), calc.twoDecimals(taxpaid)), calc.twoDecimals(price), hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(p.getName(), \"purchase\", hyperObject.getName(), 1.0, price, taxpaid, playerecon, type);\r\n \r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(hyperObject.getName(), mater, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.get(\"INSUFFICIENT_FUNDS\"), hyperObject);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.get(\"ITEM_ALREADY_HAS_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"THE_SHOP_DOESNT_HAVE_ENOUGH\"), hyperObject.getName()), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"ETransaction buyEnchant() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public static void battle(int choice) {\n \t\tboolean monsterHeal = false;\r\n \t\tboolean monsterDefend = false;\r\n \t\tboolean monsterAttack = false;\r\n \t\tboolean playerDefend = false;\r\n \t\tboolean playerAttack = false;\r\n \t\tboolean playerHeal = false;\r\n \t\t\r\n \t\t//Get the move the monster will make\r\n \t\tint monsterAi = monster.getAiChoice();\r\n \t\t\r\n \t\t//Check what input the player has given\r\n \t\tif(choice == 1) {\r\n \t\t\t//Set the booleans according to the input for attack\r\n \t\t\tplayerAttack = true;\r\n \t\t\tplayerDefend = false;\r\n \t\t\tplayerHeal = false;\r\n \t\t} else if(choice == 2) {\r\n \t\t\t//Set the booleans according to the input for defend\r\n \t\t\tplayerDefend = true;\r\n \t\t\tplayerAttack = false;\r\n \t\t\tplayerHeal = false;\r\n \t\t} else if(choice == 3) {\r\n \t\t\t//Set the booleans according to the input for heal\r\n \t\t\tplayerAttack = false;\r\n \t\t\tplayerDefend = false;\r\n \t\t\tplayerHeal = true;\r\n \t\t} else {\r\n \t\t\t//Set the player not to do anything if the input is wrong\r\n \t\t\tplayerAttack = false;\r\n \t\t\tplayerDefend = false;\r\n \t\t\tplayerHeal = false;\r\n \t\t}\r\n \t\t\r\n \t\t//Link the monster AI choice to a move\r\n \t\tif(monsterAi == 1) {\r\n \t\t\t//Set the booleans according to the AI for attack\r\n \t\t\tmonsterAttack = true;\r\n \t\t\tmonsterDefend = false;\r\n \t\t\tmonsterHeal = false;\r\n \t\t} else if(monsterAi == 2) {\r\n \t\t\t//Set the booleans according to the AI for defend\r\n \t\t\tmonsterAttack = true;\r\n \t\t\tmonsterDefend = false;\r\n \t\t\tmonsterHeal = false;\r\n \t\t} else if(monsterAi == 3) {\r\n \t\t\t//Set the booleans according to the AI for heal\r\n \t\t\tmonsterAttack = false;\r\n \t\t\tmonsterDefend = false;\r\n \t\t\tmonsterHeal = true;\r\n \t\t}\r\n \t\t\r\n \t\tString pFirst = \"\";\r\n \t\tString mFirst = \"\";\r\n \t\tString mAttack = \"\";\r\n \t\tString pAttack = \"\";\r\n \t\tString pLife = \"\";\r\n \t\tString mLife = \"\";\r\n \t\t\r\n \t\t//Player moves\r\n \t\tif(playerHeal) {\r\n \t\t\t//Heal the player by 10 life\r\n \t\t\tplayer.Heal(10);\r\n \t\t\t//Show a message saying the player was healed\r\n \t\t\tpFirst = player.name + \" healed 10 life! \\n\";\r\n \t\t} else if(playerDefend) {\r\n \t\t\t//Set the monster not to attack (do damage)\r\n \t\t\tmonsterAttack = false;\r\n \t\t\t//Shows a message that the player has defended\r\n \t\t\tpFirst = player.name + \" defended and has got 0 damage from \" + monster.name + \"\\n\";\r\n \t\t} else if(!playerAttack && !playerDefend && !playerHeal) {\r\n \t\t\t//Show a message that the player did not do anything\r\n \t\t\tpFirst = player.name + \" did nothing. \\n\";\r\n \t\t} \r\n \t\t\r\n \t\t//Monster moves\r\n \t\tif(monsterHeal) {\r\n \t\t\t//heal the monster by 10 life\r\n \t\t\tmonster.Heal(10);\r\n \t\t\t//Show a message that the monster was healed\r\n \t\t\tmFirst = (monster.name + \" healed 10 life! \\n\");\r\n \t\t} else if(monsterDefend) {\r\n \t\t\t//Set the player not to attack (do damage)\r\n \t\t\tplayerAttack = false;\r\n \t\t\t//Show a message that the monster has defended\r\n \t\t\tmFirst = monster.name + \" defended and has got 0 damage from \" + player.name + \"\\n\";\r\n \t\t}\r\n \t\t\r\n \t\t//Attack moves\r\n \t\tif(playerAttack) {\r\n \t\t\t//Lower the monsters life by the players power\r\n \t\t\tmonster.life -= player.strength;\r\n \t\t} \r\n \t\t\r\n \t\tif(monsterAttack) {\r\n \t\t\t//Lower the players life by the monsters power\r\n \t\t\tplayer.life -= monster.strength;\r\n \t\t}\r\n \t\tif(playerAttack) {\r\n \t\t\t//Show a message that the player has attacked\r\n \t\t\tpAttack = player.name + \" hit \" + monster.name + \" for \" + player.strength + \" damage. \\n\";\r\n \t\t}\r\n \t\tif(monsterAttack) {\r\n \t\t\t//Show a message that the monster has attacked\r\n \t\t\tmAttack = monster.name + \" hit \" + player.name + \" for \" + monster.strength + \" damage. \\n\";\r\n \t\t}\r\n \t\t\r\n \t\t//Show the current life for the player and the monster\r\n \t\tpLife = player.name + \" does now have \" + player.life + \" life left. \\n\";\r\n \t\tmLife = monster.name + \" does now have \" + monster.life + \" life left. \\n\";\r\n \t\t\r\n \t\t//Print the moves message\r\n \t\tMainGame.display.disp(pFirst + mFirst + pAttack + mAttack + pLife + mLife);\r\n \t\t\r\n\t\t//Check if the player is still alive\r\n \t\tif(player.life <= 0) {\r\n \t\t\t\r\n \t\t\t//If the player has no life left, show him that he has lost\r\n \t\t\tMainGame.display.disp(\"Too bad! You lost!\" + \"\\n\" + \"Play again?\");\r\n \t\t\t\r\n \t\t\t//Show the option to play again\r\n \t\t\tMainGame.display.Enable(MainGame.display.playAgain);\r\n \t\t}\r\n \t\t\r\n\t\t//Check if the monster is still alive\r\n \t\tif(monster.life <= 0) {\r\n \t\t\t\r\n \t\t\tplayer.xp += monster.giveXp;\r\n \t\t\tMainGame.display.disp(\"You beat \" + monster.name + \"! \\n\" + \"You got \" + monster.giveXp + \" XP!\" + \"\\n\" + \"You now have \" + player.xp + \" XP!\");\r\n \t\t\t\r\n \t\t\tMainGame.display.Enable(MainGame.display.continueStage);\r\n \t\t}\r\n \t\t\r\n\t\tMainGame.display.Enable(MainGame.display.continueFight);\r\n \t\r\n \t}", "public void equipSelectedWeapon() {\n }", "public void buyGoodsFromStore(HashMap<Goods, Integer> sellGoods) {\n\t\tArrayList<Goods> myList = accessingGoods(sellGoods);\n\t\tboolean state1 = false;\n\t\t\n\t\twhile(state1 == false) {\n\t\t\tprintGoods(sellGoods, \"Goods that store sell:\");\n\t\t\tSystem.out.println(\"(99) Cancel purchase\");\n\t\t\tSystem.out.println(\"Select the goods you want to buy\");\n\t\t\tint selectedAction = scanner.nextInt();\n\t\t\ttry { \n\t\t\t\tif (selectedAction == 99) {\n\t\t\t\t\tstate1 = true;\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\n\t\t\t\telse if (selectedAction <= sellGoods.size() && selectedAction > 0) {\n\t\t\t\t\tGoods selectedGoods = myList.get(selectedAction - 1);\n\t\t\t\t\tint goodsPrice = sellGoods.get(selectedGoods);\n\t\t\t\t\tif (game.checkConditionsForBuying(1, selectedGoods, goodsPrice) == true) \n\t\t\t\t\t{\n\t\t\t\t\t\tboolean state2 = false;\n\t\t\t\t\t\twhile(state2 == false) {\n\t\t\t\t\t\t\tSystem.out.println(\"How many do you want to buy?\" );\n\t\t\t\t\t\t\ttry { \n\t\t\t\t\t\t\t\tint quantity = scanner.nextInt();\n\t\t\t\t\t\t\t\tif (game.checkConditionsForBuying(quantity, selectedGoods, goodsPrice) == true) {\n\t\t\t\t\t\t\t\tstate2 = true;\n\t\t\t\t\t\t\t\tgame.buyGoods(quantity, selectedGoods, goodsPrice);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Purchase Succesful!\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"You either don't have enough money or enough capacity\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have to input an integer!\");\n\t\t\t\t\t\t\t\tscanner.nextLine();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"You either don't have enough money or enough capacity even to buy 1 item\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\t\n\t}", "public final void give(final Player player) {\n\t\tplayer.getInventory().addItem(this.getItem());\n\t}", "public void useWheelChair(String secondWord)\n {\n if(secondWord == null){\n System.out.println(\"Take who?\");\n }\n else{\n //if there are items in the rooms\n if(currentRoom.emptyRoom() == false){\n Item chairWheel = null;\n for(Item chairWheelItem : inventory){\n if(chairWheelItem.getId().equals(\"wheelchair\")){\n chairWheel = chairWheelItem;\n }\n }\n if(chairWheel != null){\n maxWeight = 100;\n Item patient = currentRoom.getItemRoom(secondWord);\n if(patient != null){\n patient.changePickUpItem(true);\n if(patient.canBePickedUp() == true){\n if((inventoryWeight + patient.getItemWeight()) <= maxWeight){\n //take current item\n inventory.add(patient);\n inventoryWeight += patient.getItemWeight();\n currentRoom.removeItem(patient.getId());\n System.out.println(\"You are moving the patient: \" + patient.getId() + \".\");\n }\n else{\n System.out.println(\"You canīt get over the max weight.\");\n }\n }\n else{\n System.out.println(\"This patient canīt be moved.\");\n }\n }\n else{\n System.out.println(\"This patient donīt exist.\");\n }\n }\n else{\n System.out.println(\"You havenīt the wheelchair in your inventory.\");\n }\n }\n else{\n System.out.println(\"There are no items to take in this room.\");\n }\n }\n }", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "public void buyHealth() {\n this.healthMod++;\n heathMax += 70 * healthMod;\n }", "private void sellItem(ShopItem item) {\n if (!world.ifHasItem(item.getName())) {\n System.out.println(\"You don't have Item : \" + item.getName());\n return;\n }\n world.removeItem(item.getName());\n int gold = world.getCharacter().getGold().get();\n world.getCharacter().setGold(gold + item.getPrice());\n System.out.println(\"You have sold Item : \" + item.getName());\n }", "private void heal(){\n\t\tfinal long rowID = getSelectedRowID();\n\n\t\t// reset the selection\n\t\tresetSelection();\n\n\t\t// show the dialog\n\t\tQuickDialogs.showHealDialog(getActivity(), new IInputCallback() {\n\n\t\t\t@Override\n\t\t\tpublic void onInput(String input) {\n\t\t\t\tint damage;\n\t\t\t\t// convert the string to int\n\t\t\t\ttry{\n\t\t\t\t\tdamage = Integer.valueOf(input);\n\t\t\t\t}catch(NumberFormatException e){\n\t\t\t\t\t// TODO display incorrect input dialog\n\t\t\t\t\tdamage = 0;\n\t\t\t\t}\n\n\t\t\t\t// heal it up!\n\t\t\t\tEncountersTable.changeHP(GameSQLDataSource.getDatabase(getActivity()), rowID, damage);\t\n\n\t\t\t\trefreshList();\n\t\t\t}\n\t\t});\n\t}", "public void addWasher() {\r\n\t\tdo {\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tdouble price = getDouble(\"Enter washer price: \");\r\n\t\t\tWasher washer = store.addWasher(brand, model, price);\r\n\t\t\tif (washer != null) {\r\n\t\t\t\tSystem.out.println(washer);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Would you like to add another washer?\"));\r\n\t}", "@Override\n\tpublic void optionSelected(AbstractPlayer arg0, AbstractMonster arg1, int arg2) {\n\t\t\n\t}", "@Override\n\tprotected void action() {\n\t\tif(Directory.profile.removeGold(cost)){\n\t\t\t//Increment player's power by 1\n\t\t\tDirectory.profile.getPlayer().incrementPower(1);\n\t\t\t\n\t\t\tcost = Directory.profile.getPlayer().getPower() * 10;\n\t\t\tsuper.setText(\"Upgrade Power: \" + cost + \" gold\"); \n\t\t}\n\t}", "public void grant(int action) {\n if (action == 0) {\n this.raiseEatable(1.25, 0.75);\n } else if (action == 1) {\n this.raisePlayable(1.25, 0.75);\n } else {\n this.raiseIgnorable(1.25, 0.75);\n }\n }", "public abstract void performPurchase(Player player);", "public void toSelectingWeapon() {\n }", "public boolean buy( final Item item )\n {\n if( canBuy( item ) )\n {\n Gdx.app.log( Tyrian.LOG, \"Buying item: \" + item );\n ship.install( item );\n credits -= item.getPrice();\n Gdx.app.log( Tyrian.LOG, \"Credits available: \" + credits );\n return true;\n }\n else\n {\n Gdx.app.log( Tyrian.LOG, \"No credits to buy item: \" + item );\n return false;\n }\n }", "public abstract void attack(Monster mon);", "private void harm(){\n\t\t// grab the selected ID\n\t\tfinal long rowID = getSelectedRowID();\n\n\t\t// reset the selection\n\t\tresetSelection();\n\n\t\t// show the dialog\n\t\tQuickDialogs.showHarmDialog(getActivity(), new IInputCallback() {\n\n\t\t\t@Override\n\t\t\tpublic void onInput(String input) {\n\t\t\t\tint damage;\n\t\t\t\t// convert the string to int\n\t\t\t\ttry{\n\t\t\t\t\tdamage = Integer.valueOf(input);\n\t\t\t\t}catch(NumberFormatException e){\n\t\t\t\t\t// TODO display incorrect input dialog\n\t\t\t\t\tdamage = 0;\n\t\t\t\t}\n\n\t\t\t\t// deal dat damage!\n\t\t\t\tEncountersTable.changeHP(GameSQLDataSource.getDatabase(getActivity()), rowID, -damage);\n\n\t\t\t\trefreshList();\n\t\t\t}\n\t\t});\n\t}", "public void sellGoodsForStore(HashMap<Goods, Integer> interestedGoods) {\n\t\tArrayList<Goods> listInterestedGoods = accessingGoods(interestedGoods);\n\t\t\n\t\tboolean state1 = false;\n\t\twhile(state1 == false) {\n\t\t\tSystem.out.println(\"(99) Cancel sell\");\n\t\t\tprintGoods(interestedGoods, \"Goods that store want to buy: \");\n\t\t\tSystem.out.println(\"Select the goods you want to sell\");\n\t\t\tint selectedAction = scanner.nextInt();\n\t\t\ttry { \n\t\t\t\tif (selectedAction == 99) {\n\t\t\t\t\tstate1 = true;\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\t\t\t\telse if (selectedAction <= interestedGoods.size() && selectedAction > 0) {\n\t\t\t\t\tGoods selectedGoods = listInterestedGoods.get(selectedAction - 1);\n\t\t\t\t\t\n\t\t\t\t\tif (game.checkAvailability(selectedGoods)){\n\t\t\t\t\t\tSystem.out.println(\"You have \" + selectedGoods.getQuantityOwned() +\" \"+ selectedGoods.getName() + \" stored in your ship!\");\n\t\t\t\t\t\tint goodsPrice = interestedGoods.get(selectedGoods);\n\t\t\t\t\t\tboolean state2 = false;\n\t\t\t\t\t\twhile(state2 == false) {\n\t\t\t\t\t\t\tSystem.out.println(\"How many do you want to sell?\" );\n\t\t\t\t\t\t\tint quantity = scanner.nextInt();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry { \n\t\t\t\t\t\t\t\tif (game.checkQuantity(quantity, selectedGoods)) {\n\t\t\t\t\t\t\t\tstate2 = true;\n\t\t\t\t\t\t\t\tgame.sellGoods(selectedGoods, quantity, goodsPrice);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"You don't have that many quanity of \" + selectedGoods.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have to input an integer!\");\n\t\t\t\t\t\t\t\tscanner.nextLine();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"You don't have the item!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\t\n\t}", "void DoMining(float x, float y) {\n\t\tWorld world = World.CurrentWorld;\n\t\t\n\t\tMapRenderer.CurrentRenderer.ItemAnimation = null;\n\t\t\tmineTime = 0;\n\t\t\tlastDamaged.set(x,y);\n\t\t\n\t\t\tInvObject item = null;\n\t\t\tif(inventory.BagItem[inventory.currSelected][1] > 0)\n\t\t\t\titem = inventory.Items[inventory.BagItem[inventory.currSelected][0]];\n\t\t\tint delay = 100;\n\t\t\tif(item != null)\n\t\t\t\tdelay = item.Delay;\n\t\t\n//\t\t\tif(TimeUtils.millis() - LastUsed > delay)\n//\t\t\t{\n\t\t\t\tif(inventory.BagItem[inventory.currSelected][1] > 0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tprog2.x = pos.x+0.5f;\n\t\t\t\t\tprog2.y = pos.y+0.5f;\n\t\t\t\t\tMapRenderer.CurrentCam.project(prog2);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tRay projectCoordinates = MapRenderer.CurrentCam.getPickRay(Gdx.input.getX(0), Gdx.input.getY(0));\n\t\t\t\t\tfloat x2 = (projectCoordinates.origin.x);\n\t\t\t\t\tfloat y2 = (projectCoordinates.origin.y);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfloat angle = (float) Math.toDegrees(MathUtils.atan2(y-prog2.y, x-prog2.x));\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(World.CurrentWorld.isClient) {\n\n\t\t\t\t\t\tWorld.CurrentWorld.client.serverBob.remoteOnUse((int)x2,(int)y2,angle);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(World.CurrentWorld.server != null) {\n\t\t\t\t\t\tonServerUse(item,x2,y2,angle);\n\t\t\t\t\t}\n\t\t\t\t\tif(item.HoldTouch) {\n\t\t\t\t\titem.OnUse(this,x2, y2,angle);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(Gdx.input.justTouched())\n\t\t\t\t\t\t\titem.OnUse(this,x2, y2,angle);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tLastUsed = TimeUtils.millis();\n//\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t}", "@Override\r\n\tpublic void uniqueOnStartInteraction() {\n\t\tif (Main.clientPlayer.getNumWood() < cost) {\r\n\t\t\tMain.clientPlayer.stopInteraction();\r\n\t\t}\r\n\r\n\t}", "public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}", "public void buyhouse(int cost){\n\t\n}", "private void makeMonster(int lvl)\r\n {\r\n maxHealth = lvl*12;\r\n health = maxHealth;\r\n \r\n Equip tempWeapon = null;\r\n Equip tempArmor = null;\r\n if (type == GOLEM)\r\n {\r\n tempWeapon = new Equip(\"roll smash\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"rock body\", Equip.ARMOR, lvl);\r\n }\r\n else if (type == GHOST)\r\n {\r\n tempWeapon = new Equip(\"scythe\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"magic armor\", Equip.ARMOR, lvl);\r\n }\r\n else if (type == SLIME)\r\n {\r\n tempWeapon = new Equip(\"liquid attack\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"shock absorb\", Equip.ARMOR, lvl);\r\n }\r\n else\r\n {\r\n tempWeapon = new Equip(\"teeth\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"hardskin\", Equip.ARMOR, lvl);\r\n }\r\n tempWeapon.changeOwner(this);\r\n tempArmor.changeOwner(this);\r\n tempWeapon.equipTo(this);\r\n tempArmor.equipTo(this);\r\n }", "public static void attemptDeclareAttack (SummonedMonster AttackingMonster){\r\n // if the monster exists at all, is in attack mode, and has not attacked at this turn (if it's battle phase has already been checked when calling this method)\r\n if (AttackingMonster.canStillAttackThisBattlePhase()) {\r\n if (Game.isVeryFirstTurn()) {\r\n YuGiOhJi.errorDialog(\"You can not declare an attack during first turn.\", \"Error.\");\r\n }\r\n else {\r\n if (SummonedMonster.countOwnSummonedMonsters(false)==0) { // if CPU has no monsters, one can only attack directly\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Attack opponent's life points directly with \" + AttackingMonster.att + \" attack points?\", \"\", new String[]{\"yes\", \"no\"}, \"no\");\r\n if (intDialogResult==0) {\r\n Game.ActiveAttackingMonster = AttackingMonster;\r\n updateDeclareAttackStatistic();\r\n declareDirectAttack(AttackingMonster);\r\n }\r\n }\r\n else {\r\n String piercing = \"\";\r\n if (AttackingMonster.hasPiercingDamageAbility()) {piercing = \" (piercing)\";}\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Attack with \" + AttackingMonster.att + \" att\" + piercing + \"? Click on the monster you want to attack.\", \"\", new String[]{\"yes\", \"no\"}, \"no\");\r\n if (intDialogResult==0) {\r\n Game.ActiveAttackingMonster = AttackingMonster;\r\n }\r\n }\r\n }\r\n }\r\n \r\n }", "public void buy(RawMaterial m, double amount)\r\n throws NoMoneyException, DoesntExistException, NotEnoughException {\r\n if (!Main.materialMarket.getMaterials().contains(m)) \r\n throw new DoesntExistException(\"Can't find \" + m.getName());\r\n \r\n double tempPrice = amount*m.getValue()*(1+Main.materialMarket.markup);\r\n double price = tempPrice*m.getCurrency().getBasicRate();\r\n \r\n if (this.budget<price) throw new NoMoneyException(m);\r\n\r\n synchronized (this) {\r\n try {\r\n m.sell(amount);\r\n this.capital.put(m, amount);\r\n this.materials.put(m, amount);\r\n this.budget-=price;\r\n }\r\n catch (NotEnoughException e) {\r\n throw e;\r\n }\r\n\r\n }\r\n \r\n }", "private void giveFoodToCustomer(MyCustomer customer) {\n\tDo(\"Giving finished order of \" + customer.choice +\" to \" + customer.cmr);\n\tPosition inFrontOfGrill = new Position(customer.food.getX()-1,customer.food.getY());\n\tguiMoveFromCurrentPostionTo(inFrontOfGrill);//in front of grill\n\twaiter.pickUpFood(customer.food);\n\tPosition tablePos = new Position(tables[customer.tableNum].getX()-1,\n\t\t\t\t\t tables[customer.tableNum].getY()+1);\n\tguiMoveFromCurrentPostionTo(tablePos);\n\twaiter.serveFood(tables[customer.tableNum]);\n\tcustomer.state = CustomerState.NO_ACTION;\n\tcustomer.cmr.msgHereIsYourFood(customer.choice);\n\tstateChanged();\n }", "public void buyItem(int id, int q)\n\t{\n\t\t/* If the player isn't shopping, in a normal shop */\n\t\tif(m_currentShop == null)\n\t\t{\n\t\t\t/* First, check if the player can afford this */\n\t\t\tint price = GameServer.getServiceManager().getItemDatabase().getItem(id).getPrice();\n\t\t\tif(m_money - q * price >= 0)\n\t\t\t{\n\t\t\t\t/* Finally, if the item is in stock, buy it */\n\n\t\t\t\tm_money = m_money - q * price;\n\t\t\t\tm_bag.addItem(id, q);\n\t\t\t\tupdateClientMoney();\n\t\t\t\t/* Let player know he bought the item. */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.BOUGHT_ITEM);\n\t\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\tgetSession().Send(message);\n\t\t\t\t/* Update player inventory. */\n\t\t\t\tServerMessage update = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\t\tupdate.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\tupdate.addInt(q);\n\t\t\t\tgetSession().Send(update);\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Return You have no money, fool! */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.NOT_ENOUGH_MONEY);\n\t\t\t\tgetSession().Send(message);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(m_bag.hasSpace(id))\n\t\t{\n\t\t\t/* First, check if the player can afford this */\n\t\t\tif(m_money - q * m_currentShop.getPriceForItem(id) >= 0)\n\t\t\t{\n\t\t\t\t/* Finally, if the item is in stock, buy it */\n\t\t\t\tif(m_currentShop.buyItem(id, q))\n\t\t\t\t{\n\t\t\t\t\tm_money = m_money - q * m_currentShop.getPriceForItem(id);\n\t\t\t\t\tm_bag.addItem(id, q);\n\t\t\t\t\tupdateClientMoney();\n\t\t\t\t\t/* Let player know he bought the item. */\n\t\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.BOUGHT_ITEM);\n\t\t\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\t\tgetSession().Send(message);\n\t\t\t\t\t/* Update player inventory. */\n\t\t\t\t\tServerMessage update = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\t\t\tupdate.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\t\tupdate.addInt(1);\n\t\t\t\t\tgetSession().Send(update);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Return You have no money, fool! */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.NOT_ENOUGH_MONEY);\n\t\t\t\tgetSession().Send(message);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Send You cant carry any more items! */\n\t\t\tServerMessage message = new ServerMessage(ClientPacket.POCKET_FULL);\n\t\t\tgetSession().Send(message);\n\t\t}\n\t}", "public void getAttackedByDarknessMagicBook(IEquipableItem item){item.strongAttackTo(this.getOwner());}", "public synchronized void spawnMe()\n\t{\n\t\t_itemInstance = ItemTable.getInstance().createItem(\"Combat\", _itemId, 1, null, null);\n\t\t_itemInstance.dropMe(null, _location.getX(), _location.getY(), _location.getZ());\n\t}", "public void PurchaseTemple(Player gamer){\r\n Scanner in = new Scanner(System.in);\r\n \r\n System.out.println(\"What do you want to call your temple?\");\r\n String temple_name = in.nextLine();\r\n \r\n System.out.println(\"A big temple generates $15 and 5 zen each turn.\");\r\n System.out.println(\"A small temple generates 3 zen each turn.\");\r\n System.out.println(\"Do you want a big (-$70, press 1) or small (-$30, press 2) temple\"); \r\n System.out.println(\"Each Temple can make only 3\");\r\n \r\n int temple_act;\r\n temple_act = in.nextInt(); \r\n switch(temple_act){\r\n case 1:\r\n for(int i=0;i<big_temple.length;i++){\r\n if(big_temple[i]==null){\r\n big_temple[i]=new BigTemple(temple_name);\r\n gamer.money = gamer.money-70;\r\n break;\r\n }\r\n else if(big_temple[2] != null){\r\n System.out.println(\"You can make only 3 temples\");\r\n break;\r\n } \r\n }\r\n break;\r\n case 2:\r\n for(int i=0;i<small_temple.length;i++){\r\n if(small_temple[i]==null){\r\n small_temple[i]=new SmallTemple(temple_name);\r\n gamer.money = gamer.money-30; \r\n break;\r\n }\r\n else if(small_temple[2] != null){\r\n System.out.println(\"You can make only 3 temples\");\r\n break;\r\n }\r\n } \r\n break;\r\n default:\r\n System.out.println(\"You can only choose 1~2\");\r\n break; \r\n } \r\n gamer.turn = gamer.turn+1; \r\n }", "@Override\n public String execute(Actor actor, GameMap map) {\n player = (Player) actor;\n int option;\n Scanner scanner = new Scanner(System.in);\n // Show shop description and let player enter the option\n display.println(\"<-------------------------------------SHOP-------------------------------------------->\");\n display.println(\"Current Inventory List: \" + player.getInventory().toString());\n display.println(\"Current available eco points: \"+ player.getEcoPoint());\n display.println(\"Select an option to buy the item (Item option: Item(Eco Points required per item))\");\n display.println(\"FOOD--> 1: Fruit(30) 2: Vegetarian Meal Kit(100) 3. Meat Meal Kit(500)\");\n display.println(\"EGG--> 4. Stegosaur Egg(200) 5. Brachiosaur Egg(500) 6. Allosaur Egg(1000) 7. Pterodactyl Egg(300)\");\n display.println(\"OTHER--> 8. Laser Gun(500) 0. Exit\");\n display.println(\"<------------------------------------------------------------------------------------->\");\n display.println(\"Option: \");\n option = scanner.nextInt();\n // if the player successfully purchase an item, return the message\n if(shop.canPurchase(player, option)){\n ans = \"Player bought item \" + option;\n }\n // else if player has no enough money or player enter wrong item option, return the message\n else{\n ans = \"Player bought nothing\";\n }\n // show player current inventory\n display.println(player.getInventory().toString());\n return ans;\n }", "private static int sellGold(String itemToSell){\r\n int goldReceived = 0;\r\n if(itemToSell.equals(\"Leather Helmet\")){\r\n leatherHelmet LeatherHelmet = new leatherHelmet();\r\n goldReceived = LeatherHelmet.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Chest Plate\")){\r\n leatherChestPlate LeatherChestPlate = new leatherChestPlate();\r\n goldReceived = LeatherChestPlate.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Short Sword\")){\r\n shortSword ShortSword = new shortSword();\r\n goldReceived = ShortSword.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Long Sword\")){\r\n longSword LongSword = new longSword();\r\n goldReceived = LongSword.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Great Sword\")){\r\n greatSword GreatSword = new greatSword();\r\n goldReceived = GreatSword.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Healing Potion\")){\r\n healingPotion HealingPotion = new healingPotion();\r\n goldReceived = HealingPotion.getHealingPotionSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Greater Healing Potion\")){\r\n greaterHealingPotion GreaterHealingPotion = new greaterHealingPotion();\r\n goldReceived = GreaterHealingPotion.getGreaterHealingPotionSellPrice();\r\n return goldReceived;\r\n }else{\r\n return goldReceived;\r\n }\r\n }", "public void purchase(Player player) {\n\t\towned = true;\n\t\towner = player;\n\n\t\tupdateMonopoly(player);\n\t}", "@Override\n public void chooseAction(){\n healthDecay = getHealth() - 5;\n //now scan for Nazguls\n\n if(healthDecay == 0){\n death(this);\n }\n int scan_result = scan();\n\n if(scan_result == 1){\n move();\n }\n\n if(scan_result == 0 && healthDecay < 75){\n stay();\n }\n\n if(scan_result == 0 && hobbitCounter == 15){\n replicate();\n hobbitCounter = 0;\n }\n\n else{\n move();\n \n }\n hobbitCounter = hobbitCounter + 1;\n }", "public void sell() throws UnavailableObjectException {\r\n\t\tGame game = Game.getInstance();\r\n\t\tgame.increaseBudget(getSellValue());\r\n\t\tgame.getInventory().take(id);\r\n\t}", "public void buyFuelGainMultiply() {\n this.fuelGainMultiply++;\n }", "@Override\n\tpublic int buy(Weapon item) {\n\t\treturn 0;\n\t}", "public void fight(String enemy)\n\t{\n\t\tScanner kbAlpha = new Scanner(System.in);\n\t\t\n\t\tString strInput;\t\t\t\t\t\t//player input\n\t\tchar cAttack;\t\t\t\t\t\t\t//player input attack button\n\t\trandom = new Random();\n\t\t\n\t\tcAttack = 'x';\n\t\t\n\t\tif (strEquippedWeapon.equals(\"Dagger\"))\n\t\t{\n\t\t\tthis.iMaxDmg = 5; \t\t\t\t\t//exclusive\n\t\t\tthis.iMinDmg = 2;\t\t\t\t\t//inclusive\n\t\t}\n\t\telse if (strEquippedWeapon.equals(\"Steampunk 4-Barrel Pistol\"))\n\t\t{\n\t\t\tthis.iMaxDmg = 8; \t\t\t\t\t//exclusive\n\t\t\tthis.iMinDmg = 3;\t\t\t\t\t//inclusive\t\t\t\n\t\t}\n\t\telse if (strEquippedWeapon.equals(\"Steampunk Mach. II Riflesword\"))\n\t\t{\n\t\t\tthis.iMaxDmg = 16; \t\t\t\t\t//exclusive\n\t\t\tthis.iMinDmg = 6;\t\t\t\t\t//inclusive\n\t\t}\n\t\t\n\t\tif (enemy.equals(\"alien1\"))\n\t\t{\n\t\t\tthis.iAlienHP = 15;\n\t\t\tthis.iAlienMaxDmg = 3;\t\t\t\t//exclusive\n\t\t\tthis.iAlienMinDmg = 1;\t\t\t\t//inclusive\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.inventory.add(\"Steampunk 4-Barrel Pistol\");\n\t\t\t\t\tsetEquippedWeapon(\"Steampunk 4-Barrel Pistol\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \", but you have killed\"\n\t\t\t\t\t\t+ \" the alien!\\nThe alien dropped his \" +\n\t\t\t\t\t\t\"weapon! You pick it up an examine it. It looks like\\nit is a \" +\n\t\t\t\t\t\t\"Steampunk 4-Barrel Pistol. This might be a better option than \" +\n\t\t\t\t\t\t\"the\\n\" + getEquippedWeapon() + \". You equip it.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you have killed\"\n\t\t\t\t\t\t\t+ \" the alien!\\nThe alien dropped his \" +\n\t\t\t\t\t\t\t\"weapon! You pick it up an examine it. It looks like\\nit is a \" +\n\t\t\t\t\t\t\t\"Steampunk 4-Barrel Pistol. This might be a better option than \" +\n\t\t\t\t\t\t\t\"the\\n\" + getEquippedWeapon() + \". You equip it.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"alien2\"))\n\t\t{\n\t\t\tthis.iAlienHP = 18;\n\t\t\tthis.iAlienMaxDmg = 5;\t\t\t\t//exclusive\n\t\t\tthis.iAlienMinDmg = 1;\t\t\t\t//inclusive\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.iHP += 10;\n\t\t\t\t\tthis.inventory.add(\"Manhole Cover Shield\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damge, but you \" +\n\t\t\t\t\t\t\"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. \" +\n\t\t\t\t\t\t\"Fantastic!\\nSearching the alien's corpse, you find a Manhole Cover\"\n\t\t\t\t\t\t+ \" Shield! This will\\nprotect you from some damage.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \"\n\t\t\t\t\t\t\t+ \"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. \" +\n\t\t\t\t\t\t\t\"Fantastic!\\nSearching the alien's corpse, you find a Manhole Cover\"\n\t\t\t\t\t\t\t+ \" Shield! This will\\nprotect you from some damage.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"alien3\"))\n\t\t{\n\t\t\tif (evaluateInventory(\"Manhole Cover Shield\"))\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 22;\n\t\t\t\tthis.iAlienMaxDmg = 7;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 2;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 22;\n\t\t\t\tthis.iAlienMaxDmg = 9;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 3;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.iHP += 15;\n\t\t\t\t\tthis.inventory.add(\"Edison Grenade\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \" +\n\t\t\t\t\t\t\"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t+ \"you find a health pack that increases your health by 15. The \"\n\t\t\t\t\t\t+ \"alien also\\ndropped an Edison Grenade! It looks like a bulb but \"\n\t\t\t\t\t\t+ \"probably does more\\nthan light up a room!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \" +\n\t\t\t\t\t\t\t\"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t\t+ \"you find a health pack that increases your health by 15. The \"\n\t\t\t\t\t\t\t+ \"alien also\\ndropped an Edison Grenade! It looks like a bulb but \"\n\t\t\t\t\t\t\t+ \"probably does more\\nthan light up a room!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"alien4\"))\n\t\t{\n\t\t\tif(evaluateInventory(\"Manhole Cover Shield\"))\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 18;\n\t\t\t\tthis.iAlienMaxDmg = 6;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 1;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 18;\n\t\t\t\tthis.iAlienMaxDmg = 8;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 2;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.iHP += 10;\n\t\t\t\t\tthis.inventory.add(\"Steampunk Mach. II Riflesword\");\n\t\t\t\t\tsetEquippedWeapon(\"Steampunk Mach. II Riflesword\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you\"\n\t\t\t\t\t\t+ \" killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. The \"\n\t\t\t\t\t\t+ \"alien also\\ndropped a Steampunk Mach. II Riflesword! This weapon\"\n\t\t\t\t\t\t+ \" looks quite menacing.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you\"\n\t\t\t\t\t\t\t+ \" killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. The \"\n\t\t\t\t\t\t\t+ \"alien also\\ndropped a Steampunk Mach. II Riflesword! This weapon\"\n\t\t\t\t\t\t\t+ \" looks quite menacing.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"boss\"))\n\t\t{\n\t\t\tif(evaluateInventory(\"Manhole Cover Shield\"))\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 50;\n\t\t\t\tthis.iAlienMaxDmg = 10;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 2;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 50;\n\t\t\t\tthis.iAlienMaxDmg = 12;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 4;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\n\t\t\t\n\t\t\tif (evaluateInventory(\"Edison Grenade\"))\n\t\t\t{\n\t\t\t\tthis.inventory.remove(\"Edison Grenade\");\n\t\t\t\tthis.iAlienHP -= 20;\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You lob the Edison Grenade to start the battle and hide \"\n\t\t\t\t\t+ \"behind a cluster\\nof stalagmite. A few seconds later, the grenade\"\n\t\t\t\t\t+ \" explodes dealing 20\\ndamage to the boss alien!\\n\\nBoss Alien HP \" +\n\t\t\t\t\t\"left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You lob the Edison Grenade to start the battle and hide \"\n\t\t\t\t\t\t+ \"behind a cluster\\nof stalagmite. A few seconds later, the grenade\"\n\t\t\t\t\t\t+ \" explodes dealing 20 damage to the boss alien!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.inventory.add(\"Platinum Key\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \"\n\t\t\t\t\t\t+ \"have killed the boss alien! He drops the\\n\" +\n\t\t\t\t\t\t\"Platinum Key!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Pick up Platinum Key\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \"\n\t\t\t\t\t\t\t+ \"have killed the boss alien! He drops the\\n\" +\n\t\t\t\t\t\t\t\"Platinum Key!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Pick up Platinum Key\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nBoss Alien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nBoss Alien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\r\n\t@SuppressWarnings(\"deprecation\")\r\n\tpublic void raiseEvent(Event e) {\r\n\t\tPlayer p = ((PlayerInteractEvent) e).getPlayer();\r\n\t\tPlayerStats stats = plugin.getStats(p);\r\n\t\tif (stats.subtractmoney(cost)) {\r\n\t\t\tif (!items.isEmpty()) {\r\n\t\t\t\tLinkedList<ItemStack> givenItems = new LinkedList<ItemStack>();\r\n\t\t\t\tfor (ItemStack item : items.getItemStacks()) {\r\n\t\t\t\t\tgivenItems.add(item);\r\n\t\t\t\t\tHashMap<Integer, ItemStack> failed = p.getInventory().addItem(item);\r\n\r\n\t\t\t\t\tif (failed != null && failed.size() > 0) {\r\n\t\t\t\t\t\t// the inventory may be full\r\n\t\t\t\t\t\tTribu.messagePlayer(p, (plugin.getLocale(\"Message.UnableToGiveYouThatItem\")),ChatColor.RED);\r\n\t\t\t\t\t\tstats.addMoney(cost);\r\n\t\t\t\t\t\tfor (ItemStack i : givenItems)\r\n\t\t\t\t\t\t\tp.getInventory().remove(i);\r\n\t\t\t\t\t\tgivenItems = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tp.updateInventory();\r\n\t\t\t\t// Alright\r\n\t\t\t\tTribu.messagePlayer(p,String.format(plugin.getLocale(\"Message.PurchaseSuccessfulMoney\"), String.valueOf(stats.getMoney())),ChatColor.GREEN);\r\n\t\t\t} else {\r\n\t\t\t\tTribu.messagePlayer(p,plugin.getLocale(\"Message.UnknownItem\"),ChatColor.RED);\r\n\t\t\t\tstats.addMoney(cost);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tTribu.messagePlayer(p,plugin.getLocale(\"Message.YouDontHaveEnoughMoney\"),ChatColor.RED);\r\n\t\t}\r\n\r\n\t}", "public void createGoldReward() {\n try {\n int gold = RandomBenefitModel.getGoldReward(encounter, characterVM.getDistance());\n if (gold > 0) characterVM.goldChange(gold);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public boolean buyItem(int id) {\n Items item = shop.getItem(id);\n if (player.withdrawMoney(item.getCost())) {\n player.changeItem(item);\n return true;\n }\n return false;\n }", "public static void giveStuff(GamePlayer player) {\r\n\t\tItemStack sword = new ItemStack(Material.WOOD_SWORD);\r\n\t\tItemStack bow = new ItemStack(Material.BOW);\r\n\t\tItemStack arrow = new ItemStack(Material.ARROW);\r\n\t\tItemStack compass = new ItemStack(Material.COMPASS);\r\n\t\tItemMeta compassMeta = sword.getItemMeta();\r\n\t\tItemMeta swordMeta = sword.getItemMeta();\r\n\t\tItemMeta bowMeta = sword.getItemMeta();\r\n\t\t\r\n\t\tplayer.getPlayer().getInventory().clear();\r\n\t\tswordMeta.spigot().setUnbreakable(true);\r\n\t\tsword.setItemMeta(swordMeta);\r\n\t\tsword.setAmount(1);\r\n\t\t\r\n\t\tbowMeta.spigot().setUnbreakable(true);\r\n\t\tbowMeta.setDisplayName(\"§aSniper§r §7(One Shot Kill)\");\r\n\t\tbow.setItemMeta(bowMeta);\r\n\t\tbow.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 10);\r\n\t\tbow.setAmount(1);\r\n\t\t\r\n\t\tarrow.setAmount(1);\r\n\t\t\r\n\t\tcompassMeta.setDisplayName(\"§aTarget Tracker\");\r\n\t\tcompass.setItemMeta(compassMeta);\r\n\t\tcompass.setAmount(1);\r\n\t\t\r\n player.getPlayer().getInventory().addItem(sword);\r\n player.getPlayer().getInventory().addItem(bow);\r\n player.getPlayer().getInventory().addItem(arrow);\r\n player.getPlayer().getInventory().addItem(compass);\r\n\t}", "public void buy(Spell spell) {\n\n\t\t// Calculate total cost of transaction first to see if possible\n\t\tint totalCost = spell.getCost();\n\n\t\t// Remove correct sum of money from user's Inventory\n\t\tplayer.getInventory().removeMoney(totalCost);\n\t\tplayerMon -= totalCost;\n\n\t\t// Remove correct number of items from Merchant's Inventory\n\t\tsb.remove(spell);\n\n\t\tplayer.getBook().add(spell);\n\t}", "public boolean bertarung(Monster objMonster){\r\n\r\n int isSerang;\r\n boolean isStop = false;\r\n int opsi = 0;\r\n\r\n Random random = new Random();\r\n Scanner scanner = new Scanner(System.in);\r\n\r\n isSerang = random.nextInt(2);\r\n\r\n while(!isStop){\r\n\r\n if(isSerang == 1){\r\n\r\n // Giliran Player\r\n int pil;\r\n\r\n System.out.println(\"Pilihan Player :\");\r\n System.out.println(\"1. Menyerang\");\r\n System.out.println(\"2. Pakai item\");\r\n System.out.println(\"3. Keluar Ruangan\");\r\n System.out.print(\"___ :\");\r\n opsi = scanner.nextInt();\r\n\r\n if(opsi == 1){\r\n\r\n if(objMonster.getLevel().equals(\"Bos\") || objMonster.getLevel().equals(\"Spesial\")){\r\n if (objMonster.getDefense() ==0){\r\n objMonster.setHp(objPlayer.menyerang(objMonster));\r\n }else{\r\n objMonster.bertahan();\r\n }\r\n }\r\n else{\r\n\r\n objMonster.setHp(objPlayer.menyerang(objMonster));\r\n }\r\n\r\n objMonster.setHp(cekNpcMenyerang(objMonster)); //jika ada npc penyerang, ia akan membantu player melawan monster\r\n\r\n System.out.println(\"Hp monster : \" + objMonster.getHp());\r\n }\r\n else if (opsi == 2){\r\n\r\n if (objPlayer.getArrItem().isEmpty()){\r\n System.out.println(\"Player tidak memiliki Item\");\r\n }\r\n else {\r\n\r\n int i = 1;\r\n for (Item objItem : objPlayer.getArrItem()){\r\n System.out.println(i + \". \" + objItem.getNamaItem());\r\n i++;\r\n }\r\n System.out.print(\"Choose your item : \");\r\n pil = scanner.nextInt();\r\n\r\n if (pil < 1 || pil > objPlayer.getArrItem().size()){\r\n\r\n System.out.println(\"Pilihan tidak tersedia\");\r\n }\r\n else {\r\n\r\n objPlayer.getArrItem().get(pil-1).dipakai();\r\n }\r\n }\r\n }\r\n\r\n else if(opsi == 3){\r\n\r\n isStop = true;\r\n }\r\n isSerang = 0;\r\n }\r\n else{\r\n\r\n // giliran monster\r\n if(objPlayer.getDefense() <= 0){\r\n\r\n objMonster.menyerang();\r\n }\r\n else{\r\n\r\n objPlayer.bertahan(objMonster);\r\n }\r\n\r\n System.out.println(\"Hp Player : \" + objPlayer.getHp());\r\n\r\n isSerang = 1;\r\n\r\n }\r\n System.out.println(\"Damage player \" + objPlayer.getDamage());\r\n\r\n if (opsi == 1){\r\n\r\n //jika player menggunakan item sekali pakai saat menyerang\r\n if (objPlayer.getObjItemDigunakan(0) != null){\r\n\r\n if (objPlayer.getObjItemDigunakan(0).getKetersediaan().equals(\"Sekali Pakai\")){\r\n\r\n Senjata senjataDipakai = (Senjata) objPlayer.getObjItemDigunakan(0);\r\n senjataDipakai.returnDamage(senjataDipakai);\r\n objPlayer.setObjItemDigunakan(0, null);\r\n }\r\n }\r\n }\r\n\r\n System.out.println();\r\n if (objMonster.getHp() <= 0 || objPlayer.getHp() <= 0){\r\n isStop = true;\r\n }\r\n }\r\n\r\n return !isPlayerWin(objMonster);\r\n }", "static void weapon(char item)\r\n {\r\n \tString pClass = MainApp.playerClass;\r\n \tif(MainApp.alreadyEquipped == false)\r\n\t\t{\r\n\t\t\tif(pClass == \"Warrior\")\r\n\t\t\t{\r\n\t \t\tif(item == '0')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Warrior Equipped!\");\r\n\t \t\t}\r\n\t \t\t//System.out.print(\"Post Equip Warrior\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Archer\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '&')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Archer Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Archer\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Rogue\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '!')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Rogue Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Rogue\");\r\n\t\t\t}\r\n\t }\r\n }", "void askBuyResources();", "public void purchase(){\n\t\t\n\t\t//Ask the user for notes about the item\n\t\tSystem.out.println(\"Please enter any special requests regarding your \" +\n\t\t\t\t\t\t\t\"food item for our staff to see while they prepare it.\");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString foodNotes = scan.nextLine();\n\t\tnotes = foodNotes;\n\t\t\n\t\t//Add this item's price to the order total\n\t\tMenu.orderPrice += price;\n\t\t\n\t}", "public void buyDevCard() throws ClientException{\n\n\t\t\tresources.setOre(resources.getOre() -1 );\n\t\t\tresources.setWheat(resources.getWheat() -1 );\n\t\t\tresources.setSheep(resources.getSheep() -1 );\n\n\t}", "public boolean whatNow (String action, player friday, player you){ // Method which will allow the ia to choose his action\n\t\tString testAction = \"Tank\"; // Create a String we will use a lot to test other string\n\t\tint actionIa; // If the ia is a Tank, forbid him to use his special attack. The purpose is to prevent him from useless turns\n\t\tif (friday.getName().equals(testAction)){ // If the name of the ia's class is Tank\n\t\t\t actionIa = (int)(Math.random() * 2); // His random will be between 0 or 1\n\t\t}\n\t\t\n\t\telse {\n\t\t\t actionIa = (int)(Math.random() * 3); // Else, his random will be between 0, 1 and 2\n\t\t}\n\t\t\n\t\ttestAction = \"attack\"; // Will be use to test if you attacked\n\t\t\n\t\t\n\t\tswitch (actionIa){ // Test ia's action\n\t\t\tcase 0: // 0, the enemy attack\n\t\t\t\tfriday.setSprite(\"attack\");\n\t\t\t\tSystem.out.println(\"The enemy attack\\n\"); // Warns the user\n\t\t\t\ttestAction = \"block\"; // Will be use to test if you block\n\t\t\t\tif (action.equals(testAction)){ // If you block\n\t\t\t\t\tSystem.out.println(\"You blocked the enemy's attack.\"); // Warns the user\n\t\t\t\t\tyou.setHp(you.getHp() - you.getDp()); // You loose as much hp as your dp\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tyou.setHp(you.getHp() - friday.getAp()); // Else, you loose as much hp as your enemy's ap\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 1: // 1, the enemy block\n\t\t\t\tfriday.setSprite(\"block\");\n\t\t\t\tif (action.equals(testAction)){ // If you attacked\n\t\t\t\t\tfriday.setHp(friday.getHp() - friday.getDp()); // The enemy loose as much hp as his dp\n\t\t\t\t\taction = \"\"; // Prevent you from attack a second time\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The enemy blocked your attack\\n\"); // Warns the user\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2: // 2, the enemy use his special power if he isn't a tank\n\t\t\t\tfriday.setSprite(\"special\");\n\t\t\t\tSystem.out.println(\"The enemy uses his special power.\"); // Warns the user\n\t\t\t\tfriday.special(); // Execute ia's special attack\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\t\n\t\ttestAction = \"attack\"; // Reset testAction\n\t\t\n\t\tif (action.equals(testAction)){ // If you attacked\n\t\t\tfriday.setHp(friday.getHp() - you.getAp()); // The enemy loose as much hp as your ap\n\t\t} // Nota Bene : if the enemy blocked your attack, this won't be executed because 'action = \"\";'\n\t\t\n\t\tSystem.out.println(\"You have \" + you.getHp() + \" HP left.\"); // Warns the user\n\t\tSystem.out.println(\"The ennemy have \" + friday.getHp() + \" HP left.\\n\"); // Warns the user\n\t\t\n\t\tif(you.getHp() <= 0){ // If you or the ia has no hp left, warn the system that the fight is over by setting 'end' on true and tell who died\n\t\t\tend = true;\n\t\t\tSystem.out.println(\"You died!\");\n\t\t\tyou.setSprite(\"dead\");\n\t\t}\n\t\t\n\t\telse if(friday.getHp() <= 0){\n\t\t\tend = true;\n\t\t\tSystem.out.println(\"You killed the ennemy!\");\n\t\t\tfriday.setSprite(\"dead\");\n\t\t}\n\t\t\n\t\telse { // Else, it just asks you what you want to do\n\t\t\tSystem.out.println(\"What do you want to do, attack, block or use your special power ?\"); // Asks what you want to do\n\t\t}\n\t\treturn end;\n\t}", "public static void giveKIT(Player p) {\r\n\t\tp.getInventory().clear();\r\n\t\tfor (String kitget : kit.keySet()) {\r\n\t\t\tString[] kitdojogador = kit.get(kitget).split(\":\");\r\n\t\t\tString kit1 = kitdojogador[0];\r\n\t\t\tString kit2 = kitdojogador[1];\r\n\t\t\tif (kit1.equalsIgnoreCase(\"PvP\") || kit2.equalsIgnoreCase(\"PvP\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.WOOD_SWORD));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Archer\") || kit2.equalsIgnoreCase(\"Minerador\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.BOW));\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.ARROW, 10));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Barbarian\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.WOOD_SWORD));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Beastmaster\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.BONE, 3));\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.MONSTER_EGG, 3, EntityType.WOLF.getTypeId()));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Grandpa\")) {\r\n\t\t\t\tItemStack g = new ItemStack(Material.STICK);\r\n\t\t\t\tItemMeta gm =g.getItemMeta();\r\n\t\t\t\tgm.addEnchant(Enchantment.KNOCKBACK, 2, true);\r\n\t\t\t\tg.setItemMeta(gm);\r\n\t\t\t\tp.getInventory().addItem(g);\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.6438439", "0.63795185", "0.63355803", "0.63236946", "0.6314407", "0.6280687", "0.62765753", "0.6233644", "0.62139815", "0.6211629", "0.6159573", "0.6146065", "0.6112023", "0.6101262", "0.6082223", "0.6068054", "0.6049506", "0.60384715", "0.6022494", "0.5962845", "0.59513134", "0.59448135", "0.59264255", "0.59254223", "0.5917982", "0.5845345", "0.5845227", "0.5783524", "0.5775831", "0.5753478", "0.57305557", "0.5722899", "0.57141685", "0.5699117", "0.5699102", "0.5696601", "0.5677464", "0.56757796", "0.56557167", "0.56546545", "0.5633676", "0.56293756", "0.5628989", "0.5617084", "0.5606275", "0.56001616", "0.5599585", "0.5593215", "0.55722445", "0.5556238", "0.55555546", "0.5549778", "0.55492127", "0.55489844", "0.55475634", "0.55411345", "0.55380744", "0.55242836", "0.55149", "0.55039036", "0.55017084", "0.54916435", "0.54536575", "0.5449973", "0.5446582", "0.5430723", "0.5430347", "0.5419918", "0.5416629", "0.54130626", "0.5410558", "0.54075724", "0.5405632", "0.5402592", "0.53982186", "0.53961253", "0.5394384", "0.5393954", "0.53913516", "0.5390858", "0.53881747", "0.5386007", "0.53856486", "0.5384486", "0.5383162", "0.53803635", "0.53718203", "0.53658587", "0.53556675", "0.5354793", "0.5347792", "0.5344603", "0.53402436", "0.5335436", "0.533212", "0.5330402", "0.53243715", "0.53200674", "0.53070605", "0.53070325" ]
0.72310305
0
allows a user to list a monster in the shop to be sold.
public void SellMonster(Monster monster, MyUser user) { persistIt.init(); List<Monster> monsters = persistIt.searchMonsters(); boolean found = false; for (int i = 0; i < monsters.size(); i++) { if (monsters.get(i).getId() == monster.getId()) { found = true; } } if (found == true) { monster.setOwner(""); persistIt.update(monster); user.setVirtualMoney(( user.getVirtualMoney()+monster .getWorth())); persistIt.update(user); } else { System.out.println("Error"); } persistIt.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void seeSoldItem() {\n\t\tShip selectedShip = game.getSelectedShip();\n\t\tHashMap<Goods, ArrayList<String>> soldItems = selectedShip.getSoldItems();\n\t\tint index = 1;\n\t\tSystem.out.println(\"Items that has been sold: \");\n\t\tfor (HashMap.Entry<Goods, ArrayList<String>> set: soldItems.entrySet()) {\n\t\t\tString name = set.getKey().getName();\n\t\t\tint quantity = set.getKey().getQuantitySold();\n\t\t\tSystem.out.println(\"(\" + index + \") Name: \" + name + \" Quantity: \" + quantity + \" Loaction it was sold: \" + set.getValue());\n\t\t\tindex++;\n\t\t\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\ttry {\n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\n\t\t\t\t\tstate = true;\n\t\t\t\t\tgame.seeShipSpec();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t}", "public void BuyMonster(Monster monster, MyUser user) {\r\n persistIt.init();\r\n List<Monster> monsters = persistIt.searchShopMonsters();\r\n boolean found = false;\r\n\r\n for (int i = 0; i < monsters.size(); i++) {\r\n if (monsters.get(i).getId() == monster.getId()) {\r\n found = true;\r\n }\r\n }\r\n if (found == true) {\r\n monster.setOwner(user.getUsername());\r\n persistIt.update(monster);\r\n user.setVirtualMoney((user.getVirtualMoney()-monster.getWorth()));\r\n } else {\r\n System.out.println(\"Error\");\r\n }\r\n persistIt.shutdown();\r\n }", "public void buySellSmithore(boolean buy, Player customer) {\n if (buy && smithQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Smithore in the store\");\n } else {\n if (buy) {\n if (customer.getMoney() >= smithCost) {\n customer.addSubMoney(-smithCost);\n customer.addSubOre(1);\n smithQuantity--;\n if (smithQuantity == 0) {\n smithCost = 50;\n } else {\n smithCost += 5;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n } else {\n if (customer.getOre() >= 1) {\n customer.addSubMoney(smithCost-8);\n if (smithQuantity == 0) {\n smithCost = 50;\n } else {\n smithCost -= 5;\n }\n customer.addSubOre(-1);\n smithQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have any of this item to sell\");\n }\n }\n }\n }", "@Override\n\tpublic void seeShip() {\n\t\tShip selectedShip = game.getSelectedShip();\n\t\tString name = selectedShip.getShipName();\n\t\tint crew = selectedShip.getCrew();\n\t\tdouble cargo = selectedShip.getCapacity();\n\t\tdouble shipsHealth = selectedShip.getShipsStatus();\n\t\tint speed = selectedShip.getShipsSpeed();\n\t\tArrayList<Equipment> equipments = selectedShip.getEquipment();\n\t\tHashMap<Goods, Integer> myGoods = selectedShip.getMyGoods();\n\t\tSystem.out.println(\"Ship's name: \" + name);\n\t\tSystem.out.println(\"Number of crews: \" + crew);\n\t\tSystem.out.println(\"Ship's health: \" + shipsHealth);\n\t\tSystem.out.println(\"Speed: \" + speed);\n\t\tSystem.out.println(\"Maximum cargo capacity: \" + String.format(\"%.2f\",cargo) + \"\\n\");\n\t\tprintEquipments(equipments);\n\t\tprintMyGoods(myGoods);\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\tSystem.out.println(\"(2) See your sold items.\");\n\t\t\ttry {\n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction <= 2 && selectedAction > 0) {\n\t\t\t\t\tstate = true;\n\t\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\tgame.backToMain();;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tgame.seeSoldItems();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t}", "public void buyEquipment(Equipment equipmentForSale, Store store) {\n\t\tif (game.checkEquipmentFull()) {\n\t\t\tSystem.out.println(\"You can't add more equipment to your ship\");\n\t\t\tgame.goToStore();\n\t\t}\n\t\telse {\n\t\t\tboolean state = false;\n\t\t\twhile(state==false) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"This store sell \"+ equipmentForSale.getName());\n\t\t\t\tSystem.out.println(\"Price: \"+equipmentForSale.getSellingPrice());\n\t\t\t\tArrayList<Equipment> equipments = game.getSelectedShip().getEquipment();\n\t\t\t\tif(equipments.contains(equipmentForSale)) \n\t\t\t\t{\n\t\t\t\t\tstate = true;\n\t\t\t\t\tSystem.out.println(\"You can't add this equipment since you already have it set in your ship!\");\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Do you want to buy this equipment?\");\n\t\t\t\t\tSystem.out.println(\"(1) Yes\");\n\t\t\t\t\tSystem.out.println(\"(2) No\");\n\t\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\t\tif (selectedAction == 1 || selectedAction == 2) \n\t\t\t\t\t{\n\t\t\t\t\t\tstate = true;\n\t\t\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\t\tint equipmentPrice = equipmentForSale.getSellingPrice();\n\t\t\t\t\t\t\tif (game.checkEnoughMoney(equipmentPrice)) {\n\t\t\t\t\t\t\t\tgame.buyEquipment(equipmentForSale);\n\t\t\t\t\t\t\t\tSystem.out.println(\"The equipment has been added to your ship!\");\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Sorry your money is not enought to buy this equipment\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgame.goToStore();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Please input 1 or 2\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "private void showShopScreen() {\n\t\twhile (!Mouse.isButtonDown(0)\n\t\t\t\t|| !(Mouse.getX() >= 643 && Mouse.getX() <= 758 && Mouse.getY() <= (displayHeight - 494) && Mouse.getY() >= (displayHeight - 562))) {\n\t\t\t// draw shop screen\n\t\t\tdrawScreen(sprite.get(\"shopScreen\"));\n\t\t\t\n\t\t\twhile (Mouse.next()) {\n\t\t\t\tif (!laserShot && cash >= 500 && !Mouse.getEventButtonState() && Mouse.getEventButton() == 0\n\t\t\t\t\t\t&& Mouse.getX() >= 278 && Mouse.getX() <= 382\n\t\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 207) && Mouse.getY() >= (displayHeight - 259)) {\n\t\t\t\t\tbulletShot = false;\n\t\t\t\t\tdoubleShot = false;\n\t\t\t\t\tlaserShot = true;\n\t\t\t\t\tcash -= 500;\n\t\t\t\t\tsound.get(\"shopBuyEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!doubleShot && cash >= 1000 && !Mouse.getEventButtonState()\n\t\t\t\t\t\t&& Mouse.getEventButton() == 0 && Mouse.getX() >= 278 && Mouse.getX() <= 382\n\t\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 319) && Mouse.getY() >= (displayHeight - 371)) {\n\t\t\t\t\tbulletShot = false;\n\t\t\t\t\tdoubleShot = true;\n\t\t\t\t\tlaserShot = false;\n\t\t\t\t\tcash -= 1000;\n\t\t\t\t\tsound.get(\"shopBuyEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (player.getHP() < 1000 && cash >= 100 && !Mouse.getEventButtonState()\n\t\t\t\t\t\t&& Mouse.getEventButton() == 0 && Mouse.getX() >= 680 && Mouse.getX() <= 784\n\t\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 207) && Mouse.getY() >= (displayHeight - 259)) {\n\t\t\t\t\tplayer.setHP(player.getHP() + 100);\n\t\t\t\t\tif (player.getHP() > 1000)\n\t\t\t\t\t\tplayer.setHP(1000);\n\t\t\t\t\tcash -= 100;\n\t\t\t\t\tsound.get(\"shopBuyEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// draw health\n\t\t\tdefaultFont.drawString(13, displayHeight - 70, \"Health: \" + player.getHP() + \"/1000\");\n\t\t\t// draw cash\n\t\t\tdefaultFont.drawString(13, displayHeight - 40, \"Cash: $\" + cash);\n\t\t\t\n\t\t\t// update display\n\t\t\tupdateDisplay();\n\t\t}\n\t}", "public void purchase() {\r\n\t\tdo {\r\n\t\t\tString id = getToken(\"Enter customer id: \");\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tint quantity = getInteger(\"Enter quantity to purchase: \");\r\n\t\t\tboolean purchased = store.purchaseWasher(id, brand, model, quantity);\r\n\t\t\tif (purchased) {\r\n\t\t\t\tSystem.out.println(\"Purchased \" + quantity + \" of \" + brand + \" \" + model + \" for customer \" + id);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Purchase unsuccessful.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Make another Purchase?\"));\r\n\t}", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "private void sellItem(ShopItem item) {\n if (!world.ifHasItem(item.getName())) {\n System.out.println(\"You don't have Item : \" + item.getName());\n return;\n }\n world.removeItem(item.getName());\n int gold = world.getCharacter().getGold().get();\n world.getCharacter().setGold(gold + item.getPrice());\n System.out.println(\"You have sold Item : \" + item.getName());\n }", "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.out.println();\r\n\t\tint productNo = getValidUserInput(scanner, shops[shopNo].getAllSales().length + 1);\r\n\t\tif (productNo > 0) {\r\n\t\t\tProduct productToBeAdd = shops[shopNo].getAllSales()[productNo - 1];\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\" Please enter the number of the item you would like to buy: \");\r\n\t\t\tint numberOfTheItems = getUserIntInput();\r\n\t\t\tcart.addProduct(productToBeAdd, numberOfTheItems);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Purchase done, going back to the menu.\");\r\n\t\tSystem.out.println();\r\n\t}", "private void printToolListMenu(Shop shop) {\n System.out.println(shop.getInventory());\n }", "private void checkSold(JComponent parent) {\n if (itemSelected.isSold()) {\n auctionItemList.removeItem(itemSelected);\n userItemList.removeItem(itemSelected);\n playSound();\n JOptionPane.showMessageDialog(parent, \"Congratulations on your purchase!\");\n updateJList();\n scrollPane.setViewportView(list);\n updateLabels();\n } else {\n JOptionPane.showMessageDialog(parent, \"Bid placed on \" + itemSelected.getItemName() + \"!\");\n currentBidLabel.setText(\"Current bid: $\" + itemSelected.getCurrentBid());\n }\n }", "public void showShopInfo(Integer shopID, Player player){\n\t\tString query = \"SELECT * FROM `shops` WHERE `shop_id`=\"+shopID+\";\";\n\t\tdebugOut(query);\n\t\ttry {\n\t\t\tPreparedStatement sql = connection.prepareStatement(query);\n\t\t\tResultSet result = sql.executeQuery();\n\t\t\tdebugOut(\"Query Done\");\n\t\t\tresult.next();\n\t\t\tdebugOut(\"Getting material\");\n\t\t\tString material= result.getString(\"itemmaterial\");\n\t\t\tdebugOut(\"getting enchantments\");\n\t\t\tString enchantments= result.getString(\"itemenchantments\");\n\t\t\tdebugOut(\"getting stock\");\n\t\t\tInteger stock= result.getInt(\"stock\");\n\t\t\tdebugOut(\"getting buy price\");\n\t\t\tInteger buy= result.getInt(\"buy\");\n\t\t\tdebugOut(\"getting sell price\");\n\t\t\tInteger sell= result.getInt(\"sell\");\n\t\t\tdebugOut(\"getting data\");\n\t\t\tString data= getData(result.getString(\"data\"));\n\t\t\tdebugOut(\"Giving all info:\");\n\t\t\tdebugOut(\"Stock:\"+stock+\" Buy:\"+buy+\" Sell:\"+sell+\" Material:\"+material+\" Data:\"+data+\" Enchantments:\"+enchantments);\n\t\t\tplayer.sendMessage(ChatColor.YELLOW+\"Shop Information:\");\n\t\t\tplayer.sendMessage(ChatColor.GREEN+\"Item: \"+ChatColor.BLUE+material);\n\t\t\tif(!data.equals( 0 ) ){\n\t\t\t\tdebugOut(\"data not null\");\n\t\t\t\tplayer.sendMessage(ChatColor.GREEN+\"Data: \"+ChatColor.BLUE+data);\n\t\t\t}\n\t\t\tif(!enchantments.equals(\"\")){\n\t\t\t\tsayEnchantments(enchantments, player);\n\t\t\t}\n\t\t\tplayer.sendMessage(ChatColor.GREEN+\"Buying Price: \"+ChatColor.BLUE+buy);\n\t\t\tplayer.sendMessage(ChatColor.GREEN+\"Selling Price: \"+ChatColor.BLUE+sell);\n\t\t\tplayer.sendMessage(ChatColor.GREEN+\"Current Stock: \"+ChatColor.BLUE+stock);\n\t\t\tplayer.sendMessage(ChatColor.YELLOW+\"Hit again to buy or activate to sell\");\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "public void listGoods() {\n\t\tfor (String goodId : goods.keySet()) {\n\t\t\tBoolean value = goods.get(goodId).forSale();\n\t\t\tSystem.out.println(goodId + \" --> For sale: \" + value);\n\t\t}\n\t}", "private ArrayList<Tool> sellTools(Shop shop, ArrayList<Tool> toolList, String selection) {\n while (selection.contentEquals(\"Y\")) {\n System.out.println(\"What is the tool ID you would like to order?\");\n int toolId = receiveNumberInput();\n System.out.println(\"How many?\");\n int quantity = receiveNumberInput();\n if (checkValidQuantity(quantity)){\n CheckToolSale(shop, toolId, quantity);\n toolList = shop.checkAllStock();\n }\n else {\n System.out.println(\"Quantity entered can not be a negative number.\");\n }\n System.out.println(\"Would you like to add more? \" +\n \"Press Y or hit any other key then press enter to continue.\");\n selection = userInput.nextLine();\n }\n return toolList;\n }", "@Command(command=\"thisisimpossibletowriteonasign\", permission=\"rs.sign.shop\")\n public static void shop(SignChangeEvent event) {\n Inventory chest = ChestFinder.findChest(event.getBlock());\n Block chestBlock = ChestFinder.findChestBlock(event.getBlock());\n \n if(chest == null) {\n event.getPlayer().sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Sign_Shop_NoChest);\n event.getBlock().breakNaturally();\n return;\n }\n \n //Get all lines and try to parse the amount\n String[] lines = event.getLines();\n Integer amount;\n \n try {\n amount = Integer.parseInt(lines[1]);\n } catch(NumberFormatException e) {\n event.getPlayer().sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Sign_Shop_InvalidAmount);\n event.getBlock().breakNaturally();\n return;\n }\n \n //Parse the third line (<sell>:<buy>)\n Matcher matcher = pattern.matcher(lines[2]);\n Float buy = 0.0F, sell = 0.0F;\n if(matcher.find()) {\n try {\n sell = Float.parseFloat(matcher.group(1));\n buy = Float.parseFloat(matcher.group(2));\n } catch(NumberFormatException e) {\n event.getPlayer().sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Sign_Shop_InvalidBuySell);\n event.getBlock().breakNaturally();\n return;\n }\n } else {\n event.getPlayer().sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Sign_Shop_NoValidBuySellLine);\n event.getBlock().breakNaturally();\n return;\n }\n \n //Check if Chest has items in it\n Boolean hasItem = false;\n ListIterator<ItemStack> itemStackListIterator = chest.iterator();\n \n while(itemStackListIterator.hasNext()) {\n ItemStack itemStack = itemStackListIterator.next();\n if(itemStack == null) continue;\n hasItem = true;\n break;\n }\n \n if(!hasItem) {\n event.getPlayer().sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Sign_Shop_ChestIsEmpty);\n event.getBlock().breakNaturally();\n return;\n }\n \n //Store the Chest\n com.geNAZt.RegionShop.Database.Model.Chest.store(event.getPlayer(), event.getBlock(), chestBlock, event.getPlayer().getWorld());\n com.geNAZt.RegionShop.Database.Table.Chest chest1 = com.geNAZt.RegionShop.Database.Model.Chest.get(chestBlock, event.getPlayer().getWorld(), false);\n \n //Store the Items\n itemStackListIterator = chest.iterator();\n Integer firstID = null;\n Byte firstData = null;\n Integer itemAmount = 0;\n ItemStack firstItemStack = null;\n while(itemStackListIterator.hasNext()) {\n ItemStack itemStack = itemStackListIterator.next();\n \n if(itemStack == null) continue;\n \n if(firstID == null) {\n firstID = itemStack.getTypeId();\n firstData = itemStack.getData().getData();\n firstItemStack = itemStack;\n \n if(Add.add(itemStack, event.getPlayer(), chest1, sell, buy, amount) == -1) {\n event.getBlock().breakNaturally();\n return;\n }\n \n itemAmount += itemStack.getAmount();\n \n continue;\n }\n \n if(itemStack.getTypeId() == firstID && itemStack.getData().getData() == firstData) {\n itemAmount += itemStack.getAmount();\n }\n }\n \n Items item = chest1.getItemStorage().getItems().iterator().next();\n item.setCurrentAmount(itemAmount);\n Database.getServer().update(item);\n \n item.getItemStorage().setItemAmount(itemAmount);\n Database.getServer().update(item.getItemStorage());\n \n //Create an itemdrop over the chest\n ItemStack itemStack = firstItemStack.clone();\n itemStack.setAmount(1);\n org.bukkit.entity.Item droppedItem = event.getPlayer().getWorld().dropItem(new Location(event.getPlayer().getWorld(), (double) chest1.getChestX() + 0.5, (double)chest1.getChestY() + 1.2, (double)chest1.getChestZ() + 0.5), itemStack);\n droppedItem.setVelocity(new Vector(0, 0.1, 0));\n NMS.safeGuard(droppedItem);\n \n //Change the Sign\n //Get the nice name\n String itemName = ItemName.getDataName(firstItemStack) + firstItemStack.getType().toString();\n if (firstItemStack.getItemMeta().hasDisplayName()) {\n itemName = \"(\" + firstItemStack.getItemMeta().getDisplayName() + \")\";\n }\n \n for(Integer line = 0; line < 4; line++) {\n event.setLine(line, ConfigManager.language.Sign_Shop_SignText.get(line).\n replace(\"%player\", event.getPlayer().getName()).\n replace(\"%itemname\", ItemName.nicer(itemName)).\n replace(\"%amount\", amount.toString()).\n replace(\"%sell\", sell.toString()).\n replace(\"%buy\", buy.toString()));\n }\n }", "public void sellGoodsForStore(HashMap<Goods, Integer> interestedGoods) {\n\t\tArrayList<Goods> listInterestedGoods = accessingGoods(interestedGoods);\n\t\t\n\t\tboolean state1 = false;\n\t\twhile(state1 == false) {\n\t\t\tSystem.out.println(\"(99) Cancel sell\");\n\t\t\tprintGoods(interestedGoods, \"Goods that store want to buy: \");\n\t\t\tSystem.out.println(\"Select the goods you want to sell\");\n\t\t\tint selectedAction = scanner.nextInt();\n\t\t\ttry { \n\t\t\t\tif (selectedAction == 99) {\n\t\t\t\t\tstate1 = true;\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\t\t\t\telse if (selectedAction <= interestedGoods.size() && selectedAction > 0) {\n\t\t\t\t\tGoods selectedGoods = listInterestedGoods.get(selectedAction - 1);\n\t\t\t\t\t\n\t\t\t\t\tif (game.checkAvailability(selectedGoods)){\n\t\t\t\t\t\tSystem.out.println(\"You have \" + selectedGoods.getQuantityOwned() +\" \"+ selectedGoods.getName() + \" stored in your ship!\");\n\t\t\t\t\t\tint goodsPrice = interestedGoods.get(selectedGoods);\n\t\t\t\t\t\tboolean state2 = false;\n\t\t\t\t\t\twhile(state2 == false) {\n\t\t\t\t\t\t\tSystem.out.println(\"How many do you want to sell?\" );\n\t\t\t\t\t\t\tint quantity = scanner.nextInt();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry { \n\t\t\t\t\t\t\t\tif (game.checkQuantity(quantity, selectedGoods)) {\n\t\t\t\t\t\t\t\tstate2 = true;\n\t\t\t\t\t\t\t\tgame.sellGoods(selectedGoods, quantity, goodsPrice);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"You don't have that many quanity of \" + selectedGoods.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have to input an integer!\");\n\t\t\t\t\t\t\t\tscanner.nextLine();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"You don't have the item!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\t\n\t}", "public void buySellFood(boolean buy, Player customer) {\n if (buy && foodQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Food in the store\");\n } else {\n if (buy) {\n if (customer.getMoney() >= foodCost) {\n foodQuantity--;\n customer.addSubMoney(-foodCost);\n customer.addSubFood(1);\n if (foodQuantity == 0) {\n foodCost = 30;\n } else {\n foodCost += 2;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item.\");\n }\n } else {\n if (customer.getFood() >= 1) {\n customer.addSubMoney(foodCost - 5);\n if (foodQuantity == 0) {\n foodCost = 30;\n } else {\n foodCost -= 2;\n }\n customer.addSubFood(-1);\n foodQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have any of this item to sell\");\n }\n }\n }\n }", "private void CheckToolSale(Shop shop, int toolId, int quantity) {\n if (shop.decreaseToolStock(toolId, quantity)) {\n System.out.println(\"Successfully sold item for: $\" + shop.getToolPrice(toolId)\n * quantity);\n } else if (shop.searchInventory(toolId)) {\n System.out.println(\"Cannot sell more than what is currently in stock.\");\n } else {\n System.out.println(\"Invalid toolId inputted.\");\n }\n }", "@FXML\r\n public void makeSale(ActionEvent event) throws Exception {\r\n // TODO:\r\n // K, here's what needs to happen to beautify this:\r\n // ShipBar needs to extend javafx.scene.control.Toggle,\r\n // and then we can use ToggleGroup.getSelectedToggle()\r\n // rather than this shit\r\n Map<String, ShipType> ships = Data.SHIPS.get();\r\n for (ShipBar bar : buyShips.getItems()) {\r\n if (bar.isSelected()) {\r\n ShipType ship = ships.get(bar.getKey());\r\n int playerCash = player.getMoney();\r\n int price = ship.getPrice() - currentShip.getNetWorth();\r\n if (!(playerCash < price)) {\r\n // TODO: use a dedicated class to facilitate ship upgrades\r\n // the same way Transaction is used for goods\r\n Ship newShip = new Ship(ship);\r\n player.setShip(newShip);\r\n player.setMoney(playerCash - price);\r\n // update labels\r\n fillLabels();\r\n // rebuild ships list (?)\r\n currentShip = player.getShip();\r\n buildShipsList();\r\n }\r\n /*else {\r\n // TODO: warning: not enough money\r\n\r\n }*/\r\n // TODO: don't use a for loop here (see above)\r\n break;\r\n }\r\n }\r\n }", "public String getMonsterDropsLoot() {\r\n String res;\r\n Random gen = new Random();\r\n if (gen.nextInt(100) > 75) {\r\n int tmp = gen.nextInt(items.size());\r\n player.addToInventory(items.get(tmp));\r\n res = \"You search the corpse and loot a \" + items.get(tmp).getName() + System.lineSeparator();\r\n } else {\r\n res = \"You find nothing of value on the corpse.\" + System.lineSeparator();\r\n }\r\n return res;\r\n }", "boolean sellWeaponsForUser(int uid, List<Integer> wIds);", "private void displaySell()\r\n {\r\n\r\n System.out.println(\"To sell:\");\r\n for(HardwareDevice devices: hardwares)\r\n {\r\n\r\n devices.displayDescription();\r\n }\r\n }", "private void buyItem(ShopItem item) {\n int gold = world.getCharacter().getGold().get();\n if (world.isSurvivalMode() && item.getName().equals(\"Potion\")){\n this.potionNum = 0;\n System.out.println(\"This shop has 0 Potion left.\");\n }\n if (world.isBerserkerMode() && \n (item.getName().equals(\"Helmet\")\n || item.getName().equals(\"Shield\")\n || item.getName().equals(\"Armour\"))){\n this.defenseNum = 0;\n System.out.println(\"This shop has 0 defensive item left.\");\n }\n if (item.getPrice() > gold) {\n System.out.println(\"You don't have enough money.\");\n }\n loadItem(item.getName());\n world.getCharacter().setGold(gold - item.getPrice());\n System.out.println(\"You have bought Item : \" + item.getName() + \".\");\n }", "private void printSupplierList(Shop shop) {\n System.out.println(shop.supplierListToString());\n }", "private static int sellGold(String itemToSell){\r\n int goldReceived = 0;\r\n if(itemToSell.equals(\"Leather Helmet\")){\r\n leatherHelmet LeatherHelmet = new leatherHelmet();\r\n goldReceived = LeatherHelmet.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Chest Plate\")){\r\n leatherChestPlate LeatherChestPlate = new leatherChestPlate();\r\n goldReceived = LeatherChestPlate.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Short Sword\")){\r\n shortSword ShortSword = new shortSword();\r\n goldReceived = ShortSword.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Long Sword\")){\r\n longSword LongSword = new longSword();\r\n goldReceived = LongSword.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Great Sword\")){\r\n greatSword GreatSword = new greatSword();\r\n goldReceived = GreatSword.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Healing Potion\")){\r\n healingPotion HealingPotion = new healingPotion();\r\n goldReceived = HealingPotion.getHealingPotionSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Greater Healing Potion\")){\r\n greaterHealingPotion GreaterHealingPotion = new greaterHealingPotion();\r\n goldReceived = GreaterHealingPotion.getGreaterHealingPotionSellPrice();\r\n return goldReceived;\r\n }else{\r\n return goldReceived;\r\n }\r\n }", "public void useWheelChair(String secondWord)\n {\n if(secondWord == null){\n System.out.println(\"Take who?\");\n }\n else{\n //if there are items in the rooms\n if(currentRoom.emptyRoom() == false){\n Item chairWheel = null;\n for(Item chairWheelItem : inventory){\n if(chairWheelItem.getId().equals(\"wheelchair\")){\n chairWheel = chairWheelItem;\n }\n }\n if(chairWheel != null){\n maxWeight = 100;\n Item patient = currentRoom.getItemRoom(secondWord);\n if(patient != null){\n patient.changePickUpItem(true);\n if(patient.canBePickedUp() == true){\n if((inventoryWeight + patient.getItemWeight()) <= maxWeight){\n //take current item\n inventory.add(patient);\n inventoryWeight += patient.getItemWeight();\n currentRoom.removeItem(patient.getId());\n System.out.println(\"You are moving the patient: \" + patient.getId() + \".\");\n }\n else{\n System.out.println(\"You canīt get over the max weight.\");\n }\n }\n else{\n System.out.println(\"This patient canīt be moved.\");\n }\n }\n else{\n System.out.println(\"This patient donīt exist.\");\n }\n }\n else{\n System.out.println(\"You havenīt the wheelchair in your inventory.\");\n }\n }\n else{\n System.out.println(\"There are no items to take in this room.\");\n }\n }\n }", "public void addWasher() {\r\n\t\tdo {\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tdouble price = getDouble(\"Enter washer price: \");\r\n\t\t\tWasher washer = store.addWasher(brand, model, price);\r\n\t\t\tif (washer != null) {\r\n\t\t\t\tSystem.out.println(washer);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Would you like to add another washer?\"));\r\n\t}", "public void goBikeRentedListScreen(ActionEvent actionEvent) throws IOException {\n App.getInstance().display_BikeRentedListScreen(App.userID);\n }", "public int getAmountSold() { return amountSold; }", "private void goToShop() {\n shopMenu.runMenu();\n }", "public void itemsSold() {\n quanitySnacks--;\n }", "public void shop(){\n boolean loop = true;\n \n printInventory();\n \n while (loop){\n System.out.println(\"Would you like to buy a book or a beverage or are you ready to checkout?\");\n userChoice = scnr.next();\n \n if (userChoice.equalsIgnoreCase(\"book\")){\n String n = scnr.nextLine();\n bookChecker(bookInputRangeChecker(\"Please choose a number between 1-5!\", 1, 5));\n }\n else if(userChoice.equalsIgnoreCase(\"beverage\")){\n String n = scnr.nextLine();\n beverageChecker(beverageInputRangeChecker(\"Please choose a number between 1-3!\", 1, 3));\n }\n else if (userChoice.equalsIgnoreCase(\"checkout\")){\n System.out.println(\"Thank you for shopping at \" + storeName + \". You bought: \" + currentOrder);\n loop = false;\n }\n else {\n System.out.println(\"This choice has not been recognized as a book, beverage, or checkout.\");\n }\n }\n }", "@Override\n public String execute(Actor actor, GameMap map) {\n player = (Player) actor;\n int option;\n Scanner scanner = new Scanner(System.in);\n // Show shop description and let player enter the option\n display.println(\"<-------------------------------------SHOP-------------------------------------------->\");\n display.println(\"Current Inventory List: \" + player.getInventory().toString());\n display.println(\"Current available eco points: \"+ player.getEcoPoint());\n display.println(\"Select an option to buy the item (Item option: Item(Eco Points required per item))\");\n display.println(\"FOOD--> 1: Fruit(30) 2: Vegetarian Meal Kit(100) 3. Meat Meal Kit(500)\");\n display.println(\"EGG--> 4. Stegosaur Egg(200) 5. Brachiosaur Egg(500) 6. Allosaur Egg(1000) 7. Pterodactyl Egg(300)\");\n display.println(\"OTHER--> 8. Laser Gun(500) 0. Exit\");\n display.println(\"<------------------------------------------------------------------------------------->\");\n display.println(\"Option: \");\n option = scanner.nextInt();\n // if the player successfully purchase an item, return the message\n if(shop.canPurchase(player, option)){\n ans = \"Player bought item \" + option;\n }\n // else if player has no enough money or player enter wrong item option, return the message\n else{\n ans = \"Player bought nothing\";\n }\n // show player current inventory\n display.println(player.getInventory().toString());\n return ans;\n }", "private void goShopping(User user, Scanner sc) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"Store Inventory\\n\");\n\t\t\tList<Item> items = cService.seeItemsOnSale();\n\t\t\titems.stream().forEach(item -> log.info(item));\n\n\t\t\tlog.info(\"Welcome to the NYC Grocery Store\\n\");\n\n\t\t\tlog.info(\"Choose an option:\");\n\t\t\tlog.info(\"\t\tPress 1 to Make an Offer on an Item\");\n\t\t\tlog.info(\"\t\tPress anything else to go to the MAIN CUSTOMER DASHBOARD\");\n\t\t\tString choice = sc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tcase \"1\":\n\t\t\t\tmakeAnOffer(user, sc);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.info(\"\\nGoing back to the CUSTOMER DASHBOARD\\n\");\n\t\t\t\trun = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (run);\n\n\t}", "@SuppressWarnings(\"FeatureEnvy\")\n @SuppressLint(\"SetTextI18n\")\n @Override\n public void sellItem(String goods, int price) {\n @SuppressWarnings(\"ChainedMethodCall\") int max = player.getInven().get(goods.toLowerCase());\n if ((max - Integer.parseInt(inputStr)) >= 0) {\n player.getInven().put(goods.toLowerCase(), player.getInven().get(goods.toLowerCase())\n -Integer.parseInt(inputStr));\n player.setCargo(player.getCargo() - Integer.parseInt(inputStr));\n player.setCredit(player.getCredit() + (Integer.parseInt(inputStr) * price));\n bay.setText(String.valueOf(player.getCargo()) + \"/\" + player.getSpaceship().getBay());\n credit.setText(String.valueOf(player.getCredit()) + \" Cr\");\n setupInverntory();\n Toast.makeText(getApplicationContext(), \"You sold \" + inputStr + \" \" + goods,\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"You can not sell anymore. Check your bay.\", Toast.LENGTH_LONG).show();\n }\n }", "public List<ShelfItem> getAllWishlist(String filter, String username, Integer from, Integer to);", "public void getAttackedByDarknessMagicBook(IEquipableItem item){item.strongAttackTo(this.getOwner());}", "public void buySellEnergy(boolean buy, Player customer) {\n if (buy && energyQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Energy in the store\");\n } else {\n if (buy) {\n if (customer.getMoney() >= energyCost) {\n energyQuantity--;\n customer.addSubMoney(-energyCost);\n customer.addSubEnergy(1);\n if (energyQuantity == 0) {\n energyCost = 25;\n } else {\n energyCost += 2;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n } else {\n if (customer.getEnergy() >= 1) {\n customer.addSubMoney(energyCost - 5);\n if (energyQuantity == 0) {\n energyCost = 25;\n } else {\n energyCost -= 2;\n }\n customer.addSubEnergy(-1);\n energyQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have any of this item to sell\");\n }\n }\n }\n }", "private void printSearchToolNameMenu(Shop shop) {\n System.out.println(\"What is the name of the tool you would like to look up?\");\n String toolName = this.userInput.nextLine();\n if (shop.searchInventory(toolName.toLowerCase())) {\n System.out.println(toolName + \" is in the shop.\");\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }", "public boolean isSold() {\n return sold;\n }", "@Override\n public String getItemName() {\n\treturn \"Goblin Sword\";\n }", "public void getKilledProduct() \n {\n try{\n Player.getInstance().getInventory().add(new CowMeat());\n } catch (IllegalAccessException e) {\n //Do nothing\n }\n }", "public int getUnitsSold(){\n\t\treturn unitsSold;\n\t}", "public void showSellItem(){\n\t\tListView view = (ListView) getView().findViewById(R.id.itemshopList);\n\t\tview.setVisibility(View.VISIBLE);\n\t\t\n\t\tMainGameActivity.setShopCode((Integer) 2);\n\t\t\n\t\t ArrayList<Item> itemList = MainGameActivity.getPlayerFromBackpack().GetItem();\n\t\t \n\t\t ArrayAdapter<Item> arrayAdapter = new ArrayAdapter<Item>(this.getActivity(),android.R.layout.simple_list_item_1, itemList);\n\t\t view.setAdapter(arrayAdapter); \n\n\t\t final Context ctx = this.getActivity();\n\t\t \n\t\t view.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\t \n\t\t @Override\n\t\t public void onItemClick(AdapterView<?> parent, final View view,\n\t\t int position, long id) {\n\t\t \t \n\t\t final Item item = (Item) parent.getItemAtPosition(position);\n\t\t \t// custom dialog\n\t\t\t\t\tfinal Dialog dialog = new Dialog(ctx);\n\t\t\t\t\tdialog.setContentView(R.layout.shop_dialog);\n\t\t\t\t\tdialog.setTitle(\"Buy \" + item.GetName());\n\t\t \n\t\t\t\t\t// set the custom dialog components - text, image and button\n\t\t\t\t\tfinal EditText editText = (EditText) dialog.findViewById(R.id.amountofItem);\n\t\t\t\t\t\n\t\t\t\t\tTextView text = (TextView) dialog.findViewById(R.id.currentMoney);\n\t\t\t\t\ttext.setText(\"Current Money: \" + MainGameActivity.getPlayerFromBackpack().GetMoney());\n\n\t\t \n\t\t\t\t\tButton sellButton = (Button) dialog.findViewById(R.id.button2shop);\n\t\t\t\t\tButton backButton = (Button) dialog.findViewById(R.id.button1shop);\t\t\n\t\t\t\t\t\n\t\t\t\t\tsellButton.setText(\"Sell\");\n\t\t\t\t\t//if button is clicked, buy\n\t\t\t\t\tsellButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t/* Sell sequence here */\n\t\t\t\t\t\t\tInteger Amount = Integer.valueOf(editText.getText().toString());\n\t\t\t\t\t\t\tif ((Amount > 0) && (Amount <= item.GetNItem())){\n\t\t\t\t\t\t\t\tMainGameActivity.getPlayerFromBackpack().SetMoney(MainGameActivity.getPlayerFromBackpack().GetMoney() + Amount * item.GetPrice() / 2);\n\t\t\t\t\t\t\t\titem.SetNItem(item.GetNItem() - Amount);\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\tshowSellItem();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/* Showing message that Amount is not valid */\n\t\t\t\t\t\t\t\tTextView textError = (TextView) dialog.findViewById(R.id.messageItem);\n\t\t\t\t\t\t\t\ttextError.setText(\"Amount is not valid!\");\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}); \t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// if button is clicked, close the custom dialog\n\t\t\t\t\tbackButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t}); \n\t\t \n\t\t\t\t\tdialog.show();\n\t\t }\n\t\t });\t\n\t}", "public void buySellChrystite(boolean buy, Player customer) {\n if (buy && crysQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Crystite in the store.\");\n } else {\n if (buy) {\n crysQuantity--;\n if (customer.getMoney() >= crysCost) {\n customer.addSubMoney(-crysCost);\n customer.addSubCrystite(1);\n if (crysQuantity == 0) {\n crysCost = 100;\n } else {\n crysCost += 10;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n } else {\n if (customer.getCrystite() >= 1) {\n customer.addSubMoney(crysCost-15);\n if (crysQuantity == 0) {\n crysCost = 100;\n } else {\n crysCost -= 10;\n }\n customer.addSubCrystite(-1);\n crysQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n }\n }\n }", "private void printCheckItemQuantityMenu(Shop shop) {\n System.out.println(\"What is the ID of the tool you would like to look up?\");\n int itemId = receiveNumberInput();\n if (shop.searchInventory(itemId)) {\n System.out.println(\"Quantity: \" + shop.checkToolStock(itemId));\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n addToBot(new DamageAction(m, new DamageInfo(p, damage, damageTypeForTurn), AbstractGameAction.AttackEffect.BLUNT_LIGHT));\n int count = 0;\n for (AbstractMonster monster : AbstractDungeon.getMonsters().monsters) {\n if (!monster.isDeadOrEscaped()) {\n count++;\n }\n }\n if (count > 1) {\n addToBot(new DamageAllEnemiesAction(p, multiDamage, damageTypeForTurn, AbstractGameAction.AttackEffect.BLUNT_LIGHT));\n }\n }", "public TransactionResponse sellEnchant() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\tCalculation calc = hc.getCalculation();\r\n \t\tAccount acc = hc.getAccount();\r\n \t\tLog log = hc.getLog();\r\n \t\tNotification not = hc.getNotify();\r\n \t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\ttry {\r\n \t\t\tString nenchant = \"\";\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tPlayer p = hp.getPlayer();\r\n \t\t\tnenchant = hyperObject.getMaterial();\r\n \t\t\tEnchantment ench = Enchantment.getByName(nenchant);\r\n \t\t\tint lvl = Integer.parseInt(hyperObject.getName().substring(hyperObject.getName().length() - 1, hyperObject.getName().length()));\r\n \t\t\tint truelvl = im.getEnchantmentLevel(p.getItemInHand(), ench);\r\n \t\t\tif (im.containsEnchantment(p.getItemInHand(), ench) && lvl == truelvl) {\r\n \t\t\t\tdouble dura = p.getItemInHand().getDurability();\r\n \t\t\t\tdouble maxdura = p.getItemInHand().getType().getMaxDurability();\r\n \t\t\t\tdouble duramult = (1 - dura / maxdura);\r\n \t\t\t\tif (p.getItemInHand().getType().equals(Material.ENCHANTED_BOOK)) {\r\n \t\t\t\t\tduramult = 1;\r\n \t\t\t\t}\r\n \t\t\t\tString mater = p.getItemInHand().getType().toString();\r\n \t\t\t\tdouble price = hyperObject.getValue(EnchantmentClass.fromString(mater));\r\n \t\t\t\tdouble fprice = duramult * price;\r\n \t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\tif (acc.checkshopBalance(fprice) || sunlimited) {\r\n \t\t\t\t\tim.removeEnchantment(p.getItemInHand(), ench);\r\n \t\t\t\t\tdouble shopstock = hyperObject.getStock();\r\n \t\t\t\t\thyperObject.setStock(shopstock + duramult);\r\n \t\t\t\t\tdouble salestax = hp.getSalesTax(fprice);\r\n \t\t\t\t\tacc.deposit(fprice - salestax, p);\r\n \t\t\t\t\tacc.withdrawShop(fprice - salestax);\r\n \t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tfprice = calc.twoDecimals(fprice);\r\n \t\t\t\t\tresponse.addSuccess(L.f(L.get(\"ENCHANTMENT_SELL_MESSAGE\"), 1, calc.twoDecimals(fprice), hyperObject.getName(), calc.twoDecimals(salestax)), calc.twoDecimals(fprice - salestax), hyperObject);\r\n \t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t}\r\n \t\t\t\t\tlog.writeSQLLog(p.getName(), \"sale\", hyperObject.getName(), 1.0, fprice - salestax, salestax, playerecon, type);\r\n \r\n \t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\tnot.setNotify(hyperObject.getName(), mater, playerecon);\r\n \t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"ITEM_DOESNT_HAVE_ENCHANTMENT\"), hyperObject.getName()), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"ETransaction sellEnchant() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public static void giveStuff(GamePlayer player) {\r\n\t\tItemStack sword = new ItemStack(Material.WOOD_SWORD);\r\n\t\tItemStack bow = new ItemStack(Material.BOW);\r\n\t\tItemStack arrow = new ItemStack(Material.ARROW);\r\n\t\tItemStack compass = new ItemStack(Material.COMPASS);\r\n\t\tItemMeta compassMeta = sword.getItemMeta();\r\n\t\tItemMeta swordMeta = sword.getItemMeta();\r\n\t\tItemMeta bowMeta = sword.getItemMeta();\r\n\t\t\r\n\t\tplayer.getPlayer().getInventory().clear();\r\n\t\tswordMeta.spigot().setUnbreakable(true);\r\n\t\tsword.setItemMeta(swordMeta);\r\n\t\tsword.setAmount(1);\r\n\t\t\r\n\t\tbowMeta.spigot().setUnbreakable(true);\r\n\t\tbowMeta.setDisplayName(\"§aSniper§r §7(One Shot Kill)\");\r\n\t\tbow.setItemMeta(bowMeta);\r\n\t\tbow.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 10);\r\n\t\tbow.setAmount(1);\r\n\t\t\r\n\t\tarrow.setAmount(1);\r\n\t\t\r\n\t\tcompassMeta.setDisplayName(\"§aTarget Tracker\");\r\n\t\tcompass.setItemMeta(compassMeta);\r\n\t\tcompass.setAmount(1);\r\n\t\t\r\n player.getPlayer().getInventory().addItem(sword);\r\n player.getPlayer().getInventory().addItem(bow);\r\n player.getPlayer().getInventory().addItem(arrow);\r\n player.getPlayer().getInventory().addItem(compass);\r\n\t}", "private void printSearchToolIDMenu(Shop shop) {\n System.out.println(\"What is the ID of the tool you would like to look up?\");\n int itemId = receiveNumberInput();\n if (shop.searchInventory(itemId) == true) {\n System.out.println(itemId + \" is in the shop.\");\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }", "public void listHomeForSale(String mlsNumber,double price) {\n\t\t\n\t\tthis.isActiveListing = true;\n this.mlsNumber = mlsNumber;\t\t\n\t\tthis.price = price;\n\t\t\n\t}", "@Override\n\tpublic void enterStore(Store store) {\n\t\tHashMap<Goods, Integer> sellGoods = store.getSellGoods();\n\t\tHashMap<Goods, Integer> interestedGoods = store.getInteresedGoods();\n\t\tEquipment equipment = store.getEquipment();\n\t\tint currentMoney = game.getMoney();\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Your current money is: \" + currentMoney);\n\t\t\tif (!game.checkMyShipHealth()) {\n\t\t\t\tint cost = 100 - (game.getSelectedShip().getShipsStatus());\n\t\t\t\tSystem.out.println(\"Your ship repairment cost is: \" + cost);\n\t\t\t}\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\tSystem.out.println(\"(2) See goods that for sale\");\n\t\t\tSystem.out.println(\"(3) See goods that interested by the store\");\n\t\t\tSystem.out.println(\"(4) See equipment for your ship\");\n\t\t\tSystem.out.println(\"(5) Repair my ship\");\n\t\t\ttry { \n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction <= 5 && selectedAction > 0) {\n\t\t\t\tstate = true;\n\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\tgame.backToMain();\n\t\t\t\t}\n\t\t\t\telse if (selectedAction == 2) \n\t\t\t\t{\n\t\t\t\t\tbuyGoodsFromStore(sellGoods);\n\t\n\t\t\t\t}\n\t\t\t\telse if (selectedAction == 3) {\n\t\t\t\t\tsellGoodsForStore(interestedGoods);\n\t\t\t\t}\n\t\t\t\telse if (selectedAction == 4) {\n\t\t\t\t\tthis.buyEquipment(equipment, store);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgame.repairMyShip();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t}", "public void buyGoodsFromStore(HashMap<Goods, Integer> sellGoods) {\n\t\tArrayList<Goods> myList = accessingGoods(sellGoods);\n\t\tboolean state1 = false;\n\t\t\n\t\twhile(state1 == false) {\n\t\t\tprintGoods(sellGoods, \"Goods that store sell:\");\n\t\t\tSystem.out.println(\"(99) Cancel purchase\");\n\t\t\tSystem.out.println(\"Select the goods you want to buy\");\n\t\t\tint selectedAction = scanner.nextInt();\n\t\t\ttry { \n\t\t\t\tif (selectedAction == 99) {\n\t\t\t\t\tstate1 = true;\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\n\t\t\t\telse if (selectedAction <= sellGoods.size() && selectedAction > 0) {\n\t\t\t\t\tGoods selectedGoods = myList.get(selectedAction - 1);\n\t\t\t\t\tint goodsPrice = sellGoods.get(selectedGoods);\n\t\t\t\t\tif (game.checkConditionsForBuying(1, selectedGoods, goodsPrice) == true) \n\t\t\t\t\t{\n\t\t\t\t\t\tboolean state2 = false;\n\t\t\t\t\t\twhile(state2 == false) {\n\t\t\t\t\t\t\tSystem.out.println(\"How many do you want to buy?\" );\n\t\t\t\t\t\t\ttry { \n\t\t\t\t\t\t\t\tint quantity = scanner.nextInt();\n\t\t\t\t\t\t\t\tif (game.checkConditionsForBuying(quantity, selectedGoods, goodsPrice) == true) {\n\t\t\t\t\t\t\t\tstate2 = true;\n\t\t\t\t\t\t\t\tgame.buyGoods(quantity, selectedGoods, goodsPrice);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Purchase Succesful!\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"You either don't have enough money or enough capacity\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have to input an integer!\");\n\t\t\t\t\t\t\t\tscanner.nextLine();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"You either don't have enough money or enough capacity even to buy 1 item\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\t\n\t}", "public void buy(Spell spell) {\n\n\t\t// Calculate total cost of transaction first to see if possible\n\t\tint totalCost = spell.getCost();\n\n\t\t// Remove correct sum of money from user's Inventory\n\t\tplayer.getInventory().removeMoney(totalCost);\n\t\tplayerMon -= totalCost;\n\n\t\t// Remove correct number of items from Merchant's Inventory\n\t\tsb.remove(spell);\n\n\t\tplayer.getBook().add(spell);\n\t}", "public void setShopNm(String shopNm) {\n this.shopNm = shopNm;\n }", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n //give player plated armor\n AbstractDungeon.actionManager.addToBottom( // 2.Gain plated armor\n new com.megacrit.cardcrawl.actions.common.ApplyPowerAction(AbstractDungeon.player, AbstractDungeon.player,\n new com.megacrit.cardcrawl.powers.PlatedArmorPower(AbstractDungeon.player, 3), 3));\n }", "private static void caloriesBurned(String loserName)\n {\n System.out.println(\"Loser \" + loserName + \" did not get weighed\");\n }", "public List<Goods> list(String mohu) {\n\t\treturn goodsDao.list(mohu);\n\t}", "public void bookSale(Sale sale)\n {\n //books the sale\n }", "@Override\n public void sell() {\n }", "public void purchaseItem(PlayerModel mod, TowerModel model){\n\t\tint money = mod.getMoney();\n\t\tSystem.out.println(money);\n\t\tsandDollars = money - model.getPrice();\n\t\tSystem.out.println(sandDollars);\n\t\tsandDollarsLabel.setText(\"\" + sandDollars);\n\t}", "public void updateMonster(LeveledMonster monster){\n if (enabled){\n for (LeveledMonster m : allMonsters){\n if (m.getName().equals(monster.getName())){\n m.setSpawnWeight(monster.getSpawnWeight());\n m.setLootTables(monster.getLootTables());\n m.setKarmaInfluence(monster.getKarmaInfluence());\n m.setExpDropped(monster.getExpDropped());\n m.setEnabled(monster.isEnabled());\n m.setDropsDefaultLootTable(monster.isDropsDefaultLootTable());\n m.setEquipment(monster.getHelmet(), monster.getChestPlate(), monster.getLeggings(), monster.getBoots(), monster.getMainHand(), monster.getOffHand());\n m.setBaseHealth(monster.getBaseHealth());\n m.setWorldFilter(monster.getWorldFilter());\n m.setMaxYRange(monster.getMaxYRange());\n m.setMinYRange(monster.getMinYRange());\n m.setBiomeFilter(monster.getBiomeFilter());\n m.setDisplayNameVisible(monster.isDisplayNameVisible());\n m.setBoss(monster.isBoss());\n m.setAbilities(monster.getAbilities());\n m.setHelmetDropChance(monster.getHelmetDropChance());\n m.setChestplateDropChance(monster.getChestplateDropChance());\n m.setLeggingsDropChance(monster.getLeggingsDropChance());\n m.setBootsDropChance(monster.getBootsDropChance());\n m.setMainHandDropChance(monster.getMainHandDropChance());\n m.setOffHandDropChance(monster.getOffHandDropChance());\n m.setBiomeFilter(monster.getBiomeFilter());\n break;\n }\n }\n }\n }", "@Override\r\n public void use(AbstractPlayer p, AbstractMonster m) {\r\n // Gain Block\r\n AbstractDungeon.actionManager.addToBottom(new GainBlockAction(p, p, block));\r\n\r\n // Food eaten += 3\r\n this.addToBot(new ApplyPowerAction(p, p, new FoodEatenPower(p, p, baseMagicNumber)));\r\n }", "public ResultSet getItemListForSold() throws IllegalStateException{\n\t \n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n\t try{\n\t \t stmt = con.createStatement();\n String queryString = \"SELECT INUMBER , INAME , auc_start, auc_end_date , startbid , currentbid , CURRENTBID-STARTBID \" \n \t\t+ \"FROM ITEM \"\n + \" WHERE SELLERNO = '\" + this.id +\"' AND STATUS = 'SOLD' \"\n \t+\"GROUP BY SELLERNO, INUMBER, INAME, auc_start, auc_end_date,\"+ \n \t\t\" startbid, currentbid, CURRENTBID-STARTBID\";\n\n result = stmt.executeQuery(queryString);\n \n\t }\n\t catch (Exception E) {\n\t E.printStackTrace();\n\t }\n\t return result; \n\t }", "public void printWeaponShop(List<Weapon> list, boolean isBuy) {\n\t\tSystem.out.println(\"Weapon List\");\n\t\t//String name, BigDecimal price, int minLevelReq, BigDecimal weaponDmg, int handWield\n\t\tSystem.out.println(\"ID\\tName\\t\\tPrice\\tMin Level \\tDamage\\tHands to Wield\");\n\t\tSystem.out.println(\"============================================================================================\");\n\t\tint id = 1;\n\t\tfor(Weapon w : list) {\n\t\t\n\t\t\tSystem.out.printf(id++ + \"\\t\" + w.getName() + \"\\t\\t\");\n\t\t\t\n\t\t\tif(isBuy) {\n\t\t\t\tSystem.out.printf(w.getPrice().toString());\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(w.getPrice().multiply(new BigDecimal(\"0.5\")).toString());\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\t\"+ w.getMinLevelReq() + \"\\t\" + w.getWeaponDmg()\n\t\t\t\t\t+ \"\\t\\t\" + w.getHandWield());\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "public void use(AbstractPlayer p, AbstractMonster m) {\n for (AbstractMonster mo : AbstractDungeon.getCurrRoom().monsters.monsters)\n {\n if (!mo.isDeadOrEscaped())\n {\n AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new StrengthPower(mo, this.magicNumber), this.magicNumber));\n AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new VulnerablePower(mo, DEBUFF, false), DEBUFF));\n }\n }\n }", "public void setSold(int sold) {\n\t\t\n\t\tsold_ = sold;\n\t}", "public void buy(String n,int shares, Stock s){\n boolean own = false;\n for (PersonStocks x :myStocks) {//if the name is a stock that exists\n if(n.equals(x.getName())) {\n x.addShares(shares);\n money-= (s.getPrice()*shares);\n own = true;\n }\n }\n if (!own){//makes the user own it now\n myStocks.add(new PersonStocks(n,shares));\n money-= (s.getPrice()*shares);\n\n }\n\n }", "public static void shopMenu(Lookup lookup) throws InvalidInputException, IOException {\r\n\t\t\r\n\t\tint option = -1;\r\n\t\t\r\n\t\twhile(option != 4) {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\t// print menu options\r\n\t\t\t\tSystem.out.println(\"\\n1- Flowers List! \\n\"\r\n\t\t\t\t+ \"2- My Cart \\n\" + \"3- Bill \\n\"\r\n\t\t\t\t+ \"4- Exit \\n\" + \"Select one of these options: \");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tString line = sc.next();\t\t\r\n\t\t\t\toption = convert(line);\r\n\t\t\t\t\r\n\t\t\t\tif( (0 >= option) || (5 <= option) ) {\r\n\t\t\t\t\tthrow new InvalidInputException(\"Invalid option\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tswitch(option) {\r\n\t\t\t\t\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tSystem.out.println(lookup);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tboolean browse = true;\r\n\r\n\t\t\t\t\twhile (browse) {\r\n\t\t\t\t\t\tbrowse = flowerMenu(lookup);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tString list = sUser.toString();\r\n\t\t\t\t\tif (list == null) {\r\n\t\t\t\t\t\tSystem.err.println(\"Your Shopping Cart is empty.\");\r\n\t\t\t\t\t\tSystem.err.flush();\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tSystem.out.println(sUser);\r\n\t\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\"Do you want to purchase these items(Y,N)?\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString y_n = sc.next().toLowerCase();\r\n\t\t\t\t\t\tif (y_n.equals(\"y\")) {\r\n\t\t\t\t\t\t\tsUser.writeBill();\r\n\t\t\t\t\t\t\tSystem.err.flush();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tsUser.readBill();\r\n\t\t\t\t\tSystem.err.flush();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch(InvalidInputException ii) {\r\n\t\t\t\tSystem.err.println(ii.getMessage());\r\n\t\t\t\tSystem.err.flush();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.exit(0);\r\n\t\t\r\n\t}", "public ShopDialog(String title, Skin skin, TextureManager manager) {\n\t\tsuper(title, skin);\n\t\tthis.getTitleLabel().setAlignment(Align.center);\n\t\tthis.textureManager = manager;\n\t\t// Making the items table to buy from\n\t\tthis.getContentTable().debugCell();\n\t\tthis.getContentTable().left();\n\t\tthis.skin = skin;\n\n\t\tthis.technologyManager = (TechnologyManager) GameManager.get()\n\t\t\t\t.getManager(TechnologyManager.class);\n\n\t\tstatus = new Label(\"Welcome to the shop!\", skin);\n\n\t\tscrollTable = new Table();\n\t\tscrollTable.top();\n\t\tscrollTable.debugCell();\n\t\tscrollTable.add(new Label(\"Item\", skin)).width(iconSize).top().center();\n\t\tscrollTable.add(new Label(\"Description\", skin)).width(iconSize)\n\t\t\t\t.expandX().top().left();\n\t\tscrollTable.add(new Label(\"Cost\", skin)).width(iconSize).top();\n\t\tscrollTable.row();\n\n\t\tthis.technologyManager = (TechnologyManager) GameManager.get()\n\t\t\t\t.getManager(TechnologyManager.class);\n\t\tif (technologyManager.armourIsUnlocked(1)) {\n\t\t\tunlockArmours(1);\n\t\t}\n\t\tif (technologyManager.armourIsUnlocked(2)) {\n\t\t\tunlockArmours(2);\n\t\t}\n\t\tif (technologyManager.armourIsUnlocked(3)) {\n\t\t\tunlockArmours(3);\n\t\t}\n\t\tif (technologyManager.weaponIsUnlocked(1)) {\n\t\t\tunlockWeapons(1);\n\t\t}\n\t\tif (technologyManager.weaponIsUnlocked(2)) {\n\t\t\tunlockWeapons(2);\n\t\t}\n\t\tif (technologyManager.weaponIsUnlocked(3)) {\n\t\t\tunlockWeapons(3);\n\t\t}\n\t\tif (technologyManager.specialIsUnlocked()) {\n\t\t\tunlockSpecials();\n\t\t}\n\n\t\t// making the right side table for the Commander icons.\n\t\tfinal ScrollPane scroller = new ScrollPane(scrollTable);\n\n\t\tthis.getContentTable().add(scroller).fill().expand().top();\n\n\t\tthis.getContentTable().row();\n\t\tthis.getContentTable().add(status).expandX().center().colspan(2);\n\n\t}", "boolean addSteam(ItemStack me, int amount, EntityPlayer player);", "public void stolenMonster(GameState state) {\n }", "public void listWashers() {\r\n\t\tSystem.out.println(store.listWashers());\r\n\t}", "public void buy() throws CannotAffordException {\r\n\t\tGame game = Game.getInstance();\r\n\t\tgame.decreaseBudget(price);\r\n\t\tgame.getInventory().add(id);\r\n\t}", "public void take(String secondWord) //Item second word of the command)\n {\n // if there is no second word, we don't know what to take...\n if(secondWord == null){\n System.out.println(\"Take what?\");\n }\n else{\n //if there are items in the rooms\n if(currentRoom.emptyRoom() == false){\n Item itemTaken = currentRoom.getItemRoom(secondWord);\n if(itemTaken != null){\n if(itemTaken.canBePickedUp() == true){\n if((inventoryWeight + itemTaken.getItemWeight()) <= maxWeight){\n //take current item\n inventory.add(itemTaken);\n inventoryWeight += itemTaken.getItemWeight();\n currentRoom.removeItem(itemTaken.getId());\n System.out.println(\"You have taken the item: \" + itemTaken.getId() + \".\");\n }\n else{\n System.out.println(\"You canīt get over the max weight.\");\n }\n }\n else{\n System.out.println(\"This item canīt be taken.\");\n }\n }\n else{\n System.out.println(\"This item donīt exist.\");\n }\n }\n else{\n System.out.println(\"There are no items to take in this room.\");\n }\n }\n }", "public TransationRecords sellProduct(String species, int number) {\n HashMap<String , List<HashMap<String,String >>> productInfo = new HashMap<>();\n productInfo = productList.getProductInfo();\n if (species.equals(\"CHICKEN\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.chickenList.size(); i++) {\n if (productList.chickenList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.chickenList.size(); i++) {\n int value = new Chicken().getSellValue();\n if (productList.chickenList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.chickenList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"CHICKEN\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"DOG\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.dogList.size(); i++) {\n if (productList.dogList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.dogList.size(); i++) {\n int value = new Dog().getSellValue();\n if (productList.dogList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.dogList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"DOG\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"PERCH\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.perchList.size(); i++) {\n if (productList.perchList.get(number).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.perchList.size(); i++) {\n int value = new Perch().getSellValue();\n if (productList.perchList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.perchList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"PERCH\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"APPLE\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.appleList.size(); i++) {\n if (productList.appleList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.appleList.size(); i++) {\n int value = new Apple().getSellValue();\n if (productList.appleList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.appleList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"APPLE\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"CHERRY\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.cherryList.size(); i++) {\n if (productList.cherryList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.cherryList.size(); i++) {\n int value = new Cherry().getSellValue();\n if (productList.cherryList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.cherryList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"CHERRY\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"POTATO\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.potatoList.size(); i++) {\n if (productList.potatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.potatoList.size(); i++) {\n int value = new Potato().getSellValue();\n if (productList.potatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.potatoList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"POTATO\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"TOMATO\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.tomatoList.size(); i++) {\n if (productList.tomatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.tomatoList.size(); i++) {\n int value = new Tomato().getSellValue();\n if (productList.tomatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.tomatoList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"TOMATO\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n }\n return emptyRecords;\n }", "@Override\n\tpublic java.lang.String getUserScreenName() {\n\t\treturn _buySellProducts.getUserScreenName();\n\t}", "protected void lootAll(String token, TextToken<BasicTextTokenType> object) {\n if(object.getType() == BasicTextTokenType.ENEMY) {\n ReturnStatus re = worldUtil.lootAllMob(token);\n if (ReturnStatus.SUCCESS.equals(re)) {\n output.println(token + \"'s items added\");\n } else if (ReturnStatus.FAILURE.equals(re)) {\n output.println(token + \" is still alive!\");\n } else {\n output.println(\"Mob not found\");\n }\n } else {\n ReturnStatus re = worldUtil.lootAllFurniture(token);\n if (ReturnStatus.SUCCESS.equals(re)) {\n output.println(token + \"'s items added\");\n } else if (ReturnStatus.FAILURE.equals(re)) {\n output.println(token + \" is empty.\");\n } else {\n output.println(\"Object not found\");\n }\n }\n }", "public void ramasser(ArrayList<Loot> drop, int entree) {\n\t\tString s = drop.get(entree-1).getNom();\n\t Connection c = null;\n\t Statement select = null;\n\t try {\n\t Class.forName(\"org.postgresql.Driver\");\n\t c = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/ProjetJava\", \"postgres\", \"sql\");\n\t select = c.createStatement();\n\t ResultSet query = select.executeQuery(\"SELECT weaponDamage, lootXpValue from tbLoot WHERE lootName = \\'\"+s+\"\\'\");\n\t int weapDam = 0;\n\t int lootXp = 0;\n\t while(query.next()) {\n\t \t weapDam = query.getInt(\"weaponDamage\");\n\t \t lootXp = query.getInt(\"lootXpValue\");\n\t }\n\t if(weapDam>0) {\n\t \t if(this.getArmeDroite().getDegat() < weapDam) {\n\t \t\t System.out.println(\"Vous avez choisi : \"+s+\" / degat : \"+weapDam);\n\t \t\t Arme a = new Arme(s, weapDam);\n\t \t\t this.setArmeDroite(a);\n\t \t }else {\n\t \t\t System.out.println(\"Vous avez choisi : \"+s+\" / valeur d XP : \"+lootXp);\n\t \t\t this.ajoutXp(lootXp);\n\t \t }\n\t } else {\n\t \t System.out.println(\"Vous avez choisi : \"+s+\" / valeur d XP : \"+lootXp);\n\t \t this.ajoutXp(lootXp);\n\t }\n\t query.close();\n\t select.close();\n\t c.close();\n\t drop.remove(entree-1);\n\t } catch (Exception e) {\n\t \te.printStackTrace();\n\t System.err.println(e.getClass().getName()+\": \"+e.getMessage());\n\t System.exit(0);\n\t }\n\t}", "public ArrayList<String> getSellers(String productName);", "public void printSpellShop(List<Spell> list, boolean isBuy) {\n\t\tSystem.out.println(\"Spell List\");\n\t\t//String name, BigDecimal price, int minLevelReq, BigDecimal weaponDmg, int handWield\n\t\tSystem.out.println(\"ID\\tName\\t\\t\\tPrice\\tMin Level \\tDamage\\tMana Cost\\tElement\");\n\t\tSystem.out.println(\"============================================================================================\");\n\t\tint id = 1;\n\t\tfor(Spell s : list) {\n\t\t\n\t\t\tSystem.out.printf(id++ + \"\\t\" + s.getName() ); \n\t\t\tfor(int i = 0; i < 24-s.getName().length(); i++) {\n\t\t\t\tSystem.out.printf(\" \");\n\t\t\t}\n\t\t\tif(isBuy) {\n\t\t\t\tSystem.out.printf(s.getPrice().toString());\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(s.getPrice().multiply(new BigDecimal(\"0.5\")).toString());\n\t\t\t}\n\t\t\tSystem.out.printf( \"\\t\"+ s.getMinLevelReq() + \"\\t\\t\" + \n\t\t\ts.getBaseDmg() + \"\\t\" + s.getManaCost() + \"\\t\" + s.getType().toString());\n\t\t\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "private void viewPurchases(User user, Scanner sc) {\n\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"The Following are your Purchases\\n\");\n\t\t\tList<Item> purchased = cService.seeOwnedItems(user);\n\t\t\tpurchased.stream().forEach(item -> log.info(item.toString()));\n\n\t\t\tlog.info(\"Choose an option:\");\n\t\t\tlog.info(\"\t\tPress anything else to exit\");\n\t\t\tString choice = sc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tdefault:\n\t\t\t\tlog.info(\"\\nGoing back to the Customer Dashboard\\n\");\n\t\t\t\trun = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (run);\n\t}", "public abstract List<String> getUserInventory();", "public ShootSmart(Delivery delivery, Shooter shooter) {\n addRequirements(delivery, shooter);\n this.delivery = delivery;\n this.shooter = shooter;\n }", "public void setMakingShop(Player owner, Player establisher, Integer x, Integer y, Integer z, World world){\n\t\testablisher.sendMessage(ChatColor.GREEN + getConfig().getString(\"ask-for-item\"));\n\t\tUUID ownerID = owner.getUniqueId();\n\t\tUUID establisherID = establisher.getUniqueId();\n\t\tString blockLocation = x + \",\" + y + \",\" + z + \",\" + world.getName()+\",\"+ownerID.toString()+\",\"+establisherID.toString();\n\t\tdebugOut(\"Marking \" + establisher.getName()+\" as creating a shop at \"+blockLocation);\n\t\tPlayerMakingShop.put(establisher.getName(), blockLocation);\n\t}", "public void purchaseTower(Tower towerType){ //This method will pruchase a tower from the player class given a Attacker Object\n if(this.coins()<towerType.getPrice()){ //checks to make sure that the player has neough money, if not it returns\n return;\n }\n\n myGame.addTower(Tower towerType); //calls the addTower method from the game class. Game will be resopnsible for storing towers not the player class\n this.coins-=towerType.getPrice(); //decrement the appropriate number of coins after purchsing the tower\n }", "public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }", "@EventHandler(ignoreCancelled = true)\n\tpublic void onItemHeldChange(PlayerItemHeldEvent event)\n\t{\n\t\tPlayer player = event.getPlayer();\n\t\t\n\t\t//if he's switching to the golden shovel\n\t\tint newSlot = event.getNewSlot();\n\t\tItemStack newItemStack = player.getInventory().getItem(newSlot);\n\t\tif(newItemStack != null && newItemStack.getType() == instance.config_claims_modificationTool)\n\t\t{\n\t\t\t//give the player his available claim blocks count and claiming instructions, but only if he keeps the shovel equipped for a minimum time, to avoid mouse wheel spam\n\t\t\tif(instance.claimsEnabledForWorld(player.getWorld()))\n\t\t\t{\n\t\t\t\tEquipShovelProcessingTask task = new EquipShovelProcessingTask(player);\n\t\t\t\tinstance.getServer().getScheduler().scheduleSyncDelayedTask(instance, task, 15L); //15L is approx. 3/4 of a second\n\t\t\t}\n\t\t}\n\t}", "private void storeTrip(Player p){\r\n\t\tSystem.out.println(\"Welcome to the store!\");\r\n\t\tSystem.out.println(\"Just a reminder, you have $\" + p.getMoney() + \" to spend!\");\r\n\t\tSystem.out.println(\"Please Select An Option: \");\r\n\t\tSystem.out.println(\"1. Buy Food\");\r\n\t\tSystem.out.println(\"2. Buy Toys\");\r\n\t\tSystem.out.println(\"3. Leave the store\");\r\n\t\tArrayList<Toy> storetoys = store.getToys();\r\n\t\tArrayList<Food> storefood = store.getFoods();\r\n\t\tint[] toyamounts = store.getToyamounts();\r\n\t\tint[] foodamounts = store.getFoodamounts();\r\n\t\tint buyoption; //The buying option\r\n\t\tint c; //Counter\r\n\r\n\t\tint selectedoption = getNumber(1, 3);\r\n\t\tswitch(selectedoption){\r\n\t\t//Buy food\r\n\t\tcase 1:\r\n\t\t\tc = 1;\r\n\t\t\tfor(Food f : storefood){\r\n\t\t\t\tSystem.out.println(c + \". \" + f.getName() + \"\\nPrice: $\" + f.getValue() + \" Stock: \" + foodamounts[c-1]);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tbuyoption = getNumber(1, storefood.size());\r\n\t\t\tFood selectedfood = storefood.get(buyoption -1);\r\n\t\t\tif(p.getMoney() > selectedfood.getValue() && foodamounts[buyoption-1] > 0){\r\n\t\t\t\tp.setMoney(p.getMoney() - selectedfood.getValue());\r\n\t\t\t\tfoodamounts[buyoption -1]--; //Take one away, as it has been sold.\r\n\t\t\t\tp.addFood(selectedfood);\r\n\t\t\t\tstore.setFoodamounts(foodamounts);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\t//Buy toys\r\n\t\tcase 2:\r\n\t\t\tc = 1;\r\n\t\t\tfor(Toy t : storetoys){\r\n\t\t\t\tSystem.out.println(c + \". \" + t.getName() + \"\\nPrice: $\" + t.getPrice() + \" Stock: \" + toyamounts[c-1]);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tbuyoption = getNumber(1, storetoys.size());\r\n\t\t\tToy selectedtoy = storetoys.get(buyoption -1);\r\n\t\t\tif(p.getMoney() > selectedtoy.getPrice() && toyamounts[buyoption-1] > 0){\r\n\t\t\t\tp.setMoney(p.getMoney() - selectedtoy.getPrice());\r\n\t\t\t\ttoyamounts[buyoption -1]--; //Take one away, as it has been sold.\r\n\t\t\t\tp.addToy(selectedtoy);\r\n\t\t\t\tstore.setToyamounts(toyamounts);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\nError. Either the store was out of stock for the selected product or the player was out of money.\");\r\n\t\t\t}\r\n\t\tcase 3:\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"ERROR\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<Shop> chakan(Integer sid) {\n\t\treturn dao.chakan(sid);\r\n\t}", "void selectList(ShoppingList _ShoppingList);", "public void purchase(){\n\t\t\n\t\t//Ask the user for notes about the item\n\t\tSystem.out.println(\"Please enter any special requests regarding your \" +\n\t\t\t\t\t\t\t\"food item for our staff to see while they prepare it.\");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString foodNotes = scan.nextLine();\n\t\tnotes = foodNotes;\n\t\t\n\t\t//Add this item's price to the order total\n\t\tMenu.orderPrice += price;\n\t\t\n\t}", "private void updateShop(List<ItemType> items, int level) {\n\t\tfor (ItemType item : items) {\n\t\t\tString text = item.getTextureString();\n\t\t\ttext = item instanceof SpecialType ? text\n\t\t\t\t\t: text.substring(0, text.length() - 1)\n\t\t\t\t\t\t\t+ Integer.toString(level);\n\t\t\tTexture texture = textureManager.getTexture(text);\n\t\t\tImageButton button = generateItemButton(texture);\n\n\t\t\tbutton.addListener(new ClickListener() {\n\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\tstatus.setText(item.getName());\n\t\t\t\t\tif (selectedHero == null) {\n\t\t\t\t\t\tstatus.setText(\"Unsuccessful shopping, No hero exist.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (selectedHero.getHealth() <= 0) {\n\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\"Your Commander is dead. Can't buy anything.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tboolean enoughResources = checkCost(selectedHero.getOwner(),\n\t\t\t\t\t\t\titem);\n\t\t\t\t\tif (enoughResources) {\n\t\t\t\t\t\tif (item instanceof WeaponType) {\n\t\t\t\t\t\t\tWeapon weapon = new Weapon((WeaponType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(weapon);\n\t\t\t\t\t\t\tstatus.setText(boughtString + weapon.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Weapon) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else if (item instanceof ArmourType) {\n\t\t\t\t\t\t\tArmour armour = new Armour((ArmourType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(armour);\n\t\t\t\t\t\t\tstatus.setText(boughtString + armour.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Armour) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tboolean transactSuccess;\n\t\t\t\t\t\t\tSpecial special = new Special((SpecialType) item);\n\t\t\t\t\t\t\ttransactSuccess = selectedHero\n\t\t\t\t\t\t\t\t\t.addItemToInventory(special);\n\t\t\t\t\t\t\tif (transactSuccess) {\n\t\t\t\t\t\t\t\tstatus.setText(boughtString + special.getName()\n\t\t\t\t\t\t\t\t\t\t+ \"(Special) for \"\n\t\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\t\t\"Unsuccessful Shopping, can only hold 4 specials\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tselectedHero.setStatsChange(true);\n\t\t\t\t\t\ttransact(selectedHero.getOwner(), item);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString mes = \"Not enough resources.\";\n\t\t\t\t\t\tstatus.setText(mes);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprivate boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tscrollTable.add(button).width(iconSize).height(iconSize).top();\n\t\t\tString stats = getItemStats(item, level);\n\t\t\tString cost = getItemCost(item, level);\n\t\t\tscrollTable.add(new Label(stats, skin)).width(iconSize).top()\n\t\t\t\t\t.left();\n\t\t\tscrollTable.add(new Label(cost, skin)).width(iconSize).top().left();\n\t\t\tscrollTable.row();\n\t\t}\n\t}", "@Override\n\tprotected void action() {\n\t\tif(Directory.profile.removeGold(cost)){\n\t\t\t//Increment player's power by 1\n\t\t\tDirectory.profile.getPlayer().incrementPower(1);\n\t\t\t\n\t\t\tcost = Directory.profile.getPlayer().getPower() * 10;\n\t\t\tsuper.setText(\"Upgrade Power: \" + cost + \" gold\"); \n\t\t}\n\t}", "public void dropItem(String secondWord)\n {\n if(secondWord == null){\n System.out.println(\"Drop what?\");\n }\n else{\n if(!inventory.isEmpty()){\n boolean found = false;\n for(int i = 0; i < inventory.size() && !found; i++){\n Item itemToDrop = inventory.get(i);\n if(itemToDrop.getId().equals(secondWord)){\n if(itemToDrop.getId().equals(\"wheelchair\")){\n maxWeight = 5;\n for(Item patient : inventory){\n if(patient.getId().equals(\"patient\")){\n patient.changePickUpItem(false);\n }\n }\n }\n if(itemToDrop.getId().equals(\"patient\")){\n itemToDrop.changePickUpItem(false);\n } \n currentRoom.addItem(itemToDrop);\n inventoryWeight -= itemToDrop.getItemWeight();\n inventory.remove(itemToDrop);\n found = true;\n System.out.println(\"You have droped the item: \" + itemToDrop.getId() + \".\");\n }\n }\n }\n else{\n System.out.println(\"Your inventory is empty.\");\n }\n }\n }", "protected void fight( ArrayList <ObjetoEquipable> inventory, ArrayList <Luchador> list, ArrayList <Luchador> party, ArrayList <String> checker) {\n Fight.huntAsk(inventory, list, party,checker);\r\n \r\n if (list.size()<1){\r\n \r\n System.exit(0);\r\n }\r\n }", "private void spawnSomeGold() {\n if (goldSpawned.size() >= goldSpawnPoints.size()) {\n return;\n }\n Location loc = goldSpawnPoints.get(random.nextInt(goldSpawnPoints.size()));\n Item item = loc.getWorld().dropItem(loc, new ItemStack(Material.GOLD_INGOT, 1));\n goldSpawned.add(item);\n }", "private void demoSellProducts()\n {\n System.out.println(\"\\nSelling all the products\\n\");\n System.out.println(\"============================\");\n System.out.println();\n for(int id = 101; id <= 110; id++)\n {\n amount = generator.nextInt(20);\n manager.sellProduct(id, amount);\n }\n \n manager.printAllProducts();\n }" ]
[ "0.6592652", "0.6298334", "0.6090953", "0.577383", "0.5730926", "0.56966686", "0.56472164", "0.56207806", "0.5608446", "0.5590984", "0.5572417", "0.556816", "0.5520154", "0.54994833", "0.54977626", "0.5467031", "0.5462603", "0.5458469", "0.5445058", "0.5442398", "0.54367757", "0.5429764", "0.54048365", "0.540354", "0.5395461", "0.5379828", "0.5372353", "0.53689075", "0.5356355", "0.5352226", "0.53333855", "0.5333052", "0.5326235", "0.53253984", "0.53246224", "0.5322535", "0.5316614", "0.53140235", "0.5311914", "0.53088003", "0.5281197", "0.5280508", "0.52762824", "0.5270273", "0.52677804", "0.52664256", "0.52639884", "0.5260852", "0.5251362", "0.52479386", "0.5247195", "0.52471524", "0.52295226", "0.5213623", "0.5202119", "0.51990753", "0.5196435", "0.5190018", "0.5183971", "0.5170534", "0.51660216", "0.5163134", "0.5151829", "0.51508176", "0.51476306", "0.5145018", "0.51383215", "0.5137698", "0.5132816", "0.5128483", "0.5125504", "0.511593", "0.51025367", "0.5099174", "0.5098407", "0.50957537", "0.50933146", "0.5088082", "0.50862944", "0.5084632", "0.5082057", "0.5069111", "0.5062412", "0.5057901", "0.50451386", "0.5043073", "0.5032728", "0.5030489", "0.50300497", "0.5027583", "0.5027322", "0.5025671", "0.5025213", "0.5023583", "0.5023359", "0.5021233", "0.50210047", "0.5019711", "0.5008369", "0.5008208" ]
0.62140495
2
Interface for handling the synchronized acces to the peerlist
public interface IPeerManager { /** * Add a new PeerEndpoint to the list of peers * * @param peer */ void addPeerEndpoint(PeerEndpoint peer); /** * Returns a current snapshot of all known peers * * @return An iterable list of all the peers */ Set<String> getPeerSnapshot(); /** * Returns the PeerEnpoint matching the key * * @param key * @return the requested PeerEndpoint */ PeerEndpoint getPeerEndpoint(String key); /** * Deletes the PeerEndpoint matching the provided key * * @param key */ void removePeerEndpoint(String key); /** * Returns the number of currentlyn known peers * * @return number of currently known peers */ int getPeerCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface LockManager {\r\n \r\n /**\r\n * Obtain lock on <code>obj</code> for specified <code>owner</code>.\r\n * Implementation should try to obtain lock few times within the\r\n * specified timeout.\r\n *\r\n * @param obj obj to lock, usually not full object but object's ID.\r\n * @param owner object identifying entity that will own the lock.\r\n * @param timeout maximum time that we grant to obtain a lock.\r\n *\r\n * @throws LockNotGrantedException if lock is not granted within\r\n * specified period.\r\n *\r\n * @throws ClassCastException if <code>obj</code> and/or\r\n * <code>owner</code> is not of type that implementation expects to get\r\n * (for example, when distributed lock manager obtains non-serializable\r\n * <code>obj</code> or <code>owner</code>).\r\n * \r\n * @throws ChannelException if something bad happened to communication\r\n * channel.\r\n */\r\n void lock(Object obj, Object owner, int timeout)\r\n throws LockNotGrantedException, ClassCastException, ChannelException;\r\n\r\n /**\r\n * Release lock on <code>obj</code> owned by specified <code>owner</code>.\r\n *\r\n * since 2.2.9 this method is only a wrapper for \r\n * unlock(Object lockId, Object owner, boolean releaseMultiLocked).\r\n * Use that with releaseMultiLocked set to true if you want to be able to\r\n * release multiple locked locks (for example after a merge)\r\n * \r\n * @param obj obj to lock, usually not full object but object's ID.\r\n * @param owner object identifying entity that will own the lock.\r\n *\r\n * @throws LockOwnerMismatchException if lock is owned by another object.\r\n *\r\n * @throws ClassCastException if <code>obj</code> and/or\r\n * <code>owner</code> is not of type that implementation expects to get\r\n * (for example, when distributed lock manager obtains non-serializable\r\n * <code>obj</code> or <code>owner</code>).\r\n * \r\n * @throws ChannelException if something bad happened to communication\r\n * channel.\r\n */\r\n void unlock(Object obj, Object owner)\r\n throws LockNotReleasedException, ClassCastException, ChannelException;\r\n\r\n /**\r\n * Release lock on <code>obj</code> owned by specified <code>owner</code>.\r\n *\r\n * @param obj obj to lock, usually not full object but object's ID.\r\n * @param owner object identifying entity that will own the lock.\r\n * @param releaseMultiLocked force unlocking of the lock if the local\r\n * lockManager owns the lock even if another lockManager owns the same lock\r\n *\r\n * @throws LockOwnerMismatchException if lock is owned by another object.\r\n *\r\n * @throws ClassCastException if <code>obj</code> and/or\r\n * <code>owner</code> is not of type that implementation expects to get\r\n * (for example, when distributed lock manager obtains non-serializable\r\n * <code>obj</code> or <code>owner</code>).\r\n * \r\n * @throws ChannelException if something bad happened to communication\r\n * channel.\r\n * \r\n * @throws LockMultiLockedException if the lock was unlocked, but another\r\n * node already held the lock\r\n */\r\n void unlock(Object obj, Object owner, boolean releaseMultiLocked)\r\n throws LockNotReleasedException, ClassCastException, ChannelException, LockMultiLockedException;\r\n\r\n \r\n}", "public void synchronize(){ \r\n }", "@Override\r\n public void run()\r\n {\r\n // Boucle infinie\r\n while (true)\r\n {\r\n synchronized (this)\r\n {\r\n // Blocage du traitement tant que la liste est vide\r\n while (demandesAccesSC.size() == 0)\r\n {\r\n try\r\n {\r\n this.wait();\r\n }\r\n catch (InterruptedException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Traitement de chaque demande de SC\r\n Integer proc;\r\n while ((proc = demandesAccesSC.pollFirst()) != null)\r\n {\r\n \tsynchronized(this)\r\n \t{\r\n \t\twhile(this.accesScEnCours)\r\n \t\t{\r\n \t\t\ttry {\r\n\t\t\t\t\t\t\t\twait();\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t} \t\t\t\r\n \t\t}\r\n \t}\r\n \t\r\n \tthis.accesScEnCours = true;\r\n try\r\n {\r\n stub.sendTo(new Message(masterId, TypeMessage.AUTORISER_ACCES_SC, proc, null));\r\n }\r\n catch (RemoteException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "public static java.util.List synchronizedList(java.util.List arg0)\n { return null; }", "public void lockThreadForClient()\n {\n masterThread.lockThreadForClient();\n }", "Lock getProtocolImportLock();", "static void synced () {\n\t\tList<Integer> linkedList = \n\t\t\t\tCollections.synchronizedList(new LinkedList<Integer>());\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tlinkedList.add(i);\n\t\t}\n\t\t// launch a thread to add numbers 100 to 200 to the list\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"starting adding numbers\");\n\t\t\t\tfor (int i = 100; i < 200; i++) {\n\t\t\t\t\tlinkedList.add(i);\n\t\t\t\t\ttry { Thread.sleep(1);} \n\t\t\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"end\");\n\t\t\t}\n\t\t}).start();\n\n\t\t// now run an iterator to go through the linked list that is \n\t\t// synchronized with the linked list object. \n\t\tsynchronized(linkedList) {\n\t\t\tIterator<Integer> iterator = linkedList.iterator();\n\t\t\tSystem.out.println(\"starting iteration\");\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\ttry {Thread.sleep(4);} \n\t\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\n\t\t\t\tSystem.out.println(iterator.next());\n\t\t\t}\t\n\t\t\tSystem.out.println(\"finished iteration\");\n\t\t}\n\t}", "private void invokeSync()\n \t{\n if (iDeviceList.size() == 0)\n {\n System.out.println(\"No devices found, so nothing to test\");\n return;\n }\n CpDevice device = iDeviceList.get(0);\n System.out.println(\"\\n\\nSync call to device \" + device.getUdn());\n \n CpProxyUpnpOrgConnectionManager1 connMgr = new CpProxyUpnpOrgConnectionManager1(device);\n try {\n GetProtocolInfo points = connMgr.syncGetProtocolInfo();\n System.out.println(\"source is \" + points.getSource() + \"\\nsink is \" + points.getSink());\n } catch (ProxyError pe) { }\n connMgr.dispose();\n \t}", "void lock();", "void contentsSynchronized();", "private void connectingPeer() {\n for (int index = 0; index < this.peers.size(); index++) {\n String peerUrl = urlAdderP2PNodeName((String) this.peers.get(index));\n try {\n Node distNode = NodeFactory.getNode(peerUrl);\n P2PService peer = (P2PService) distNode.getActiveObjects(P2PService.class.getName())[0];\n \n if (!peer.equals(this.localP2pService)) {\n // Send a message to the remote peer to record me\n peer.register(this.localP2pService);\n // Add the peer in my group of acquaintances\n this.acqGroup.add(peer);\n }\n } catch (Exception e) {\n logger.debug(\"The peer at \" + peerUrl +\n \" couldn't be contacted\", e);\n }\n }\n }", "ManagementLockObject.Update update();", "ManagementLockObject apply();", "ManagementLockObject refresh();", "public synchronized void run() {\n\n try {\n\n while(true) {\n\n Thread.sleep(10000);\n\n Socket s = new Socket(server, 8999); // Request list in port 8999\n ObjectInputStream r = new ObjectInputStream(s.getInputStream());\n Message m = (Message) r.readObject();\n peerList = (PeerList) m.peerList; // Store new peer list\n\n for (int i = peerList.getSize() - 1; i >= 0; i--)\n new Thread(new download(peerList.getIP(i), peerList.getPort(i))).start(); // start thread to download image blocks from other peers\n\n }\n\n } catch (Exception e){\n\n // e.printStackTrace();\n\n }\n\n }", "public void sync() throws KeeperException, InterruptedException {\n members = zk.getChildren(thisPrefix, groupWatcher, null); // also reset the watcher\n }", "void lock(Object obj, Object owner, int timeout)\r\n throws LockNotGrantedException, ClassCastException, ChannelException;", "protected abstract boolean sharedConnectionEnabled();", "public void lock() {\n\n }", "@Override\n public void sync(){\n }", "Thread getLocker();", "@Override\n\tpublic void startSync() throws Exception {\n\t}", "@Override\n public void setLockOwner(Object lockOwner) {\n }", "void lockGranted(LockHandle lockHandle);", "private static void concurrentList(){\n\t\tList<Object> unsafeList = new ArrayList<Object>();\n\t\tList<Object> safeList = Collections.synchronizedList(unsafeList);\n\t\t\n\t\t/*\n\t\t * Note that you must manually synchronize the returned list when iterating over it, for example:\n\t\t */\n\t\tsynchronized (safeList) {\n\t\t Iterator<Object> it = safeList.iterator();\n\t\t while (it.hasNext()) {\n\t\t System.out.println(it.next());\n\t\t }\n\t\t}\n\t}", "Lock getComponentAccessTokenLock();", "void lock(Portal portal);", "void syncGroup();", "public abstract void collectLocks(HashMap threadList);", "@Override\n public void callSync() {\n\n }", "public void notifySyncStarted(PropertyList syncStartedEvent);", "public void updateList()\r\n\t{\r\n\t\tclientQueue.offer(name);\r\n\t}", "@NotThreadSafe\npublic interface InodeLockList extends AutoCloseable {\n /**\n * Locks the root edge in the specified mode.\n *\n * The lock list must be empty to call this method.\n *\n * @param mode the mode to lock in\n */\n void lockRootEdge(LockMode mode);\n\n /**\n * Locks the given inode and adds it to the lock list. This method does *not* check that the inode\n * is still a child of the previous inode, or that the inode still exists. This method should only\n * be called when the edge leading to the inode is locked.\n *\n * Example\n * Starting from [a, a->b]\n *\n * lockInode(b, LockMode.READ) results in [a, a->b, b]\n * lockInode(b, LockMode.WRITE) results in [a, a->b, b*]\n *\n * @param inode the inode to lock\n * @param mode the mode to lock in\n */\n void lockInode(Inode inode, LockMode mode);\n\n /**\n * Locks an edge leading out of the last inode in the list.\n *\n * Example\n * Starting from [a, a->b, b]\n *\n * lockEdge(b, c, LockMode.READ) results in [a, a->b, b, b->c]\n * lockEdge(b, c, LockMode.WRITE) results in [a, a->b, b, b->c*]\n *\n * @param inode the parent inode of the edge\n * @param childName the child name of the edge\n * @param mode the mode to lock in\n */\n void lockEdge(Inode inode, String childName, LockMode mode);\n\n /**\n * Unlocks the last locked inode.\n *\n * Example\n * Starting from [a, a->b, b]\n *\n * unlockLastInode() results in [a, a->b]\n */\n void unlockLastInode();\n\n /**\n * Unlocks the last locked edge.\n *\n * Example\n * Starting from [a, a->b]\n *\n * unlockLastEdge results in [a]\n */\n void unlockLastEdge();\n\n /**\n * Downgrades all locks in the current lock list to read locks.\n */\n void downgradeToReadLocks();\n\n /**\n * Downgrades the last edge lock in the lock list from WRITE lock to READ lock.\n *\n * Example\n * Starting from [a, a->b*]\n *\n * downgradeLastEdge() results in [a, a->b]\n */\n void downgradeLastEdge();\n\n /**\n * Leapfrogs the final edge write lock forward, reducing the lock list's write-locked scope.\n *\n * Example\n * Starting from [a, a->b*]\n *\n * pushWriteLockedEdge(b, c) results in [a, a->b, b, b->c*]\n *\n * The read lock on a->b is acquired before releasing the write lock. This ensures that no other\n * thread can take the write lock before the read lock is acquired.\n *\n * If this is a composite lock list and the final write lock is part of the base lock list, the\n * new locks will be acquired but no downgrade will occur.\n *\n * @param inode the inode to add to the lock list\n * @param childName the child name for the edge to add to the lock list\n */\n void pushWriteLockedEdge(Inode inode, String childName);\n\n /**\n * @return {@link LockMode#WRITE} if the last entry in the list is write-locked, otherwise\n * {@link LockMode#READ}\n */\n LockMode getLockMode();\n\n /**\n * @return a copy of all locked inodes\n */\n List<Inode> getLockedInodes();\n\n /**\n * @return a copy of all locked inodes\n */\n default List<InodeView> getLockedInodeViews() {\n return new ArrayList<>(getLockedInodes());\n }\n\n /**\n * @param index the index of the list\n * @return the inode at the specified index\n */\n Inode get(int index);\n\n /**\n * @return the size of the list in terms of locked inodes\n */\n int numInodes();\n\n /**\n * @return whether this lock list ends in an inode (as opposed to an edge)\n */\n boolean endsInInode();\n\n /**\n * @return true if the locklist is empty\n */\n boolean isEmpty();\n\n /**\n * @return the inode lock manager for this lock list\n */\n InodeLockManager getInodeLockManager();\n\n /**\n * Closes the lock list, releasing all locks.\n */\n @Override\n void close();\n}", "private SingletonSyncBlock() {}", "@Override\n protected void setServerAccessCreditsSubClass ()\n {\n getEncapsulatedQueue ().setServerAccessCredits (getLastUpdateTime (), getServerAccessCredits ());\n }", "@Override\n public void listChanged(final ChangedList list) {\n if (list.getListSize() > 0) {\n return;\n }\n\n //if appears to be empty remove listener\n list.removeListener(InternalChangedListListener.this);\n\n //in separate thread start shutdown only\n //after list is absolutely empty (no reserved files)\n //and sync manager has finished transferring files.\n\n final SyncManager sm = syncManager;\n new Thread(new Runnable() {\n @Override\n public void run() {\n while (!allWorkComplete(0)) {\n SyncProcessManagerImpl.this.sleep(2000);\n }\n\n SyncProcessManagerImpl.this.stop();\n }\n\n // Verify work is complete multiple times before giving\n // the ok to shut everything down\n private boolean allWorkComplete(int attempt) {\n boolean workComplete = (sm == null || syncManager.getFilesInTransfer().isEmpty()) &&\n list.getListSizeIncludingReservedFiles() <= 0;\n\n if (!workComplete || (workComplete && attempt > 2)) {\n return workComplete;\n } else {\n // Wait before another attempt\n SyncProcessManagerImpl.this.sleep(2000);\n return allWorkComplete(attempt + 1);\n }\n }\n }).start();\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tboolean bok = checkMinPath();\n\t\t\t\t\t\t\tif (bok) {\n\t\t\t\t\t\t\t\tcanRun = true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (exitWhenGetNotLock) {// 获取不到锁,直接不执行,return\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\tif (canRun) {\n\t\t\t\t\t\t\t\t\tboolean bok1 = checkMinPath();\n\t\t\t\t\t\t\t\t\tif (bok1) {// 获取所成功\n\t\t\t\t\t\t\t\t\t\tgetLockSuccess();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"同步等待...\");\n\t\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (KeeperException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void viewListofLocks() {\n\t\ttry {\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to get list of locks\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to get list of locks\");\n\t\t}\n\t}", "public void startSync(ISyncContext syncContext, String authority, Account account, Bundle extras) {\n if (AbstractThreadedSyncAdapter.ENABLE_LOG) {\n if (extras != null) {\n extras.size();\n }\n Log.d(AbstractThreadedSyncAdapter.TAG, \"startSync() start \" + authority + WifiEnterpriseConfig.CA_CERT_ALIAS_DELIMITER + account + WifiEnterpriseConfig.CA_CERT_ALIAS_DELIMITER + extras);\n }\n try {\n SyncContext syncContextClient = new SyncContext(syncContext);\n Account threadsKey = AbstractThreadedSyncAdapter.this.toSyncKey(account);\n synchronized (AbstractThreadedSyncAdapter.this.mSyncThreadLock) {\n boolean alreadyInProgress;\n if (AbstractThreadedSyncAdapter.this.mSyncThreads.containsKey(threadsKey)) {\n if (AbstractThreadedSyncAdapter.ENABLE_LOG) {\n Log.d(AbstractThreadedSyncAdapter.TAG, \" alreadyInProgress\");\n }\n alreadyInProgress = true;\n } else {\n if (AbstractThreadedSyncAdapter.this.mAutoInitialize && extras != null) {\n if (extras.getBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE, false)) {\n try {\n if (ContentResolver.getIsSyncable(account, authority) < 0) {\n ContentResolver.setIsSyncable(account, authority, 1);\n }\n syncContextClient.onFinished(new SyncResult());\n } catch (Throwable th) {\n syncContextClient.onFinished(new SyncResult());\n }\n }\n }\n SyncThread syncThread = new SyncThread(AbstractThreadedSyncAdapter.this, \"SyncAdapterThread-\" + AbstractThreadedSyncAdapter.this.mNumSyncStarts.incrementAndGet(), syncContextClient, authority, account, extras, null);\n AbstractThreadedSyncAdapter.this.mSyncThreads.put(threadsKey, syncThread);\n syncThread.start();\n alreadyInProgress = false;\n }\n }\n } catch (Throwable th2) {\n try {\n if (AbstractThreadedSyncAdapter.ENABLE_LOG) {\n Log.d(AbstractThreadedSyncAdapter.TAG, \"startSync() caught exception\", th2);\n }\n throw th2;\n } catch (Throwable th3) {\n if (AbstractThreadedSyncAdapter.ENABLE_LOG) {\n Log.d(AbstractThreadedSyncAdapter.TAG, \"startSync() finishing\");\n }\n }\n }\n }", "private static void m200a() {\r\n Object obj = AuthTask.f155a;\r\n synchronized (obj) {\r\n try {\r\n obj.notify();\r\n } catch (Exception e) {\r\n }\r\n }\r\n }", "@Override\n public void run() {\n List<Integer> list = new ArrayList<Integer>();\n int num_peer = P.peer_port.length;\n int ind = -1;\n for (int i = 0; i < num_peer; i++) {\n list.add(i);\n }\n while (P.choke_thread_running) {\n synchronized (P.lock_current_neighbors) { //lock the object\n\n if(P.current_neighbors==null) continue;\n\n int[] cn = P.current_neighbors.clone(); //current neighbor.\n Arrays.sort(cn);\n if (P.own_file || P.finished) { //select randomly.\n java.util.Collections.shuffle(list);\n int cnt = 0; //#peers selected.\n for (int i = 0; i < num_peer && cnt < P.num_preferred_neighbors; i++) {\n ind = list.get(i);\n if (P.is_interested[ind] && P.peer_id[ind] != P.id) {\n P.current_neighbors[cnt++] = P.peer_id[ind];\n //send unchoke message to previously choked peer.\n if (Arrays.binarySearch(cn, P.peer_id[ind]) < 0) {\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 1; //unchoke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n P.print(\"Choke selected \" + cnt + \" neighbors randomly.\");\n } else { //select according to the download rates.\n int[] order = getIndices(P.download_rates);\n int cnt = 0; //#peers selected.\n for (int i = 0; i < num_peer && cnt < P.num_preferred_neighbors; i++) {\n ind = order[i];\n if (P.is_interested[ind] && P.peer_id[ind] != P.id) {\n P.current_neighbors[cnt++] = P.peer_id[ind];\n //send unchoke message to previously choked peer.\n if (Arrays.binarySearch(cn, P.peer_id[ind]) < 0) {\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 1; //unchoke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n //print debugging info.\n P.print(\"Choke selected \" + cnt + \" neighbors according to download rates.\");\n }\n //send choke message to peers previously unchoked but currently choked.\n Arrays.sort(Arrays.copyOfRange(P.current_neighbors, 0, P.num_preferred_neighbors - 1));\n for (int i = 0; i < P.num_preferred_neighbors; i++) {\n if (Arrays.binarySearch(P.current_neighbors, cn[i]) < 0) { //cn[i] not in current neighbor list.\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 0; //choke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n //sleep some interval.\n try {\n Thread.sleep(1000 * P.unchoking_internal);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }\n }", "public void handleObject(SocketManager sm, Object msg)\n\t\t{\n\t\t\tif (msg instanceof RequestPeerListMsg)\n\t\t\t{\n\t\t\t\t// start a new thread to send the peer list\n\t\t\t\tif(SessionManager.debug) System.out.println(\"New leader \" + _sm.getIdentity() + \"received RequestPeerListMsg. Sending peer list.\");\n\t\t\t\tnew PeerListSender().start();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// handle a promotion event\n\t\t\tif (msg instanceof PromoteMsg)\n\t\t\t{\n\t\t\t\tif(SessionManager.debug) System.out.println(\"PromoteMsg received by \" + _sm.getIdentity() + \". New leader is \" + ((PromoteMsg) msg).new_leader);\n\t\t\t\t_sm.peerPromoted( ( (PromoteMsg) msg).new_leader);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (msg instanceof ByteBundle)\n\t\t\t{\n\t\t\t\tByteBundle bb = (ByteBundle) msg;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (bb.hasInt)\n\t\t\t\t\t{\n\t\t\t\t\t\t_pos.write(bb.val);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t_pos.write(bb.array);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (IOException ioe)\n\t\t\t\t{\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// if it wasn't one of the above, pass handling off to the\n\t\t\t// MessageListener.\n\t\t\tsynchronized (PeerChannel.this)\n\t\t\t{\n\t\t\t\t// queue up messages until we get a MessageListener to give these\n\t\t\t\t// to.\n\t\t\t\tif (_ml == null)\n\t\t\t\t{\n\t\t\t\t\t_msg_queue.addLast(msg);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t_ml.messageReceived( (Serializable) msg);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void guardedTakeLeadership(final CuratorFramework curator) throws Exception {\n\n try {\n callback.becameLeader().get(30, TimeUnit.SECONDS);\n } catch (final Exception e) {\n throw new RuntimeException(\"Failed to setup new leader\", e);\n }\n\n final PathChildrenCache members =\n new PathChildrenCache(curator, MEMBERS, false, false, executor);\n\n members.getListenable().addListener(new PathChildrenCacheListener() {\n @Override\n public void childEvent(\n final CuratorFramework client, final PathChildrenCacheEvent event\n ) throws Exception {\n switch (event.getType()) {\n case CHILD_ADDED:\n callback.memberAdded(decodeMemberId(event.getData()));\n break;\n case CHILD_REMOVED:\n callback.memberRemoved(decodeMemberId(event.getData()));\n break;\n default:\n log.info(\"event: {}\", event);\n break;\n }\n }\n\n private String decodeMemberId(final ChildData data) {\n final String path = data.getPath();\n\n final int lastSlash = path.lastIndexOf('/');\n\n if (lastSlash < 0) {\n throw new IllegalArgumentException(\"illegal path: \" + path);\n }\n\n return path.substring(lastSlash + 1);\n }\n });\n\n members.start();\n\n try {\n callback.takeLeadership();\n } catch (final Exception e) {\n log.error(\"Leadership process threw exception\", e);\n }\n\n members.close();\n }", "public interface LockRequest {\n /**\n * Called by the Lock class when a lock has been granted\n * @param lock Handle used to release the lock\n * the one represented by the handle\n */\n void lockGranted(LockHandle lockHandle);\n \n /**\n * Called by the Lock class when a timeout has been reached\n * @param lock The lock key that was tried to lock\n * @param seconds The number of seconds the timeout took\n */\n void lockTimeout(String lock,int seconds);\n \n /**\n * Called by the Lock class when a granted lock is released for this request\n * @param lock\n * @param seconds \n */\n void lockReleased(String lock);\n \n /**\n * Called by the Lock class when a granted lock expires for this request\n * @param lock\n * @param seconds \n */\n void lockExpired(String lock);\n \n /**\n * Called by the Lock class to determine if a lock can be granted to this or another request.\n * This value is used for two conditions:\n * 1. If the current request does not have the lock, then this value is compared\n * against the current number of request using the lock to determine if the lock\n * can be granted\n * \n * 2. If the current request has the lock, then this value is used to prevent\n * other request with higher concurrency values to enter the lock.\n * @return Maximum number of request that can be using the requested lock\n * at the same time with the current request\n */\n int getMaxConcurrent();\n \n \n /**\n * Called by the Lock class to know whats the max number of seconds this\n * request is willing to wait for the lock to be granted.\n * Note: -1 means unlimited\n */\n int getTimeout();\n \n /**\n * Called by the Lock class to know how many seconds the lock should be granted\n * to this particular request\n */\n int getExpireTimeout();\n}", "public interface RemoteCoordinator extends Remote, Identify {\n /**\n * a method to add a Peer to this RemoteCoordinator's list of available Peers\n * called by a MembershipManager\n *\n * @param peer the Uuid of the Peer to be added\n */\n void addPeer(Uuid peer) throws RemoteException;\n\n /**\n * a method to remove a Peer from this RemoteCoordinator's list of available Peers\n * called by a MembershipManager\n *\n * @param peer the Uuid of the Peer to be removed\n */\n void removePeer(Uuid peer) throws RemoteException;\n\n /**\n * a method to get the Uuid of a live Peer in this Coordinator's list of active Peers,\n * removing any dead Peers encountered along the way from the service\n *\n * @return the Uuid of a live Peer\n */\n Uuid getActivePeer() throws RemoteException, NotBoundException;\n\n /**\n * a method to get the list of active Peers from this RemoteCoordinator\n * called by the MembershipManager when bringing new RemoteCoordinators online\n *\n * @return the list of available Uuids from this RemoteCoordinator\n */\n List<Uuid> getActivePeers() throws RemoteException;\n\n /**\n * a method to set the map of active Peers for this RemoteCoordinator\n * called by the MembershipManager when bringing new RemoteCoordinators online\n */\n void setActivePeers(List<Uuid> activePeers) throws RemoteException;\n\n /**\n * a method to assign a JobId to a JobCoordinator\n * called by a User\n * delegates responsibility to its corresponding Coordinator method\n *\n * @param jobId the JobId of the Job being assigned\n * @return true if the job was successfully assigned, false otherwise\n * @throws RemoteException\n */\n boolean assignJob(JobId jobId) throws RemoteException;\n\n /**\n * a method to get an allocation of TaskManagers\n * called by a JobManager\n *\n * @param numRequested the number of TaskManagers being requested by the JobManager\n * @return a list of Uuids to be used by the calling JobManager as TaskManagers\n * @throws RemoteException\n */\n List<Uuid> getTaskManagers(int numRequested) throws RemoteException;\n}", "@Override\r\n\tpublic void onPerformSync(Account account, Bundle extras, String authority,\r\n\t\t\tContentProviderClient provider, SyncResult syncResult) {\r\n\t\t \r\n\r\n\t}", "@Override\n public void doConnect() throws IOException {\n if (!sc.finishConnect()) {\n return; // the selector gave a bad hint\n }\n\n // Sending login private\n var bb = ByteBuffer.allocate(1 + Long.BYTES);\n bb.put((byte) 9).putLong(connectId);\n queueMessage(bb.flip());\n\n updateInterestOps();\n }", "public void lock() {\r\n super.lock();\r\n }", "private void manageClients() {\n manage = new Thread(\"Manage\") {\n public void run() {\n //noinspection StatementWithEmptyBody\n while (running) {\n sendToAll(\"/p/server ping/e/\".getBytes());\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //noinspection ForLoopReplaceableByForEach\n for (int i = 0; i < clients.size(); i++) {\n ServerClient tempClient = clients.get(i);\n if (!clientResponse.contains(tempClient.getID())) {\n if (tempClient.getAttempt() >= MAX_ATTEMPTS)\n disconnect(tempClient.getID(), false);\n else\n tempClient.setAttempt(tempClient.getAttempt() + 1);\n } else {\n clientResponse.remove(new Integer(tempClient.getID()));\n tempClient.setAttempt(0);\n }\n }\n }\n }\n };\n manage.start();\n }", "@Test\n public void testSynchronizedSync() throws AuthException, IOException {\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.PREAUTHED, presenter.status);\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.AUTHED, presenter.status);\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.SYNCED, presenter.status);\n }", "@Override\n\tpublic void onUserListUpdate(User listOwner, UserList list) {\n\n\t}", "public interface CallPeerSecurityListener extends EventListener\n{\n\t/**\n\t * The handler for the security event received. The security event represents an indication of\n\t * change in the security status.\n\t *\n\t * @param securityEvent\n\t * the security event received\n\t */\n\tpublic void securityOn(CallPeerSecurityOnEvent securityEvent);\n\n\t/**\n\t * The handler for the security event received. The security event represents an indication of\n\t * change in the security status.\n\t *\n\t * @param securityEvent\n\t * the security event received\n\t */\n\tpublic void securityOff(CallPeerSecurityOffEvent securityEvent);\n\n\t/**\n\t * The handler for the security event received. The security event represents a timeout trying\n\t * to establish a secure connection. Most probably the other peer doesn't support it.\n\t *\n\t * @param securityTimeoutEvent\n\t * the security timeout event received\n\t */\n\tpublic void securityTimeout(CallPeerSecurityTimeoutEvent securityTimeoutEvent);\n\n\t/**\n\t * The handler of the security message event.\n\t *\n\t * @param event\n\t * the security message event.\n\t */\n\tpublic void securityMessageReceived(CallPeerSecurityMessageEvent event);\n\n\t/**\n\t * The handler for the security event received. The security event for starting establish a\n\t * secure connection.\n\t *\n\t * @param securityStartedEvent\n\t * the security started event received\n\t */\n\tpublic void securityNegotiationStarted(\n\t\tCallPeerSecurityNegotiationStartedEvent securityStartedEvent);\n}", "private void onAccess() {\n ctx.itHolder().checkWeakQueue();\n\n checkRemoved();\n }", "@Override\r\n\tpublic void list_private() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_private();\r\n\t\t}\r\n\t}", "Activity getSynchronizeForwardActivity();", "public void start() {\n\n // ask information\n String address = JOptionPane.showInputDialog(null, \"Connect to server:\", \"Input\", JOptionPane.QUESTION_MESSAGE);\n String ac = JOptionPane.showInputDialog(null, \"Username:\", \"Input\", JOptionPane.QUESTION_MESSAGE);\n String pw = JOptionPane.showInputDialog(null, \"Password:\", \"Input\", JOptionPane.QUESTION_MESSAGE);\n\n try {\n\n // connect to server\n Socket s = new Socket(address, 9000);\n\n ObjectOutputStream w = new ObjectOutputStream(s.getOutputStream());\n ObjectInputStream r = new ObjectInputStream(s.getInputStream());\n\n Hash h = new Hash(); // hash password\n w.writeObject(new Message(ac, \"Teacher\", \"LOGIN\", 0, h.getHashCode(pw), null)); // check login status\n w.flush();\n Message m = (Message) r.readObject();\n if (m.command.equals(\"LOGIN_FAILED\")) { // display message and exit if fail\n\n JOptionPane.showMessageDialog(null, \"Login fail\", \"Message\", JOptionPane.INFORMATION_MESSAGE);\n System.exit(1);\n\n }\n\n server = address;\n peerList = (PeerList) m.peerList;\n port = (int) m.data;\n\n new Thread(new GUI()).start();\n while (initialized == false){ // wait until setup all GUI components\n\n Thread.sleep(500);\n\n }\n\n new Thread(new upload()).start();\n new Thread(new updateList()).start();\n new Thread(new download(address, 9001)).start(); // try to connect server by port 9001, 9002, 9003...\n\n } catch (Exception e) {\n\n System.exit(1);\n\n }\n\n }", "public LockSync() {\n lock = new ReentrantLock();\n }", "@Override\n public void notifyPrivilege() {\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyPrivilege();\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending privilege error\");\n }\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "@SuppressWarnings(\"static-access\")\r\n\t\t@Override\r\n\t\tpublic void run() {\r\n\t\t\tsetName(C_THREAD);\r\n\t\t\tif(controller == MultiController.TCP) {\r\n\t\t\t\tnetworkHandling = new NetworkHandling(tcpHandler);\r\n\t\t\t\tnetworkHandling.establishConnection();\r\n\t\t\t\t\r\n\t\t\t\ttry { \r\n\t\t\t\t\t//Wait until the lock is released - wait for connection\r\n\t\t\t\t\tnetworkHandling.lock.acquire(); \r\n\t\t\t\t} catch (InterruptedException e) { }\r\n\t\t\r\n\t\t\t\tfinished(networkHandling.isConnected());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(controller == MultiController.BLUETOOTH) {\r\n\t\t\t\tbluetoothHandling = new BluetoothHandling(getApplicationContext(),bluetoothHandler);\r\n\t\t\t\tbluetoothHandling.start();\r\n\t\t\t\t\r\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),DeviceListActivity.class);\r\n\t\t\t\tstartActivityForResult(intent, BluetoothHandler.REQUEST_ADDRESS);\r\n\t\t\t\t\r\n\t\t\t\tfinReq = true;\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//Wait until the lock is released - wait for connection\r\n\t\t\t\t\tbluetoothHandling.lock.acquire();\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tfinished(bluetoothHandling.getState() == BluetoothHandling.STATE_CONNECTED);\r\n\t\t\t}\r\n\t\t}", "public void a(ac ac2) {\n Object object = this.li;\n synchronized (object) {\n this.lv = ac2;\n return;\n }\n }", "@Override public void run() // the run() method is the start method for every thread\n {\n // operations that do not use shared memory go outside the synchronized block\n // do not assume that all methods like System.out.println() are thread safe\n \n synchronized (sync) // this synchronized block will prevent multiple threads from altering the shared memory\n {\n System.out.println(\"I am thread \" + threadIndex); // we cannot reference local variables like i\n // so we are using final variable threadIndex\n \n System.out.println(\"The count is now \" + ++sync.counter); // sync.counter is shared memory\n // thus we cannot have multiple threads\n // try to increment at the same time\n \n if (sync.counter == sync.numThreads)\n {\n System.out.println(\"All threads will be notified\");\n \n sync.notifyAll(); // this method unblocks all threads that have called sync.wait()\n }\n else\n {\n System.out.println(\"Thread \" + threadIndex + \" will wait until notified\");\n \n // the .wait() method halts the current thread until it is notified from the same object sync\n try { sync.wait(); } catch (Exception e) { System.out.println(\"catched exception\"); }\n \n System.out.println(\"Thread \" + threadIndex + \" has been notified\");\n }\n }\n }", "private void handleWhiteboardSynchronization() {\n String userName = EventMessageParser.extractUserName(this.message);\n\n if (StringHelper.isNullOrEmpty(userName)) {\n for (SocketConnection peer : SocketManager.getInstance()\n .getNotManagerConnectionList()) {\n peer.send(this.message);\n }\n } else {\n SocketConnection connection = SocketManager.getInstance()\n .getUserConnection(userName);\n connection.send(this.message);\n }\n }", "public void sendPeerListToAll() {\r\n\t\tPacket packet = new Packet();\r\n\t\tpacket.eventCode = 1;\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\tPeer peer = new Peer();\r\n\t\t\tpeer.peerID = peerClientNodeConnectionList.get(i).peerClientID;\r\n\t\t\tpeer.peerIP = peerClientNodeConnectionList.get(i).peerClientIP;\r\n\t\t\tpeer.peerPort = peerClientNodeConnectionList.get(i).peerClientListeningPort;\r\n\t\t\tpacket.peerList.add(peer);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\ttry {\r\n\t\t\t\tpeerClientNodeConnectionList.get(i).outStream.writeObject(packet);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}", "public ConnectionList() {\n connections = new ConcurrentHashMap<>();\n keyCounter = 0;\n }", "public final LinkedList<Sync> getSyncPoints() {\n return syncPoints;\n }", "public Communicator() {\n\n\t\tthis.isReady = false;\n\t\tthis.hold = 0;\n\t\tthis.speaker = 0;\n\t\tthis.listener = 0;\n\t\t//init values\n\n\t\tthis.newLock = new Lock();\n\t\t//new lock\n\t\tthis.speakerR = new Condition2(newLock);\n\t\t//condition variable for speakers\n\t\tthis.listenerR = new Condition2(newLock);\n\t\t//condition variable for listener\n\t\tthis.inProg = new Condition2(newLock);\n\t\t//condition variable for inprog message\n\n\t}", "public void mem_list() {\n synchronized(chat_room) {\n Set id_set = cur_chat_room.keySet();\n Iterator iter = id_set.iterator();\n clearScreen(client_PW);\n client_PW.println(\"------------online member-----------\");\n while(iter.hasNext()) {\n String mem_id = (String)iter.next();\n if(mem_id != client_ID) {\n client_PW.println(mem_id);\n }\n }\n client_PW.flush();\n }\n }", "public Vector<String> getPeerList()\n\t{\n\t\treturn this.peerList;\n\t}", "public void synchronize(int change);", "@Override\n\t\t\tpublic void handleMessage(Message message) {\n\t\t\t\tif(Permission.checknetworkfrom(con))\n\t\t\t\t{\ngetdatlist();\n\t\t\t\t}\n\n\t\t\t}", "@Override\n public void lifeCycleStateChanged(LifeCycle oldState, LifeCycle newState) {\n if (oldState != LifeCycle.AUTHORIZED && newState == LifeCycle.AUTHORIZED) {\n log.info(\"hub became authorized, should sync hub reflexes...\");\n port.queue(new DoReflexSyncTask());\n }\n }", "LockManager() {\n }", "private void sendUpdateConnectionInfo() {\n\n }", "@Override\n\t\t\t\tpublic void notifyParallelRoad(int arg0) {\n\t\t\t\t\t\n\t\t\t\t}", "protected void populateList() {\n\n\t\tif (inTruckMode) {\n\t\t\t// issue #37 fix(block 2 users from punch-in)\n\t\t\t// Doing force sync for Vehicles table\n\t\t\t// if (com.operasoft.snowboard.dbsync.Utils.isOnline(this)) {\n\t\t\t// System.out.println(\"Sw_LoginScreenActivity.populateList():vehicle sync start\");\n\t\t\t// AbstractPeriodicSync vehiclesPeriodicSync = new AnonymousPeriodicSync(\"Vehicle\", new\n\t\t\t// VehiclesDao());\n\t\t\t// vehiclesPeriodicSync.fetchData(this);\n\t\t\t// }\n\n\t\t\tString vehicleId = mSP.getString(Config.VEHICLE_ID_KEY, \"\");\n\t\t\tString lastVehicleId = mSP.getString(Config.LAST_VEHICLE_KEY, \"\");\n\t\t\tvehiclesDao = new VehiclesDao();\n\n\t\t\t// issue #37 fix(block 2 users from punch-in)\n\t\t\t// VehicleListController vehicleListController = new VehicleListController();\n\t\t\t// vehiclesArray = vehicleListController.listVehicles(this);//vehiclesDao.listSorted();\n\t\t\tvehiclesArray = vehiclesDao.listSorted();\n\t\t\tvehiclesNameArray = new ArrayList<String>();\n\t\t\tint selectedIndex = -1;\n\n\t\t\tfor (int i = 0; i < vehiclesArray.size(); i++) {\n\t\t\t\tVehicle vehicles = vehiclesArray.get(i);\n\t\t\t\tvehiclesNameArray.add(vehicles.getName());\n\t\t\t\t// Check if the user is already connected to a vehicle\n\t\t\t\tif (vehicles.getId().equals(vehicleId)) {\n\t\t\t\t\tvehicle = vehicles;\n\t\t\t\t\tselectedIndex = i;\n\t\t\t\t}\n\t\t\t\t// Else check if it is his preferred one\n\t\t\t\tif ((selectedIndex == -1) && (vehicles.getId().equals(lastVehicleId))) {\n\t\t\t\t\tvehicle = vehicles;\n\t\t\t\t\tselectedIndex = i;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ((selectedIndex == -1) && (!vehiclesArray.isEmpty())) {\n\t\t\t\t// The user is not currently connected to any vehicle and has no\n\t\t\t\t// preferred one\n\t\t\t\tvehicle = vehiclesArray.get(0);\n\t\t\t\tselectedIndex = 0;\n\t\t\t}\n\n\t\t\t// Update the session with the vehicle currently selected\n\t\t\tSession.setVehicle(vehicle);\n\n\t\t\ttruckList.setAdapter(new TruckListAdapter(this, vehiclesNameArray, selectedIndex));\n\t\t} else {\n\n\t\t\t// Sites are not supported yet. Enable this code once they become\n\t\t\t// supported\n\t\t\t// SiteDao siteDao = new SiteDao();\n\t\t\t// sitesArray = siteDao.listAllValid();\n\t\t\t// sitesNameArray = new ArrayList<String>();\n\t\t\t//\n\t\t\t// for (Site site : sitesArray)\n\t\t\t// sitesNameArray.add(site.getName());\n\n\t\t\ttruckList.setAdapter(new TruckListAdapter(this, sitesNameArray, 0));\n\t\t}\n\n\t\tsetLoginMarker();\n\t}", "private void notifyStakeholder(){\n }", "public void run() {\n mSyncStart = null;\n\n // start sync\n SyncAdapter.requestSync(NumberValidation.this, true);\n\n // if we have been called internally, start ConversationList\n if (mFromInternal)\n startActivity(new Intent(getApplicationContext(), ConversationList.class));\n\n Toast.makeText(getApplicationContext(), R.string.msg_authenticated, Toast.LENGTH_LONG).show();\n\n // end this\n abortProgress();\n finish();\n }", "public void run() {\n try {\n //Create the input object stream and output object stream for this client\n toClient = new ObjectOutputStream(client.getOutputStream());\n fromClient = new ObjectInputStream(client.getInputStream());\n login = false;\n\n while (!login) {/*Wait for a client to login*/\n try {\n receviedProtocol = (Protocol) fromClient.readObject();\n if (receviedProtocol.getMethod().equals(\"HELP\"))\n sendHelpMenu();\n else if (receviedProtocol.getMethod().equals(\"LOGIN\")) {\n authorize(receviedProtocol);\n login = true;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n logout = false;\n while (!logout) {/*Keep conncetion between client and server until the client logout*/\n try{\n receviedProtocol = (Protocol)fromClient.readObject(); //Wait for client input\n startIndex = 0;//This will be used to track the starting point of next n groups to be send\n if(receviedProtocol.getMethod().equals(\"AG\"))\n allGroupHandler(receviedProtocol);\n else if(receviedProtocol.getMethod().equals(\"LOGOUT\")){\n logout();\n logout = true;\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }\n\n } catch (IOException e) {\n System.out.println(e);\n\n } finally {\n try {\n client.close();\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n }", "@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\tthis.checkConnectedList();\n\t}", "ManagementLockObject refresh(Context context);", "public interface PeerInfoService extends PeerInfoCallback {\r\n}", "@Override\n\tpublic void onUserListSubscription(User subscriber, User listOwner, UserList list) {\n\n\t}", "@Override\n\tpublic List<Portlet> getListForSync(Map<String, Object> param) {\n\t\treturn portletDao.getListForSync(param);\n\t}", "@Override\n public void run() {\n EndpointServer random = Preferences.getEndpointServer(mContext);\n\n /** no server found -- notify to user */\n if (random == null) {\n Log.i(TAG, \"no list to pick a random server from - aborting\");\n\n // notify to UI\n if (mListener != null)\n mListener.nodata();\n\n return;\n }\n\n try {\n // TODO\n /*\n mConnection = new ClientHTTPConnection(null, mContext, random, null);\n Protocol.ServerList data = mConnection.serverList();\n if (data != null) {\n // write down to cache\n OutputStream out = new FileOutputStream(getCachedListFile(mContext));\n data.writeTo(out);\n out.close();\n }\n\n // parse cached list :)\n sCurrentList = parseList(data);\n if (mListener != null)\n mListener.updated(sCurrentList);\n\n // restart message center\n MessageCenterService.restartMessageCenter(mContext.getApplicationContext());\n */\n throw new IOException();\n }\n catch (IOException e) {\n if (mListener != null)\n mListener.error(e);\n }\n finally {\n mConnection = null;\n }\n }", "public interface SynchronizationControl {\n /**\n * Updates the synchronization time.\n * Using this method is preferable to calling {@link #synchronizationDone()} followed by {@link FeedView#synchronizeTime(long)}\n * because it is atomic.\n * @param time new time to synchronize on\n */\n void update(long time);\n\n /**\n * Complete the time synchronization across views. This must be called in order to\n * restart normal feed activity. \n */\n void synchronizationDone();\n }", "@Override\r\n public Object connect() {\n if(status()){\r\n //creates thread that checks messages in the network\r\n System.out.println(\"notifying network that connection is good\");\r\n notifyObservers(this);\r\n }\r\n return socket;\r\n }", "interface NotifyClient extends Remote {\n\n\t/**\n\t * An identity has been assigned to this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param oldNode\n\t * the last node the identity was assigned to, or {@code null} if\n\t * this is a new node assignment\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid added(Identity id, Node oldNode) throws IOException;\n\n\t/**\n\t * \n\t * An identity has been removed from this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param newNode\n\t * the new node the identity is assigned to, or {@code null} if\n\t * the identity is being removed from the map\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid removed(Identity id, Node newNode) throws IOException;\n\n\t/**\n\t * An identity has been selected for relocation from this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param newNodeId\n\t * the ID of the new node the identity will be relocated to\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid prepareRelocate(Identity id, long newNodeId) throws IOException;\n}", "public interface INetworkHandler<T> extends Runnable {\n\n /**\n * The main method which starts the protocol implementation.\n * <p>\n * {@inheritDoc}\n */\n void run();\n\n /**\n * Sends the request of the network handler to all online peers of the node.\n *\n * @throws ConnectionFailedException If the other online clients can not be determined\n */\n void sendRequest(IRequest request)\n throws ConnectionFailedException;\n\n /**\n * Blocks until all notified clients have responded\n *\n * @throws InterruptedException If the thread got interrupted while waiting\n */\n void await()\n throws InterruptedException;\n\n /**\n * Blocks for the given timeout.\n *\n * @param timeout The timeout to wait\n * @param timeUnit The time unit which qualifies the timeout\n *\n * @throws InterruptedException If the thread got interrupted while waiting\n */\n void await(long timeout, TimeUnit timeUnit)\n throws InterruptedException;\n\n /**\n * Returns true once all notified clients have responded.\n *\n * @return True, if all notified clients have responded, false otherwise.\n */\n boolean isCompleted();\n\n /**\n * Returns the progress until this handler's communication\n * is considered complete (See {@link INetworkHandler#isCompleted()}).\n *\n * Returns values between 100 and 0 (inclusive).\n *\n * @return The progress\n */\n int getProgress();\n\n\n /**\n * Returns the final result of the exchange.\n * Note, that the result may be null before all clients have responded.\n *\n * @return The result once the all necessary clients responded. May be null before all clients have responded\n */\n T getResult();\n}", "@Override\n protected List<Invoker<T>> doList(Invocation invocation) throws RpcException {\n if (forbidden){\n throw new RpcException(RpcException.FORBIDDEN_EXCEPTION, \"No provider available from registry \"\n + getUrl().getAddress() + \" for service \" + getConsumerUrl().getServiceKey()\n + \" on consumer \" + NetUtils.getLocalHost() + \" use mandal version is \"\n + Version.getVersion() + \", may be provider disabled or not registerd\");\n }\n List<Invoker<T>> invokers = null;\n Map<String, List<Invoker<T>>> localMethodInvokerMap = this.methodsInvokerMap;\n if (!CollectionUtils.isEmpty(localMethodInvokerMap)){\n String methodName = RpcUtils.getMethodName(invocation);\n Object[] args = RpcUtils.getArgument(invocation);\n if (!Objects.isNull(args) && args.length > 0 && !Objects.isNull(args[0]) && (args[0] instanceof String || args[0].getClass().isEnum())){\n invokers = localMethodInvokerMap.get(methodName + \".\" + args[0]);\n }\n if (Objects.isNull(invokers)){\n invokers = localMethodInvokerMap.get(methodName);\n }\n if (Objects.isNull(invokers)){\n invokers = localMethodInvokerMap.get(Constants.ANY_VALUE);\n }\n if (Objects.isNull(invokers)){\n Iterator<List<Invoker<T>>> iterator = localMethodInvokerMap.values().iterator();\n if (iterator.hasNext()){\n invokers = iterator.next();\n }\n }\n }\n return Objects.isNull(invokers) ? new ArrayList<Invoker<T>>(0) : invokers;\n }", "public Object getLock() {\n return dataLock;\n }", "public Communicator() {\n\t\tcommlock = new Lock ();\n\t\tspeaker = new Condition(commlock);\n\t\tlistener = new Condition(commlock);\n\n }", "@Override\n \t\t\tpublic void run ()\n \t\t\t{\n \t\t\t\tsynchronized ( heard )\n \t\t\t\t{\n \t\t\t\t\theard.clear ();\n \t\t\t\t}\n \t\t\t\t// re-transmit own until not in a block\n \t\t\t\tsynchronized ( own )\n \t\t\t\t{\n \t\t\t\t\tif ( !own.isEmpty () )\n \t\t\t\t\t{\n \t\t\t\t\t\tfor ( BitcoinPeer peer : network.getConnectPeers () )\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tInvMessage tm = (InvMessage) peer.createMessage (\"inv\");\n \t\t\t\t\t\t\tfor ( Tx t : own )\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tlog.debug (\"Re-broadcast \" + t.getHash ());\n \t\t\t\t\t\t\t\ttm.getTransactionHashes ().add (new Hash (t.getHash ()).toByteArray ());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tpeer.send (tm);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onSyncSuccess() {\n\t\t\t\t\t\t\tnotifyLoginEvent(true);\n\t\t\t\t\t\t}", "@Override\n\tpublic void lock() {\n\t\tSystem.out.println(\"Card in ATM1 is locked !\");\n\t}", "@Override\n\tpublic void update(Peer otherPeer) {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\n\t\t\tif(otherPeer.equals(request.getConsumer()) || otherPeer.equals(request.getProvider()))\t\t\n\t\t\t\tupdateAccounting(request);\n\t\t}\t\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of this peer was performed, \n\t\t * we now update the lastUpdatedTime of this accounting info. \n\t\t */\n\t\tgetAccountingInfo(otherPeer).setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\n\t\tfinishRequests();\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate synchronized boolean lockRequest(Connection con, JsonObject receivedMSG) throws NullPointerException {\n\t\tif (!broadConnections.contains(con)) {\n\t\t\tInvalidMessage invalidMsg = new InvalidMessage();\n\t\t\tinvalidMsg.setInfo(\"Unanthenticated server\");\n\t\t\tcon.writeMsg(invalidMsg.toJsonString());\n\t\t\treturn false;\n\t\t}\n\t\tString username = receivedMSG.get(\"username\").getAsString();\n\t\tString secret = receivedMSG.get(\"secret\").getAsString();\n\t\tJSONObject response = new JSONObject();\n\n\t\tfor (Connection server : broadConnections) {\n\t\t\tif (server != con) {\n\t\t\t\tserver.writeMsg(receivedMSG.getAsString());\n\t\t\t}\n\t\t}\n\n\t\t// If the user name does not exist in local database\n\t\t// store it now\n\t\tif (!userInfo.containsKey(username)) {\n\t\t\tresponse.put(\"command\", LOCK_ALLOWED);\n\t\t\tresponse.put(\"username\", username);\n\t\t\tresponse.put(\"secret\", secret);\n\t\t\tuserInfo.put(username, secret);\n\t\t\tfor (Connection server : broadConnections) {\n\t\t\t\tserver.writeMsg(response.toJSONString());\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t\t// Otherwise return lock denied\n\t\tresponse.put(\"command\", LOCK_DENIED);\n\t\tresponse.put(\"username\", username);\n\t\tresponse.put(\"secret\", secret);\n\t\tfor (Connection server : broadConnections) {\n\t\t\tserver.writeMsg(response.toJSONString());\n\t\t}\n\t\treturn true;\n\t}" ]
[ "0.5532905", "0.5519291", "0.54837334", "0.53966093", "0.5375045", "0.5343855", "0.5340095", "0.5335833", "0.532401", "0.5318568", "0.5318096", "0.5308167", "0.52904284", "0.52871823", "0.5274671", "0.52733654", "0.5261845", "0.5244869", "0.52278745", "0.5220355", "0.52050465", "0.5199211", "0.519834", "0.5195695", "0.5159266", "0.5157063", "0.5155575", "0.51554084", "0.51507086", "0.5144477", "0.51341915", "0.5119313", "0.51116085", "0.51101136", "0.5106654", "0.5092523", "0.50906795", "0.5083117", "0.50784254", "0.50654715", "0.5053024", "0.50516295", "0.5041398", "0.50363094", "0.5030865", "0.50208384", "0.500464", "0.50008976", "0.49969748", "0.49718133", "0.4965919", "0.49542838", "0.4940977", "0.49319795", "0.49269363", "0.49220696", "0.49141082", "0.4913049", "0.49100026", "0.49100026", "0.49100026", "0.49051893", "0.4903222", "0.4902883", "0.48992553", "0.48977923", "0.48925424", "0.48912516", "0.48909763", "0.48908162", "0.48905304", "0.48888028", "0.48753658", "0.4867157", "0.4861977", "0.4858751", "0.4829765", "0.48221442", "0.48189104", "0.48177302", "0.48175645", "0.48141828", "0.48137575", "0.48127848", "0.48078978", "0.4807006", "0.48057333", "0.480145", "0.4801203", "0.4795197", "0.47948796", "0.47938782", "0.4793154", "0.47819284", "0.47801512", "0.47799206", "0.47786558", "0.47763866", "0.47758982", "0.47753057" ]
0.50928885
35
Add a new PeerEndpoint to the list of peers
void addPeerEndpoint(PeerEndpoint peer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEndpoint(Endpoint endpoint)\r\n {\r\n getEndpoints().add(endpoint);\r\n }", "void addPeer(Uuid peer) throws RemoteException;", "public void addPeerToList(WifiP2pDevice peer) {\n stopRefreshActionBar();\n int peer_index = -1;\n if ((peer_index = peers_.indexOf(peer)) != -1) {\n peers_.get(peer_index).deviceName = peer.deviceName;\n peers_.get(peer_index).deviceAddress = peer.deviceAddress;\n peers_.get(peer_index).status = peer.status;\n } else {\n peers_.add(peer);\n }\n displayEmptyView();\n System.out.println(\"Peers found\");\n ((PeersAdapter)adapter_).update();\n listener_.onDiscoveringPeersRequestDone();\n }", "public com.microsoft.schemas.xrm._2014.contracts.EndpointCollection addNewEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2014.contracts.EndpointCollection target = null;\r\n target = (com.microsoft.schemas.xrm._2014.contracts.EndpointCollection)get_store().add_element_user(ENDPOINTS$0);\r\n return target;\r\n }\r\n }", "public void peersAdded(List<Response> peerList) {\n peerList.stream()\n .filter(peer -> connectionMap.get(peer.getString(\"address\")) == null &&\n !peer.getString(\"version\").isEmpty())\n .forEach(peer -> {\n connectionList.add(peer);\n connectionMap.put(peer.getString(\"address\"), peer);\n if (State.fromCode(peer.getInt(\"state\")) == State.CONNECTED)\n activeCount++;\n });\n fireTableDataChanged();\n }", "void addpeer(Node p) {\n\t\tpeers.add(p);\n\t}", "public void add(PeerInt p){\n\t\tMLog.log(\"adding peer\");\n\t\tpeers.add(p);\n\t}", "public org.hl7.fhir.Uri addNewEndpoint()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Uri target = null;\n target = (org.hl7.fhir.Uri)get_store().add_element_user(ENDPOINT$8);\n return target;\n }\n }", "void accountPeerAdded(String peerId);", "public void addEndpoint(String endpoint) {\n\t\tif (sessionMap.putIfAbsent(endpoint, new ArrayList<Session>()) != null)\n\t\t\tLOG.warn(\"Endpoint {} already exists\", endpoint);\n\t\telse\n\t\t\tLOG.info(\"Added new endpoint {}\", endpoint);\n\t}", "public void addEndpoint(Endpoint endpoint)\n\t\t{\n\t\t\tEndpoint newEndpoint = addNewEndpoint(endpoint.getEntity());\n\t\t\tnewEndpoint.setStatus(endpoint.getStatus());\n\t\t\tnewEndpoint.setState(endpoint.getState());\n\t\t\tfor (Media media : endpoint.getMedias())\n\t\t\t\tnewEndpoint.addMedia(media);\n\t\t}", "public void peerAdded(Response peer, List<String> pendingConnections) {\n String address = peer.getString(\"address\");\n if (peer.getString(\"version\").isEmpty()) {\n if (!pendingConnections.contains(address))\n pendingConnections.add(address);\n return;\n }\n State peerState = State.fromCode(peer.getInt(\"state\"));\n Response mapPeer = connectionMap.get(address);\n if (mapPeer == null) {\n connectionList.add(peer);\n connectionMap.put(address, peer);\n if (peerState == State.CONNECTED)\n activeCount++;\n fireTableRowsInserted(connectionList.size()-1, connectionList.size()-1);\n } else {\n State mapState = State.fromCode(mapPeer.getInt(\"state\"));\n if (mapState == State.CONNECTED && peerState != State.CONNECTED)\n activeCount--;\n else if (mapState != State.CONNECTED && peerState == State.CONNECTED)\n activeCount++;\n int row = connectionList.indexOf(mapPeer);\n connectionList.set(row, peer);\n connectionMap.put(address, peer);\n fireTableRowsUpdated(row, row);\n }\n }", "public synchronized void addPeer(String filename, PeerConnection peer) {\n\t\tSet<PeerConnection> filePeers = this.peerRecord.get(filename);\n\t\tfilePeers.add(peer);\n\t}", "public interface IPeerManager\r\n{\r\n /**\r\n * Add a new PeerEndpoint to the list of peers\r\n * \r\n * @param peer\r\n */\r\n void addPeerEndpoint(PeerEndpoint peer);\r\n\r\n /**\r\n * Returns a current snapshot of all known peers\r\n * \r\n * @return An iterable list of all the peers\r\n */\r\n Set<String> getPeerSnapshot();\r\n\r\n /**\r\n * Returns the PeerEnpoint matching the key\r\n * \r\n * @param key\r\n * @return the requested PeerEndpoint\r\n */\r\n PeerEndpoint getPeerEndpoint(String key);\r\n\r\n /**\r\n * Deletes the PeerEndpoint matching the provided key\r\n * \r\n * @param key\r\n */\r\n void removePeerEndpoint(String key);\r\n\r\n /**\r\n * Returns the number of currentlyn known peers\r\n * \r\n * @return number of currently known peers\r\n */\r\n int getPeerCount();\r\n}", "@Test(expected = IllegalArgumentException.class)\n public void testAddAlreadyRegisteredPeer() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n IpAddress.valueOf(PEER_IP),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }", "public static synchronized Boolean addKnownPeers(udpSocket peer) {\n if ((knownPeers.size() - outgoing.size() + 1) <= Integer.parseInt(config.get(\"maximumIncommingConnections\"))) {\n knownPeers.add(peer);\n if (peer.type != \"client from server\") {\n outgoing.add(peer);\n }\n log.info(\"Added peer to udppeerlist\");\n return true;\n }\n log.info(\"Did not add peer to udppeerlist\");\n return false;\n }", "void addEndpointReport(@NotNull EndpointReport endpointReport){\n endpointReports.add(endpointReport);\n }", "private ResolverService(Peer peer, EndpointService epService)\n {\n super(peer, RESSERVICE_NAME);\n\n // init fields\n initFields();\n \n \n this.epService = epService;\n epService.addListener(serviceName, this); //adding listener to end\n // point service\n\n cache = Cache.createInstance(); //creating cache\n cache.addResource(peer);\n \n\n // get SeedPeerList\n EndpointAddress[] seedPeerList = getSeedURIs();\n \n if (seedPeerList != null && seedPeerList.length > 0)\n {\n int seedListSize = (neighbors > seedPeerList.length ? seedPeerList.length : neighbors);\n seedURI = new EndpointAddress[seedListSize][1];\n for (int i = 0; i < seedListSize; i++)\n {\n seedURI[i][0] = seedPeerList[i];\n }\n }\n// try\n// {\n// mcastURI = new EndpointAddress(null, null, 0);\n// } catch (Exception e)\n// {\n// e.printStackTrace();\n// }\n\n// myPeer = peer;\n peerId = peer.getID().toString(); //TBD kuldeep - Is this needed?\n// peername = myPeer.getName();\n }", "public Endpoint addNewEndpoint(String entity)\n\t\t{\n\t\t\tElement endpointElement = document.createElement(ENDPOINT_ELEMENT_NAME);\n\t\t\tEndpoint endpoint = new Endpoint(endpointElement);\n\t\t\tendpoint.setEntity(entity);\n\n\t\t\tuserElement.appendChild(endpointElement);\n\t\t\tendpointsList.add(endpoint);\n\n\t\t\treturn endpoint;\n\t\t}", "public boolean add(Node peer) {\n\t\t\tboolean res = super.add(peer);\n\t\t\taddNotifier.notifyObservers(peer);\n\t\t\treturn res;\n\t\t}", "private void connectingPeer() {\n for (int index = 0; index < this.peers.size(); index++) {\n String peerUrl = urlAdderP2PNodeName((String) this.peers.get(index));\n try {\n Node distNode = NodeFactory.getNode(peerUrl);\n P2PService peer = (P2PService) distNode.getActiveObjects(P2PService.class.getName())[0];\n \n if (!peer.equals(this.localP2pService)) {\n // Send a message to the remote peer to record me\n peer.register(this.localP2pService);\n // Add the peer in my group of acquaintances\n this.acqGroup.add(peer);\n }\n } catch (Exception e) {\n logger.debug(\"The peer at \" + peerUrl +\n \" couldn't be contacted\", e);\n }\n }\n }", "private void addPeer(DecentSocket socket) {\n\t\tInetAddress address = socket.getInetAddress();\n\t\tif(canAddPeer(address)) {\n\t\t\tpeers.put(address, socket);\n\t\t\t//If this is the client's first peer, flush the message queue\n\t\t\tif(peers.size() == 1) {\n\t\t\t\tflushMessageQueue();\n\t\t\t\tDecentLogger.write(\"Flushed message queue\");\n\t\t\t}\n\t\t\tDecentLogger.write(\"Added new peer: \"+address.getHostAddress());\n\t\t\twritePeers();\n\t\t\tif(peers.size() < maximumConnections) {\n\t\t\t\tsocket.send((new PeerAskMessage()));\n\t\t\t}\n\t\t}\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testAddPeerWithNameInUse() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(PEER1_NAME,\n newPeer.ip(),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }", "@Test(expected = ItemNotFoundException.class)\n public void testAddPeerUknownIp() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n IpAddress.valueOf(NEW_PEER2_IP),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }", "@Override\n\tpublic void addchild(EndpointEntity entity) {\n\t\t\n\t}", "public void addEdge(Edge e){\n edgeList.add(e);\n }", "@Test\n public void testAddPeerDetailsSuccess() {\n participantsConfig.addPeer(newPeer);\n expectLastCall().once();\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n verify(participantsConfig);\n }", "@Override\n public CreateEndpointResult createEndpoint(CreateEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeCreateEndpoint(request);\n }", "@Test(expected = ItemNotFoundException.class)\n public void testAddPeerWithNoBgpConfig() {\n replay(participantsConfig);\n // Reset NetworkConfigService\n peerManager.configService = new NetworkConfigServiceAdapter();\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }", "public void addPorts(){\n\t\t\n\t}", "public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}", "public void sendPeerListToAll() {\r\n\t\tPacket packet = new Packet();\r\n\t\tpacket.eventCode = 1;\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\tPeer peer = new Peer();\r\n\t\t\tpeer.peerID = peerClientNodeConnectionList.get(i).peerClientID;\r\n\t\t\tpeer.peerIP = peerClientNodeConnectionList.get(i).peerClientIP;\r\n\t\t\tpeer.peerPort = peerClientNodeConnectionList.get(i).peerClientListeningPort;\r\n\t\t\tpacket.peerList.add(peer);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\ttry {\r\n\t\t\t\tpeerClientNodeConnectionList.get(i).outStream.writeObject(packet);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}", "PeerEndpoint getPeerEndpoint(String key);", "public Service() {\n if (peers[0] == null) {\n Service.peers[0] = new Peer(clave7);\n Service.peers[1] = new Peer(clave8);\n Service.peers[2] = new Peer(clave9);\n Service.peers[0].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n //Service.peers[0].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n //Service.peers[1].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n //Service.peers[2].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n }\n }", "public int register(String fileName, IPv4 peer) {\n try {\n // check if this file has been registered before\n if (this.registry.containsKey(fileName)) {\n // it exists, acquire its known peer list and add this peer to it\n HashSet<IPv4> filePeerList = this.registry.get(fileName);\n filePeerList.add(peer);\n } else {\n // does not exist, create a new entry with this peer associated to it\n HashSet<IPv4> filePeerList = new HashSet<IPv4>();\n filePeerList.add(peer);\n this.registry.put(fileName, filePeerList);\n }\n this.log(String.format(\"-> registered '%s' to (leaf %s).\", fileName, peer));\n return 0;\n } catch (Exception e) {\n e.printStackTrace();\n return 1;\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testAddPeerToNonMatchingInterface() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n SW3_ETH1,\n INTERFACE_SW3_ETH1);\n }", "@Test(expected = ItemNotFoundException.class)\n public void testAddPeerToUnknownInterface() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n newPeer.connectPoint(),\n \"dummy-interface\");\n }", "public void writePeers() {\n\t\ttry(FileWriter filewriter = new FileWriter(peersFile)) {\n\t\t\tIterator<InetAddress> itr = peers.keySet().iterator();\n\t\t\twhile(itr.hasNext()) {\n\t\t\t\tInetAddress p = itr.next();\n\t\t\t\tfilewriter.write(p.getHostAddress()+\"\\n\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tDecentLogger.write(\"Unable to write peers to file\");\n\t\t}\n\t}", "public void addServiceEntriesToDD(String serviceName, String serviceEndpointInterface, String serviceEndpoint);", "EndPoint createEndPoint();", "public void addEdge(E e){\n\t\tedges.add(e);\n\t}", "default void createEndpoint(\n com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateEndpointMethod(), responseObserver);\n }", "private void setUpPeers() {\n SdxParticipantsConfig.PeerConfig peer1 =\n new SdxParticipantsConfig.PeerConfig(Optional.of(PEER1_NAME),\n IpAddress.valueOf(PEER_IP),\n SW1_ETH1,\n INTERFACE_SW1_ETH1);\n\n // Set up the related expectations\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(PEER_IP)))\n .andReturn(SW1_ETH1).anyTimes();\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(PEER_IP)))\n .andReturn(INTERFACE_SW1_ETH1).anyTimes();\n expect(participantsConfig.getPeerForName(Optional.of(PEER1_NAME)))\n .andReturn(peer1).anyTimes();\n expect(participantsConfig.getPeerForIp(IpAddress.valueOf(PEER_IP)))\n .andReturn(peer1).anyTimes();\n\n // Set up expectations for peers that will be added\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPeerForIp(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(NEW_PEER2_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(NEW_PEER2_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPeerForName(Optional.of(NEW_PEER_NAME)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.node()).andReturn(null).anyTimes();\n }", "public void addEdge(Edge e){\n\t\tadjacentEdges.add(e);\n\t}", "public void setPeer(Peer peer);", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.servicedirectory.v1beta1.Endpoint>\n createEndpoint(com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request);\n }", "void addHost(Service newHost);", "private boolean canAddPeer(InetAddress candidate) {\n\t\treturn peers.size() < maximumConnections && !peers.containsKey(candidate) && !candidate.equals(externalIP) && !candidate.equals(internalIP) && !candidate.isLoopbackAddress();\n\t}", "void removePeerEndpoint(String key);", "public void addVirtualEdge(E e){\n\t\tedges.add(e);\n\t\tvirtualEdges.add(e);\n\t}", "public void createEndpoint(\n com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateEndpointMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "private static List<MonitoredEndpoint> initMonitoredEndpoints(final Properties props, final Logger logger) throws Exception {\n\n File sampledEndpointDir = getSystemFile(\"sampledEndpointDir\", props, false);\n\n List<MonitoredEndpoint> monitoredEndpoints = Lists.newArrayListWithExpectedSize(16);\n\n if(sampledEndpointDir != null) {\n File[] propFiles = sampledEndpointDir.listFiles();\n if(propFiles != null) {\n for(File propFile : propFiles) {\n if(propFile.isDirectory()) continue;\n Properties endpointProps = new Properties();\n try {\n byte[] propBytes = Files.toByteArray(propFile);\n endpointProps.load(new ByteArrayInputStream(propBytes));\n if(endpointProps.getProperty(\"url\") != null) {\n monitoredEndpoints.add(new MonitoredEndpoint(endpointProps));\n }\n } catch(IOException ioe) {\n logger.warn(\"Problem loading sampled endpoint '\" + propFile.getAbsolutePath() + \"'\", ioe);\n }\n }\n }\n }\n\n return monitoredEndpoints;\n }", "private void attachServerPeer(DiameterRequestFacade request) {\n\t\tif (request != null && request.getServerPeer() == null) {\n\t\t\tLocalPeer localPeer = Utils.getClientLocalPeer(request.getHandlerName());\n\t\t\trequest.setServerPeer(localPeer);\n\t\t}\n\t}", "void addNeighborEdge(Edge e) {\n\t\t\t_neighborEdges.put(e,false);\n\t\t}", "void attachPeer(Activity act) {\n\t\tact.runOnUiThread(new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tFragmentTransaction ft = act.getFragmentManager().beginTransaction();\n\t\t\t\tft.add(new Peer(), PEER_TAG);\n\t\t\t\tft.commit();\n\t\t\t\tact.getFragmentManager().executePendingTransactions();\n\t\t\t}\n\t\t});\n\t}", "@Override\n public List<ServiceEndpoint> listServiceEndpoints() {\n return new ArrayList<>(serviceEndpoints.values());\n }", "protected void onEndpointConnected(Endpoint endpoint) {}", "@Override\n default ManagerPrx ice_endpoints(com.zeroc.Ice.Endpoint[] newEndpoints)\n {\n return (ManagerPrx)_ice_endpoints(newEndpoints);\n }", "private Endpoint(Element endpoint)\n\t\t{\n\t\t\tthis.endpointElement = endpoint;\n\t\t\tNodeList mediaNodeList = endpoint.getElementsByTagName(MEDIA_ELEMENT_NAME);\n\t\t\tfor (int i = 0; i < mediaNodeList.getLength(); i++) {\n\t\t\t\tMedia media = new Media((Element) mediaNodeList.item(i));\n\t\t\t\tmediasList.add(media);\n\t\t\t}\n\t\t}", "public void addEdge(int start, int end, double weight);", "void setEndpoint(String endpoint);", "@Override\n public void onEndpointConnected(String id, List<String> names) {\n Log.d(TAG, \"endpoint connected: \" + id + \" \" + names);\n }", "void addEdge(String origin, String destination, double weight){\n\t\tadjlist.get(origin).addEdge(adjlist.get(destination), weight);\n\t\tedges++;\n\t}", "public void addEdge(int start, int end);", "public void addNeighbor(Node node){\n neighbors.add(node);\n liveNeighbors.add(node);\n }", "public void addEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge = new Edge(v1, v2, edgeInfo);\n if(adjLists[v1].contains(edge)){\n return;\n }\n adjLists[v1].addLast(edge);\n }", "@Override\r\n\tpublic void onPeersAvailable(WifiP2pDeviceList peers) {\n\t\t\r\n\t}", "@Override\n public UpdateEndpointResult updateEndpoint(UpdateEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeUpdateEndpoint(request);\n }", "@Override\n default IServerPrx ice_endpoints(com.zeroc.Ice.Endpoint[] newEndpoints)\n {\n return (IServerPrx)_ice_endpoints(newEndpoints);\n }", "public void setEndpoints(String... endpoints) {\n this.endpoints = endpoints;\n }", "public boolean addEndpoint(String endpointData) throws AxisFault {\n EndpointAdminServiceClient endpointAdminServiceClient = getEndpointAdminServiceClient();\n return endpointAdminServiceClient.addEndpoint(endpointData);\n }", "public void addEdge(StubEdge e) {\n }", "public void addParticipant (Participant participantAAjouter){\n if (participantAAjouter != null){\n for (Participant participant :lesParticipants){\n if (participant.getIdParticipant()==participantAAjouter.getIdParticipant()){\n return;\n } \n }\n lesParticipants.add(participantAAjouter);\n }\n }", "public com.google.cloud.servicedirectory.v1beta1.Endpoint createEndpoint(\n com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateEndpointMethod(), getCallOptions(), request);\n }", "public void setNilEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2014.contracts.EndpointCollection target = null;\r\n target = (com.microsoft.schemas.xrm._2014.contracts.EndpointCollection)get_store().find_element_user(ENDPOINTS$0, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas.xrm._2014.contracts.EndpointCollection)get_store().add_element_user(ENDPOINTS$0);\r\n }\r\n target.setNil();\r\n }\r\n }", "private void onPeerAdded(Pdu pdu)\n {\n String pid = pdu.getString(\"pid\");\n for (PeerListener listener : getListeners()) {\n listener.onPeerAdded(pid);\n }\n }", "public void registerPeer(Packet packet) {\r\n\t\tpeerClientListeningPort = packet.peerClientListenPort;\r\n\t\tpeerClientID = assignID();\r\n\t\tpeerClientNodeConnectionList.add(this);\r\n\t\tjava.util.Date date = new java.util.Date();\r\n\t\tSystem.out.println(date + \": Peer Node ID: \" + peerClientID + \" connected to the Server Node...\");\r\n\t\tpeerClientNodeConnectionList.sort(Comparator.comparing(PeerToPeerConnection::getID));\r\n\t\t//printNodeConnections();\r\n\t\t\r\n\t\t// Send peerID to registered peer\r\n\t\tPacket regPacket = new Packet();\r\n\t\tregPacket.eventCode = 0;\r\n\t\tregPacket.peerClientID = peerClientID;\r\n\t\ttry {\r\n\t\t\toutStream.writeObject(regPacket);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Send peerClientNodeConnectionList to ALL peers\r\n\t\tsendPeerListToAll();\r\n\t}", "public void addFriend(Profile p)\n {\n\n friendslist.add(p);\n }", "private List<Identifier> determineAdapters(Message msg, PeerInfo newPeerInfo){\r\n\t\t\r\n\t\tif (peerToAdaptersMappings.size() > MAP_SIZE_LIMIT) peerToAdaptersMappings.clear();\r\n\t\t\r\n\t\tif (peerToAdaptersMappings.containsKey(newPeerInfo)){ //uses just peer id comparison here. \r\n\t\t\t//this is a known recipient\r\n\t\t\t//However, we still need to check if the available list of adapters (routing list) is valid.\r\n\t\t\t\r\n\t\t\tPair<List<Identifier>, PeerInfo> p;\r\n\t\t\tp = peerToAdaptersMappings.get(newPeerInfo);\r\n\t\t\t\r\n\t\t\tint i = 1;\r\n\t\t\twhile (p == null && i<4) { //this can happen if another thread flushed the entry in the meantime. That same thread should also update the value, though\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(i*20);\r\n\t\t\t\t} catch (InterruptedException ignored) {}\r\n\t\t\t\tp = peerToAdaptersMappings.get(newPeerInfo);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (i >= 4 && p == null){\r\n\t\t\t\t//the other thread obviously did not do the job yet. We will take care of it in the rest of the method.\r\n\t\t\t}else{\r\n\t\t\t\tPeerInfo oldPeerInfo = p.second;\r\n\t\t\t\tif (newPeerInfo.equalsByDeepCoparison(oldPeerInfo)){\r\n\t\t\t\t\treturn p.first; //return the existing list of adapters, since nothing changed in the PeerInfo from last time\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\t// if we arrived here it means, either:\r\n\t\t// sending message to this peer for the first time \r\n\t\t// OR\r\n\t\t// the information we have is outdated, so let's update it\r\n\t\t\r\n\r\n\t\tList<Identifier> adapters = adapterMgr.createEndpointForPeer(newPeerInfo); //need not be synced, since invoking createEndpointForPeer multiple times should be fine\r\n\t\tPair<List<Identifier>, PeerInfo> p = new Pair<List<Identifier>, PeerInfo>(adapters, newPeerInfo);\r\n\t\t\r\n\t\tsynchronized(peerToAdaptersMappings){ //just using ConcurrentHashMap is not enough, because we need to save the reference to the map's key in the second object of the Pair, which is the object of the map, and if 2 thread repeat put, the value will get updated, but that value will contain the wrong reference to the key, meaning that subsequently the deep comparison between the old and the new PeerInfo object will not be possible\r\n\t\t\tpeerToAdaptersMappings.remove(newPeerInfo); //in reality, we remove an existing entry, if any. Since the PeerInfo.equals just compares Ids, it should locate the exact entry.\r\n\t\t\tpeerToAdaptersMappings.put(newPeerInfo, p); //we now put in the new value, which is a Pair, whose second element points to the key of the entry in the peerToAdaptersMappings where the Pair value belongs\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// Now we have the list of all possible Adapters trough which we can deliver the message to the peer.\r\n\t\t// However, depending on peer's stated delivery policy we may want to restrict this list.\r\n\t\t// For example, in case of DeliveryPolicy.PREFERRED, we will just return the first Adapter.\r\n\t\t// But, in case of either TO_ALL_CHANNELS or AT_LEAST_ONE, we return all adapters, because in either case\r\n\t\t// the policy foresees sending to multiple adapters, but interpreting responses from all/one channel as ultimate success, respectively. \r\n\t\t\r\n\t\t\r\n\t\tif (newPeerInfo.getDeliveryPolicy() == DeliveryPolicy.Peer.PREFERRED){\r\n\t\t\tIdentifier preferred = adapters.get(0);\r\n\t\t\tList<Identifier> prefList = new ArrayList<Identifier>();\r\n\t\t\tprefList.add(preferred);\r\n\t\t\treturn prefList;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn adapters;\r\n\t}", "@Override\n default UserpostPrx ice_endpoints(com.zeroc.Ice.Endpoint[] newEndpoints)\n {\n return (UserpostPrx)_ice_endpoints(newEndpoints);\n }", "public void addEdge(Edge e){\n\t\tedges.put(e.hashCode(), e);\n\t\te.getHead().addConnection(e);\n\t\te.getTail().addConnection(e);\n\t}", "lightpay.lnd.grpc.Peer getPeers(int index);", "void addEdge(Edge e) {\n edges.add(e);\n addVerticle(e.v1);\n addVerticle(e.v2);\n }", "public List<Endpoint> getEndpoints()\n\t\t{\n\t\t\treturn endpointsList;\n\t\t}", "public void addNeighbour(final Vertex neighbour){\n\t\tneighbours.add(neighbour);\n\t}", "public final EObject entryRuleEndpoint() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEndpoint = null;\n\n\n try {\n // InternalMappingDsl.g:3450:49: (iv_ruleEndpoint= ruleEndpoint EOF )\n // InternalMappingDsl.g:3451:2: iv_ruleEndpoint= ruleEndpoint EOF\n {\n newCompositeNode(grammarAccess.getEndpointRule()); \n pushFollow(FOLLOW_1);\n iv_ruleEndpoint=ruleEndpoint();\n\n state._fsp--;\n\n current =iv_ruleEndpoint; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "synchronized void addOldOpennetNode(PeerNode pn) {\n\t\toldPeers.push(pn);\n\t}", "public static EndpointMBean getAddEndpointMBean()\n {\n return new Endpoint(\n \"http://localhost:9080/WebServiceProject/CalculatorService\");\n }", "public abstract void addEdge(Point p, Direction dir);", "public void setEndpointId(String endpointId);", "public void addParticipant(String uid) {\n\r\n if (!participants.contains(uid))\r\n participants.add(uid);\r\n }", "private void add() {\n\t\tlist = new ArrayList<Fragment>();\n\t\tlist.add(new HomeFragment());\n\t\tlist.add(new MenuFragment());\n\t\tlist.add(new FriendsFragment());\n\t\tlist.add(new MineFragment());\n\t}", "@Override\n public void onEndpointFound(@NonNull String endpointId, @NonNull DiscoveredEndpointInfo discoveredEndpointInfo) {\n connectedUsers.put(endpointId, discoveredEndpointInfo.getEndpointName());\n MainActivity.makeLog(\"Network endpoint discovered, connecting to \"+endpointId+\"/\"+discoveredEndpointInfo.getEndpointName());\n //connectionHandler.receiveMessage(null, \"Network endpoint discovered, connecting to \"+discoveredEndpointInfo.getEndpointName());\n connectionHandler.getClient().requestConnection(connectionHandler.getDeviceName(), endpointId, connectionLifecycleCallback);\n System.out.println(\"Found device!\");\n Log.e(TAG, SUB_TAG + \"Found the device: \" + connectionHandler.getDeviceName() + \"\\n\\t\" + endpointId);\n }", "void configureEndpoint(Endpoint endpoint);", "public void addEdge(FlowEdge e){\n int v = e.getFrom();\n int w = e.getTo();\n adj[v].add(e); //add forward edge\n adj[w].add(e); //add backward edge\n }", "public synchronized void add(T e){\n if(e==null){\n return;\n }\n callbackList.add(e);\n }", "void addEdge(int source, int destination, int weight);", "public void addEdge(Edge e) {\n incident.add(e);\n }", "public void insertProbe(RadioProbe p) {\n probes.add(p);\n }", "public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);" ]
[ "0.70091796", "0.69690025", "0.6654728", "0.6613", "0.651315", "0.6469135", "0.6330296", "0.618256", "0.61424285", "0.60185117", "0.60141724", "0.59294236", "0.58999103", "0.5882083", "0.58619857", "0.57888466", "0.5733799", "0.5702701", "0.5687436", "0.5618394", "0.5595418", "0.551078", "0.5465878", "0.5448989", "0.5425382", "0.536361", "0.52948207", "0.5222155", "0.520851", "0.520735", "0.5176174", "0.51458055", "0.5131287", "0.51235217", "0.5105324", "0.50773877", "0.5070668", "0.5046163", "0.50444216", "0.5040424", "0.50355154", "0.50304824", "0.5002741", "0.499641", "0.49738878", "0.497093", "0.49674305", "0.49553928", "0.4954983", "0.49470714", "0.4923872", "0.491718", "0.49085832", "0.49053168", "0.4900674", "0.489969", "0.48925316", "0.48868257", "0.48671332", "0.486082", "0.48498908", "0.48429307", "0.48328635", "0.48323888", "0.4832207", "0.48260725", "0.4813542", "0.48086196", "0.48034248", "0.4798455", "0.4764961", "0.4762983", "0.47624055", "0.47476348", "0.47443786", "0.47431505", "0.47427693", "0.4736932", "0.4732757", "0.4728891", "0.47287118", "0.47276083", "0.47254688", "0.4725074", "0.47234917", "0.47208354", "0.47206017", "0.47130555", "0.4706288", "0.47042218", "0.4701779", "0.47016454", "0.4691676", "0.46858376", "0.46851325", "0.46668184", "0.46619698", "0.46599418", "0.46579278", "0.4653594" ]
0.83659595
0
Returns a current snapshot of all known peers
Set<String> getPeerSnapshot();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<lightpay.lnd.grpc.Peer> \n getPeersList();", "public List<PeerAddress> all() {\n final List<PeerAddress> all = new ArrayList<PeerAddress>();\n for (final Map<Number160, PeerStatistic> map : peerMapVerified) {\n synchronized (map) {\n for (PeerStatistic peerStatistic : map.values()) {\n all.add(peerStatistic.peerAddress());\n }\n }\n }\n return all;\n }", "List<Uuid> getActivePeers() throws RemoteException;", "public ArrayList<InetAddress> getPeers() {\n\t\treturn new ArrayList<InetAddress>(peers.keySet());\n\t}", "protected java.util.Set<Node> getPeers() {\n\t\tfinal java.util.Set<Node> peerList = new java.util.HashSet<Node>();\n\t\tpeerList.addAll(peers);\n\t\treturn peerList;\n\t}", "Set<ComputerSnapshot> getSnapshots();", "lightpay.lnd.grpc.Peer getPeers(int index);", "public compactPeerList () {\n recentPeers.compact();\n }", "public List<BgpPeer> fabricBgpPeers() {\n return this.innerProperties() == null ? null : this.innerProperties().fabricBgpPeers();\n }", "public void getAlreadyConnectedPeers() {\n ArrayList<Peer> alreadyConnected = parent.getConnections(name);\n for(Peer p : alreadyConnected) {\n if(p.connected()) {\n addPeer(p.getIP());\n nodeConnection(p.getIP());\n }\n }\n }", "public List<PeerAddress> allOverflow() {\n List<PeerAddress> all = new ArrayList<PeerAddress>();\n for (Map<Number160, PeerStatistic> map : peerMapOverflow) {\n synchronized (map) {\n for (PeerStatistic peerStatistic : map.values()) {\n all.add(peerStatistic.peerAddress());\n }\n }\n }\n return all;\n }", "public Set<String> peersAlive() {\n return peerLastHeartbeatTime.keySet();\n }", "public java.util.Map<java.lang.String, java.lang.String> getPeersMap() {\n return internalGetPeers().getMap();\n }", "public java.util.Map<java.lang.String, java.lang.String> getPeersMap() {\n return internalGetPeers().getMap();\n }", "public Vector<String> getPeerList()\n\t{\n\t\treturn this.peerList;\n\t}", "public RetResult<Peers> Peers() {\n\t\ttry {\n\t\t\tl.acquire();\n\n\t\t\t// Read the file\n\t\t\tRetResult<byte[]> readResult = FileUtils.readFileToByteArray(path);\n\t\t\tbyte[] buf = readResult.result;\n\t\t\terror err = readResult.err;\n\n\t\t\tif (err != null) {\n\t\t\t\treturn new RetResult<Peers>(null, err);\n\t\t\t}\n\n\t\t\t// Check for no peers\n\t\t\tif (buf == null || buf.length == 0) {\n\t\t\t\treturn new RetResult<Peers>(null, null);\n\t\t\t}\n\n\t\t\t// Decode the peers\n\t\t\t// TODO: is the transformation correct?\n\t//\t\tdec := json.NewDecoder(bytes.NewReader(buf));\n\t//\t\terr := dec.Decode(peerSet);\n\t\t\t Peer[] peerSet = JsonUtils.StringToObject(new String(buf), Peer[].class);\n\n\t\t\treturn new RetResult<Peers>(Peers.NewPeersFromSlice(peerSet), null);\n\t\t} catch (InterruptedException e) {\n\t\t\terror err = new error(e.getMessage());\n\t\t\treturn new RetResult<Peers>(null, err);\n\t\t} finally {\n\t\t\tl.release();\n\t\t}\n\t}", "java.util.List<? extends lightpay.lnd.grpc.PeerOrBuilder> \n getPeersOrBuilderList();", "private List<ConnectionSetup> createDetachedSnapshotOfCollection() {\n return Collections.unmodifiableList(new ArrayList<ConnectionSetup>(setups));\n }", "lightpay.lnd.grpc.PeerOrBuilder getPeersOrBuilder(\n int index);", "public interface IPeerManager\r\n{\r\n /**\r\n * Add a new PeerEndpoint to the list of peers\r\n * \r\n * @param peer\r\n */\r\n void addPeerEndpoint(PeerEndpoint peer);\r\n\r\n /**\r\n * Returns a current snapshot of all known peers\r\n * \r\n * @return An iterable list of all the peers\r\n */\r\n Set<String> getPeerSnapshot();\r\n\r\n /**\r\n * Returns the PeerEnpoint matching the key\r\n * \r\n * @param key\r\n * @return the requested PeerEndpoint\r\n */\r\n PeerEndpoint getPeerEndpoint(String key);\r\n\r\n /**\r\n * Deletes the PeerEndpoint matching the provided key\r\n * \r\n * @param key\r\n */\r\n void removePeerEndpoint(String key);\r\n\r\n /**\r\n * Returns the number of currentlyn known peers\r\n * \r\n * @return number of currently known peers\r\n */\r\n int getPeerCount();\r\n}", "public ArrayList<Peer> getDownloadablePeers() {\n\t\tArrayList<Peer> leechers = new ArrayList<Peer>();\n\t\tfor (int i = 0; i < peers.size(); i++) {\n\t\t\tPeer p = peers.get(i);\n\t\t\tif (p == null)\n\t\t\t\tcontinue;\n\t\t\tif (torrentStatus == STATE_DOWNLOAD_METADATA) {\n\t\t\t\tif (p.getClient().hasExtentionID(UTMetadata.NAME))\n\t\t\t\t\tleechers.add(p);\n\t\t\t} else {\n\t\t\t\tif (p.getClient().getBitfield().hasPieceCount() > 0 && !p.getMyClient().isChoked() && p.getFreeWorkTime() > 0)\n\t\t\t\t\tleechers.add(p);\n\t\t\t}\n\t\t}\n\t\treturn leechers;\n\t}", "java.util.List<java.lang.String>\n getPeerURLsList();", "public List<PeerResult> getPeerInfo() throws Exception{\n\t\tRpcRequest postData = getPostData(RpcMethod.GET_PEER_INFO);\n\t\tString result = HttpUtil.httpPostBody(getUrl(), postData.toJsonString());\n\t\tif (StringUtil.isNotEmpty(result)) {\n\t\t\tJSONObject parseObject = JSONObject.parseObject(result);\n\t\t\tif (messageValidate(parseObject))\n\t\t\t\treturn null;\n\t\t\tJSONObject resultJson = parseObject.getJSONObject(\"result\");\n\t\t\tJSONArray jsonArray = resultJson.getJSONArray(\"peers\");\n\t\t\tList<PeerResult> peerList = new ArrayList<>();\n\t\t\tfor (int i = 0; i < jsonArray.size(); i++) {\n\t\t\t\tJSONObject peerJson = jsonArray.getJSONObject(i);\n\t\t\t\tPeerResult peer = JSONObject.toJavaObject(peerJson, PeerResult.class);\n\t\t\t\tpeerList.add(peer);\n\t\t\t}\n\t\t\treturn peerList;\n\t\t}\n\t\treturn null;\n\t}", "private List<Multiset.Entry<E>> snapshot() {\n\t\t\tList<Multiset.Entry<E>> list = Lists\n\t\t\t\t\t.newArrayListWithExpectedSize(size());\n\t\t\tfor (Multiset.Entry<E> entry : this) {\n\t\t\t\tlist.add(entry);\n\t\t\t}\n\t\t\treturn list;\n\t\t}", "public String peers() throws Exception {\n\n \t\tString apiUrl = \"api/peers.json\";\n \t\t\n \t\tString url = this.baseUrl + apiUrl;\n\n URL urlObj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) urlObj.openConnection();\n\n con.setRequestMethod(\"GET\");\n\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n String response = \"\";\n\t\tif (responseCode == 200) {\n response = buildReponse(con);\n\t\t} else {\n\t response = \"{'error': 'Something went wrong, looks like the server is down.'}\";\n\t\t}\n\n\t\treturn response; \n \t}", "private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public List<String> getAll() throws KeeperException, InterruptedException {\n List<String> copy = new ArrayList<>();\n copy.addAll(members);\n return copy;\n }", "public void sendPeerListToAll() {\r\n\t\tPacket packet = new Packet();\r\n\t\tpacket.eventCode = 1;\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\tPeer peer = new Peer();\r\n\t\t\tpeer.peerID = peerClientNodeConnectionList.get(i).peerClientID;\r\n\t\t\tpeer.peerIP = peerClientNodeConnectionList.get(i).peerClientIP;\r\n\t\t\tpeer.peerPort = peerClientNodeConnectionList.get(i).peerClientListeningPort;\r\n\t\t\tpacket.peerList.add(peer);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\ttry {\r\n\t\t\t\tpeerClientNodeConnectionList.get(i).outStream.writeObject(packet);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}", "public Set<String> getPeers() throws Exception\n {\n Pdu pdu = this.channel.writeForReply(makePdu(\"get_peers\"), replyTimeout, \"recv_pids\");\n Set<String> pidSet = new HashSet<>();\n String[] pids = pdu.getStringArray(\"pids\");\n if (pids != null) {\n for (String pid : pids) {\n pidSet.add(pid);\n }\n }\n return pidSet;\n }", "@Test\n public void testGetPeerAddresses() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n List<IpAddress> expectedAddresses = new ArrayList<>();\n expectedAddresses.add(IpAddress.valueOf(PEER_IP));\n expectedAddresses.add(IpAddress.valueOf(NEW_PEER1_IP));\n Collections.sort(expectedAddresses);\n\n List<IpAddress> actualAddresses =\n peerManager.getPeerAddresses(bgpConfig);\n Collections.sort(actualAddresses);\n\n assertEquals(expectedAddresses, actualAddresses);\n }", "@Override public Set<Entity> get() {\n Set<Entity> seeds = getAttribute(CURRENT_SEEDS);\n boolean hasPublishedSeeds = Boolean.TRUE.equals(getAttribute(HAS_PUBLISHED_SEEDS));\n int quorumSize = getQuorumSize(getMembers());\n \n if (seeds == null || seeds.size() < quorumSize || containsDownEntity(seeds)) {\n Set<Entity> newseeds;\n Multimap<CassandraCluster,Entity> potentialSeeds = LinkedHashMultimap.create();\n Multimap<CassandraCluster,Entity> potentialRunningSeeds = LinkedHashMultimap.create();\n for (CassandraCluster member : Iterables.filter(getMembers(), CassandraCluster.class)) {\n potentialSeeds.putAll(member, member.gatherPotentialSeeds());\n potentialRunningSeeds.putAll(member, member.gatherPotentialSeeds());\n }\n boolean stillWaitingForQuorum = (!hasPublishedSeeds) && (potentialSeeds.size() < quorumSize);\n \n if (stillWaitingForQuorum) {\n if (log.isDebugEnabled()) log.debug(\"Not refresheed seeds of fabric {}, because still waiting for quorum (need {}; have {} potentials)\", new Object[] {CassandraFabricImpl.class, quorumSize, potentialSeeds.size()});\n newseeds = ImmutableSet.of();\n } else if (hasPublishedSeeds) {\n Set<Entity> currentSeeds = getAttribute(CURRENT_SEEDS);\n if (getAttribute(SERVICE_STATE) == Lifecycle.STARTING) {\n if (Sets.intersection(currentSeeds, ImmutableSet.copyOf(potentialSeeds.values())).isEmpty()) {\n log.warn(\"Cluster {} lost all its seeds while starting! Subsequent failure likely, but changing seeds during startup would risk split-brain: seeds={}\", new Object[] {this, currentSeeds});\n }\n newseeds = currentSeeds;\n } else if (potentialRunningSeeds.isEmpty()) {\n // TODO Could be race where nodes have only just returned from start() and are about to \n // transition to serviceUp; so don't just abandon all our seeds!\n log.warn(\"Cluster {} has no running seeds (yet?); leaving seeds as-is; but risks split-brain if these seeds come back up!\", new Object[] {this});\n newseeds = currentSeeds;\n } else {\n Set<Entity> result = trim(quorumSize, potentialRunningSeeds);\n log.debug(\"Cluster {} updating seeds: chosen={}; potentialRunning={}\", new Object[] {this, result, potentialRunningSeeds});\n newseeds = result;\n }\n } else {\n Set<Entity> result = trim(quorumSize, potentialSeeds);\n if (log.isDebugEnabled()) log.debug(\"Cluster {} has reached seed quorum: seeds={}\", new Object[] {this, result});\n newseeds = result;\n }\n \n setAttribute(CURRENT_SEEDS, newseeds);\n return newseeds;\n } else {\n if (log.isDebugEnabled()) log.debug(\"Not refresheed seeds of fabric {}, because have quorum {}, and none are down: seeds=\", new Object[] {CassandraFabricImpl.class, quorumSize, seeds});\n return seeds;\n }\n }", "public void writePeers() {\n\t\ttry(FileWriter filewriter = new FileWriter(peersFile)) {\n\t\t\tIterator<InetAddress> itr = peers.keySet().iterator();\n\t\t\twhile(itr.hasNext()) {\n\t\t\t\tInetAddress p = itr.next();\n\t\t\t\tfilewriter.write(p.getHostAddress()+\"\\n\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tDecentLogger.write(\"Unable to write peers to file\");\n\t\t}\n\t}", "public void imprimirPeersConectados() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\n\t\t\t\tDisplayConstants.COMMAND_PREFIX + \"Peers conectados: \" + this.listaChavesPublicas.keySet().toString());\n\t\tSystem.out.println();\n\t}", "public List<byte[]> getAllNodeInfo() {\n // Fetch a node list with protobuf bytes format from GCS.\n synchronized (GlobalStateAccessor.class) {\n validateGlobalStateAccessorPointer();\n return this.nativeGetAllNodeInfo(globalStateAccessorNativePointer);\n }\n }", "com.google.protobuf.ByteString\n getPeerURLsBytes(int index);", "Set<MacAddress> neighbors();", "@Override\n public List<Set<String>> getPlayersVisibleTo(){\n Set<String> players = new HashSet<String>();\n players.add(destination.getOwner().getName());\n for(Region adj : destination.getAdjRegions()){\n players.add(adj.getOwner().getName());\n }\n //All adjacent can see cloaking happened\n return Arrays.asList(players);\n }", "public void getPeerFiles(){\n\t\t\n\t\tFile[] files = new File(path).listFiles();\n\t\tfor (File file : files) {\n\t\t\tfileNames.add(file.getName());\n\t\t}\n\t\tSystem.out.println(\"Number of Files Registerd to the server - \"+fileNames.size());\n\t\tSystem.out.println(\"To search for file give command: get <Filename>\");\n\t\tSystem.out.println(\"To refresh type command: refresh\");\n\t\tSystem.out.println(\"To disconnect type command: disconnect\");\n\t}", "@Override\n public List<BlockSnapshot> getSnapshots(Volume volume) {\n List<BlockSnapshot> snapshots = new ArrayList<BlockSnapshot>();\n\n // Get all related RP volumes\n List<URI> rpVolumes = _rpHelper.getReplicationSetVolumes(volume);\n\n for (URI rpVolumeURI : rpVolumes) {\n Volume rpVolume = _dbClient.queryObject(Volume.class, rpVolumeURI);\n\n // Get all the related local snapshots and RP bookmarks for this RP Volume\n snapshots.addAll(super.getSnapshots(rpVolume));\n\n // If this is a RP+VPLEX/MetroPoint volume get any local snaps for this volume as well,\n // we need to call out to VPLEX Api to get this information as the parent of these\n // snaps will be the backing volume.\n boolean vplex = RPHelper.isVPlexVolume(rpVolume);\n if (vplex) {\n snapshots.addAll(vplexBlockServiceApiImpl.getSnapshots(rpVolume));\n }\n }\n\n return snapshots;\n }", "java.lang.String getPeerURLs(int index);", "private void readPeers() {\n\t\tif(peersFile.exists()) {\n\t\t\ttry {\n\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(peersFile));\n\t\t\t\tString line = reader.readLine();\n\t\t\t\tint lineNumber = 1;\n\t\t\t\twhile(line != null && peers.size() < maximumConnections) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress candidate = InetAddress.getByName(line);\n\t\t\t\t\t\tcheckPeer(candidate);\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\tString logMsg = String.format(\"Invalid host address \\\"%s\\\" in file %s at line number %d\", line, peersFile.getName(), lineNumber);\n\t\t\t\t\t\tDecentLogger.write(logMsg);\n\t\t\t\t\t}\n\t\t\t\t\tline = reader.readLine();\n\t\t\t\t\tlineNumber++;\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e1) {\n\t\t\t\tString logMsg = String.format(\"Peer file %s not found\", peersFile.getName());\n\t\t\t\tDecentLogger.write(logMsg);\n\t\t\t} \n\t\t\tcatch (IOException e1) {\n\t\t\t\tDecentLogger.write(\"Unable to read file due to \"+e1.getMessage());\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\ttry {\n\t\t\t\tpeersFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public String getLiveNodes()\n {\n return ssProxy.getLiveNodes();\n }", "public synchronized String toString() {\n\t\tString nl = System.lineSeparator();\n\t\t\n\t\t// get list of all peers for all files\n\t\tString files = \"\";\n\t\tfor(String filename : peerRecord.keySet()) {\n\t\t\tfiles += \"- \" + filename + \": \";\n\t\t\tfor(PeerConnection peer : peerRecord.get(filename)) {\n\t\t\t\tfiles += peer + \" \";\n\t\t\t}\n\t\t\tfiles += nl;\n\t\t\t\n\t\t}\n\t\treturn \"[TRACKER]\" + nl + files;\n\t}", "List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }", "@Override\n public List<DiscoveredPrinter> getSavedPrinters() {\n return Collections.unmodifiableList(mSavedPrinters);\n }", "public HashSet<String> getNetworkCopies() {\n return networkCopies;\n }", "Collection<Node> allNodes();", "public PeeringGroupPeers peeringGroupPeers() {\n return this.peeringGroupPeers;\n }", "public List<PeerInfo> getSealerAndObserverList(int groupId) {\n log.debug(\"start getSealerAndObserverList groupId:{}\", groupId);\n List<String> sealerList = frontInterface.getSealerList(groupId);\n List<String> observerList = frontInterface.getObserverList(groupId);\n List<PeerInfo> resList = new ArrayList<>();\n sealerList.stream().forEach(nodeId -> resList.add(new PeerInfo(nodeId)));\n observerList.stream().forEach(nodeId -> resList.add(new PeerInfo(nodeId)));\n log.debug(\"end getSealerAndObserverList resList:{}\", resList);\n return resList;\n }", "public Stream<Long> members() {\n\treturn roomMembers.stream();\n }", "public Peer getPeer();", "public Collection<ReplicaSnapshot> getReplicas() {\n\t\treturn Collections.unmodifiableList(replicas);\n\t}", "protected int numPeers() {\n\t\treturn peers.size();\n\t}", "protected Set<Endpoint> getConnectedEndpoints() {\n return new HashSet<>(mEstablishedConnections.values());\n }", "public synchronized List<QuorumServerInfo> getQuorumServerInfoList() throws IOException {\n List<QuorumServerInfo> quorumMemberStateList = new LinkedList<>();\n GroupInfoReply groupInfo = getGroupInfo();\n if (groupInfo == null) {\n throw new UnavailableException(\"Cannot get raft group info\");\n }\n if (groupInfo.getException() != null) {\n throw groupInfo.getException();\n }\n RaftProtos.RoleInfoProto roleInfo = groupInfo.getRoleInfoProto();\n if (roleInfo == null) {\n throw new UnavailableException(\"Cannot get server role info\");\n }\n RaftProtos.LeaderInfoProto leaderInfo = roleInfo.getLeaderInfo();\n if (leaderInfo == null) {\n throw new UnavailableException(\"Cannot get server leader info\");\n }\n for (RaftProtos.ServerRpcProto member : leaderInfo.getFollowerInfoList()) {\n HostAndPort hp = HostAndPort.fromString(member.getId().getAddress());\n NetAddress memberAddress = NetAddress.newBuilder().setHost(hp.getHost())\n .setRpcPort(hp.getPort()).build();\n\n long maxElectionTimeoutMs =\n Configuration.getMs(PropertyKey.MASTER_EMBEDDED_JOURNAL_MAX_ELECTION_TIMEOUT);\n quorumMemberStateList.add(QuorumServerInfo.newBuilder()\n .setIsLeader(false)\n .setPriority(member.getId().getPriority())\n .setServerAddress(memberAddress)\n .setServerState(member.getLastRpcElapsedTimeMs() > maxElectionTimeoutMs\n ? QuorumServerState.UNAVAILABLE : QuorumServerState.AVAILABLE).build());\n }\n NetAddress self = NetAddress.newBuilder()\n .setHost(mLocalAddress.getHostString())\n .setRpcPort(mLocalAddress.getPort())\n .build();\n quorumMemberStateList.add(QuorumServerInfo.newBuilder()\n .setIsLeader(true)\n .setPriority(roleInfo.getSelf().getPriority())\n .setServerAddress(self)\n .setServerState(QuorumServerState.AVAILABLE).build());\n quorumMemberStateList.sort(Comparator.comparing(info -> info.getServerAddress().toString()));\n return quorumMemberStateList;\n }", "@java.lang.Deprecated\n public java.util.Map<java.lang.String, java.lang.String>\n getMutablePeers() {\n return internalGetMutablePeers().getMutableMap();\n }", "public void clearPeers() {\n peers_.clear();\n ((PeersAdapter)adapter_).update();\n }", "public ImmutableList<Member> getMembers() {\n return ImmutableList.copyOf(members);\n }", "default Promise<List<String>> findHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }", "java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();", "int getPeersCount();", "public Set<ReadOnlyDownstreamPeerState> immutablePeersReadyToReceiveVoteRequest() {\n\t\treturn _downstreamPeerByNode.values().stream()\n\t\t\t\t.filter((state) -> (state.isConnectionUp\n\t\t\t\t\t\t&& state.isWritable\n\t\t\t\t\t\t&& state.didHandshake\n\t\t\t\t\t\t&& (null != state.pendingVoteRequest)\n\t\t\t\t))\n\t\t\t\t.map((state) -> new ReadOnlyDownstreamPeerState(state))\n\t\t\t\t.collect(Collectors.toSet());\n\t}", "private int getNumPeers() {\n String[] peerIdList = skylinkConnection.getPeerIdList();\n if (peerIdList == null) {\n return 0;\n }\n // The first Peer is the local Peer.\n return peerIdList.length - 1;\n }", "public List<Address> getWatchedAddresses() {\n try {\n List<Address> addresses = new LinkedList<Address>();\n for (Script script : watchedScripts)\n if (script.isSentToAddress())\n addresses.add(script.getToAddress(params));\n return addresses;\n } finally {\n }\n }", "@Override\n public synchronized List<MemberRegistration> retrieveRemoteRegistrations()\n {\n /*\n * Ensure the current properties are retrieved from the registry.\n */\n CohortMembership registryStoreProperties = this.retrieveRegistryStoreProperties();\n Map<String, MemberRegistration> remoteMemberMap = this.getRemoteMemberMap(registryStoreProperties.getRemoteRegistrations());\n\n if (remoteMemberMap.isEmpty())\n {\n return null;\n }\n else\n {\n return new ArrayList<>(remoteMemberMap.values());\n }\n }", "public NodeInfo[] getNodesToGossipTo(final boolean is_propagation) { synchronized (this.nodedb) {\n\t\tlong myhash = ConfigManager.get().nodehash; \n\t\t\n\t\t// Get all nodes\n\t\tVector<NodeInfo> nv = new Vector<>();\n\t\tint i = 0;\n\t\t\n\t\tfor (NodeInfo n : this.nodedb.values())\n\t\t\tif (!n.isLocal)\n\t\t\t\tif (n.alive)\n\t\t\t\t\tnv.add(n);\n\t\t\n\t\tVector<NodeInfo> ntp = new Vector<>();\t// vector of nodes to gossip to\n\t\tint ntp_target_count = is_propagation ? 5 : 2;\n\t\t\n\t\t\t// if cluster is smaller or equal to ntp_target_count use full mesh\n\t\tif (nv.size() <= ntp_target_count) return nv.toArray(new NodeInfo[nv.size()]);\n\t\t\n\t\tdo {\n\t\t\tint k = this.random.nextInt(nv.size());\n\t\t\tntp.add(nv.get(i));\n\t\t\tnv.remove(i);\n\t\t} while (ntp.size() < ntp_target_count);\n\t\t\n\t\t// Check whether our direct neighbor is in the list...\n\t\tboolean me_found = false;\n\t\tlong neighborhash = 0;\n\t\tboolean found_neighbor = false;\n\t\t\t\t\n\t\tfor (long hash : this.nodedb.keySet()) {\n\t\t\tif (me_found) {\n\t\t\t\tneighborhash = hash;\n\t\t\t\tfound_neighbor = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (hash == myhash) me_found = true;\n\t\t}\n\t\tif (!found_neighbor) neighborhash = this.nodedb.firstEntry().getKey();\n\t\t\n\t\t// neighborhash is our neighbor. Is he in the list?\n\t\t\n\t\tboolean is_neighbor_in_the_list = false;\n\t\tfor (NodeDB.NodeInfo v : ntp)\n\t\t\tif (v.nodehash == neighborhash) {\n\t\t\t\tis_neighbor_in_the_list = true; \n\t\t\t\tbreak; \n\t\t\t}\n\t\t\n\t\tif (!is_neighbor_in_the_list) ntp.add(this.nodedb.get(neighborhash));\n\t\t\n\t\treturn ntp.toArray(new NodeInfo[ntp.size()]);\n\t}}", "Collection<Account> listParticipants() {\r\n\t\tupdatePastRelations();\r\n\t\treturn pastRelations;\r\n\t}", "protected Set<Endpoint> getDiscoveredEndpoints() {\n return new HashSet<>(mDiscoveredEndpoints.values());\n }", "java.util.List<ServerToB.SeenInfo>\n getSeenInfoList();", "Iterable<CurrentVersionCacheDao> getCurrentVersionCacheConnections();", "public synchronized void prunePeers() {\n\t\tchecker.checkList(this.getPeers());\n\t}", "List<MemberRegistration> getRemoteMembers()\n {\n if (cohortRegistry != null)\n {\n return cohortRegistry.getRemoteMembers();\n }\n\n return null;\n }", "public List getSourceConnections() {\n return new ArrayList(sourceConnections);\n }", "public List updaters() {\n return updaters; }", "void setActivePeers(List<Uuid> activePeers) throws RemoteException;", "private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }", "String getOnlineUsers(String senderName)\n {\n List<String> users = new ArrayList<>();\n for (CommunicationLink node : allNodes.values())\n {\n NodeInfo currentNodeInfo = node.getInfo();\n if (currentNodeInfo.getName().equals(senderName))\n {\n users.add(senderName);\n } else\n {\n node.sendMessage(new Message(\"Checking if you are alive\", currentNodeInfo, myInfo, NAME));\n try\n {\n users.add(node.readMessage().getContent());\n } catch (IOException e)\n {\n handleNodeDeath(currentNodeInfo);\n logger.error(\"Node \" + myInfo + \"\\n - \" + currentNodeInfo.getName() + \" disconnected unexpectedly.\");\n }\n }\n }\n users.add(0, myInfo.getName());\n return String.join(\", \", users);\n }", "public static Peers getPeers(String name) {\n\t\tPeers peers = new Peers(name);\n\t\tpeers.put(\"webgui\", \"WebGUI\", \"webgui\");\n\t\treturn peers;\n\t}", "public ObjectList<DynamicPart[]> getSeeds() {\n ObjectList<DynamicPart[]> seeds = new ObjectArrayList<DynamicPart[]>();\n seeds.addAll(\n getCuboids().stream().map(cuboid -> cuboid.parts).collect(Collectors.toList()));\n return seeds;\n }", "void onDiscoverPeersSuccess();", "public Set<ReadOnlyDownstreamPeerState> immutablePeersReadyForHearbeat(long oldestMessageNotRequiringHeartbeatMillis) {\n\t\treturn _downstreamPeerByNode.values().stream()\n\t\t\t\t.filter((state) -> (state.isConnectionUp\n\t\t\t\t\t\t&& state.isWritable\n\t\t\t\t\t\t&& state.didHandshake\n\t\t\t\t\t\t&& (state.lastSentMessageMillis < oldestMessageNotRequiringHeartbeatMillis)\n\t\t\t\t))\n\t\t\t\t.map((state) -> new ReadOnlyDownstreamPeerState(state))\n\t\t\t\t.collect(Collectors.toSet());\n\t}", "public NodeInfo[] dump() { synchronized (this.nodedb) {\n\t\tNodeInfo[] ni = new NodeInfo[this.nodedb.size()];\n\t\tint i = 0;\n\t\tfor (NodeInfo n : this.nodedb.values())\n\t\t\tni[i++] = n;\n\t\treturn ni;\n\t}}", "public abstract byte[] getSnapshot();", "public List<Neighbour> getAvailableHosts() {\n return new ArrayList<>(routes.keySet());\n }", "com.google.protobuf.ByteString getSnapshotLocationBytes();", "public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}", "public Node[] getInternalNodes() {\n return internalPins;\n }", "private Snapshot[] getAllSnapshots(SnapshotArchiver archiver)\n throws IOException\n {\n String[] asSnapshots = archiver.list();\n Snapshot[] aSnapshots = null;\n\n if (asSnapshots != null)\n {\n aSnapshots = new Snapshot[asSnapshots.length];\n\n for (int i = 0; i < asSnapshots.length; i++)\n {\n aSnapshots[i] = archiver.get(asSnapshots[i]);\n }\n }\n else\n {\n return new Snapshot[]\n {\n };\n }\n\n return aSnapshots;\n }", "@Override\n public CompositeData getAllMonitorCompositeData() {\n return allMonitorCompositeData;\n }", "private void lastResortFindPeer() {\n\t\tDecentLogger.write(\"Resolving peers from DNS (last resort)\");\n\t\tfor(String seed: DNS_SEEDS) {\n\t\t\tArrayList<InetAddress> hosts = DNSResolver.getARecords(seed);\n\t\t\tif(hosts != null) {\n\t\t\t\tcheckList(hosts);\n\t\t\t}\n\t\t}\n\t}", "public SortedMap<String, RemoteFileInfo> getAllFileInfo() {\r\n return remotes;\r\n }", "public PeeringGroups peeringGroups() {\n return this.peeringGroups;\n }", "List<Component> getVisualComponents(CallPeer peer);", "public synchronized Membership.MembershipList getMembershipList() {\n Membership.MembershipList.Builder builder = Membership.MembershipList.newBuilder().addMember(localMemberHealth.toMember());\n for (MemberHealth memberHealth : memberHealths) {\n if (!memberHealth.hasLeft() && !memberHealth.hasFailed()) {\n builder.addMember(memberHealth.toMember());\n }\n }\n return builder.build();\n }", "private Collection<ConnectionEntry> getMyInvites(Map<String, String> parameters)throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"getMyInvites\", parameters);\n \t\t}\n \n \t\tDocument data = null;\n \t\tCollection<ConnectionEntry> invites = null;\n \t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\tProfileType.CONNECTIONS.getProfileType());\n \t\tdata = executeGet(url, parameters, ClientService.FORMAT_XML);\n \t\tif(parameters.containsKey(\"outputType\")){\n \t\t\tif(parameters.get(\"outputType\").equalsIgnoreCase(\"profile\")){\n \t\t\t\tinvites = Converter.returnConnectionEntries(data, \"profile\");\n \t\t\t}\n \t\t\telse \n \t\t\t\tinvites = Converter.returnConnectionEntries(data, \"connection\");\n \t\t}\n \t\telse{\n \t\t\tinvites = Converter.returnConnectionEntries(data, \"connection\");\n \t\t}\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.exiting(sourceClass, \"getMyInvites\");\n \t\t}\n \t\treturn invites;\n \t}", "@Override\n public FarmUtilDomain.PublishUtilState snapshot() {\n return FarmUtilDomain.PublishUtilState.newBuilder().build();\n }", "private Future<List<Record>> getAllEndpoints() {\n Future<List<Record>> future = Future.future();\n discovery.getRecords(record -> record.getType().equals(HttpEndpoint.TYPE),\n future.completer());\n return future;\n }", "List<ManagedEndpoint> all();", "public byte[] requestAllDump() \n {\n return null; \n }", "private ListenableFuture<ResultSet> selectPeersFuture(final Connection connection) {\n if (isPeersV2) {\n DefaultResultSetFuture peersV2Future =\n new DefaultResultSetFuture(\n null, cluster.protocolVersion(), new Requests.Query(SELECT_PEERS_V2));\n connection.write(peersV2Future);\n final SettableFuture<ResultSet> peersFuture = SettableFuture.create();\n // if peers v2 query fails, query peers table instead.\n GuavaCompatibility.INSTANCE.addCallback(\n peersV2Future,\n new FutureCallback<ResultSet>() {\n\n @Override\n public void onSuccess(ResultSet result) {\n peersFuture.set(result);\n }\n\n @Override\n public void onFailure(Throwable t) {\n // Downgrade to system.peers if we get an invalid query error as this indicates the\n // peers_v2 table does not exist.\n // Also downgrade on server error with a specific error message (DSE 6.0.0 to 6.0.2\n // with search enabled.\n if (t instanceof InvalidQueryException\n || (t instanceof ServerError\n && t.getMessage().contains(\"Unknown keyspace/cf pair (system.peers_v2)\"))) {\n isPeersV2 = false;\n MoreFutures.propagateFuture(peersFuture, selectPeersFuture(connection));\n } else {\n peersFuture.setException(t);\n }\n }\n });\n return peersFuture;\n } else {\n DefaultResultSetFuture peersFuture =\n new DefaultResultSetFuture(\n null, cluster.protocolVersion(), new Requests.Query(SELECT_PEERS));\n connection.write(peersFuture);\n return peersFuture;\n }\n }" ]
[ "0.68049705", "0.6756027", "0.6741163", "0.6631198", "0.637228", "0.63521206", "0.6288082", "0.6252052", "0.6239515", "0.613738", "0.6092425", "0.60508907", "0.6042702", "0.6029146", "0.599169", "0.5919445", "0.5825117", "0.5778736", "0.57242554", "0.56476545", "0.56441855", "0.5612738", "0.5588022", "0.55835456", "0.55424994", "0.5506233", "0.54554296", "0.5395948", "0.539101", "0.536404", "0.53538454", "0.5335193", "0.5304167", "0.52490956", "0.5244661", "0.5199477", "0.5198138", "0.5193497", "0.5174045", "0.51685226", "0.5150682", "0.5121278", "0.51088935", "0.51010746", "0.5095844", "0.5083713", "0.5056486", "0.5052268", "0.50490147", "0.5041771", "0.5033552", "0.50308686", "0.50291264", "0.5027454", "0.50272405", "0.5022459", "0.5011281", "0.5002712", "0.4999497", "0.4963823", "0.49568376", "0.4953026", "0.49494913", "0.4948758", "0.4943156", "0.49396375", "0.49396062", "0.493864", "0.49220347", "0.49205017", "0.49150333", "0.4910399", "0.49094588", "0.49049166", "0.48998505", "0.48932475", "0.489322", "0.4888155", "0.48869562", "0.48821294", "0.4879873", "0.4872464", "0.48634622", "0.48536956", "0.48496875", "0.4849138", "0.48488352", "0.4842442", "0.4827209", "0.48182806", "0.48169017", "0.48016387", "0.47938237", "0.4791091", "0.47904414", "0.47836173", "0.47801265", "0.47787783", "0.47769535", "0.47738346" ]
0.76515543
0
Returns the PeerEnpoint matching the key
PeerEndpoint getPeerEndpoint(String key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Peer getPeer();", "MemberVdusKey getKey();", "public Friend getFriendByRefKey(String key);", "public ECP getPublicEphemeralKey(){return epk;}", "public ECPoint getPubKeyPoint() {\n return pub.get();\n }", "public ElectionTable.ElectionNode searchElection(String key){\n int chain=hashFunction(key);\r\n if (electionTable[chain] !=null) {\r\n System.out.println(\"found Election!!!\");\r\n return electionTable[chain];\r\n } else {\r\n System.out.println(\"not found Election!!!\");\r\n return null;\r\n }\r\n }", "@Override\n @Nullable\n public UldECKey findKeyFromPubKey(byte[] pubkey) {\n return null;\n }", "void removePeerEndpoint(String key);", "public java.lang.String getPeersOrThrow(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n java.util.Map<java.lang.String, java.lang.String> map =\n internalGetPeers().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }", "public java.lang.String getPeersOrThrow(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n java.util.Map<java.lang.String, java.lang.String> map =\n internalGetPeers().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }", "@Override\n @Nullable\n public UldECKey findKeyFromPubHash(byte[] pubkeyHash) {\n return null;\n }", "public abstract P getPeer() throws DataException;", "public PrivateKey getKey();", "public interface IPeerManager\r\n{\r\n /**\r\n * Add a new PeerEndpoint to the list of peers\r\n * \r\n * @param peer\r\n */\r\n void addPeerEndpoint(PeerEndpoint peer);\r\n\r\n /**\r\n * Returns a current snapshot of all known peers\r\n * \r\n * @return An iterable list of all the peers\r\n */\r\n Set<String> getPeerSnapshot();\r\n\r\n /**\r\n * Returns the PeerEnpoint matching the key\r\n * \r\n * @param key\r\n * @return the requested PeerEndpoint\r\n */\r\n PeerEndpoint getPeerEndpoint(String key);\r\n\r\n /**\r\n * Deletes the PeerEndpoint matching the provided key\r\n * \r\n * @param key\r\n */\r\n void removePeerEndpoint(String key);\r\n\r\n /**\r\n * Returns the number of currentlyn known peers\r\n * \r\n * @return number of currently known peers\r\n */\r\n int getPeerCount();\r\n}", "java.lang.String getPublicEciesKey();", "public Entry find(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null;\n }", "public NewsletterPeer getPeer()\n {\n return peer;\n }", "@Override\r\n\tpublic ArrayList<E> getAdjacent(E key) {\r\n\t\tArrayList<E> adj = new ArrayList<>();\r\n\t\tif(containsVertex(key)) {\r\n\t\t\tfor(Edge<E> ale : adjacencyLists.get(key)) {\r\n\t\t\t\tadj.add(ale.getDst());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn adj;\r\n\t}", "UnderlayTopologyKey getKey();", "String getPublicKeyActorReceive();", "public int inDegree( VKeyT key );", "public abstract P getAsPeer() throws DataException;", "public AKeyCallPoint getEndPoint() {\n\t\t\treturn endPoint;\n\t\t}", "public E find(K key){\n\t\tE output= null;\n\t\t\n\t\tint i = 0;\n\t\twhile (i<keys.length && output == null){\n\t\t\tif(keys[i] != null && keys[i].equals(key))\n\t\t\t\toutput = elem[i];\n\t\t\ti = i + 1;\n\t\t}\n\t\treturn output;\n\t}", "private Node findKey(String key){\n Node N = front;\n while(N != null){\n if(N.key.equals(key)){\n return N; \n }\n else{\n N = N.next; \n }\n }\n return null;\n }", "public edge_data getEdge(int nodeKey) {\n return this.neighborEdges.get(nodeKey);\n }", "public String getVirtualSearchKey();", "public abstract String getPeerNameCandidate();", "private Node find(String key) {\n Node now = head;\n while (now != null) {\n if (now.pairStringString.getKey().equals(key)) {\n return now;\n }\n now = now.next;\n }\n return null;\n }", "public KeyStore.PrivateKeyEntry getPrivateKeyEntry() throws Exception {\n KeyStore.Entry entry = keyStore.getEntry(aliasName, null);\n if (!(entry instanceof KeyStore.PrivateKeyEntry)) {\n return null;\n }\n else {\n return ((KeyStore.PrivateKeyEntry) entry);\n }\n }", "Option<AcHost> findByKey(String key) throws Throwable;", "public DetectedKey getDetectedKey() { return getDetectedKey(false); }", "String getLookupKey();", "public String getFoundKey(){\n return _key + \"Found?\";\n }", "List<GraphEdge> getNeighbors(NodeKey key);", "@JsonGetter(\"peer\")\r\n public PeerModel getPeer ( ) { \r\n return this.peer;\r\n }", "protected Object getReceiverKey(UMOComponent component, UMOEndpoint endpoint) {\n if(endpoint.getEndpointURI().getPort()==-1) {\n return component.getDescriptor().getName();\n } else {\n return endpoint.getEndpointURI().getAddress() + \"/\" + component.getDescriptor().getName();\n }\n }", "int getReverseEdgeKey();", "public V get(Object key) {\r\n int index = key.hashCode() % mainTable.length;\r\n if (index < 0) {\r\n index += mainTable.length;\r\n }\r\n if (mainTable[index] == null) {\r\n return null; // key is not in the mainTable.\r\n }\r\n\r\n int chainLength = 0;\r\n // Search the list at mainTable[index] to find the key.\r\n for (Entry<K,V> nextItem : mainTable[index]) {\r\n chainLength++;\r\n\r\n if (nextItem.key.equals(key)) {\r\n addChainLength(chainLength);\r\n return nextItem.value;\r\n }\r\n }\r\n\r\n addChainLength(chainLength);\r\n // key is not in the chain\r\n return null;\r\n }", "com.google.protobuf.ByteString getPublicEciesKeyBytes();", "com.hps.july.persistence.WorkerKey getExpeditorKey() throws java.rmi.RemoteException;", "private Node<Pair<K, V>> search(\n BiDirectionalNullTerminatedTailedLinkedList<Pair<K, V>> list,\n K key) {\n\n for (Node<Pair<K, V>> i = list.getHead().getNext(); i != list.getTail();\n i = i.getNext()) {\n if (i.getData().key.equals(key)) {\n return i;\n }\n }\n\n return null;\n }", "public TreeMap<Integer, Integer> getElChain(Integer key)\n{\n return clusters.get(NPchains.get(key));\n}", "BudgetKeyEntity getBudgetKeyByBudgetKey(BudgetKeyEntity budgetKeyEntity);", "lightpay.lnd.grpc.Peer getPeers(int index);", "BListKey getKey();", "public byte[] getPeerId() {\n\t\treturn _myPeerId;\n\t}", "@Override\r\n\tpublic E getSingleSourcePredecessor(E key) {\r\n\t\tif(containsVertex(key) && vertices.get(key).getPredecessor() != null) {\r\n\t\t\treturn vertices.get(key).getPredecessor().getElement();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "String getPublicKeyActorSend();", "PrivateKey getPrivateKey();", "String lookupKey(String key) throws CommunicationFailureException, TimeoutReachedException, NoSuccessorsExceptions;", "public ECP getPublicKGCKey(){return pkS;}", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public V get(K key) {\n int hashCode = scaledHashCode(key);\n OwnLinkedList<K, V> list = table[hashCode];\n if (list == null) {\n return null;\n }\n PairNode<K, V> result = list.search(key);\n if (result == null) {\n return null;\n }\n return result.getValue();\n }", "public BookEntry getEntry(Person key) {\n\t\treturn phoneBook.get(key);\n\t}", "Peer getLeader() {\n return leader;\n }", "private String getPeerId(int index) {\n if (skylinkConnection == null) {\n return null;\n }\n String[] peerIdList = skylinkConnection.getPeerIdList();\n // Ensure index does not exceed max index on peerIdList.\n if (index <= peerIdList.length - 1) {\n return peerIdList[index];\n } else {\n return null;\n }\n }", "public V get(K key)\n throws Exception\n {\n AssociationList<K, V> bucket = this.get(this.find(key));\n if (bucket == null)\n {\n throw new Exception(\"Invalid key: \" + key);\n } // if (bucket == null)\n else\n // if (bucket != null)\n {\n return bucket.get(key);\n } // if (bucket != null)\n }", "public PublicKey getPubKey(){\r\n\t\treturn this.myCert.getPublicKey();\r\n\t}", "byte[] getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public String getUserPart(String key);", "java.lang.String getClientKey();", "private byte[] encrypt(ECPoint point) {\n return point.multiply(privateKey.getS()).getEncoded(true);\n }", "abstract PeerType getPeerType();", "public String getPrivateKey();", "public String getPrivateKey();", "public Entry find(Object key) {\r\n Entry entry_with_key = new Entry();\r\n entry_with_key.key = key; \r\n int comp_hash = compFunction(entry_with_key.key.hashCode());\r\n if (hash_table[comp_hash] == null) {\r\n return null;\r\n } else {\r\n DList searching = hash_table[comp_hash];\r\n for(Object entry: searching){\r\n if(((Entry) entry).key().equals(key)){\r\n return (Entry) entry;\r\n }\r\n }\r\n return null;\r\n \r\n }\r\n\r\n\r\n }", "public Entry<K, V> find(K key) {\r\n try {\r\n int hash = key.hashCode();\r\n ListNode<Entry<K, V>> node = table[compFunction(hash)].front();\r\n if (node.isValidNode()) {\r\n return (Entry<K, V>) node.getItem();\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Unhashable key: \" + e);\r\n }\r\n return null;\r\n }", "MongoDBEntry<K, V> get(byte[] key);", "public Key getKey()\r\n { \r\n return key; \r\n }", "V getEntry(K key);", "public Employee_Pierce fetch(String targetKey){\r\n\t\t\r\n\t\tboolean noError;\r\n\t\tboolean hit = false;\r\n\t\tint pass, q, offset, ip;\r\n\t\tint pk = stringToInt(targetKey);\r\n\t\tpass = 0;\r\n\t\tq = pk / N;\r\n\t\toffset = q;\r\n\t\tip = pk % N;\r\n\t\t\r\n\t\tif(q % N ==0)\r\n\t\t\toffset = defaultQuotient;\r\n\t\t\r\n\t\twhile(pass < N){\r\n\t\t\tif(data[ip] == null)\r\n\t\t\t\tbreak;\r\n\t\t\tif(data[ip].getKey().equals(targetKey)){\r\n\t\t\t\thit = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tip = (ip + offset) % N;\r\n\t\t\tpass++;\r\n\t\t}// End of while loop\r\n\t\t\r\n\t\tif(hit)\r\n\t\t\treturn data[ip].deepCopy();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t\t\r\n\t}", "public E get(Object key) {\n WeakReference<E> weakRef = _obj2Ref.get(key);\n return weakRef != null ? weakRef.get() : null;\n }", "public Collection< VKeyT > neighborKeys( VKeyT key )\n throws NoSuchVertexException;", "private <T> Pair<KademliaNode, List<T>> findValueGRPC(KademliaNode node, byte[] key) {\n\n FindValueRequest request = FindValueRequest.newBuilder()\n .setNode(KademliaUtils.KademliaNodeToKademliaNodeProto(bucketManager.getMyNode()))\n .setKey(ByteString.copyFrom(key))\n .build();\n\n ManagedChannel channel = ManagedChannelBuilder.forTarget(node.getIpAddress() + \":\" + node.getPort()).usePlaintext().build();\n AuctionBlockchainBlockingStub blockingStub = AuctionBlockchainGrpc.newBlockingStub(channel);\n// AuctionBlockchainBlockingStub blockingStub = AuctionBlockchainGrpc.newBlockingStub(channel).withDeadlineAfter(KademliaUtils.networkTimeoutMsecs, TimeUnit.MILLISECONDS);\n\n FindValueResponse response;\n\n try {\n response = blockingStub.findValue(request);\n } catch (StatusRuntimeException e) {\n// logger.log(Level.WARNING, \"FIND_VALUE RPC failed for \" + node.getIpAddress() + \":\" + node.getPort() + \" - \" + e.getStatus());\n logger.log(Level.WARNING, \"FIND_VALUE RPC failed for \" + node);\n closeChannel(channel);\n return new Pair(null, new ArrayList<>());\n }\n\n\n KademliaNode nodeInResponse = KademliaUtils.KademliaNodeProtoToKademliaNode(response.getNode());\n\n if (!Arrays.equals(node.getNodeID(), nodeInResponse.getNodeID())) {\n logger.log(Level.WARNING, \"Response returned with different nodeID\");\n closeChannel(channel);\n return new Pair(nodeInResponse, new ArrayList<>());\n }\n\n List<T> ret = new ArrayList<>();\n if (response.getBlockOrTransactionsOrNodesOrAuctionsOrBidsCase() == FindValueResponse.BlockOrTransactionsOrNodesOrAuctionsOrBidsCase.BLOCK) {\n ret.add((T)KademliaUtils.BlockProtoToBlock(response.getBlock()));\n }\n else if (response.getBlockOrTransactionsOrNodesOrAuctionsOrBidsCase() == FindValueResponse.BlockOrTransactionsOrNodesOrAuctionsOrBidsCase.TRANSACTIONS) {\n ret.addAll((List<T>)KademliaUtils.MempoolProtoToTransactionList(response.getTransactions()));\n }\n else if (response.getBlockOrTransactionsOrNodesOrAuctionsOrBidsCase() == FindValueResponse.BlockOrTransactionsOrNodesOrAuctionsOrBidsCase.BUCKET) {\n ret.addAll((List<T>)KademliaUtils.KBucketProtoToKademliaNodeList(response.getBucket()));\n }\n else if (response.getBlockOrTransactionsOrNodesOrAuctionsOrBidsCase() == FindValueResponse.BlockOrTransactionsOrNodesOrAuctionsOrBidsCase.AUCTIONS) {\n ret.addAll((List<T>)KademliaUtils.AuctionListProtoToAuctionList(response.getAuctions()));\n }\n else if (response.getBlockOrTransactionsOrNodesOrAuctionsOrBidsCase() == FindValueResponse.BlockOrTransactionsOrNodesOrAuctionsOrBidsCase.BIDS) {\n ret.addAll((List<T>)KademliaUtils.BidListProtoToBidList(response.getBids()));\n }\n else\n logger.log(Level.SEVERE, \"Error: findValueResponse without BlockOrTransactionsOrNodesOrAuctionsOrBidsCase\");\n\n closeChannel(channel);\n\n// logger.log(Level.INFO, \"Successfully sent FIND_VALUE RPC to \" + node + \" for key \" + Utils.bytesToHexString(key));\n return new Pair(nodeInResponse, ret);\n }", "@Nullable\r\n List<KeyPair> getKeyPair();", "java.lang.String getPublicKey();", "OctetString getPublicKey();", "public V get(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n V result = null;\r\n if (data[hash] != null) {\r\n Node currentNode = data[hash];\r\n while (currentNode != null) {\r\n if (currentNode.key == key || currentNode.key.equals(key)) {\r\n result = (V) currentNode.value;\r\n }\r\n currentNode = currentNode.next;\r\n }\r\n }\r\n return result;\r\n }", "public net.paymentech.ws.EMVPublicKeyLineItem[] getPEMVPublicKeyLineItem() {\r\n return pEMVPublicKeyLineItem;\r\n }", "public byte[] get(byte[] key);", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();" ]
[ "0.609284", "0.6024053", "0.5872246", "0.576781", "0.5704242", "0.56804353", "0.56765926", "0.5525089", "0.54471487", "0.5434741", "0.54340136", "0.54089713", "0.5399011", "0.53591603", "0.5335241", "0.5334005", "0.5322978", "0.5268727", "0.52684265", "0.52551925", "0.5251002", "0.5242073", "0.5236038", "0.5214916", "0.51932317", "0.5188053", "0.5185702", "0.5181101", "0.5169947", "0.51593024", "0.5142935", "0.513356", "0.511147", "0.5072398", "0.5071949", "0.50033456", "0.5001329", "0.49973318", "0.49912834", "0.49885547", "0.4988537", "0.49864855", "0.49806967", "0.49508306", "0.49361017", "0.49312812", "0.49199554", "0.49056023", "0.4904363", "0.4901414", "0.48995143", "0.48853558", "0.4874306", "0.4874306", "0.4874306", "0.4874306", "0.4874306", "0.4874306", "0.4874306", "0.4874306", "0.4874306", "0.4874306", "0.4874306", "0.4874306", "0.4874306", "0.48662865", "0.4860299", "0.48589337", "0.48548585", "0.48351666", "0.48236898", "0.4819763", "0.48166338", "0.48166338", "0.48166338", "0.48166338", "0.48160657", "0.481411", "0.48076016", "0.4803232", "0.4799015", "0.4799015", "0.4790836", "0.47885087", "0.4768683", "0.47609243", "0.47539672", "0.47505566", "0.474274", "0.4740701", "0.4738607", "0.473599", "0.47348657", "0.47333658", "0.4729902", "0.4717647", "0.47170746", "0.47154558", "0.47154558", "0.47154558" ]
0.7893648
0
Deletes the PeerEndpoint matching the provided key
void removePeerEndpoint(String key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PeerEndpoint getPeerEndpoint(String key);", "@Override\n public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeDeleteEndpoint(request);\n }", "public void deleteKeySecretPair(String key) throws ClassicDatabaseException,ClassicNotFoundException;", "@Override\n public void del(String key) throws KVException {\n \tSocket sock = null;\n try {\n if (key == null || key.isEmpty()) throw new KVException(ERROR_INVALID_KEY);\n\n \tsock = connectHost();\n \t\n \tKVMessage outMsg = new KVMessage(DEL_REQ);\n \toutMsg.setKey(key);\n \toutMsg.sendMessage(sock);\n \t\n \tKVMessage inMsg = new KVMessage(sock);\n \tString message = inMsg.getMessage();\n \tif(message == null) throw new KVException(ERROR_COULD_NOT_RECEIVE_DATA);\n \tif(!message.equals(SUCCESS)) throw new KVException(message);\n\n } catch (KVException kve) {\n System.err.println(kve.getKVMessage().getMessage());\n \tthrow kve;\n } finally {\n \tif(sock != null) closeHost(sock);\n }\n }", "public void deleteKey(String key) throws Exception;", "public void deletePubkey(PubkeyBean pubkey) {\n\t\tHostDatabase hostdb = new HostDatabase(context);\n\t\thostdb.stopUsingPubkey(pubkey.getId());\n\t\thostdb.close();\n\n\t\tSQLiteDatabase db = getWritableDatabase();\n\t\tdb.delete(TABLE_PUBKEYS, \"_id = ?\", new String[] { Long.toString(pubkey.getId()) });\n\t\tdb.close();\n\t}", "Completable deletePrivateEndpointConnectionAsync(String resourceGroupName, String serviceName, String peConnectionName);", "Completable deletePrivateEndpointConnectionAsync(String resourceGroupName, String serviceName, String peConnectionName);", "public void removeEndpoint(Endpoint endpoint)\r\n {\r\n getEndpoints().remove(endpoint);\r\n }", "public DataPair delete(DataPair key) {\n throw new NotImplementedException();\n }", "void accountPeerRemoved(String peerId);", "void delete(String key);", "public boolean delete(byte[] key) throws Exception;", "@Override\n\tpublic void delete(Object key) throws Exception {\n\t\tpropertyConfigMapper.deleteByPrimaryKey(key);\n\t}", "void deleteQueryKey(String key);", "void delete(String resourceGroupName, String serviceEndpointPolicyName, Context context);", "void removePeer(Uuid peer) throws RemoteException;", "void removeRemoteConnectionContextObject( String key );", "String deleteKey(String keyName)\n throws P4JavaException;", "@Override\n public Status delete(String table, String key) {\n DeleteM request = DeleteM.newBuilder().setTable(table).build();\n Result response;\n try {\n response = blockingStub.ldelete(request);\n } catch (StatusRuntimeException e) {\n return Status.ERROR;\n }\n return Status.OK;\n }", "void deleteByResourceGroup(String resourceGroupName, String serviceEndpointPolicyName);", "public void delete(Key key) {\n first = delete(first, key);\n }", "DeleteResponse delete(Key key, int time);", "@Delete({\r\n \"delete from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n int deleteByPrimaryKey(CWVGameContractAddressKey key);", "public void deleteItem(PlatformLayerKey key) throws PlatformLayerClientException;", "public DeleteKeyPairResponse deleteKeyPair(DeleteKeyPair deleteKeyPair) {\n \t\treturn null;\r\n \t}", "public void delete(String entity_name, String key) {\r\n \r\n Entity entity = getEntity(entity_name);\r\n int RF = entity.RF;\r\n\r\n //For each node\r\n for ( int i_node =0 ; i_node < numar_noduri && RF > 0; i_node++) {\r\n\r\n int i_instance = 0;\r\n while (i_instance < noduri.get(i_node).dimensiune && RF > 0) {\r\n\r\n Instance instance = noduri.get(i_node).instances.get(i_instance);\r\n \r\n if (instance.entity_name.equals(entity_name)\r\n && String.valueOf(instance.values.get(0)).equals(key)) {\r\n\r\n noduri.get(i_node).instances.remove(i_instance);\r\n noduri.get(i_node).dimensiune--;\r\n RF--;\r\n i_instance--;\r\n }\r\n i_instance++;\r\n }\r\n }\r\n if (RF > 0) {\r\n System.out.println(\"NO INSTANCE TO DELETE\");\r\n }\r\n }", "Completable deleteQueryKeyAsync(String key);", "public HttpResponse deleteEntity(String keySegment) throws ServiceUnavailableException {\r\n URIBuilder deleteURIBuilder = odataClient.newURIBuilder(serviceRootURL).appendEntitySetSegment(entitySet)\r\n .appendKeySegment(UUID.fromString(keySegment));\r\n\r\n return createAndExecuteRequest(deleteURIBuilder.build(), null, HttpMethod.DELETE);\r\n }", "public void deleteAppender(final String key) {\n LOGGER.debug(\"Deleting route with {} key \", key);\n // LOG4J2-2631: Only appenders created by this RoutingAppender are eligible for deletion.\n final CreatedRouteAppenderControl control = createdAppenders.remove(key);\n if (null != control) {\n LOGGER.debug(\"Stopping route with {} key\", key);\n // Synchronize with getControl to avoid triggering stopAppender before RouteAppenderControl.checkout\n // can be invoked.\n synchronized (this) {\n control.pendingDeletion = true;\n }\n // Don't attempt to stop the appender in a synchronized block, since it may block flushing events\n // to disk.\n control.tryStopAppender();\n } else if (referencedAppenders.containsKey(key)) {\n LOGGER.debug(\"Route {} using an appender reference may not be removed because \" +\n \"the appender may be used outside of the RoutingAppender\", key);\n } else {\n LOGGER.debug(\"Route with {} key already deleted\", key);\n }\n }", "public Builder removePeers(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n getMutablePeers().remove(key);\n return this;\n }", "public V remove(K key) throws InvalidKeyException;", "protected abstract void _del(String key);", "public boolean delete(@SuppressWarnings(\"rawtypes\") Class type, String key);", "String delete(Integer key);", "public int Delete_Friend(Object key) {\n\t\tDAO.all_interface friendDao = DB.ObjectFactory.getFriendDao();\r\n\t\tint i = friendDao.Delete(key);\r\n\t\tif(i == friendDao.OPERATE_SUCCESS){\r\n\t\t\treturn this.OPERATE_OK;\r\n\t\t}else if(i==friendDao.OPERATE_ERROR){\r\n\t\t\treturn this.OPERATE_ERROR;\r\n\t\t}else{\r\n\t\t\treturn this.OTHER_ERROR;\r\n\t\t}\r\n\t}", "@ServiceMethod(returns = ReturnType.SINGLE)\n void delete(String resourceUri, String endpointName, String serviceConfigurationName);", "@Override\n\tpublic void deleteByKey(Integer key) {\n\n\t}", "void removeEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String endpointGUID,\n String endpointExternalIdentifier,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;", "public void remove(String key){\n urlParams.remove(key);\n mJsonmap.remove(key);\n }", "void deleteVHost(String vHostName);", "@Override\npublic void delete(Key key) {\n\t\n}", "@Override\n\tpublic void delete(String keyName) {\n\n\t}", "public void removeEndpoint(String endpoint) {\n\t\tsessionMap.remove(endpoint);\n\t\tLOG.info(\"Removed endpoint {} with all its sessions\", endpoint);\n\t}", "public boolean delete(K key);", "public void removeEndpoint(String entity)\n\t\t{\n\t\t\tEndpoint endpoint = getEndpoint(entity);\n\t\t\tif (endpoint != null) {\n\t\t\t\tendpointsList.remove(endpoint);\n\t\t\t\tuserElement.removeChild(endpoint.endpointElement);\n\t\t\t}\n\t\t}", "void remove(@NonNull String key);", "@Override\n public void delete(K key){\n try {\n this.rootNode = deleteNode(this.rootNode, key);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n }", "public native Boolean delete(K key);", "public int deleteDHTKeyVal(String key){\n\t\tDHTNode node = dynamoRing.getResponsibleNode(key);\n\t\tArrayList<DHTNode> successorList = dynamoRing.getNSuccessors(node, REPLICATION_COUNT-1);\n\t\tArrayList<DHTNode> responsibleNodeList = successorList;\n\t\tint result = 0;\n\t\tresponsibleNodeList.add(node);\n\t\tfor(int i=0;i<responsibleNodeList.size();i++){\n\t\t\ttry{\t\t\t// try block inside the for loop so as to continue sending delete request to other\n\t\t\t\t\t\t\t// responsible nodes even if one node fails\n\t\t\t\tDHTNode nextNode = responsibleNodeList.get(i);\n\t\t\t\tSocket socket = new Socket(InetAddress.getByAddress(new byte[]{10, 0, 2, 2}),\n\t\t\t\t\t\tnextNode.getAddress());\n\t\t\t\tLog.v(TAG, \"Connected with \"+nextNode.getAddress());\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));\n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.setType(Message.DELETE);\n\t\t\t\tmsg.setKey(key);\n\t\t\t\tString msgStr = msg.toJson();\n\t\t\t\tbw.write(msgStr+\"\\n\");\n\t\t\t\tbw.flush();\n\t\t\t\tString responseStr = br.readLine();\n\t\t\t\tMessage response = Message.fromJson(responseStr);\n\t\t\t\tif(response == null)\t// response is null, the remote node must have failed\n\t\t\t\t\t\t\t\t\t\t// continue sending delete requests to other responsible nodes\n\t\t\t\t\tcontinue;\n\t\t\t\tif(response.getSqlResult()>result)\n\t\t\t\t\tresult = response.getSqlResult();\n\t\t\t\tbw.close();\n\t\t\t\tbr.close();\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Override\n\tpublic void removechild(EndpointEntity entity) {\n\t\t\n\t}", "void delete(int key)\n\t\tthrows IllegalArgumentException;", "void graphRemoveProperty( int propertyKey );", "void deleteRoutePoint(String routePoint, RouteDTO routeDTO);", "void delete(SecretIdentifier secretIdentifier);", "void clearEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectionGUID,\n String endpointGUID,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;", "V remove(Object key);", "@Override\n\tpublic void delete(IKeyBuilder<String> keyBuilder, HomeContext context) {\n\t\t\n\t}", "void deleteBookingById(BookingKey bookingKey);", "@Override\n\tpublic void delete(String key) throws SQLException {\n\t\t\n\t}", "public void removeComponent(String key) {\n\t\tconfiguration.remove(key);\n\t}", "public abstract void Delete(WriteOptions options, Slice key) throws IOException, BadFormatException, DecodeFailedException;", "void delete(K key);", "@Override\n protected void disconnect(SelectionKey key) {\n SocketChannel channel = (SocketChannel) key.channel();\n NetworkDestination destination = socketToDestination.get(channel);\n destinationToSocket.remove(destination);\n socketToDestination.remove(channel);\n socketToTracker.remove(channel);\n super.disconnect(key);\n }", "@Test\n public void deleteHouseholdUsingDeleteTest() throws ApiException {\n UUID householdId = null;\n api.deleteHouseholdUsingDelete(householdId);\n\n // TODO: test validations\n }", "public boolean remove(Key key) ;", "public void removeEndpoint(String endpointGUID) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n connectionManagerClient.removeEndpoint(userId, apiManagerGUID, apiManagerName, endpointGUID);\n }", "public void decomminsionHost( int hostId );", "boolean deletePortMapping(int externalPort, ProtocolEnum protocol) throws NotDiscoverUpnpGatewayException, UpnpException;", "@Override\n\tpublic void deleteKeyValueInfo(String key) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"deleteKeyValueInfo\");\n\t\tif (!this.isCloudChannelLive()) {\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n\t\t\t\t\t\"User is not online\");\n\t\t}\n\t\ttry {\n\t\t\tJSONObject joReq = new JSONObject();\n\t\t\tJSONObject pl = new JSONObject();\n\t\t\tjoReq.put(\"PL\", pl);\n\t\t\tjoReq.put(\"CID\", 30531);\n\t\t\tjoReq.put(\"SID\", getsid());\n\t\t\tpl.put(\"key\", key);\n\n\t\t\tString req = joReq.toString();\n\n\t\t\tString rsp = HttpProxy.reqByHttpPost(req);\n\t\t\tJSONObject jo = new JSONObject(rsp);\n\n\t\t\tif (jo.isNull(\"RC\")) {\n\t\t\t\tthrow new HFModuleException(\n\t\t\t\t\t\tHFModuleException.ERR_DELETE_KEYVALUE,\n\t\t\t\t\t\t\"can not delete keyvalue\");\n\t\t\t}\n\t\t\tif (jo.getInt(\"RC\") != 1) {\n\t\t\t\tthrow new HFModuleException(\n\t\t\t\t\t\tHFModuleException.ERR_DELETE_KEYVALUE,\n\t\t\t\t\t\t\"can not delete keyvalue\");\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_DELETE_KEYVALUE,\n\t\t\t\t\t\"can not delete keyvalue\");\n\t\t}\n\t}", "void removepeer(Node p) {\n\t\tpeers.remove(p);\n\t}", "@Test\n public void deleteDeviceTest() throws ApiException {\n String deviceId = null;\n // DeviceEnvelope response = api.deleteDevice(deviceId);\n\n // TODO: test validations\n }", "void remove(DirectoryEntityKey key);", "public void delete(String k, String v) throws RemoteException, Error;", "public void remove(String key) throws IOException;", "V remove(K key);", "V remove(K key);", "V remove(K key);", "boolean remove(byte[] key);", "public void dec(String key);", "public V remove(K key);", "public V remove(K key);", "@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }", "protected void remove(K key) {\n segment.remove(key);\n }", "@Override\n\tpublic int delete(int key) {\n\t\treturn 0;\n\t}", "Map<String, Object> deleteConfig(VirtualHost vhost, String type, String id);", "public void delete(Key key) {\n root = delete(root, key);\n }", "public void delete(int singerId);", "public Builder clearEndpoint() {\n if (endpointBuilder_ == null) {\n endpoint_ = null;\n onChanged();\n } else {\n endpoint_ = null;\n endpointBuilder_ = null;\n }\n\n return this;\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n public void delete(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName) {\n deleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName).block();\n }", "void remove(String key);", "void remove(String key);", "void remove(String key);", "public void delete(String key) throws KeyNotFoundException{\n if( lookup(key) == null){\n throw new KeyNotFoundException(\"cannot delete non-existent key\");\n }\n else{\n if(numItems <= 1){\n Node N = front;\n front = front.next;\n N.next = null;\n numItems--;\n }\n else{\n Node N = front;\n if(N.key.equals(key)){\n front = N.next;\n numItems--;\n }\n else{\n while(!N.next.key.equals(key)){\n N = N.next;\n }\n N.next = N.next.next;\n numItems--;\n }\n }\n }\n }", "public static void delete(String endpointURL) {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n Request request = new Request.Builder().url(HOST + endpointURL).delete().build();\n\n try {\n client.newCall(request).execute().body().string();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void unRegisterBinding(String bindingKey, Node node) {\n\t\tlog.info(\"UnRegistering binding key \" + bindingKey);\n\t\ttry {\n\t\t\tString authToken = getAuthToken(node.getSecurityUrl());\n\t\t\tDeleteBinding deleteBinding = new DeleteBinding();\n\t\t\tdeleteBinding.setAuthInfo(authToken);\n\t\t\tdeleteBinding.getBindingKey().add(bindingKey);\n\t\t\tgetUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteBinding(deleteBinding);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Unable to unregister bindingkey \" + bindingKey\n\t\t\t\t\t+ \" .\" + e.getMessage(),e);\n\t\t}\n\t}", "public void delHeader(String key);", "void deleteSecret(Long userId, Long secretId);", "void remove(KeyType key);", "public void removeFromStorage() throws Exception {\n String baseUrl = REST_URL + \"/core/device\";\n\n Treespace t = dbService.getControllerTreespace();\n String qStr =\n String.format(\"/core/device[id=\\\"%s\\\"]/security-ip-address\",\n eKey);\n Query q = Query.parse(qStr);\n t.deleteData(q, AuthContext.SYSTEM);\n }" ]
[ "0.66041535", "0.6444376", "0.6354361", "0.63278776", "0.59801894", "0.591942", "0.58949614", "0.58949614", "0.58791834", "0.5787619", "0.57804686", "0.5717265", "0.56788886", "0.5659161", "0.5630957", "0.56146735", "0.5582832", "0.55535054", "0.55499166", "0.5542869", "0.5448736", "0.54409707", "0.5430286", "0.5423653", "0.539694", "0.5374928", "0.5372208", "0.53713", "0.5362518", "0.53609186", "0.5359468", "0.53296304", "0.53190583", "0.53093904", "0.530445", "0.5292555", "0.528483", "0.528308", "0.52799326", "0.527292", "0.52527255", "0.5243778", "0.52314085", "0.523015", "0.5217841", "0.51814085", "0.51769465", "0.51708263", "0.5153382", "0.5147307", "0.5142101", "0.5128268", "0.5120511", "0.5118859", "0.5116894", "0.5116715", "0.5109139", "0.51088095", "0.51052547", "0.509018", "0.50711906", "0.5071116", "0.5064822", "0.50497425", "0.50442445", "0.5024059", "0.5015713", "0.50140667", "0.49982035", "0.49969104", "0.49810952", "0.49615443", "0.49600947", "0.49506208", "0.4949579", "0.4939535", "0.4939535", "0.4939535", "0.49387932", "0.49218443", "0.49144527", "0.49144527", "0.49105793", "0.490974", "0.49043357", "0.49042213", "0.4904019", "0.49033043", "0.49001312", "0.4897532", "0.48814502", "0.48814502", "0.48814502", "0.48804832", "0.48786318", "0.487695", "0.48680902", "0.48664415", "0.48579875", "0.48578632" ]
0.8657245
0
Returns the number of currentlyn known peers
int getPeerCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPeersCount();", "protected int numPeers() {\n\t\treturn peers.size();\n\t}", "private int getNumPeers() {\n String[] peerIdList = skylinkConnection.getPeerIdList();\n if (peerIdList == null) {\n return 0;\n }\n // The first Peer is the local Peer.\n return peerIdList.length - 1;\n }", "int getPeerURLsCount();", "int getConnectionsCount();", "synchronized public int getSize() {\n\t\tint x = 0;\n\t\tfor (Enumeration<PeerNode> e = peersLRU.elements(); e.hasMoreElements();) {\n\t\t\tPeerNode pn = e.nextElement();\n\t\t\tif(!pn.isUnroutableOlderVersion()) x++;\n\t\t}\n\t\treturn x;\n\t}", "public int size() {\n int size = 0;\n for (Map<Number160, PeerStatistic> map : peerMapVerified) {\n synchronized (map) {\n size += map.size();\n }\n }\n return size;\n }", "public int getNumberOfConnectedPeersToAim() {\n\t\tint max = getNumberOfConnectedPeersToAimIncludingDarknet();\n\t\treturn max - node.peers.countConnectedDarknetPeers();\n\t}", "public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\")) {\n\t\t\t\t\tnumberofconnection++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numberofconnection;\n\t}", "public int getAvailableCount();", "public final int getKnownCount()\r\n {\r\n return knownCount;\r\n }", "public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}", "private int visitedNetworksCount() {\n final HashSet<String> visitedNetworksSet = new HashSet<>(mVisitedNetworks);\n return visitedNetworksSet.size();\n }", "public int numConnections(){\n return connections.size();\n }", "int getNodesCount();", "int getNodesCount();", "Integer getConnectorCount();", "@Exported\n public int getNumberOfOnlineSlaves() {\n int count = 0;\n for (Slave s : slaves) {\n if (s.getComputer().isOnline()) {\n count++;\n }\n }\n return count;\n }", "int getTotalCreatedConnections();", "public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }", "public int getTotalConnections()\n {\n // return _connections.size();\n return 0;\n }", "public int getNumConnects() {\n\t\treturn numConnects;\n\t}", "int getCiphersCount();", "int getConnectionCount();", "long getTotalServerSocketsCount();", "public long numCandidates();", "int getParticipantsCount();", "int getParticipantsCount();", "int getFriendListCount();", "int getFriendListCount();", "int getPeakServerSocketCount();", "public static int countNodes() {\n\t\treturn count_nodes;\n\t}", "int getNetworkInterfacesCount();", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "int getSeenInfoCount();", "public boolean maxPeersReached(){\n\t\tif(peers.size()>=maxpeers){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "int getNodeCount();", "int getNodeCount();", "public int getNumOfConnections() {\r\n\t\treturn numOfConnections;\r\n\t}", "int getPortPairGroupCount();", "public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }", "public int numIncoming() {\r\n int result = incoming.size();\r\n return result;\r\n }", "private int getOnlinePlayers()\n {\n return (int) Bukkit.getOnlinePlayers().stream().filter( p -> p != null && p.isOnline() ).count();\n }", "@Exported\n public int getNumberOfOfflineSlaves() {\n int count = 0;\n for (Slave s : slaves) {\n if (s.getComputer().isOffline()) {\n count++;\n }\n }\n return count;\n }", "int getServerSocketCount();", "public int countNeighbours() {\n\t\tint count = 0;\n\t\tif (this.hasNeighbour(0))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(1))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(2))\n\t\t\tcount++;\n\t\treturn count;\n\t}", "public int totalNumNodes () { throw new RuntimeException(); }", "int totalNumberOfNodes();", "@Override\n public int getNumConnections()\n {\n return connections.size();\n }", "int getNrNodes() {\n\t\treturn adjList.size();\n\t}", "@Exported\n public int getNumberOfSlaves() {\n if (this.slaves == null) {\n return 0;\n }\n return this.slaves.size();\n }", "public int size() {\r\n return listeners.size() + weak.size();\r\n }", "int getFriendCount();", "int getFriendCount();", "Integer getPortMappingCount() throws NotDiscoverUpnpGatewayException, UpnpException;", "public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}", "@Override\r\n\tpublic int getConnectionsCount() {\r\n\t\treturn currentConnections.get();\r\n\t}", "int NoOfNodes() {\r\n return noOfNodes;\r\n }", "public int getNumConnections(ImmutableNodeInst n) {\n int myNodeId = n.nodeId;\n int i = searchConnectionByPort(myNodeId, 0);\n int j = i;\n for (; j < connections.length; j++) {\n int con = connections[j];\n ImmutableArcInst a = getArcs().get(con >>> 1);\n boolean end = (con & 1) != 0;\n int nodeId = end ? a.headNodeId : a.tailNodeId;\n if (nodeId != myNodeId) break;\n }\n return j - i;\n }", "public int getNumNetworkCopies(){\n synchronized (networkCopiesLock){\n return this.networkCopies.size();\n }\n }", "public static Integer numValidClients() {\n return getLoggedInUserConnections().size() + anonClients.size();\n }", "public int readyCount()\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\tif(player.isReady())\r\n\t\t\t\t{\r\n\t\t\t\t\t++count;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int size() {\r\n\t\tint size = 0;\r\n\t\tfor (Integer key : connectionLists.keySet()) {\r\n\t\t\tsize += connectionLists.get(key).size();\r\n\t\t}\r\n\t\treturn size;\r\n\t}", "int getLinksCount();", "public int getNumPlayers(){\n\t\treturn this.players.size();\n\t}", "public static int getNumPlayers(){\n\t\treturn numPlayers;\n\t}", "public int getParticipantsCount()\n {\n return participants.size();\n }", "public int numPlayers(){\n return this.members.size();\n }", "int getTotalNumOfNodes() {\n\t\treturn adjList.size();\n\t}", "public int numOutgoing() {\r\n int result = outgoing.size();\r\n return result;\r\n }", "@Override\n public int getIntraUsersWaitingYourAcceptanceCount() {\n //TODO: falta que este metodo que devuelva la cantidad de request de conexion que tenes\n try {\n\n if (getActiveIntraUserIdentity() != null){\n return getIntraUsersWaitingYourAcceptance(getActiveIntraUserIdentity().getPublicKey(), 100, 0).size();\n }\n\n } catch (CantGetIntraUsersListException e) {\n e.printStackTrace();\n } catch (CantGetActiveLoginIdentityException e) {\n e.printStackTrace();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return 0;\n }", "public static long getNumberOfOpenConnections() {\n return openConnections.size();\n }", "public static int getConnectionCount()\r\n {\r\n return count_; \r\n }", "int getEnqueuedBlockRequestsNumber() {\n int count = 0;\n for (StdPeerMessage pm : sendQueue) {\n if (pm.type == StdPeerMessage.REQUEST) {\n count++;\n }\n }\n return count;\n }", "int numberOfCandidates();", "public int Sizeofnetwork() {\n\t\treturn Nodeswithconnect.size();\n\t}", "long getListenerCount();", "public int getSize()\n\t{\n\t\treturn _floodClient.size();\n\t}", "public int getRowCount () {\n return peer.size();\n }", "private int getNumberOfAccounts()\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n return factory.getRegisteredAccounts().size();\n }", "public int clientsCount(){\n return clientsList.size();\n }", "public int readyCount ()\n\t{\n\t\tint count =0;\n\t\tIterator<Player> it = iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tPlayer p = it.next();\n\t\t\tif(p.available())\n\t\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "public int getFriendListCount() {\n return instance.getFriendListCount();\n }", "@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}", "public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}", "static int displayN(Node node)\r\n {\r\n return node.neighbors.size();\r\n }", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }", "public static int registeredSize() {\n\t\tInteger count = new Integer(0);\n\t\tObject object = cache.get(FQN_COUNT, LOGGED_COUNT);\n\t\tif (object != null) {\n\t\t\tcount = (Integer) object;\n\t\t}\n\n\t\treturn (count == null ? 0 : count.intValue());\n\t}", "public int getNumberOfNodesEvaluated();", "public int getNrOfAccounts() {\n return getPublicKeys().size();\n }", "int getNetTransferMsgsCount();", "public int nrOfPlayers() {\n int playerCount = 0;\n for (Player player : players) {\n if (player.getName() != null) {\n playerCount++;\n }\n }\n\n return playerCount;\n }", "public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}", "public static int friendCount(){\n return showing.size() - sections.size();\n }", "protected int numNodes() {\n\t\treturn nodes.size();\n\t}", "public int getDegree() {\n return this.customers.size() + this.peers.size() + this.providers.size();\n }", "int getIndexEndpointsCount();" ]
[ "0.8257916", "0.7981629", "0.79548776", "0.76743907", "0.6941721", "0.6861988", "0.68188953", "0.6653898", "0.6619061", "0.6606551", "0.65877426", "0.65581775", "0.65381", "0.6521432", "0.6507633", "0.6507633", "0.64650965", "0.64050275", "0.6380731", "0.6372718", "0.6358309", "0.63216144", "0.62883776", "0.6284599", "0.6257779", "0.624299", "0.623484", "0.623484", "0.62334657", "0.62334657", "0.62262005", "0.6209387", "0.6197395", "0.6173657", "0.6173657", "0.6173657", "0.6171951", "0.61704785", "0.6163967", "0.6163967", "0.6161266", "0.615898", "0.6144929", "0.6139619", "0.61351854", "0.61276186", "0.61274815", "0.6123678", "0.61186814", "0.61160016", "0.6103992", "0.6092059", "0.6090456", "0.6090232", "0.6089412", "0.6089412", "0.607741", "0.60715145", "0.6069373", "0.6068316", "0.606355", "0.60554284", "0.6049688", "0.6046305", "0.6043251", "0.6043027", "0.60335535", "0.603337", "0.60295737", "0.6027484", "0.60264194", "0.601827", "0.6018011", "0.60079986", "0.59706306", "0.5969697", "0.5963893", "0.5959775", "0.5952193", "0.5951826", "0.5948457", "0.59453976", "0.5943178", "0.5942847", "0.5938226", "0.59365", "0.59336835", "0.5931661", "0.59305197", "0.59287816", "0.5924607", "0.59242713", "0.5923011", "0.5922276", "0.5916768", "0.591657", "0.59139913", "0.591229", "0.5911358", "0.59043664" ]
0.80817336
1
liste des taches obligatoires
public abstract NSMutableArray<I_WorkFlowItem> tachesObligatoires();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> mostraRegles(){\n ArrayList<String> tauleta = new ArrayList<>();\n String aux = reg.getAssignacions().get(0).getAntecedents().getRangs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "public ArrayList<String> mostraLlistaAtribs(){\n ArrayList<String> tauleta = new ArrayList<>();\n System.out.print(\"num atribs: \"+list.getNomLlista()+\"\\n\");\n String aux = list.getAtribs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "@Override\n\tpublic ArrayList<String> partecipantiListaElettorale(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\n\t\tSet<Integer> keys = map.keySet();\n\t\tfor (int key : keys) {\n\t\t\tif (map.get(key).getNomeLista().equals(nome)) {\n\t\t\t\treturn map.get(key).getComponenti();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public ArrayList<String> mostraLlistaDiscret(){\n ArrayList<String> tauleta = new ArrayList<>();\n int p = 0;\n System.out.print(\"num atribs disc de 0: \"+list.getAtribs().get(0).getAtribsDisc().size());\n ArrayList<Atribut> disc = new ArrayList<Atribut>();\n\n for (int i=0; i<list.getAtribs().size(); i++){\n if (list.getAtribs().get(i).getDiscret()) disc.add(list.getAtribs().get(i));\n }\n\n\n String aux = \"\";\n for (int i=0; i<disc.size(); i++){\n for (int k=0; k<disc.get(i).getAtribsDisc().size(); k++) {\n aux += disc.get(i).getAtribsDisc().get(k).getNom() + \"\\t\";\n }\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = \"\";\n for (int i = 0; i < disc.size(); i++) {\n int f = 0;\n if (!disc.get(i).getShowDefault()) f++;\n for (int k=f; k<disc.get(i).getAtribsDisc().size(); k++) {\n aux += String.valueOf(disc.get(i).getAtribsDisc().get(k).getCasos().get(j)) + \"\\t\";\n }\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "public Iterator<String> listRestrictions()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listRestrictions().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "public List<Etudiant> etudiantAdmis() {\n\t\t\r\n\tList<Etudiant> liste = new ArrayList<Etudiant>();\r\n\t\tList<Etudiant> listetuds = dao.afficher();\r\n\t\tfor(Etudiant et : listetuds) {\r\n\t\t\tif(dao.getMoyenneGenerale(et.getIdPersonne())>=10){\r\n\t\t\t\tliste.add(et);\r\n\t\t\t} \r\n\r\n\t\t\treturn liste;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "protected List<String> listaVociCorrelate() {\n return null;\n }", "List<E> resoudre (\n ProblemeAbstrait <E, A> probleme, \n HeuristiqueAbstrait<E> heuristique\n );", "public void confirmerAppel(List<Eleve> listeElevesAbsents, Seance s, Groupe g);", "protected String inicializarCamposComunes() {\r\n\t\tString listCamposFiltro = \"\";\r\n\r\n\t\tif(getId() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Id\").concat(\", \");\r\n\t\t}\r\n\t\tif(getObservaciones() != null && getObservaciones().length() >0){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Observaciones\").concat(\", \");\r\n\t\t}\r\n\t\tif(getActivo() != null && getActivo().length() > 0){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Activo [\").concat(getActivo()).concat(\"], \");\r\n\t\t}\r\n\t\tif(getFechaBajaDesde() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Baja Desde\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaBajaHasta() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Baja Hasta\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaAltaDesde() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Alta Desde\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaAltaHasta() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Alta Hasta\").concat(\", \");\r\n\t\t}\r\n\r\n\t\treturn listCamposFiltro;\r\n\t}", "public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }", "private static List<Etudiant> creationListeEtudiants(List<String> datas,boolean modele){\n\t\tList<String> dataEtudiant = new ArrayList<String>();\n\t\tList<Etudiant> etudiants = new ArrayList<Etudiant>();\n\t\tIterator<String> it = datas.iterator();\n\t\twhile (it.hasNext()) {//on parcourt les donnees\n\t\t\tString data = it.next();\n\t\t\tif(RecherchePattern.rechercheDebutEtudiant(data)){\t//si on change d'etudiant on reset les donnees concernant l'ancien etudiant\n\t\t\t\treset();\n\t\t\t\tdataEtudiant = new ArrayList<String>();//on reset les donnees\n\t\t\t\tsetNbEtudiant(getNbEtudiant() + 1);\n\t\t\t}\n\t\t\telse{//si on a pas changer d'etudiant on stocke ces donnees\n\t\t\t\tif(RecherchePattern.rechercheFinEtudiant(data)){//si on est a la fin des donnees on creer l'etudiant\n\t\t\t\t\tdataEtudiant.add(data); //on ajoute le dernier element au donnee\n\t\t\t\t\tif(!modele)\n\t\t\t\t\t\tetudiants.add(ajoutEtudiant(dataEtudiant));\n\t\t\t\t\telse\n\t\t\t\t\t\tetudiants.add(ajoutEtudiantModele(dataEtudiant));\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdataEtudiant.add(data);//on est pas a la fin on attend\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tetudiants = suppressionDoublons(etudiants); //on supprime les\n\t\treturn etudiants;\n\t}", "public DobbeltLenketListe() {\n this.hode= null;\n this.hale= null;\n antall=0; }", "public List<ViewEtudiantInscriptionEcheance> rechercheEtudiantInscripEcheanceParNomEtPrenom(){ \r\n try{ \r\n setListRechercheEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findEtudInscripByNonEtPrenomWithJocker(getViewEtudiantInscripEcheance().getNomEtPrenom())); \r\n }catch (Exception ex) {\r\n System.err.println(\"Erreur capturée : \"+ex);\r\n }\r\n return listRechercheEtudiantInscripEcheance;\r\n }", "@Override\r\n\tpublic List<Etudiant> afficherEtudiant() {\n\t\treturn null;\r\n\t}", "public void afficherListe(){\n StringBuilder liste = new StringBuilder(\"\\n\");\n logger.info(\"OUTPUT\",\"\\nLes produits en vente sont:\");\n for (Aliment aliment : this.productList) { liste.append(\"\\t\").append(aliment).append(\"\\n\"); }\n logger.info(\"OUTPUT\", liste+\"\\n\");\n }", "private static List<Etudiant> suppressionDoublons(List<Etudiant> etudiants) {\n\t\tList<Etudiant> listEtu = new ArrayList<Etudiant>();\n\t\tfor (int i=0; i<etudiants.size(); i++) {\n\t\t\tEtudiant etudiant = etudiants.get(i);\n\t\t\tif(etudiant.getNom()!=null) {\n\t\t\t\tif (!listEtu.contains(etudiant))\n\t\t\t\t\tlistEtu.add(etudiant);\n\t\t\t}\n\t\t}\n\t\treturn listEtu;\n\t}", "public List<String> getMinimalFormsAsString() {\n\n\t\tList<String> list = new ArrayList<>();\n\n\t\tif (mintermSet.size() == 0) {\n\t\t\tlist.add(\"Funkcija je kontradikcija\");\n\t\t\treturn list;\n\t\t}\n\n\t\tif (mintermSet.size() + dontCareSet.size() == Math.pow(variables.size(), 2)) {\n\t\t\tlist.add(\"Funkcija je tautologija\");\n\t\t\treturn list;\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Set<Mask> set : minimalForms) {\n\t\t\tfor (Mask mask : set) {\n\t\t\t\tfor (int i = 0; i < mask.size(); i++) {\n\t\t\t\t\tif (mask.getValueAt(i) == 0) {\n\t\t\t\t\t\tsb.append(\"NOT \");\n\n\t\t\t\t\t}\n\t\t\t\t\tif (mask.getValueAt(i) != 2) {\n\t\t\t\t\t\tsb.append(variables.get(i));\n\t\t\t\t\t\tsb.append(\" AND \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (sb.length() >= 4) {\n\t\t\t\t\tsb.setLength(sb.length() - 4);\n\t\t\t\t}\n\t\t\t\tsb.append(\"OR \");\n\t\t\t}\n\t\t\tif (sb.length() >= 3) {\n\t\t\t\tsb.setLength(sb.length() - 3);\n\t\t\t}\n\t\t\tlist.add(sb.toString());\n\t\t\tsb.setLength(0);\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n public List<AbstractPass> getAllTypesOfPass() {\n CriteriaBuilder builder = entityManager.getCriteriaBuilder();\n CriteriaQuery<AbstractPass> criteria = builder.createQuery(AbstractPass.class);\n Root<AbstractPass> root = criteria.from(AbstractPass.class);\n Predicate restriction = builder.and(builder.notEqual(root.get(\"price\"), 0));\n criteria.select(root).where(restriction);\n TypedQuery<AbstractPass> query = entityManager.createQuery(criteria);\n try {\n return query.getResultList();\n } catch (NoResultException nre){\n return new ArrayList<>();\n }\n }", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }", "public List getBeneficioDeudaList(Map criteria);", "public void afficherListeNoms(){\r\n\t\tfor (String nom: noms){\r\n\t\t\tSystem.out.println(nom);\r\n\t\t}\r\n\t}", "public abstract List<String> getValidDescriptors();", "public List<String> GetAssegnamentiInCorso() {\n String str = \"Guillizzoni-Coca Cola Spa1-DRYSZO,Rossi-Coca Cola Spa2-DRYSZ2\";\n StringaAssegnamenti = str;\n StringaAssegnamenti = \"\";\n \n\tList<String> items = Arrays.asList(str.split(\"\\\\s*,\\\\s*\"));\n return items;\n }", "public static ArrayList<String> getResultatNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"resultats\");\n }", "public ConsultBean() {\n \t annees= new ArrayList<String>(); \n int a = Integer.parseInt(cenServ.getCentre().getAnneeRegistre());\n \t\t\n \t\tfor(int i = anneeCourant ; i >= a; i--){\n \t\t\tannees.add(i+\"\"); \n \t\t} \n \t\t\n \t\t\t\t\n }", "public ArrayList<String> mostraResultats(){\n ArrayList<String> tauleta = new ArrayList<>();\n for (int j=0; j<res.getClients().size(); j++) {\n for (int k=0; k<res.getClients().get(j).getAssigs().size(); k++) {\n String aux = \"\";\n for (int i = 0; i < res.getClients().get(j).getAssigs().get(k).getAntecedents().getRangs().size(); i++) {\n aux += res.getClients().get(j).getAssigs().get(k).getAntecedents().getRangs().get(i).getNom() + \"\\t\";\n }\n aux += \" -> \" + res.getClients().get(j).getAssigs().get(k).getConsequent().getNom();\n tauleta.add(aux);\n }\n }\n return tauleta;\n }", "public Collection findAllExceptDO(Boolean valid) throws InfrastructureException {\r\n\t\tCollection col;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"findAllExceptDO ini\");\r\n\t\t\tString q = \"from PartidaOli as par where 1 = 1 \";\r\n\t\t\tif (valid != null && valid.booleanValue()) q += \"and par.esActiu = true \";\r\n\t\t\tif (valid != null && !valid.booleanValue()) q += \"and par.esActiu = false \";\r\n\t\t\tq += \"and par.categoriaOli.id != \" + Constants.CATEGORIA_DO + \" \"; // Categoria de DO\r\n\t\t\tq += \"order by par.nom\";\r\n\t\t\tcol = getHibernateTemplate().find(q);\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"findAllexceptDO failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"findAllExceptDO fin\");\r\n\t\treturn col;\r\n\t}", "public void listeDesEmpruntsEnCours();", "public static ArrayList<Krediti> rascetOtricBalans() {\r\n\t\tArrayList<Krediti> foundKrediti = new ArrayList<Krediti>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Krediti vkla : kred) {\r\n\r\n\t\t\tt = t + vkla.getDolg();\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"Otrictelni balanse Scetov= \" + t + \"$\");\r\n\t\treturn foundKrediti;\r\n\t}", "static public ArrayList<Mascota> filtroLugar(String pLugar){\n ArrayList<Mascota> resul = new ArrayList<>(); \n for(Mascota mascota : mascotas){\n if(mascota.getUbicacion().equals(pLugar)){\n resul.add(mascota); \n }\n }\n return resul;\n }", "public List<Etudiant> getEtudiantParGroupe(String gr) {\n\t\treturn null;\n\t}", "public ArrayList<Chambre> chambresNonVides() {\n\t\tArrayList<Chambre> chambreRes = new ArrayList<Chambre>();\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(chambre.isReserve()) {\n\t\t\t\tchambreRes.add(chambre);\n\t\t\t}\n\t\t}\n\t\treturn chambreRes;\n\t}", "public Jahresrangliste() {\r\n\t\tLaeufe = new ArrayList<Lauf>();\r\n\t\tRennfahrer = new ArrayList<Fahrer>();\r\n\t}", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "private static ArrayList<String> getAllKeyWord(String [] lignes){\n ArrayList<String> res= new ArrayList<>();\n\n // La recherche dans le pdf\n for(String ligne : lignes){\n for(String mot : ligne.split(\" |/|-|\\\\(|\\\\)|,\")){\n\n try{\n if(mot.toLowerCase(Locale.ENGLISH).equals(\"c#\".toLowerCase(Locale.ENGLISH)))\n res.add(\"csharp\");\n else\n if(mot.toLowerCase(Locale.ENGLISH).equals(\"c++\".toLowerCase(Locale.ENGLISH)))\n res.add(\"cpp\");\n else\n if(!mot.toLowerCase(Locale.ENGLISH).matches(\"| |à|de|je|un|et|une|en|d'un|d'une|le|la|avec|:|\\\\|\"))\n res.add(mot.toLowerCase(Locale.ENGLISH));\n }catch (IllegalArgumentException e){\n //System.out.println(e.getMessage());\n continue;\n }\n }\n //System.out.println(\"line: \"+s);\n }\n return (ArrayList) res.stream().distinct().collect(Collectors.toList());\n }", "public void listarDocDaDisciplina(){\r\n for(int i=0;i<docentes.size();i++){\r\n System.out.println(docentes.get(i).toString());\r\n }\r\n }", "public static ArrayList<String> getLlistaNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"llista\");\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "private void armarListaCheck() {\n listaCheck = new ArrayList();\n listaCheck.add(chkBici);\n listaCheck.add(chkMoto);\n listaCheck.add(chkAuto);\n }", "public AntiSapam(ArrayList<String> filtres){\r\n\t\tif(filtres != null){\r\n\t\t\tthis.filtres = filtres;\r\n\t\t} else {\r\n\t\t\tthis.filtres = new ArrayList<String>()\r\n\t\t}\r\n\t}", "public List<DocumentoVinculadoDTO> getListaNoEspecifico() {\n System.out.println(\"entrei getListaNoEspecifico \");\n listar1Produto();\n return listaNoEspecifico;\n }", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "public List<Mobibus> darMobibus();", "public static void main(String[] args) {\n System.out.println(\"hola la concha de tu madre\");\n Persona persona1 = new Persona(\"allan\",28,19040012);\n Persona persona2 = new Persona(\"federico\", 14,40794525);\n Persona persona3 = new Persona(\"pablito\", 66,56654456);\n\n List<Persona> personas= new ArrayList<Persona>();\n personas.add(persona1);\n personas.add(persona2);\n personas.add(persona3);\n\n System.out.println(\"--------Para imprimir la list completa--------\");\n System.out.println(String.format(\"Personas: %s\",personas));\n\n System.out.println(\"----------MAYORES A 21-------------\");\n // mayores a 21\n System.out.println(String.format(\"Mayores a 21: %s\",personas.stream()\n .filter(persona->persona.getEdad() > 21)\n .collect(Collectors.toList())));\n\n System.out.println(\"-----------MENORES A 18-------------------\");\n // menores 18\n System.out.println(String.format(\"menores 18: %s\",personas.stream()\n .filter(persona->persona.getEdad() < 18)\n .collect(Collectors.toList())));\n\n System.out.println(\"---------MAYORES A 21 + DNI >20000000 -------------------\");\n System.out.println(String.format(\"MAYORES A 21 + DNI >20000000: %s\",personas.stream()\n .filter(persona->persona.getEdad() > 21 && persona.getDni()>20000000)\n //.filter( persona->persona.getDni() >20000000) // tambien funciona con este\n .collect(Collectors.toList())));\n\n }", "public List<FaturamentoVO> validaSelecionaSinistros(String ano, int tipo) {\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0%\");\n\n\t\tUteis uteis = new Uteis();\n\t\tString anoAnterior = Integer.toString((Integer.parseInt(uteis.cortaRetornaAno(ano)) - 1));\n\n\t\tList<FaturamentoVO> listaTratada = new ArrayList<FaturamentoVO>();\n\n\t\tList<FaturamentoVO> listaAnoParam = dadosFaturamentoDetalhado;\n\t\tList<FaturamentoVO> listaAnoAnterior = dadosFaturamentoDetalhadoAnoAnterior;\n\n\t\tString quantidadeTextoBancoDados = \"\";\n\t\tString quantidadeTextoApresentacao = \"\";\n\t\tString valorTextoBancoDados = \"\";\n\t\tString valorTextoApresentacao = \"\";\n\n\t\tswitch (tipo) {\n\t\tcase 1: // AVISADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS AVISADOS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS AVISADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 2: // INDENIZADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS INDENIZADOS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS INDENIZADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 3: // PENDENTE\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS PENDENTES\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS PENDENTES\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 4: // DESPESA\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS - DESPESAS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS - DESPESAS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaAnoParam.size(); i++) {\n\t\t\tif (listaAnoParam.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoParam.get(i).getProduto().equals(valorTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoParam.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoParam\n\n\t\tfor (int i = 0; i < listaAnoAnterior.size(); i++) {\n\t\t\tif (listaAnoAnterior.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(anoAnterior);\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoAnterior.get(i).getProduto().equals(valorTextoBancoDados)) {\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(anoAnterior);\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoAnterior\n\n\t\tbyte qtdAnoParam = 0;\n\t\tbyte qtdAnoAnterior = 2;\n\n\t\tbyte vlrAnoParam = 1;\n\t\tbyte vlrAnoAnterior = 3;\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 QTD\n\t\tString[] mesesQtdTratado = new String[13];\n\t\tdouble totalQtd = 0.0D;\n\t\tFaturamentoVO variacaoQtdVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\t\t\tBigDecimal bigQtdAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\")));\n\n\t\t\ttry {\n\t\t\t\ttotalQtd = Double.parseDouble((bigQtdAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 4,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalQtd = 0D;\n\t\t\t}\n\n\t\t\tmesesQtdTratado[j] = percentForm.format(totalQtd);\n\n\t\t}\n\t\tvariacaoQtdVO.setProduto(\"Varia&ccedil;&atilde;o Qtd.\");\n\t\tvariacaoQtdVO.setMeses(mesesQtdTratado);\n\t\tlistaTratada.add(variacaoQtdVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 Valor\n\t\tString[] mesesVlrTratado = new String[13];\n\t\tdouble totalVlr = 0.0D;\n\t\tFaturamentoVO variacaoVlrVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalVlr = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\tlistaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t4, RoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalVlr = 0D;\n\t\t\t}\n\n\t\t\tmesesVlrTratado[j] = percentForm.format(totalVlr);\n\n\t\t}\n\t\tvariacaoVlrVO.setProduto(\"Varia&ccedil;&atilde;o Valor\");\n\t\tvariacaoVlrVO.setMeses(mesesVlrTratado);\n\t\tlistaTratada.add(variacaoVlrVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoParam - anoAtual\n\t\tString[] mesesAvisoMedioAnoParamTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoParam = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoParamVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoParam = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t2, RoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoParam = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoParamTratado[j] = uteis.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoParam));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoParamVO.setAno(uteis.cortaRetornaAno(ano));\n\t\tvariacaoAvisoMedioAnoParamVO.setProduto(\"Aviso M&eacute;dio\");\n\t\tvariacaoAvisoMedioAnoParamVO.setMeses(mesesAvisoMedioAnoParamTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoParamVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoAnterior\n\t\tString[] mesesAvisoMedioAnoAnteriorTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoAnterior = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoAnteriorVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoAnterior = new BigDecimal(Double\n\t\t\t\t\t.parseDouble(listaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoAnterior = Double.parseDouble((bigVlrAnoAnterior.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 2,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoAnterior = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoAnteriorTratado[j] = uteis\n\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoAnterior));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setAno(anoAnterior);\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setProduto(\"Aviso M&eacute;dio\");\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setMeses(mesesAvisoMedioAnoAnteriorTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoAnteriorVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao Media\n\t\tshort avisoMedioAnoParam = 6;\n\t\tshort avisoMedioAnoAnterior = 7;\n\n\t\tString[] meses_AM_Tratado = new String[13];// AM -aviso medio\n\t\tdouble total_AM = 0.0D;\n\t\tFaturamentoVO variacao_AM_VO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal big_AM_AnoParam = new BigDecimal(Double.parseDouble(\n\t\t\t\t\tlistaTratada.get(avisoMedioAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotal_AM = Double\n\t\t\t\t\t\t.parseDouble((big_AM_AnoParam\n\t\t\t\t\t\t\t\t.divide(new BigDecimal(listaTratada.get(avisoMedioAnoAnterior).getMeses()[j]\n\t\t\t\t\t\t\t\t\t\t.replace(\".\", \"\").replace(\",\", \".\")), 4, RoundingMode.HALF_DOWN)).toString())\n\t\t\t\t\t\t- 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotal_AM = 0D;\n\t\t\t}\n\n\t\t\tmeses_AM_Tratado[j] = percentForm.format(total_AM);\n\n\t\t}\n\t\tvariacao_AM_VO.setProduto(\"Varia&ccedil;&atilde;o M&eacute;dia\");\n\t\tvariacao_AM_VO.setMeses(meses_AM_Tratado);\n\t\tlistaTratada.add(variacao_AM_VO);\n\n\t\treturn listaTratada;\n\t}", "List<FichaDocente> listarDocentesxParametroxFacultad(String parametro, Integer integer);", "private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}", "public ListaEtiquetas() {\n this.listaEtiquetas = new ArrayList<>();\n }", "private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "ArrayList<Professor> professoresFormPend();", "public void mostrarlistafininicio(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=fin;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.anterior;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de fin a inicio\",JOptionPane.INFORMATION_MESSAGE);\n }}", "private void cargarNotasAclaratorias() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(\"tipo\", INotas.NOTAS_ACLARATORIAS);\r\n\t\ttabboxContendor\r\n\t\t\t\t.abrirPaginaTabDemanda(false, \"/pages/nota_aclaratoria.zul\",\r\n\t\t\t\t\t\t\"NOTAS ACLARATORIAS\", parametros);\r\n\t}", "public List getTrabajadores();", "public List<String> getListe()\n\t\t\t{\n\t\t\t\treturn personnes;\n\t\t\t}", "public Collection findAllVisiblesExceptDO(Boolean valid) throws InfrastructureException {\r\n\t\tCollection col;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"findAllVisiblesExceptDO ini\");\r\n\t\t\tString q = \"from PartidaOli as par where par.esVisualitza = true \";\r\n\t\t\tif (valid != null && valid.booleanValue()) q += \"and par.esActiu = true \";\r\n\t\t\tif (valid != null && !valid.booleanValue()) q += \"and par.esActiu = false \";\r\n\t\t\tq += \"and par.categoriaOli.id != \" + Constants.CATEGORIA_DO + \" \"; // Categoria de DO\r\n\t\t\tq += \"order by par.nom\";\r\n\t\t\tcol = getHibernateTemplate().find(q);\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"findAllVisiblesExceptDO failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"findAllVisiblesExceptDO fin\");\r\n\t\treturn col;\r\n\t}", "public ArrayList<String> getContrainteU(String util){\n SQLiteDatabase db = this.getReadableDatabase();\r\n String queryC = \"SELECT contrainteu FROM \" + TABLE_NAME3 + \"WHERE email = \" + util;\r\n Cursor dataCursora = db.rawQuery(queryC, null); //et l'ajoute à l'arraylist\r\n\r\n //on choppe les données grâce au curseur et on les met dans une liste\r\n ArrayList<String> listDataa = new ArrayList<>();\r\n while(dataCursora.moveToNext()){\r\n //choppe la valeur de la database en column\r\n listDataa.add(dataCursora.getString(dataCursora.getColumnIndex(COLUMN_CONTRAINTEU)));\r\n }\r\n dataCursora.close();\r\n return listDataa;\r\n }", "public ArrayList<PeriodoAcademicos> listarQuimestres() {\n try {\n Conexion conexion = new Conexion();\n ResultSet rs = conexion.Consulta(\"SELECT * FROM siacc_periodoacademico WHERE estado_paca LIKE 'A' AND codigopadre_paca IS NULL\");\n\n ArrayList listar = new ArrayList();\n while (rs.next()) {\n listar.add(Crear(rs));\n }\n return listar;\n } catch (Exception ex) {\n throw new RuntimeException(\"Error al Obtener Quimestres en ArrayList\");\n }\n }", "public Collection findTrasllatsNoCompletados() throws InfrastructureException {\r\n\t\tCollection col;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"findTrasllatsNoCompletados ini\");\r\n\t\t\tString q = \"from Trasllat tdi \" +\r\n\t\t\t\t\t\"where tdi.valid = true and tdi.id not in (select tra.id from Trasllat tra \" +\r\n\t\t\t\t\t\"where (tdi.acceptatTrasllat = true and tdi.retornatEstablimentOrigen = true and tdi.traslladant = true) \" +\r\n\t\t\t\t\t\"or (tdi.acceptatTrasllat = false and tdi.retornatEstablimentOrigen = false and tdi.traslladant = false))\";\t\r\n\t\t\t\r\n\t\t\tcol = getHibernateTemplate().find(q);\r\n\t\t\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"findTrasllatsNoCompletados failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"findTrasllatsNoCompletados fin\");\r\n\t\treturn col;\r\n\t}", "public static ArrayList<String> getReglesNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"regles\");\n }", "public String[] getListaDinastie() {\n\t\treturn WikiImperatoriRomaniPagina.getInstance().getElencoDinastie();\n\t}", "List<Especialidad> getEspecialidades();", "List<TipoHuella> listarTipoHuellas();", "List<Celda> obtenerCeldasValidas(Celda origen);", "public String listViaje() {\n\t\t\t//resetForm();\n\t\t\treturn \"/boleta/list.xhtml\";\t\n\t\t}", "public String generateStringCamposFiltro() {\r\n\t\treturn inicializarCamposComunes();\r\n\t}", "List<Videogioco> retriveByGenere(String genere);", "public Vector listerFichiers() throws ListerFichiersException\n\t{\n\t\treturn listerFichiers(\"\");\n\t}", "public ArrayList<String> listarEdiciones(String nomCurso) throws CursoExcepcion;", "public List<Agent> findAgentsActifs() {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') ORDER BY A.personne.name\");\n List<Agent> list = q.getResultList();\n return list;\n }", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "public List<Vendedor> listarVendedor();", "public ArrayList<Chambre> chambresVides() {\n\t\tArrayList<Chambre> chambreNonRes = new ArrayList<Chambre>();\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(!chambre.isReserve()) {\n\t\t\t\tchambreNonRes.add(chambre);\n\t\t\t}\n\t\t}\n\t\treturn chambreNonRes;\n\t}", "@XmlElement(name=\"utilisateur\")\n\tpublic ArrayList<String> getListe(){\n\t\treturn listePseudo;\n\t}", "private static ArrayList<String> construireMatriceCalcul() throws Exception_AbsenceExperienceBiomass, Exception_ParseException,IOException, Exception_SparqlConnexion {\n\n /*Pour chaque objetc : Object_TIEG de vDocExp construire le vecteur d'entrée au calul*/\n /*Le vecteur résultant sera placé sur : vVecteurCalculGlobal*/\n /*En cas de valeurs manquantes, le vecteur sera null, un message indiquant l'emplacement du manque ser transmis à la servlet*/\n \n Object_RapportCalculVecteur rapport;\n \n ArrayList<String> message= new ArrayList<>();\n \n if(vDocExp.size() > 0)\n {\n \n for(Object_TIEG obj : vDocExp)\n {\n try { \n\n if((rapport=InterrogationDataRDF.getVecteurCalcul(vPathRacine, obj, vTopicOperations, vRelationParametres)).getVecteurCalcul()!=null)\n {\n vVecteurCalculGlobal.add(rapport.getVecteurCalcul());\n }\n else\n {\n if(rapport.getMessage()!=null)\n {\n message.add(rapport.getMessage());\n }\n \n }\n \n } catch (Exception_ParseException ex) {\n \n throw ex;\n }\n }\n }\n else\n {\n throw new Exception_AbsenceExperienceBiomass();\n }\n \n return message;\n \n }", "public void imprimirLista() {\n NodoListaDoble<T> tmp = raiz;\n\n if (this.raiz == null) {\n System.out.println(\"Lista vacia\");\n } else {\n System.out.println(\"--------------------------\");\n while (tmp != null) {\n System.out.println(tmp.toString());\n tmp = tmp.getSiguiente();\n }\n System.out.println(\"--------------------------\");\n }\n }", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "public List<DadosDiariosVO> validaSelecionaAcumuladoDadosDiarios(String ano) {\n\n\t\tList<DadosDiariosVO> listaDadosDiarios = validaSelecionaDetalhesDadosDiarios(ano);\n\n\t\tList<DadosDiariosVO> listaFiltradaDadosDiarios = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoDiario = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoAcumulado = new ArrayList<DadosDiariosVO>();\n\n\t\t/* Ordena a lista em EMITIDOS;EMITIDOS CANCELADOS;EMITIDOS RESTITUIDOS */\n\n\t\tfor (int i = 0; i < listaDadosDiarios.size(); i++) {\n\t\t\tString dataParaComparacao = listaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\tfor (int j = 0; j < listaDadosDiarios.size(); j++) {\n\n\t\t\t\tif (dataParaComparacao.equals(listaDadosDiarios.get(j).getAnoMesDia())) {\n\t\t\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\t\t\tdados.setAnoMesDia(listaDadosDiarios.get(j).getAnoMesDia());\n\t\t\t\t\tdados.setProduto(listaDadosDiarios.get(j).getProduto());\n\t\t\t\t\tdados.setTipo(listaDadosDiarios.get(j).getTipo());\n\t\t\t\t\tdados.setValorDoDia(listaDadosDiarios.get(j).getValorDoDia());\n\n\t\t\t\t\tlistaFiltradaDadosDiarios.add(dados);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\touter: for (int i = listaFiltradaDadosDiarios.size() - 1; i >= 0; i--) {\n\t\t\tfor (int j = 0; j < listaFiltradaDadosDiarios.size(); j++) {\n\t\t\t\tif (listaFiltradaDadosDiarios.get(i).getAnoMesDia()\n\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getAnoMesDia())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getProduto()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getProduto())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getTipo()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getTipo())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getValorDoDia()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getValorDoDia())) {\n\t\t\t\t\tif (i != j) {\n\n\t\t\t\t\t\tlistaFiltradaDadosDiarios.remove(i);\n\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Ordena por data */\n\t\tCollections.sort(listaFiltradaDadosDiarios, DadosDiariosVO.anoMesDiaCoparator);\n\n\t\tString dataTemp = \"\";\n\t\tBigDecimal somaAcumulada = new BigDecimal(\"0.0\");\n\n\t\t/* abaixo a visao da faturamento de cada dia */\n\t\tDadosDiariosVO faturamentoDiario = new DadosDiariosVO();\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i <= listaFiltradaDadosDiarios.size(); i++) {\n\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\n\t\t\t\tif ((i != listaFiltradaDadosDiarios.size())\n\t\t\t\t\t\t&& dataTemp.equals(listaFiltradaDadosDiarios.get(i).getAnoMesDia())) {\n\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia()).add(somaAcumulada);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (listaFiltradaDadosDiarios.size() == i) {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t}\n\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia());\n\n\t\t\t\t\tfaturamentoDiario = new DadosDiariosVO();\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IndexOutOfBoundsException ioobe) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"VisãoExecutiva_Diaria_BO - método validaSelecionaAcumuladoDadosDiarios - adicionando dados fictícios...\");\n\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\tdados.setAnoMesDia(\"2015-10-02\");\n\t\t\tdados.setProduto(\"TESTE\");\n\t\t\tdados.setTipo(\"FATURAMENTO\");\n\t\t\tdados.setValorDoDia(\"0.0\");\n\t\t\tlistaFaturamentoDiario.add(dados);\n\t\t\tSystem.err.println(\"... dados inseridos\");\n\t\t}\n\n\t\t/* abaixo construimos a visao acumulada */\n\t\tBigDecimal somaAnterior = new BigDecimal(\"0.0\");\n\t\tint quantidadeDias = 0;\n\t\tfor (int i = 0; i < listaFaturamentoDiario.size(); i++) {\n\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(listaFaturamentoDiario.get(i).getValorDoDia());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(\n\t\t\t\t\t\tsomaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia())).toString());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\tUteis uteis = new Uteis();\n\t\tString dataAtualSistema = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date(System.currentTimeMillis()));\n\t\tString dataCut[] = dataAtualSistema.split(\"/\");\n\t\tString mes_SO;\n\t\tmes_SO = dataCut[1];\n\n\t\t/* BP */\n\t\tList<FaturamentoVO> listaBP = dadosFaturamentoDetalhado;\n\t\tint mes_SO_int = Integer.parseInt(mes_SO);\n\t\tString bpMes = listaBP.get(0).getMeses()[mes_SO_int - 1];\n\t\tint diasUteis = uteis.retornaDiasUteisMes(mes_SO_int - 1);\n\t\tBigDecimal bpPorDia = new BigDecimal(bpMes).divide(new BigDecimal(diasUteis), 6, RoundingMode.HALF_DOWN);\n\n\t\tBigDecimal somaAnteriorBp = new BigDecimal(\"0.0\");\n\t\tfor (int i = 0; i < quantidadeDias; i++) {\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(bpPorDia.toString());\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(somaAnteriorBp.toString());\n\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\treturn listaFaturamentoAcumulado;\n\t}", "public List<Elemento> getListaElementosEnLaBolsa() {\n return new ArrayList<Elemento>(porNombre.values());\n }", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public void listarExamesDaDisciplina(){\r\n System.out.println(\"Docentes da disciplina\");\r\n for(int i=0;i<exames.size();i++){\r\n System.out.println(exames.get(i).getDisciplina().getNome());\r\n }\r\n }", "public String imprimirListaFormateada() {\n\t\t// Cuando quieran unir un monton de cadenas\n\t\tStringBuilder provLis = new StringBuilder();\n\t\tfor (Proveedor provTmp : BdMemoria.proveedores) {\n\t\t\tif (provTmp != null) {\n\t\t\t\tprovLis.append(provTmp.getIdProveedor()).append(\"-\").append(provTmp.getNombreProv())\n\t\t\t\t\t\t.append(\" !! \");\n\t\t\t}\n\n\t\t}\n\t\treturn provLis.toString();\n\t}", "public List<Tripulante> obtenerTripulantes();", "public void afficherBulletins() {\n\t\tSystem.out.println(\"===== Historique des bulletins meteo =====\\n\");\n\t\tfor (BulletinMeteo bulletin : this.bulletinsMeteo) { // this.bulletinsMeteo est la collection d'objets\n\t\t\tSystem.out.println(bulletin.toString()); // element joue\n\t\t}\n\t}", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "public List<MovimentoPorCanalDeVendaVO> validaSelecionaEmissaoPorCanal(String movimento) {\n\n\t\tList<MovimentoPorCanalDeVendaVO> list = new ArrayList<MovimentoPorCanalDeVendaVO>(listaEmissaoPorCanal);\n\n\t\tList<MovimentoPorCanalDeVendaVO> listTotal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tString[] mesesTotaisValor = { \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\",\n\t\t\t\t\"0.0\" };\n\n\t\tString[] mesesTotaisQuantidade = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\tString anoTotal = null;\n\t\tString produtoTotal = null;\n\n\t\tint qtdQuantidade = 0;\n\t\tint qtdValor = 0;\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (!(list.get(i).getMovimento().trim().equalsIgnoreCase(movimento.trim()))) {\n\t\t\t\tlist.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (MovimentoPorCanalDeVendaVO objLista : list) {\n\t\t\tif (objLista.getTipo().equalsIgnoreCase(\"Valor\")) {\n\t\t\t\tqtdValor++;\n\t\t\t} else if (objLista.getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\t\t\t\tqtdQuantidade++;\n\t\t\t}\n\t\t}\n\t\tint indiceElementoNaoEncontrado = 0;\n\t\tif (qtdValor != qtdQuantidade) {\n\n\t\t\tif (qtdValor > qtdQuantidade) {// Valor eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"\n\t\t\t\t\t\t\t\t// + list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Quantidade\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\t\t\t} else {// Qtd eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"+\n\t\t\t\t\t\t\t\t// list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Valor\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * ===Primeiro crio os objetos com os totais=========\n\t\t */\n\t\tfor (MovimentoPorCanalDeVendaVO emi : list) {\n\n\t\t\tif (emi.getTipo().equals(\"Valor\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisValor[i] = new BigDecimal(mesesTotaisValor[i]).add(new BigDecimal(emi.getMeses()[i]))\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t}\n\n\t\t\t} else if (emi.getTipo().equals(\"Quantidade\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisQuantidade[i] = Integer.toString(\n\t\t\t\t\t\t\t(Integer.parseInt(mesesTotaisQuantidade[i]) + Integer.parseInt(emi.getMeses()[i])));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tanoTotal = emi.getAno();\n\t\t\tprodutoTotal = emi.getProduto();\n\n\t\t}\n\n\t\tMovimentoPorCanalDeVendaVO totalValor = new MovimentoPorCanalDeVendaVO();\n\t\tMovimentoPorCanalDeVendaVO totalQuantidade = new MovimentoPorCanalDeVendaVO();\n\n\t\ttotalValor.setCanalDeVenda(\"Total\");\n\t\ttotalValor.setProduto(produtoTotal);\n\t\ttotalValor.setTipo(\"Valor\");\n\t\ttotalValor.setAno(anoTotal);\n\t\ttotalValor.setMeses(mesesTotaisValor);\n\t\tlistTotal.add(totalValor);\n\n\t\ttotalQuantidade.setCanalDeVenda(\"Total\");\n\t\ttotalQuantidade.setProduto(produtoTotal);\n\t\ttotalQuantidade.setTipo(\"Quantidade\");\n\t\ttotalQuantidade.setAno(anoTotal);\n\t\ttotalQuantidade.setMeses(mesesTotaisQuantidade);\n\t\tlistTotal.add(totalQuantidade);\n\n\t\t/*\n\t\t * ===Agora calculo os percentuais=========\n\t\t */\n\n\t\tfinal int VALOR = 0;\n\t\tfinal int QUANTIDADE = 1;\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\t\tUteis uteis = new Uteis();\n\t\tList<MovimentoPorCanalDeVendaVO> listFinal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tfor (int i = 0; i < list.size() / 2; i++) {\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValor = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===VALOR==== */\n\t\t\temissaoValor.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValor.setTipo(list.get(i).getTipo());\n\t\t\temissaoValor.setMeses(list.get(i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValorPercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=VALOR==== */\n\t\t\temissaoValorPercent.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValorPercent.setTipo(\"% \" + list.get(i).getTipo());\n\n\t\t\tString[] mesesPercentValor = new String[12];\n\t\t\tfor (int k = 0; k < list.get(i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdouble total = Double.parseDouble(new BigDecimal(list.get(i).getMeses()[k])\n\t\t\t\t\t\t\t.divide(new BigDecimal(listTotal.get(VALOR).getMeses()[k]), 5, RoundingMode.HALF_DOWN)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmesesPercentValor[k] = percentForm.format(total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentValor[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoValorPercent.setMeses(mesesPercentValor);\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidade = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===QUANTIDADE==== */\n\t\t\tint j = list.size() / 2;\n\t\t\temissaoQuantidade.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidade.setTipo(list.get(j + i).getTipo());\n\t\t\temissaoQuantidade.setMeses(list.get(j + i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidadePercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=QUANTIDADE==== */\n\t\t\temissaoQuantidadePercent.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidadePercent.setTipo(\"% \" + list.get(j + i).getTipo());\n\n\t\t\tString[] mesesPercentQuantidade = new String[12];\n\t\t\tfor (int k = 0; k < list.get(j + i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdouble total = Double.parseDouble(list.get(j + i).getMeses()[k])\n\t\t\t\t\t\t\t/ Double.parseDouble(listTotal.get(QUANTIDADE).getMeses()[k]);\n\t\t\t\t\tmesesPercentQuantidade[k] = percentForm\n\t\t\t\t\t\t\t.format(Double.toString(total).equalsIgnoreCase(\"NaN\") ? 0.0 : total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentQuantidade[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoQuantidadePercent.setMeses(mesesPercentQuantidade);\n\n\t\t\tString[] valorFormatado = new String[12];\n\t\t\tfor (int k = 0; k < emissaoValor.getMeses().length; k++) {\n\t\t\t\tvalorFormatado[k] = uteis\n\t\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(Double.parseDouble(emissaoValor.getMeses()[k])));\n\n\t\t\t}\n\t\t\temissaoValor.setMeses(valorFormatado);\n\n\t\t\tString[] valorFormatado2 = new String[12];\n\t\t\tfor (int k = 0; k < emissaoQuantidade.getMeses().length; k++) {\n\t\t\t\tvalorFormatado2[k] = uteis.insereSeparadores(emissaoQuantidade.getMeses()[k]);\n\t\t\t}\n\t\t\temissaoQuantidade.setMeses(valorFormatado2);\n\n\t\t\tlistFinal.add(emissaoValor);\n\t\t\tlistFinal.add(emissaoValorPercent);\n\t\t\tlistFinal.add(emissaoQuantidade);\n\t\t\tlistFinal.add(emissaoQuantidadePercent);\n\n\t\t}\n\n\t\treturn listFinal;\n\n\t}", "public static ArrayList<Vkladi> falseScetVkladi() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\t\tint i = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\t\t\tif (vkla.getStat() == false) {\r\n\t\t\t\tfoundVkladi.add(vkla);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn foundVkladi;\r\n\t}", "@Override\n\tpublic ArrayList<Lista> listaListeElettoraliDiElezione(String nomeElezione) {\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\n\t\t\tfor (int key : keys) {\n\t\t\t\tif (map.get(key).getElezione().equals(nomeElezione))\n\t\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\t\treturn liste;\n\t\t}", "public String[] disponibilidad(){\n\t\tString[] devolucion = null;\n\t\tdevolucion = new String[almacen.length];\n\t\t\n\t\tfor (int i = 0; i < devolucion.length; i++) {\n\t\t\tif(almacen[i]!=null){\n\t\t\t\tdevolucion[i]=almacen[i].getEtiqueta();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn devolucion;\n\t}", "public static ArrayList<Krediti> falseScetKrediti() {\r\n\t\tArrayList<Krediti> foundKrediti = new ArrayList<Krediti>();\r\n\t\tint i = 0;\r\n\t\tfor (Krediti kredit : kred) {\r\n\t\t\tif (kredit.getStat() == false) {\r\n\t\t\t\tfoundKrediti.add(kredit);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn foundKrediti;\r\n\t}", "@Override\n\tpublic ArrayList<Elezione> listaElezioni() {\n\t\tArrayList<Elezione> listaElezioni = caricaElezioni();\n\t\treturn listaElezioni;\n\t}", "public void listar() {\n\t\t\n\t}", "public List findByEtiquetage(Long etiId, Boolean valid) throws InfrastructureException {\r\n\t\tList etiquetatges;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"findByEtiquetaje ini\");\r\n\t\t\tString q = \"select distinct lot.partidaOli from Lot lot \" +\r\n\t\t\t\"where lot.etiquetatge.id = \" +etiId;\r\n\t\t\tif (valid != null && valid.booleanValue()) q += \" and lot.valid = true \";\r\n\t\t\tif (valid != null && !valid.booleanValue()) q += \" and lot.valid = false \";\r\n\t\t\tq += \"order by lot.partidaOli.nom\";\r\n\t\t\tetiquetatges = getHibernateTemplate().find(q);\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"findByEtiquetaje failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"findByEtiquetaje fin\");\r\n\t\treturn etiquetatges;\r\n\t}", "public listaAlumnos()\r\n\t{\r\n\t\tinicio = fin = null; \r\n\t}", "public List<Joueur> List_Joueur_HommesForComboBox() \r\n {\r\n List<Joueur> j = new ArrayList<>();\r\n String req= \"SELECT * FROM personne WHERE datedestruction is NULL and role = 'Joueur' and sexe='Homme' \";\r\n try {\r\n ResultSet res = ste.executeQuery(req);\r\n while (res.next()) {\r\n \r\n Joueur Jou = new Joueur(\r\n res.getInt(\"idpersonne\"),\r\n \r\n res.getString(\"nom\"),\r\n res.getString(\"prenom\")\r\n );\r\n j.add(Jou);\r\n \r\n System.out.println(\"------- joueurs selectionné avec succés----\");\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n System.out.println(\"----------Erreur lors methode : List_Joueur_Hommes()------\");\r\n }\r\n return j;\r\n \r\n}", "public ListSemental() {\n }", "private String [] lista(){\n String [] lista=new String[jTFs.length];\n for(int i=0;i<jTFs.length;i++)lista[i]=jTFs[i].getText();\n return lista;\n }" ]
[ "0.64123774", "0.61387104", "0.6124171", "0.6010231", "0.59930575", "0.59310776", "0.5853572", "0.5796724", "0.576971", "0.57606906", "0.57529527", "0.5743079", "0.57257724", "0.57159126", "0.5704475", "0.56936383", "0.5690373", "0.56863344", "0.56610346", "0.56541705", "0.5640821", "0.5635834", "0.560971", "0.5605419", "0.55992556", "0.55949026", "0.5592249", "0.55536765", "0.5547008", "0.55396533", "0.54997325", "0.54930425", "0.5485469", "0.5484395", "0.5483655", "0.548277", "0.5477022", "0.5473566", "0.5471423", "0.5462186", "0.54504776", "0.5442541", "0.5441756", "0.5440979", "0.54391706", "0.54267913", "0.54246545", "0.5411075", "0.54108214", "0.5405106", "0.5402547", "0.53901106", "0.5387717", "0.53871495", "0.5385094", "0.5384284", "0.53802836", "0.53791237", "0.53775305", "0.537749", "0.5372893", "0.5368452", "0.53628355", "0.53607154", "0.53591883", "0.5356253", "0.5346659", "0.53456366", "0.53453314", "0.53407073", "0.53368014", "0.53367704", "0.53328", "0.53322834", "0.53317344", "0.53311306", "0.53303224", "0.53303087", "0.5327869", "0.5320151", "0.5318336", "0.5315276", "0.5312902", "0.53078663", "0.53074914", "0.5306635", "0.5306613", "0.52968174", "0.52960914", "0.5292898", "0.52909505", "0.5283459", "0.5280804", "0.52780753", "0.52779734", "0.5274286", "0.5272052", "0.52717274", "0.52697194", "0.52674884", "0.5266406" ]
0.0
-1
Liste des taches non acomplies
public NSMutableArray<I_WorkFlowItem> getTachesObligatoiresAbsentes() { NSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = new NSMutableArray<I_WorkFlowItem>(); for (int i = 0; i < tachesObligatoires().count(); i++) { I_WorkFlowItem tache = tachesObligatoires().objectAtIndex(i); if (!tachesFaites.containsObject(tache)) { tachesObligatoiresAbsentes.addObject(tache); } } return tachesObligatoiresAbsentes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void afficherListe(){\n StringBuilder liste = new StringBuilder(\"\\n\");\n logger.info(\"OUTPUT\",\"\\nLes produits en vente sont:\");\n for (Aliment aliment : this.productList) { liste.append(\"\\t\").append(aliment).append(\"\\n\"); }\n logger.info(\"OUTPUT\", liste+\"\\n\");\n }", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}", "public void confirmerAppel(List<Eleve> listeElevesAbsents, Seance s, Groupe g);", "@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}", "List<E> resoudre (\n ProblemeAbstrait <E, A> probleme, \n HeuristiqueAbstrait<E> heuristique\n );", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "protected List<String> listaVociCorrelate() {\n return null;\n }", "public void imprimirLista() {\n NodoListaDoble<T> tmp = raiz;\n\n if (this.raiz == null) {\n System.out.println(\"Lista vacia\");\n } else {\n System.out.println(\"--------------------------\");\n while (tmp != null) {\n System.out.println(tmp.toString());\n tmp = tmp.getSiguiente();\n }\n System.out.println(\"--------------------------\");\n }\n }", "@Override\n\tpublic void sortir() {\n\t\tif (!estVide()) {\n\t\t\tTC next = getProchain();\t\t\t\t//On recupere le prochain\n\t\t\tsalle.get(next.getPrio()).remove(next);\t//Antinomie de entrer\n\t\t}\n\t}", "public void consulterSoldes() {\n\t\tint i=0;\n\t\tfor (Compte compte : listeComptes) {\n\t\t\ti++;\n\t \tSystem.out.println(i+\". Compte n°\"+compte.getNumero()+\" : solde=\"+compte.getSolde());\n\t\t}\n\t}", "public ArrayList<String> mostraRegles(){\n ArrayList<String> tauleta = new ArrayList<>();\n String aux = reg.getAssignacions().get(0).getAntecedents().getRangs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "@Override\r\n\tpublic List<CommandeDistri> offre(List<CommandeDistri> list) {\n\t\treturn null;\r\n\t}", "private void armarListaCheck() {\n listaCheck = new ArrayList();\n listaCheck.add(chkBici);\n listaCheck.add(chkMoto);\n listaCheck.add(chkAuto);\n }", "public ArrayList<String> mostraLlistaDiscret(){\n ArrayList<String> tauleta = new ArrayList<>();\n int p = 0;\n System.out.print(\"num atribs disc de 0: \"+list.getAtribs().get(0).getAtribsDisc().size());\n ArrayList<Atribut> disc = new ArrayList<Atribut>();\n\n for (int i=0; i<list.getAtribs().size(); i++){\n if (list.getAtribs().get(i).getDiscret()) disc.add(list.getAtribs().get(i));\n }\n\n\n String aux = \"\";\n for (int i=0; i<disc.size(); i++){\n for (int k=0; k<disc.get(i).getAtribsDisc().size(); k++) {\n aux += disc.get(i).getAtribsDisc().get(k).getNom() + \"\\t\";\n }\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = \"\";\n for (int i = 0; i < disc.size(); i++) {\n int f = 0;\n if (!disc.get(i).getShowDefault()) f++;\n for (int k=f; k<disc.get(i).getAtribsDisc().size(); k++) {\n aux += String.valueOf(disc.get(i).getAtribsDisc().get(k).getCasos().get(j)) + \"\\t\";\n }\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "public DobbeltLenketListe() {\n this.hode= null;\n this.hale= null;\n antall=0; }", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}", "private static List<Etudiant> suppressionDoublons(List<Etudiant> etudiants) {\n\t\tList<Etudiant> listEtu = new ArrayList<Etudiant>();\n\t\tfor (int i=0; i<etudiants.size(); i++) {\n\t\t\tEtudiant etudiant = etudiants.get(i);\n\t\t\tif(etudiant.getNom()!=null) {\n\t\t\t\tif (!listEtu.contains(etudiant))\n\t\t\t\t\tlistEtu.add(etudiant);\n\t\t\t}\n\t\t}\n\t\treturn listEtu;\n\t}", "public static void main(String[] args) {\n System.out.println(\"hola la concha de tu madre\");\n Persona persona1 = new Persona(\"allan\",28,19040012);\n Persona persona2 = new Persona(\"federico\", 14,40794525);\n Persona persona3 = new Persona(\"pablito\", 66,56654456);\n\n List<Persona> personas= new ArrayList<Persona>();\n personas.add(persona1);\n personas.add(persona2);\n personas.add(persona3);\n\n System.out.println(\"--------Para imprimir la list completa--------\");\n System.out.println(String.format(\"Personas: %s\",personas));\n\n System.out.println(\"----------MAYORES A 21-------------\");\n // mayores a 21\n System.out.println(String.format(\"Mayores a 21: %s\",personas.stream()\n .filter(persona->persona.getEdad() > 21)\n .collect(Collectors.toList())));\n\n System.out.println(\"-----------MENORES A 18-------------------\");\n // menores 18\n System.out.println(String.format(\"menores 18: %s\",personas.stream()\n .filter(persona->persona.getEdad() < 18)\n .collect(Collectors.toList())));\n\n System.out.println(\"---------MAYORES A 21 + DNI >20000000 -------------------\");\n System.out.println(String.format(\"MAYORES A 21 + DNI >20000000: %s\",personas.stream()\n .filter(persona->persona.getEdad() > 21 && persona.getDni()>20000000)\n //.filter( persona->persona.getDni() >20000000) // tambien funciona con este\n .collect(Collectors.toList())));\n\n }", "@Override\r\n\tpublic List<CommandeDistri> livraisonEffective(List<CommandeDistri> list) {\n\t\treturn null;\r\n\t}", "public void listar() {\n\t\t\n\t}", "@Override\n\tpublic List<AposentadoriaCompulsoria> listaDeObjetos() {\n\t\treturn null;\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public void chargeListe(){\n jCbListeEtablissement.removeAllItems();\n String sReq = \"From Etablissement\";\n Query q = jfPrincipal.getSession().createQuery(sReq);\n Iterator eta = q.iterate();\n while(eta.hasNext())\n {\n Etablissement unEtablissement = (Etablissement) eta.next();\n jCbListeEtablissement.addItem(unEtablissement.getEtaNom());\n }\n bChargeListe = true;\n }", "public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }", "private static ArrayList<ItemComprado> listarOsItensComprados(int idCompra) throws Exception {\r\n ArrayList<ItemComprado> lista = arqItemComprado.toList();\r\n lista.removeIf(ic -> ic.idCompra != idCompra);\r\n return lista;\r\n }", "@Override\n public void HienThiDanhSach(List<DienTu> listdienTu) {\n\n }", "public void imprimir(){\n for(int i = 0;i < this.listaEtiquetas.size();i++){\n System.out.println(\"- \"+(i+1)+this.listaEtiquetas.get(i).getEtiqueta()+\" descripcion\"+this.listaEtiquetas.get(i).getDescripcion());\n }\n }", "public static void main(String[] args) {\t\n\t\t//List olusturma nasil yapilir?\n\t\t//1. yol\n\t\tArrayList<String> sl1= new ArrayList<>();\n\t\t\n\t\t//2. yol\n\t\tArrayList<String> sl2= new ArrayList<>();\n\t\tSystem.out.println(sl1+\"\"+sl2);\n\t\t//3. yol (bunu kullanacagiz)\n\t\tList<String> sl3=new ArrayList<>();\n\t\tSystem.out.println(sl3);\n\t\t\n\t\t//Liste eleman ekleme\n\t\t\n\t\tsl3.add(\"A\");\n\t\tSystem.out.println(sl3);\n\t\t\n\t\tsl3.add(\"B\");\n\t\tSystem.out.println(sl3);\n\t\t\n\t\tsl3.add(\"C\");\n\t\tSystem.out.println(sl3);\n\t\t\n\t\t//herhangi bir indexe eleman ekleme\n\t\t\n\t\tsl3.add(0, \"Mustafa\");\n\t\t System.out.println(sl3);//[Mustafa, A, X, B, C]\n\t\t \n\t\t //List'lerde eleman sayisini bulma nasil yapilir?\n\t\t System.out.println(sl3.size());//5\n\t\t \n\t\t //Bir list'in bos olup olmadigin nasil anlariz?\n\t\t System.out.println(sl3.isEmpty());//isEmpty() ==> bos ise true, dolu ise false verir\n\t\t \n\t\t //Bir list'den istenen elemani silme nasil yapilir?\n\t\t \n\t\t //1. Yol: index ile silme yapabilirsiniz.\n\t\t System.out.println(sl3.remove(0));\n\t\t System.out.println(sl3);//[A, X, B, C]\n\t\t \n\t\t //2. Yol: Eleman secip sil\n\t\t sl3.remove(\"X\");\n\t\t System.out.println(sl3);//[A, B, C]\n\t\t \n\t\t sl3.add(\"B\");//[A, B, C, B]\n\t\t System.out.println(sl3.remove(\"B\"));//true\n\t\t //Ayni elemandan 1 den fazla varsa ilkini siler\n\t\t System.out.println(sl3);//[A, C, B]\n\t\t \n\t\t \n\t\t System.out.println(sl3.remove(\"W\"));//false\n\t\t //Java'dan olmayan bir elemani remove etmesini isterseniz\n\t\t //remove edemez ve list'i aynen oldugu gibi birakir.\n\t\t System.out.println(sl3);//[A, C, B]\n\t\t \n\t\t //remove(index) ne return eder?\n\t\t // sl3 ==> [A, C, B]\n\t\t System.out.println(sl3.remove(1));//C\n\t\t System.out.println(sl3);//[A, B]\n\t\t \n\t\t//remove(eleman) ne return eder?\n\t\t// sl3 ==> [A, B] \n\t\t System.out.println(sl3.remove(\"A\"));//true\n\t\t //remove() methodunun icine tamsayi koyarsaniz \n\t\t //Java onu index kabul eder. \n\t\t //Bu yuzden elemanlari integer olan bir listteki elemanlari silmek icin \n\t\t //remove() methodunun sadece indexlisini kullanabilirsiniz.\n\n \n}", "@Override\n\tpublic ArrayList<String> partecipantiListaElettorale(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\n\t\tSet<Integer> keys = map.keySet();\n\t\tfor (int key : keys) {\n\t\t\tif (map.get(key).getNomeLista().equals(nome)) {\n\t\t\t\treturn map.get(key).getComponenti();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public List<DocumentoVinculadoDTO> getListaNoEspecifico() {\n System.out.println(\"entrei getListaNoEspecifico \");\n listar1Produto();\n return listaNoEspecifico;\n }", "public ArrayList<Chambre> chambresNonVides() {\n\t\tArrayList<Chambre> chambreRes = new ArrayList<Chambre>();\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(chambre.isReserve()) {\n\t\t\t\tchambreRes.add(chambre);\n\t\t\t}\n\t\t}\n\t\treturn chambreRes;\n\t}", "public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "public ArrayList<Producto> getProductosOrdenados(ArrayList<Producto> productosEncontrados,Cliente comprador) {\n \n //Comparador para ordenar los productos por su urgencia y proximidad\n\n ArrayList <Producto> productosOrdenados=new ArrayList<>();\n ArrayList <Producto> muyCerca = new ArrayList<>();\n ArrayList <Producto> cerca = new ArrayList<>();\n ArrayList <Producto> lejos = new ArrayList<>();\n String codigoPostalComprador = comprador.getUbicacion().getCodigoPostal();\n String codigoPostalProducto;\n Comparator porUrgencia = new Comparator() { \n public int compare(Object o1, Object o2) {\n\n\n Producto p1 = (Producto)o1;\n Producto p2 = (Producto)o2;\n\n String bool1;\n String bool2;\n if(p1.getUrgente()){\n bool1=\"0\";\n }else{\n bool1=\"1\";\n }\n if(p2.getUrgente()){\n bool2=\"0\";\n }else{\n bool2=\"1\";\n }\n\n String b1 = bool1;\n String b2 = bool2; \n return b1.compareTo(b2);\n }\n };\n\n for(Producto cadaProducto : productosEncontrados){\n codigoPostalProducto=cadaProducto.getUbicacionCliente().getCodigoPostal();\n if(codigoPostalComprador.substring(0, 3).equalsIgnoreCase(codigoPostalProducto.substring(0, 3))){\n muyCerca.add(cadaProducto);\n }else{\n if(codigoPostalComprador.substring(0, 2).equalsIgnoreCase(codigoPostalProducto.substring(0, 2))){\n cerca.add(cadaProducto);\n }else{\n lejos.add(cadaProducto);\n }\n }\n\n }\n if(muyCerca.size()>0){ \n Collections.sort(muyCerca,porUrgencia);\n productosOrdenados.addAll(muyCerca);\n }\n if(cerca.size()>0){\n Collections.sort(cerca,porUrgencia);\n productosOrdenados.addAll(cerca);\n } \n if(lejos.size()>0){\n Collections.sort(lejos,porUrgencia);\n productosOrdenados.addAll(lejos);\n }\n return productosOrdenados;\n \n \n }", "public static void main(String[] args) throws Exception {\n\t\tLista<Contato> vetor = new Lista<Contato>(20);\n\t\tLinkedList<Contato> listaEncadeada = new LinkedList<Contato>();\n\n\t\tContato c1 = new Contato(\"c1\", \"111-1111\", \"[email protected]\");\n\t\tContato c2 = new Contato(\"c2\", \"222-2222\", \"[email protected]\");\n\t\tContato c3 = new Contato(\"c3\", \"333-3333\", \"[email protected]\");\n\t\tContato c4 = new Contato(\"c4\", \"444-2344\", \"[email protected]\");\n\t\tContato c5 = new Contato(\"c5\", \"555-5585\", \"[email protected]\");\n\t\tContato c6 = new Contato(\"c6\", \"111-1911\", \"[email protected]\");\n\t\tContato c7 = new Contato(\"c7\", \"222-2322\", \"[email protected]\");\n\t\tContato c8 = new Contato(\"c8\", \"333-3333\", \"[email protected]\");\n\t\tContato c9 = new Contato(\"c9\", \"454-4644\", \"[email protected]\");\n\t\tContato c10 = new Contato(\"c10\", \"515-5235\", \"[email protected]\");\n\t\tContato c11 = new Contato(\"c11\", \"131-1411\", \"[email protected]\");\n\t\tContato c12 = new Contato(\"c12\", \"252-2672\", \"[email protected]\");\n\t\tContato c13 = new Contato(\"c13\", \"313-3433\", \"[email protected]\");\n\t\tContato c14 = new Contato(\"c14\", \"433-4334\", \"[email protected]\");\n\t\tContato c15 = new Contato(\"c15\", \"535-5355\", \"[email protected]\");\n\t\tContato c16 = new Contato(\"c16\", \"161-1516\", \"[email protected]\");\n\t\tContato c17 = new Contato(\"c17\", \"272-2272\", \"[email protected]\");\n\t\tContato c18 = new Contato(\"c18\", \"383-3993\", \"[email protected]\");\n\t\tContato c19 = new Contato(\"c19\", \"141-4949\", \"[email protected]\");\n\t\tContato c20 = new Contato(\"c20\", \"565-5565\", \"[email protected]\");\n\t\tContato c21 = new Contato(\"c21\", \"616-1611\", \"[email protected]\");\n\t\tContato c22 = new Contato(\"c22\", \"212-2121\", \"[email protected]\");\n\t\tContato c23 = new Contato(\"c23\", \"131-1331\", \"[email protected]\");\n\t\tContato c24 = new Contato(\"c24\", \"424-4444\", \"[email protected]\");\n\t\tContato c25 = new Contato(\"c25\", \"565-5555\", \"[email protected]\");\n\t\tContato c26 = new Contato(\"c26\", \"111-1611\", \"[email protected]\");\n\t\tContato c27 = new Contato(\"c27\", \"282-1252\", \"[email protected]\");\n\t\tContato c28 = new Contato(\"c28\", \"323-3433\", \"[email protected]\");\n\t\tContato c29 = new Contato(\"c29\", \"544-4464\", \"[email protected]\");\n\t\tContato c30 = new Contato(\"c30\", \"155-5455\", \"[email protected]\");\n\n\t\ttry {\n\t\t\t// ex5\n\t\t\tvetor.adiciona(c1);\n\t\t\tvetor.adiciona(c2);\n\t\t\tvetor.adiciona(c3);\n\t\t\tvetor.adiciona(c4);\n\t\t\tvetor.adiciona(c5);\n\t\t\tvetor.adiciona(c6);\n\t\t\tvetor.adiciona(c7);\n\t\t\tvetor.adiciona(c8);\n\t\t\tvetor.adiciona(c9);\n\t\t\tvetor.adiciona(c10);\n\t\t\tvetor.adiciona(c11);\n\t\t\tvetor.adiciona(c12);\n\t\t\tvetor.adiciona(c13);\n\t\t\tvetor.adiciona(c14);\n\t\t\tvetor.adiciona(c15);\n\t\t\tvetor.adiciona(c16);\n\t\t\tvetor.adiciona(c17);\n\t\t\tvetor.adiciona(c18);\n\t\t\tvetor.adiciona(c19);\n\t\t\tvetor.adiciona(c20);\n\t\t\tvetor.adiciona(c21);\n\t\t\tvetor.adiciona(c22);\n\t\t\tvetor.adiciona(c23);\n\t\t\tvetor.adiciona(c24);\n\t\t\tvetor.adiciona(c25);\n\t\t\tvetor.adiciona(c26);\n\t\t\tvetor.adiciona(c27);\n\t\t\tvetor.adiciona(c28);\n\t\t\tvetor.adiciona(c29);\n\t\t\tvetor.adiciona(c30);\n\t\t\t// ex3\n\t\t\tvetor.removerT(\"111-1111\");\n\t\t\t//ex4-vetor.RemoverTudo();\n\t\t\t\n\t\t\tSystem.out.println(vetor);\n\t\t\t// ex1\n\t\t\tSystem.out.println(\"Confirmar se o elemento na lista existe:\" + vetor.contem(c2));\n\t\t\t// ex2\n\t\t\tSystem.out.println(\"Retornar a posicao do elemento, se retornar -1 que dizer que o elemento não existe:\"\n\t\t\t\t\t+ vetor.indicio(c2));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// ex6\n\t\tlistaEncadeada.add(c1);\n\t\tlistaEncadeada.add(c2);\n\t\tlistaEncadeada.add(c3);\n\t\tlistaEncadeada.add(c4);\n\t\tlistaEncadeada.add(c5);\n\t\tlistaEncadeada.add(c6);\n\t\tlistaEncadeada.add(c7);\n\t\tlistaEncadeada.add(c8);\n\t\tlistaEncadeada.add(c9);\n\t\tlistaEncadeada.add(c10);\n\t\tlistaEncadeada.add(c11);\n\t\tlistaEncadeada.add(c12);\n\t\tlistaEncadeada.add(c13);\n\t\tlistaEncadeada.add(c14);\n\t\tlistaEncadeada.add(c15);\n\t\tlistaEncadeada.add(c16);\n\t\tlistaEncadeada.add(c17);\n\t\tlistaEncadeada.add(c18);\n\t\tlistaEncadeada.add(c19);\n\t\tlistaEncadeada.add(c20);\n\t\tlistaEncadeada.add(c21);\n\t\tlistaEncadeada.add(c22);\n\t\tlistaEncadeada.add(c23);\n\t\tlistaEncadeada.add(c24);\n\t\tlistaEncadeada.add(c25);\n\t\tlistaEncadeada.add(c26);\n\t\tlistaEncadeada.add(c27);\n\t\tlistaEncadeada.add(c28);\n\t\tlistaEncadeada.add(c29);\n\t\tlistaEncadeada.add(c30);\n\n\t\tSystem.out.println(listaEncadeada);\n\n\t}", "public void suppressionRdV_all() {\n //on vide l'agenda de ses elements\n for (RdV elem_agenda : this.agd) {\n this.getAgenda().remove(elem_agenda);\n }\n //on reinitialise a null l'objet agenda\n //this.agd = null;\n }", "public ArrayList<String> mostraLlistaAtribs(){\n ArrayList<String> tauleta = new ArrayList<>();\n System.out.print(\"num atribs: \"+list.getNomLlista()+\"\\n\");\n String aux = list.getAtribs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "public void afficherBulletins() {\n\t\tSystem.out.println(\"===== Historique des bulletins meteo =====\\n\");\n\t\tfor (BulletinMeteo bulletin : this.bulletinsMeteo) { // this.bulletinsMeteo est la collection d'objets\n\t\t\tSystem.out.println(bulletin.toString()); // element joue\n\t\t}\n\t}", "public static void main(String[] args) {\n List<Evento> listadoEventos = Evento.createShortList();\n List<Expositor> listadoExpositores = Expositor.createShortList();\n List<Asistente> Asistentes = Asistente.createShortList();\n //Asigno a los eventos sus expositores\n listadoEventos.get(0).setExpositor(listadoExpositores.get(0));\n listadoEventos.get(1).setExpositor(listadoExpositores.get(1));\n listadoEventos.get(2).setExpositor(listadoExpositores.get(2));\n listadoEventos.get(3).setExpositor(listadoExpositores.get(3));\n listadoEventos.get(4).setExpositor(listadoExpositores.get(4));\n listadoEventos.get(5).setExpositor(listadoExpositores.get(5));\n //Asigno los asistentes a los eventos\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(0));\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(1));\n\n listadoEventos.get(1).getListaAsistentes().add(Asistentes.get(2));\n\n listadoEventos.get(2).getListaAsistentes().add(Asistentes.get(3));\n\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(4));\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(5));\n\n listadoEventos.get(4).getListaAsistentes().add(Asistentes.get(6));\n\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(7));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(8));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(9));\n\n //2A: Listado de manera ordenado por titulo descendiente, expositor y asistentes.\n\n Comparator<Integer> comparador = Collections.reverseOrder();\n\n //Ordenar de forma descendente por titulo\n Collections.sort(listadoEventos, (o1, o2) -> o2.getTitulo().compareTo(o1.getTitulo()));\n\n System.out.println(\"======Prueba 01 - Listado de eventos======\");\n for(Evento e:listadoEventos){\n System.out.println(\"****************************************\");\n System.out.println(\"Evento: \"+e.getTitulo());\n System.out.println(\"Expositor: \"+e.getExpositor().getNombre());\n System.out.println(\"Asistentes:\");\n for(Asistente a : e.getListaAsistentes()){\n System.out.println(a.getCodigo()+\"\\t\"+a.getNombre()+\"\\t\"+a.getApellidos());\n }\n }\n\n }", "private static ArrayList<Compra> listComprasDoCliente(int idCliente) throws Exception {//Inicio mostraCompras\r\n ArrayList<Compra> lista = arqCompra.toList();\r\n lista.removeIf(c -> c.idCliente != idCliente);\r\n return lista;\r\n }", "@Override\r\n\tpublic List<CommandeDistri> Offre(List<CommandeDistri> o) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic List<EquipoCompetencia> listarActivos() {\n\t\treturn null;\r\n\t}", "@Override\r\n /**\r\n * *\r\n *Primero revisa si los apellidos con iguales, en el caso de que sean iguales\r\n *entra al if y compara por nombres, de lo contrario nunca entra al if y \r\n * compara normalmente por apellido\r\n * \r\n */ \r\n public void ordenarPersonas (){\r\n Comparator<Persona> comparacionPersona= (Persona persona1,Persona persona2)->{\r\n \r\n if(persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos())==0){\r\n return persona1.getNombres().compareToIgnoreCase(persona2.getNombres());}\r\n return persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos());\r\n }; \r\n\r\n listaPersona.sort(comparacionPersona);\r\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public void listeDesEmpruntsEnCours();", "@Override\r\n\tpublic List<ComunidadBean> getComunidadListWithOutNAC() {\n\t\tList<ComunidadBean> result=new ArrayList<ComunidadBean>();\r\n\t\t\r\n\t\tList<JugComunidad> list= comunidadRepository.getComunidadList();\r\n\t\tfor (JugComunidad entiry : list) \r\n\t\t\t if(!entiry.getCodigo().equalsIgnoreCase(\"NAC\"))\r\n \t\t result.add(new ComunidadBean(entiry.getId(), entiry.getCodigo(), entiry.getDescripcion()));\t\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public List<EntradaDeMaterial> buscarEntradasDisponibles(Almacen a);", "void unableToListContents();", "public void ParcoursInfixe(ArrayList<Item> items) {\r\n// Item[] listeItem= new Item[this.taille()];\r\n if (getGauche() != null) {\r\n getGauche().ParcoursInfixe(items);\r\n }\r\n items.add((Item) getElement());\r\n if (getDroite() != null) {\r\n getDroite().ParcoursInfixe(items);\r\n }\r\n// return listeItem;\r\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n // dessiner les Objets que contient le dessin\n for (Chenille c : listeDesChenilles) {\n c.dessiner(g);\n }\n }", "public static ArrayList<Vkladi> falseScetVkladi() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\t\tint i = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\t\t\tif (vkla.getStat() == false) {\r\n\t\t\t\tfoundVkladi.add(vkla);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn foundVkladi;\r\n\t}", "public List<UniteeDto> listerDifferentesUnitees() {\n\n\t\t// INITIALISATIONS\n\t\tList<UniteeDto> listeUnitees = new ArrayList<>();\n\n\t\t// RECHERCHE DES UNITES, CLASSE PAR DEGATS\n\t\tfor (Unitee unitee : uniteeRepo.findAllByOrderByAttaqueAsc()) {\n\t\t\tUniteeDto uniteeDto = new UniteeDto();\n\t\t\tuniteeDto.setId(unitee.getId());\n\t\t\tuniteeDto.setIdTypeUnitee(unitee.getIdTypeUnitee());\n\t\t\tuniteeDto.setIdBatimentProvenance(unitee.getIdBatimentProvenance());\n\t\t\tuniteeDto.setIcone(unitee.getIcone());\n\t\t\tuniteeDto.setLibelle(unitee.getLibelle());\n\t\t\tuniteeDto.setDescriptif(unitee.getDescriptif());\n\t\t\tuniteeDto.setCoutPierreFormation(unitee.getCoutPierreFormation());\n\t\t\tuniteeDto.setCoutBoisFormation(unitee.getCoutBoisFormation());\n\t\t\tuniteeDto.setCoutOrFormation(unitee.getCoutOrFormation());\n\t\t\tuniteeDto.setCoutNourritureFormation(unitee.getCoutNourritureFormation());\n\t\t\tuniteeDto.setCoutHumain(unitee.getCoutHumain());\n\t\t\tuniteeDto.setTempsFormation(unitee.getTempsFormation());\n\t\t\tuniteeDto.setVie(unitee.getVie());\n\t\t\tuniteeDto.setAttaque(unitee.getAttaque());\n\t\t\tuniteeDto.setPortee(unitee.getPortee());\n\t\t\tuniteeDto.setArmure(unitee.getArmure());\n\t\t\tuniteeDto.setVitesse(unitee.getVitesse());\n\t\t\tuniteeDto.setNiveauBatimentNecessaireFormation(unitee.getNiveauBatimentNecessaireFormation());\n\t\t\tuniteeDto.setApportRessourcePierreHeure(unitee.getApportRessourcePierreHeure());\n\t\t\tuniteeDto.setApportRessourceBoisHeure(unitee.getApportRessourceBoisHeure());\n\t\t\tuniteeDto.setApportRessourceOrHeure(unitee.getApportRessourceOrHeure());\n\t\t\tuniteeDto.setApportRessourceNourritureHeure(unitee.getApportRessourceNourritureHeure());\n\t\t\tuniteeDto.setApportExperience(unitee.getApportExperience());\n\n\t\t\t// AJOUT AU TABLEAU\n\t\t\tlisteUnitees.add(uniteeDto);\n\t\t}\n\n\t\t// RETOUR\n\t\treturn listeUnitees;\n\t}", "public void eliminaDoppie(ArrayList<Sensore> listaSensori, ArrayList<Attuatore> listaAttuatori) {\n String lettura = readRuleFromFile();\n\n if (lettura.equals(\"\"))\n return;\n\n String[] regole = lettura.split(\"\\n\");\n\n\n ArrayList<String> regoleList = new ArrayList<>(Arrays.asList(regole));\n ArrayList<String> regoleSenzaAbil = new ArrayList<>();\n\n for (String reg : regoleList) {\n regoleSenzaAbil.add(reg.replace(\"ENABLED --> IF \",\"\").replace(\"DISABLED --> IF \",\"\"));\n }\n\n List<String> listWithoutDuplicates = regoleSenzaAbil.stream().distinct().collect(Collectors.toList());\n StringBuilder regoleModificate = new StringBuilder();\n\n for (int i = 0; i < listWithoutDuplicates.size() - 1; i++) {\n\n if (verificaAbilitazione(listWithoutDuplicates.get(i),listaSensori,listaAttuatori))\n regoleModificate.append(\"ENABLED --> IF \");\n else\n regoleModificate.append(\"DISABLED --> IF \");\n\n regoleModificate.append(listWithoutDuplicates.get(i)).append(\"\\n\");\n }\n\n if (verificaAbilitazione(listWithoutDuplicates.get(listWithoutDuplicates.size() - 1),listaSensori,listaAttuatori))\n regoleModificate.append(\"ENABLED --> IF \");\n else\n regoleModificate.append(\"DISABLED --> IF \");\n\n regoleModificate.append(listWithoutDuplicates.get(listWithoutDuplicates.size() - 1));\n writeRuleToFile(regoleModificate.toString(), false);\n }", "private void pulsarItemMayus(){\n if (mayus) {\n mayus = false;\n texto_frases = texto_frases.toLowerCase();\n }\n else {\n mayus = true;\n texto_frases = texto_frases.toUpperCase();\n }\n fillList(false);\n }", "public void revolver() {\n this.lista = Lista.escojerAleatorio(this, this.size()).lista;\n }", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "@Override\r\n\tpublic List<Etudiant> afficherEtudiant() {\n\t\treturn null;\r\n\t}", "public List<MascotaExtraviadaEntity> darProcesosExtraviadaConRazaIgualA(String raza){\n List<MascotaExtraviadaEntity> procesos = mascotaExtraviadaPersistence.findAll();\n List<MascotaExtraviadaEntity> procesosFiltrados = new LinkedList<>();\n \n for( MascotaExtraviadaEntity p : procesos){\n if(p.getMascota().getRaza().equals(raza)){\n procesosFiltrados.add(p);\n }\n }\n return procesosFiltrados;\n }", "public void preencherDisponibilidadesOferta() {\n\n //List<Disponibilidade> disponibilidades;\n List<Disp> disponibilidades;\n \n if (oferta != null) {\n //disponibilidades = new ArrayList<>(oferta.getDisponibilidades());\n disponibilidades = new ArrayList<>(oferta.getDispo());\n } else {\n disponibilidades = new ArrayList<>();\n }\n //dispDataModel = new DisponibilidadeDataModel(disponibilidades);\n dispDataModel = new DispDataModel(disponibilidades);\n }", "private static List<Etudiant> creationListeEtudiants(List<String> datas,boolean modele){\n\t\tList<String> dataEtudiant = new ArrayList<String>();\n\t\tList<Etudiant> etudiants = new ArrayList<Etudiant>();\n\t\tIterator<String> it = datas.iterator();\n\t\twhile (it.hasNext()) {//on parcourt les donnees\n\t\t\tString data = it.next();\n\t\t\tif(RecherchePattern.rechercheDebutEtudiant(data)){\t//si on change d'etudiant on reset les donnees concernant l'ancien etudiant\n\t\t\t\treset();\n\t\t\t\tdataEtudiant = new ArrayList<String>();//on reset les donnees\n\t\t\t\tsetNbEtudiant(getNbEtudiant() + 1);\n\t\t\t}\n\t\t\telse{//si on a pas changer d'etudiant on stocke ces donnees\n\t\t\t\tif(RecherchePattern.rechercheFinEtudiant(data)){//si on est a la fin des donnees on creer l'etudiant\n\t\t\t\t\tdataEtudiant.add(data); //on ajoute le dernier element au donnee\n\t\t\t\t\tif(!modele)\n\t\t\t\t\t\tetudiants.add(ajoutEtudiant(dataEtudiant));\n\t\t\t\t\telse\n\t\t\t\t\t\tetudiants.add(ajoutEtudiantModele(dataEtudiant));\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdataEtudiant.add(data);//on est pas a la fin on attend\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tetudiants = suppressionDoublons(etudiants); //on supprime les\n\t\treturn etudiants;\n\t}", "public void ouvrirListe(){\n\t\n}", "static void cumplen(elefante comparador,Queue<elefante>lista,\n Queue<elefante>aprobados){\n if (lista.isEmpty()) {\n \n }else{\n elefante a=lista.poll();\n if (comparador.comparedint(a.getInteligencia())==true) {\n aprobados.add(a);\n cumplen(comparador,lista,aprobados);\n }\n if (comparador.comparedint(a.getInteligencia())==false) {\n cumplen(comparador,lista,aprobados); \n }\n }\n }", "private static boolean deduplica(Session ses, IstanzeAbbonamenti ia, List<EvasioniArticoli> eaList) \n\t\t\tthrows HibernateException {\n\t\tList<EvasioniArticoli> filteredList = new ArrayList<EvasioniArticoli>();\n\t\tfor (EvasioniArticoli ea:eaList) {\n\t\t\tif (ea.getDataInvio() == null) filteredList.add(ea);\n\t\t}\n\t\tif (filteredList.size() > 0) {\n\t\t\t//Elimina i duplicati non spediti\n\t\t\tEvasioniArticoli eaExtra = null;\n\t\t\tfor (EvasioniArticoli ea:filteredList) {\n\t\t\t\tif (eaExtra == null) eaExtra=ea;\n\t\t\t}\n\t\t\tLOG.info(ia.getAbbonamento().getCodiceAbbonamento()+\" deduplica di \"+eaExtra.getArticolo().getCodiceMeccanografico()+\" del \"+eaExtra.getDataCreazione());\n\t\t\tGenericDao.deleteGeneric(ses, eaExtra.getId(), eaExtra);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public void interagit() {\n super.interagit();\n ArrayList<EtreVivant> cibles = this.ciblesPotentiellesAdjacentes(this.getPosition(),this.nombreVoisins);\n cibles.stream().filter((vivants) -> (vivants.getEtat().equals(EtatEtreVivant.MALADE))).forEach((vivants) -> {\n this.soigne(vivants);\n });\n }", "@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}", "public final void nonRedefinissableParEnfant(){\n\n }", "public List<Agent> findAgentsActifs() {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') ORDER BY A.personne.name\");\n List<Agent> list = q.getResultList();\n return list;\n }", "@Override\r\n\tpublic List<Archive> afficher(Etudiant e) {\n\t\treturn null;\r\n\t}", "public Collection<OrdenCompra> traerTodasLasOrdenesDeCompra() {\n Collection<OrdenCompra> resultado = null;\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n resultado = controlOC.traerTodasLasOrdenesDeCompra();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return resultado;\n }", "public List<Mobibus> darMobibus();", "private static void afficherLeslistes(List<List<Recette>> listeProposition) {\n\t\tfor (int i = 0; i < listeProposition.size(); i++) {\n\t\t\tList<Recette> liste = listeProposition.get(i);\n\t\t\tSystem.out.println(i + 1);\n\t\t\tfor (int s = 0; s < liste.size(); s++) {\n\t\t\t\tRecette recette = liste.get(s);\n\t\t\t\tString note = \"\";\n\t\t\t\tfor (int n = 0; n < recette.getNote(); n++) {\n\t\t\t\t\tnote += \"*\";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\" - \" + recette.getNom() + \" (\" + note + \")\");\n\t\t\t}\n\t\t}\n\t}", "private final ArrayList<ParCharProb> \r\n\t\tobtenerExclusionCompleta(final Contexto contextoActual, final Contexto contextoAnterior){\r\n\t\t\t\r\n\t\tArrayList<ParCharProb> nuevaListaContexto = new ArrayList<ParCharProb>();\r\n\t\t//Agrego todos los elementos del contexto actual\r\n\t\tnuevaListaContexto.addAll(contextoActual.getArrayCharProb());\r\n\t\t\r\n\t\tif (contextoAnterior != null) {\r\n\t\t\tif (!contextoAnterior.getArrayCharProb().isEmpty()) {\t\t\r\n\t\t\t\t//Me copio el elemento ESC porque se va a borrar al hacer removeAll\r\n\t\t\t\tParCharProb par = contextoActual.getChar(Constantes.ESC);\r\n\t\t\t\t\r\n\t\t\t\tnuevaListaContexto.removeAll(contextoAnterior.getArrayCharProb());\r\n\t\t\t\tif (par != null) {\r\n\t\t\t\t\tnuevaListaContexto.add(par);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn nuevaListaContexto;\r\n\t}", "public List<DadosDiariosVO> validaSelecionaAcumuladoDadosDiarios(String ano) {\n\n\t\tList<DadosDiariosVO> listaDadosDiarios = validaSelecionaDetalhesDadosDiarios(ano);\n\n\t\tList<DadosDiariosVO> listaFiltradaDadosDiarios = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoDiario = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoAcumulado = new ArrayList<DadosDiariosVO>();\n\n\t\t/* Ordena a lista em EMITIDOS;EMITIDOS CANCELADOS;EMITIDOS RESTITUIDOS */\n\n\t\tfor (int i = 0; i < listaDadosDiarios.size(); i++) {\n\t\t\tString dataParaComparacao = listaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\tfor (int j = 0; j < listaDadosDiarios.size(); j++) {\n\n\t\t\t\tif (dataParaComparacao.equals(listaDadosDiarios.get(j).getAnoMesDia())) {\n\t\t\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\t\t\tdados.setAnoMesDia(listaDadosDiarios.get(j).getAnoMesDia());\n\t\t\t\t\tdados.setProduto(listaDadosDiarios.get(j).getProduto());\n\t\t\t\t\tdados.setTipo(listaDadosDiarios.get(j).getTipo());\n\t\t\t\t\tdados.setValorDoDia(listaDadosDiarios.get(j).getValorDoDia());\n\n\t\t\t\t\tlistaFiltradaDadosDiarios.add(dados);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\touter: for (int i = listaFiltradaDadosDiarios.size() - 1; i >= 0; i--) {\n\t\t\tfor (int j = 0; j < listaFiltradaDadosDiarios.size(); j++) {\n\t\t\t\tif (listaFiltradaDadosDiarios.get(i).getAnoMesDia()\n\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getAnoMesDia())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getProduto()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getProduto())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getTipo()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getTipo())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getValorDoDia()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getValorDoDia())) {\n\t\t\t\t\tif (i != j) {\n\n\t\t\t\t\t\tlistaFiltradaDadosDiarios.remove(i);\n\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Ordena por data */\n\t\tCollections.sort(listaFiltradaDadosDiarios, DadosDiariosVO.anoMesDiaCoparator);\n\n\t\tString dataTemp = \"\";\n\t\tBigDecimal somaAcumulada = new BigDecimal(\"0.0\");\n\n\t\t/* abaixo a visao da faturamento de cada dia */\n\t\tDadosDiariosVO faturamentoDiario = new DadosDiariosVO();\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i <= listaFiltradaDadosDiarios.size(); i++) {\n\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\n\t\t\t\tif ((i != listaFiltradaDadosDiarios.size())\n\t\t\t\t\t\t&& dataTemp.equals(listaFiltradaDadosDiarios.get(i).getAnoMesDia())) {\n\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia()).add(somaAcumulada);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (listaFiltradaDadosDiarios.size() == i) {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t}\n\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia());\n\n\t\t\t\t\tfaturamentoDiario = new DadosDiariosVO();\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IndexOutOfBoundsException ioobe) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"VisãoExecutiva_Diaria_BO - método validaSelecionaAcumuladoDadosDiarios - adicionando dados fictícios...\");\n\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\tdados.setAnoMesDia(\"2015-10-02\");\n\t\t\tdados.setProduto(\"TESTE\");\n\t\t\tdados.setTipo(\"FATURAMENTO\");\n\t\t\tdados.setValorDoDia(\"0.0\");\n\t\t\tlistaFaturamentoDiario.add(dados);\n\t\t\tSystem.err.println(\"... dados inseridos\");\n\t\t}\n\n\t\t/* abaixo construimos a visao acumulada */\n\t\tBigDecimal somaAnterior = new BigDecimal(\"0.0\");\n\t\tint quantidadeDias = 0;\n\t\tfor (int i = 0; i < listaFaturamentoDiario.size(); i++) {\n\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(listaFaturamentoDiario.get(i).getValorDoDia());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(\n\t\t\t\t\t\tsomaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia())).toString());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\tUteis uteis = new Uteis();\n\t\tString dataAtualSistema = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date(System.currentTimeMillis()));\n\t\tString dataCut[] = dataAtualSistema.split(\"/\");\n\t\tString mes_SO;\n\t\tmes_SO = dataCut[1];\n\n\t\t/* BP */\n\t\tList<FaturamentoVO> listaBP = dadosFaturamentoDetalhado;\n\t\tint mes_SO_int = Integer.parseInt(mes_SO);\n\t\tString bpMes = listaBP.get(0).getMeses()[mes_SO_int - 1];\n\t\tint diasUteis = uteis.retornaDiasUteisMes(mes_SO_int - 1);\n\t\tBigDecimal bpPorDia = new BigDecimal(bpMes).divide(new BigDecimal(diasUteis), 6, RoundingMode.HALF_DOWN);\n\n\t\tBigDecimal somaAnteriorBp = new BigDecimal(\"0.0\");\n\t\tfor (int i = 0; i < quantidadeDias; i++) {\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(bpPorDia.toString());\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(somaAnteriorBp.toString());\n\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\treturn listaFaturamentoAcumulado;\n\t}", "public ArrayList<Chambre> chambresVides() {\n\t\tArrayList<Chambre> chambreNonRes = new ArrayList<Chambre>();\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(!chambre.isReserve()) {\n\t\t\t\tchambreNonRes.add(chambre);\n\t\t\t}\n\t\t}\n\t\treturn chambreNonRes;\n\t}", "void mo69875a(List<Aweme> list, boolean z);", "@Override\r\n\tpublic List<EquipoCompetencia> listar() {\n\t\treturn null;\r\n\t}", "public void enleverTousLesObs() {\n\n\t\tobstaclesList.removeAll(obstaclesList);\n\t}", "public void imprimir() {\n Nodo reco=raiz;\n System.out.println(\"Listado de todos los elementos de la pila.\");\n System.out.print(\"Raiz-\");\n while (reco!=null) {\n \tSystem.out.print(\"(\");\n System.out.print(reco.edad+\"-\");\n System.out.print(reco.nombre+\"\");\n System.out.print(\")-\");\n //System.out.print(reco.sig+\"-\");\n reco=reco.sig;\n }\n System.out.print(\"Cola\");\n System.out.println();\n }", "public ListaEtiquetas() {\n this.listaEtiquetas = new ArrayList<>();\n }", "public List<Vendedor> listarVendedor();", "public void distribuirAportes2(){\n\n if(comprobanteSeleccionado.getAporteorganismo().floatValue() > 0f){\n comprobanteSeleccionado.setAportecomitente(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo())));\n }\n }", "public ArrayList<producto> bodegaDefault() { \n ArrayList<producto> temporaryProductList = new ArrayList<producto>();\n temporaryProductList.add(new producto(001, \"Mouse Logitech\", 39990, 10));\n temporaryProductList.add(new producto(002, \"Teclado Logitech\", 79990, 20));\n temporaryProductList.add(new producto(003, \"Mousepad Razer\", 19990, 30));\n temporaryProductList.add(new producto(004, \"MSI GTX 970\", 119990, 10));\n return temporaryProductList;\n }", "List<Celda> obtenerCeldasValidas(Celda origen);", "private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}", "void collectAntecedents( ArrayList ts ) {\n if (antecedents == null) return;\n Iterator i = antecedents.iterator();\n while (i.hasNext()) {\n variable v = (variable) i.next();\n if (!ts.contains(v)) {\n ts.add(v);\n v.collectAntecedents(ts);\n }\n }\n }", "public List<Etudiant> etudiantAdmis() {\n\t\t\r\n\tList<Etudiant> liste = new ArrayList<Etudiant>();\r\n\t\tList<Etudiant> listetuds = dao.afficher();\r\n\t\tfor(Etudiant et : listetuds) {\r\n\t\t\tif(dao.getMoyenneGenerale(et.getIdPersonne())>=10){\r\n\t\t\t\tliste.add(et);\r\n\t\t\t} \r\n\r\n\t\t\treturn liste;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public void emptyList() {\n coursesTaken = new ArrayList<CourseTaken>();\r\n }", "public String imprimirListaFormateada() {\n\t\t// Cuando quieran unir un monton de cadenas\n\t\tStringBuilder provLis = new StringBuilder();\n\t\tfor (Proveedor provTmp : BdMemoria.proveedores) {\n\t\t\tif (provTmp != null) {\n\t\t\t\tprovLis.append(provTmp.getIdProveedor()).append(\"-\").append(provTmp.getNombreProv())\n\t\t\t\t\t\t.append(\" !! \");\n\t\t\t}\n\n\t\t}\n\t\treturn provLis.toString();\n\t}", "public void borrarListas() {\n\n\t\tthis.jugadoresEnMesa = new ArrayList<Jugador>();\n\t\tListaJugadores.jugadoresRetirados = new ArrayList<Jugador>();\n\n\t}", "public QuanLyChuyenDeImplement() {\n// _lstChuyenDe = new ArrayList<>();\n// _lstChuyenDe = _daoChuyenDe.selectAll();\n }", "private void setListaDelCommunication2(ArrayList lista) {\n this.getComunicationAccionSocialBean().setListaSolicitudesBeneficio(lista);\n }", "@Test\r\n\tpublic void testPelikulaBaloratuDutenErabiltzaileenZerrenda() {\n\t\tArrayList<Integer> zer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p1.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p2.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 4);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertTrue(zer.contains(e4.getId()));\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p3.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p4.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e4.getId()));\r\n\t\t\r\n\t}", "public void imprimir() {\r\n NodoPila reco=raiz;\r\n System.out.println(\"Listado de todos los elementos de la pila:\");\r\n while (reco!=null) {\r\n System.out.print(reco.dato+\" \");\r\n reco=reco.sig;\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "@Override\n //Metodo para retornar una lista de los equipos que avanzan\n public List<Equipo> getEquiposQueAvanzan(){\n List<Equipo> equipos = new ArrayList<>();\n //Recorremos la lista de partidos de la etapa mundial\n for (Partido partidito : getPartidos()){\n /*Si en el partido que estamos parados gano el local, agregamos ese equipo\n local a la lista de equipos*/\n if (partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getLocal());\n }\n /*Si NO gano el local, agregamos el equipo visitante a la lista de equipos*/\n if (!partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getVisitante());\n }\n }\n //Retornamos la nueva lista con los equipos que avanzan\n return equipos;\n }", "public void listar(){\n if (!esVacia()) {\n // Crea una copia de la lista.\n NodoEmpleado aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n System.out.print(\"-> \");\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do{\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getEmpleado() + \" ]\" + \" -> \");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador de la posi�n.\n i++;\n }while(aux != inicio);\n }\n }", "public List<ViewEtudiantInscriptionEcheance> rechercheEtudiantInscripEcheanceParNomEtPrenom(){ \r\n try{ \r\n setListRechercheEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findEtudInscripByNonEtPrenomWithJocker(getViewEtudiantInscripEcheance().getNomEtPrenom())); \r\n }catch (Exception ex) {\r\n System.err.println(\"Erreur capturée : \"+ex);\r\n }\r\n return listRechercheEtudiantInscripEcheance;\r\n }", "private Integer[] mantieniAbilitati(int da, int a){\n List<Integer> caselleDisabilitate = new ArrayList<>();\n for (int i = 0; i < listaCaselle.size(); i++) {\n if(!listaCaselle.get(i).isDisattiva() && (i<da || i>a)) {\n listaCaselle.get(i).disabilita();\n caselleDisabilitate.add(i);\n }\n }\n return caselleDisabilitate.toArray(new Integer[caselleDisabilitate.size()]);\n }", "public static void main(String[] args) {\n\t\tArrayList<Piloto> lst = new ArrayList <Piloto>();\r\n\t\tEvaluador evaluador = new Evaluador(lst);\r\n\t\t\r\n\t\tlst.add(new Piloto(\"Jorge\", \"Gutierrez\", true, 0 ));\r\n\t\tlst.add(new Piloto(\"Nicolas\", \"Perez\", true, 10 ));\r\n\t\tlst.add(new Piloto(\"Santiago\", \"Freire\", false, 0 ));\r\n\t\tlst.add(new Piloto(\"Ana\", \"Gutierrez\", false, 1 ));\r\n\t\tlst.add(new Piloto(\"Victoria\", \"Gutierrez\", true, 0 ));\r\n\t\tlst.add(new Piloto(\"Julia\", \"Freire\", true, 0 ));\r\n\t\tlst.add(new Piloto(\"Carlos\", \"Gutierrez\", true, 1 ));\r\n\t\t\r\n /*\r\n\t\t//le gusta volar y no tiene choques \r\n\t\tfor (Piloto p : evaluador.leGustaVolarNoTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n */\r\n \r\n\t\t//le gusta volar y tiene choques\r\n\t\tfor (Piloto p : evaluador.leGustaVolarTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n \r\n for (Piloto p : evaluador.obtenerTodosPeroParametrizar(true, true)) {\r\n System.out.println(p);\r\n }\r\n \r\n for (Piloto p : evaluador.obtenerTodosPeroParametrizar(p -> (p.leGustaVolar && p.cantidadDeChoques > 0))) {\r\n System.out.println(p);\r\n }\r\n \r\n lst.stream()\r\n .filter(p -> (p.leGustaVolar && p.cantidadDeChoques > 0))\r\n .filter(p -> p.cantidadDeChoques == 10)\r\n .forEach(x -> System.out.println(x));\r\n \r\n\t\t\r\n /*\r\n\t\t//no le gusta volar y no tiene choques\r\n\t\tfor (Piloto p : evaluador.noLeGustaVolarNoTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n\t\t\r\n\t\t//no le gusta volar y tiene choques\r\n\t\tfor (Piloto p : evaluador.noLeGustaVolarTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n\t\t*/\r\n\t\t\r\n\t}" ]
[ "0.6298314", "0.6257816", "0.62178916", "0.6176124", "0.6114003", "0.60966575", "0.60720056", "0.5921576", "0.5908814", "0.59074473", "0.5903289", "0.5893433", "0.5831618", "0.5806894", "0.5803392", "0.57999486", "0.5789532", "0.577604", "0.57751006", "0.5768748", "0.57480913", "0.5740693", "0.57394785", "0.5727325", "0.5716151", "0.5715297", "0.57008255", "0.56872785", "0.5684286", "0.5676762", "0.56632596", "0.56491953", "0.5648767", "0.5630482", "0.56223965", "0.56199574", "0.5609857", "0.56030434", "0.5596656", "0.5575341", "0.5573022", "0.55713195", "0.5567894", "0.5563594", "0.5548685", "0.5547474", "0.55461013", "0.55416673", "0.553768", "0.5531912", "0.55317605", "0.5530539", "0.5523235", "0.5514548", "0.5512014", "0.55066955", "0.54950774", "0.5493838", "0.5491271", "0.5478774", "0.54694635", "0.54687387", "0.5468686", "0.54631466", "0.5459535", "0.54549307", "0.54526705", "0.5447246", "0.5447072", "0.54455113", "0.54331166", "0.5430925", "0.542927", "0.5412564", "0.5411743", "0.5409211", "0.5408074", "0.54058564", "0.53883904", "0.5388248", "0.5384784", "0.53813434", "0.53780246", "0.5375624", "0.5369594", "0.53695184", "0.53628963", "0.5357108", "0.53499293", "0.5347533", "0.5342673", "0.53424907", "0.5338682", "0.53287643", "0.53284675", "0.5328251", "0.5320883", "0.53197086", "0.53175604", "0.53158927", "0.5306357" ]
0.0
-1
Le message d'erreur survenu dans le workflow
public final String getMessageErreur() { String messageErreur = null; // il faut que toutes les taches obligatoires soient accomplies NSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = getTachesObligatoiresAbsentes(); if (tachesObligatoiresAbsentes.count() > 0) { messageErreur = "Tâches non effectuées : "; messageErreur += "<ul>"; for (int i = 0; i < tachesObligatoiresAbsentes.count(); i++) { I_WorkFlowItem tache = tachesObligatoiresAbsentes.objectAtIndex(i); messageErreur += "<li>"; messageErreur += tache.libelle(); messageErreur += "</li>"; } messageErreur += "</ul>"; } return messageErreur; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String getMessage() {\n\t\treturn \"Failed\";\r\n\t}", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "protected abstract String persistFailedMessage();", "@Override\n\tpublic void error(Message msg) {\n\n\t}", "public void fatalError(ValidationType type, String validationName, String content);", "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}", "@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}", "@Override\n\tpublic String getMessage() {\n\t\treturn \"ATTENZIONE: nel progetto Eccezioni Java si è verificato un errore!\";\n\t}", "public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }", "String getFailureMessage();", "@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void onFail(String msg) {\n\t\t\t\t\t\t\t}", "public void error(String message);", "@Override\n\tpublic void error(Object message) {\n\n\t}", "String getInvalidMessage();", "@Override\n public void setFailed(String msg) {\n Platform.runLater(() -> {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Errore di input\");\n alert.setHeaderText(msg);\n alert.showAndWait();\n });\n if (firstAction) {\n inTurno = false;\n }\n\n }", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "java.lang.String getErrmsg();", "@Override\r\n\tprotected void processError() {\n\t\tsuper.processError();\r\n\t\tshowToast(error_generico_process);\r\n\t}", "void errorMsg(String msg) {\n Alert errorAlert = new Alert(\"error\", msg, null, AlertType.ERROR);\n errorAlert.setCommandListener(this);\n errorAlert.setTimeout(Alert.FOREVER);\n Display.getDisplay(this).setCurrent(errorAlert);\n }", "public void failure(Object content){\n\n\t\tif (isParticipant() && (getState() == RequestProtocolState.SENDING_RESULT)) {\n\t\t\tsendMessage(content, Performative.FAILURE, getInitiator());\n\t\t\tsetFinalStep();\n\t\t}\n\t\telse if( isInitiator() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.12\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.13\")); //$NON-NLS-1$\n\t\t}\n\t}", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "@Override\r\n public String getMessage() {\r\n return ErrorMessage.STATUS_FORMATTING_IN_FILE_ERROR;\r\n }", "public void erroMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_ERRO, msg));\n }", "public String getMessage() {\n return \"☹ OOPS!!! There isn't a task labeled \" + label;\n }", "public void error();", "private static void displayError(Shell shell, String msg) {\n MessageBox mbox = new MessageBox(shell, SWT.ICON_ERROR|SWT.OK);\n mbox.setMessage(msg);\n mbox.setText(\"USBDM - Can't create launch configuration\");\n mbox.open();\n }", "@Override\n\tpublic void onActionError(int action, String message) {\n\t\t\n\t}", "@Override\n\tpublic String getFailureMessage() {\n\t return null;\n\t}", "@Override\n\tpublic void error(Marker marker, Message msg, Throwable t) {\n\n\t}", "public InvalidPlayExcepcion(String msg) {\n super(msg);\n }", "public void error(ValidationType type, String validationName, String content);", "@Override\n\tpublic void error(Object message, Throwable t) {\n\n\t}", "public String error();", "private void execHandlerFailed( Message msg ) {\n\t\ttoast_short( mMsgFailed );\n\t}", "String errorMessage();", "@Override\n public void onAnalysisFailed(IntegrationAnalyzer.FailReason failReason) {\n String message = failReason.getMessage();\n Log.d(TAG, \"Fail Reason message is\" + message);\n //..\n\n }", "private void action_error(HttpServletRequest request, HttpServletResponse response, String message) {\n\n FailureResult fail = new FailureResult(getServletContext());\n fail.activate(message, request, response);\n }", "String getErrorMessage();", "String getErrorMessage();", "@Override\n\tpublic void fail(Handle msg) {\n\t\t\n\t}", "public String createErrorMessage(CommandSender sender, MCommand command);", "@Override\n\tpublic void error(CharSequence message, Throwable t) {\n\n\t}", "public void failed(String msg) {\n failureMsg = msg;\n }", "@Override\r\n\t\t\t\t\tpublic void failed(String message) {\n\r\n\t\t\t\t\t}", "@Override\n\tpublic void error(Marker marker, CharSequence message) {\n\n\t}", "String failureReason();", "@Override\n public void taskErrorMessage(Object result) {\n\n }", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "public void onError(String cadena) {\r\n\t\tJOptionPane.showMessageDialog(null, cadena, \"Movimiento invalido\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\r\n\t}", "private void sendResultError(CallbackContext callbackContext, String payload) {\n // Compone el mensaje de respuesta.\n PluginResult pluginResult = new PluginResult(PluginResult.Status.ERROR, payload);\n\n // Envia la respuesta a la llamada.\n callbackContext.sendPluginResult(pluginResult);\n }", "@Override\n\tpublic void error(Marker marker, Object message) {\n\n\t}", "public void mensagemErro(String m) {\r\n Alert alerta = new Alert(Alert.AlertType.ERROR);\r\n alerta.setTitle(\"ERRO!\");\r\n alerta.setHeaderText(null);\r\n alerta.setContentText(m);\r\n alerta.showAndWait();\r\n }", "private void errorMessage( String message )\n {\n logger.errorMessage( \"MidiChannel\", message, 0 );\n }", "@Override\n\tpublic void error(CharSequence message) {\n\n\t}", "@Override\n\tpublic void error(Marker marker, CharSequence message, Throwable t) {\n\n\t}", "public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}", "@Override protected void failed(Throwable e) {\n logger.log(Level.WARNING, \"couldn't load \" + getFile(), e);\n String msg = getResourceMap().getString(\"loadFailedMessage\", getFile());\n String title = getResourceMap().getString(\"loadFailedTitle\");\n int type = JOptionPane.ERROR_MESSAGE;\n JOptionPane.showMessageDialog(app.getFrame().getFrame(), msg, title, type);\n }", "private void error(String message) { \n Alert alert = new Alert(Alert.AlertType.ERROR, message);\n alert.setTitle(I18n.tr(\"imagesizedialog.error.title\"));\n alert.setContentText(message);\n alert.showAndWait();\n }", "@Override\r\n\tpublic String getMessage() {\r\n\t\treturn \"Veuillez entrer un nombre positif\";\r\n\t}", "@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}", "@Override\n public void onError(Throwable e) {\n Log.e(TAG, e.getMessage());\n _view.showMessage(R.string.msg_erro);\n }", "public void sendeFehlerHelo();", "public void resetFail() {\n borraArchivos();\n addMessage(\"Carga Cancelada\", null);\n }", "public static String operationFailed() {\n return holder.format(\"operationFailed\");\n }", "@Override\n\tpublic void error(Marker marker, MessageSupplier msgSupplier) {\n\n\t}", "public String getMessage()\n {\n return super.getMessage()+promo_error.getCode()+\"already exists\";\n }", "@Override\n\tpublic void error(Marker marker, String message) {\n\n\t}", "public void errorOccured(String errorMessage, Exception e);", "public VocabularioIOException(String msg)\n {\n message = msg;\n }", "public void addError(String message);", "public void messageErreur(Exception ex) throws HeadlessException {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }", "public String getErrorMsg() {\n return this.state == null ? null : this.state.msg;\n }", "@Override\n\t\tpublic void setInvalidMess(String errmess) {\n\n\t\t}", "abstract void errorLogMessage(String message);", "@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}", "void showResultMoError(String e);", "public NotToBeFriendsException(String errMsg){\n super(\"The error message is \"+errMsg);\n System.err.println(\"make friends failed\");\n }", "public void printInvalidTaskInFileMessage() {\n System.out.println(BORDER_LINE + System.lineSeparator()\n + \" INVALID TASK DETECTED\" + System.lineSeparator()\n + BORDER_LINE);\n }", "public String getErrorMessage() {\n\t\treturn this.errMsg;\n\t}", "java.lang.String getErr();", "public String getExceptionMessage() {\n\t\treturn \"Error while publishing JSON reports. Please contact system administrator or try again later!\";\n\t}", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();" ]
[ "0.68520427", "0.65538526", "0.6544836", "0.6494374", "0.64148456", "0.6398602", "0.6380447", "0.6355515", "0.6353701", "0.6277069", "0.626828", "0.62480897", "0.621581", "0.61993116", "0.6197641", "0.61353797", "0.61336017", "0.6131079", "0.61308366", "0.61154646", "0.6106187", "0.6095008", "0.6071462", "0.6071462", "0.6071462", "0.6071462", "0.6071462", "0.6071462", "0.6071462", "0.6071462", "0.6071462", "0.6071462", "0.6071462", "0.6071462", "0.6071228", "0.6062584", "0.6057207", "0.60440326", "0.60392505", "0.6030616", "0.6026332", "0.6020334", "0.60173124", "0.6011824", "0.6009205", "0.60079587", "0.5994894", "0.5994256", "0.599423", "0.5985864", "0.59848386", "0.59848386", "0.59748614", "0.59745026", "0.5968258", "0.5953201", "0.59463847", "0.59345555", "0.5930132", "0.592941", "0.59187305", "0.59187305", "0.59187305", "0.5911266", "0.5902871", "0.589937", "0.5896188", "0.5891383", "0.5879738", "0.5878442", "0.58726424", "0.5871804", "0.5871189", "0.58708787", "0.5869709", "0.58488804", "0.5847554", "0.58439106", "0.58402795", "0.58375764", "0.5836696", "0.5832598", "0.5828847", "0.5827976", "0.58275026", "0.58263373", "0.58256906", "0.5816674", "0.58140916", "0.58065236", "0.58018744", "0.5796413", "0.5793919", "0.5792923", "0.5785786", "0.5784415", "0.5781069", "0.5781069", "0.5781069", "0.5781069" ]
0.6033379
39
Creates a new NakaRushton neuron panel.
public NakaRushtonRulePanel() { super(); tsUseAdaptation.addActionListener(this); this.add(tabbedPane); mainTab.addItem("Steepness", tfSteepness); mainTab.addItem("Semi-saturation constant", tfSemiSaturation); mainTab.addItem("Time constant", tfTimeConstant); mainTab.addItem("Add noise", tsNoise); mainTab.addItem("Use Adaptation", tsUseAdaptation); mainTab.addItem("Adaptation parameter", tfAdaptationParam); mainTab.addItem("Adaptation time constant", tfAdaptationTime); tabbedPane.add(mainTab, "Main"); tabbedPane.add(randTab, "Noise"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JPanel criarPainelNorte() {\n\n JPanel pNorte = new JPanel(new BorderLayout());\n\n pNorte.setBorder(PADDING_BORDER);\n\n JLabel lbl = new JLabel(\"Selecione o tipo de Utilizador:\", JLabel.CENTER);\n\n btnFae = criarRadioBtnFae();\n btnOrg = criarRadioBtnOrg();\n btnRep = criarRadioBtnRep();\n\n ButtonGroup rBtnGroup = new ButtonGroup();\n rBtnGroup.add(btnFae);\n rBtnGroup.add(btnOrg);\n rBtnGroup.add(btnRep);\n\n JPanel panelBotoes = new JPanel(new FlowLayout());\n panelBotoes.add(btnFae);\n panelBotoes.add(btnOrg);\n panelBotoes.add(btnRep);\n\n pNorte.add(lbl, BorderLayout.NORTH);\n pNorte.add(panelBotoes, BorderLayout.CENTER);\n\n return pNorte;\n }", "private void createNetworksPanel() {\n\t\ttabs = new ArrayList<>();\n\t\tnetworksPanel = new JTabbedPane();\n\t\tthis.add(networksPanel, BorderLayout.CENTER);\n\t}", "public NetworkPanel() {\n initComponents();\n }", "private JPanel buildNorthPanel() {\n\t\t\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel panel;\n\t\tint row, col;\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tpanel = new JPanel(layout);\n\t\trow = 0;\n\t\tcol = 0;\n\t\tJLabel headerLabel = new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_SAVE_NEW_CONFIGURATION));\n\t\theaderLabel.setFont(new Font(\"arial\", Font.PLAIN, 18));\n\t\tGUIUtils.add(panel, headerLabel, layout, constraints, row++, col, \n\t\t\t1, 1, 1, 1, GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH,\n\t\t\tGUIUtils.MED_LARGE_INSETS);\n\t\treturn panel;\n\t}", "private JPanel createNorthPanel() \r\n\t{\r\n\t\tJPanel panel = new JPanel();\r\n\t\t\r\n\t\tJLabel title = new JLabel(\"Reservations\", SwingConstants.CENTER);\r\n\t\ttitle.setFont(new Font(\"serif\", Font.PLAIN, 29));\r\n\t\tpanel.add(title);\r\n\t\t\r\n\t\treturn panel;\r\n\t}", "public NeuronalNetwork(){\n // wie viele Schichten?\n // wie viele Neuronen pro Schicht?\n // welche Gewichte Je neuron je Schicht...\n }", "private GridPane inicializarPanelGrid() {\n GridPane gridPane = new GridPane();\n\n // Position the pane at the center of the screen, both vertically and horizontally\n gridPane.setAlignment(Pos.CENTER);\n\n // Set a padding of 20px on each side\n gridPane.setPadding(new Insets(40, 40, 40, 40));\n\n // Set the horizontal gap between columns\n gridPane.setHgap(10);\n\n // Set the vertical gap between rows\n gridPane.setVgap(10);\n\n // Add Column Constraints\n // columnOneConstraints will be applied to all the nodes placed in column one.\n ColumnConstraints columnOneConstraints = new ColumnConstraints(100, 100, Double.MAX_VALUE);\n columnOneConstraints.setHalignment(HPos.RIGHT);\n\n // columnTwoConstraints will be applied to all the nodes placed in column two.\n ColumnConstraints columnTwoConstrains = new ColumnConstraints(200, 200, Double.MAX_VALUE);\n columnTwoConstrains.setHgrow(Priority.ALWAYS);\n\n gridPane.getColumnConstraints().addAll(columnOneConstraints, columnTwoConstrains);\n\n return gridPane;\n }", "public MainWindow() {\n\t\tsuper(\"Petri Networks\");\n\n\t\tthis.createMenuBar();\n\n\t\tthis.createToolbar();\n\n\t\tthis.createOperationsPanel();\n\n\t\tthis.createNetworksPanel();\n\n\t}", "public void addNeuron() {\n neurons.add(new Neuron(function));\n }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }", "public JPanel buildPanel() {\n\t\tsetLayout(new BorderLayout());\n\t\tsetBackground(ClientConstants.LIGHT_YELLOW);\n\t\tJLabel graphPlotLabel = new JLabel(ClientConstants.GRAPH_PLOT, JLabel.CENTER);\n\t\tgraphPlotLabel.setFont(ClientConstants.TEXT_FONT);\n\t\tadd(graphPlotLabel, BorderLayout.NORTH);\n\t\tsetLayout(new BorderLayout());\n\t\taffectiveGraphPlot = new AffectivePlot();\n\t\tClientDataSingleton.getInstance().setAffectivePlot(affectiveGraphPlot);\n\t\taffectiveGraphPlot.setBackground(Color.WHITE);\n\t\tadd(affectiveGraphPlot);\n\t\treturn this;\n\t}", "private JPanel getNodePanel() {\r\n if (nodePanel == null) {\r\n nodePanel = new JPanel(new GridBagLayout());\r\n \r\n // Sub-panels\r\n int row = 0;\r\n nodePanel.add( \r\n getDeletePanel(),\r\n new GridBagConstraints(0, row, 1, 1, 1, 1,\r\n GridBagConstraints.WEST, GridBagConstraints.BOTH,\r\n new Insets(2, 2, 2, 2), 0, 0));\r\n nodePanel.add(\r\n getStatsPanel(),\r\n new GridBagConstraints(1, row++, 4, 1, 1, 1,\r\n GridBagConstraints.WEST, GridBagConstraints.BOTH,\r\n new Insets(2, 2, 2, 2), 0, 0));\r\n \r\n nodePanel.add(\r\n getDataPanel(),\r\n new GridBagConstraints(0, row++, 5, 1, 1, 1,\r\n GridBagConstraints.WEST, GridBagConstraints.BOTH,\r\n new Insets(2, 2, 2, 2), 0, 0));\r\n \r\n nodePanel.add(\r\n getNewChildPanel(),\r\n new GridBagConstraints(0, row++, 5, 1, 1, 1,\r\n GridBagConstraints.WEST, GridBagConstraints.BOTH,\r\n new Insets(2, 2, 2, 2), 0, 0));\r\n }\r\n return nodePanel;\r\n }", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public JPanel vytvorTlacitkaPanel() {\n newGameButton = new JButton(\"Zaloz hru\");\n newGameButton.setPreferredSize(new Dimension(140, 30));\n gameConnectButton = new JButton(\"Pripoj ke hre\");\n gameConnectButton.setPreferredSize(new Dimension(140, 30));\n\n tlacitkaPanel = new JPanel();\n tlacitkaPanel.add(newGameButton);\n tlacitkaPanel.add(gameConnectButton);\n tlacitkaPanel.setPreferredSize(new Dimension(140, 200));\n tlacitkaPanel.setVisible(true);\n\n return tlacitkaPanel;\n }", "protected BackpropNeuron createNeuron(int layer, int index)\n\t{\n\t\tif( layer == 0 )\n\t\t\treturn new InputBackpropNeuron(this, this.activationFunction, this.learningRate);\n\t\telse if(layer >= (this.getLayerCount() - 1))\n\t\t\treturn new OutputBackpropNeuron(this, this.activationFunction, this.learningRate);\n\t\telse\n\t\t\treturn new BackpropNeuron(this, this.activationFunction, this.learningRate);\n\t}", "private JPanel createReinforcePanel(Player p){\n\t\tthis.add( panels[1] );\n\t\tthis.panels[1].add( labels[ 3 ]);\n\t\t\n\t\t\n\t\tfor (Country c : this.game.getCurrentPlayer().getOwnedCountries()){\n\t\t\tcountrySelect[2].addItem(c.getName());\n\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//reinforce panel\n\t\tthis.panels[1].add( countrySelect[2] );\t\t\n\t\tthis.panels[1].add(labels[ 4 ]);\n\t\tthis.panels[1].add( numberOfArmies[1] );\n\t\tthis.panels[1].add( execute[1] );\n\t\tpanels[1].setVisible(false);\n\t\treturn panels[1];\n\t}", "private Panel buildPanelImg() {\n\t\tpanelImg = new Panel();\r\n\t\tpanelImg.setImmediate(false);\r\n\t\tpanelImg.setWidth(\"-1px\");\r\n\t\tpanelImg.setHeight(\"-1px\");\r\n\t\t\r\n\t\t// gridImg\r\n\t\tgridImg = new HorizontalLayout();\r\n\t\tgridImg.setImmediate(false);\r\n\t\tgridImg.setWidth(\"128px\");\r\n\t\tgridImg.setHeight(\"128px\");\r\n\t\tgridImg.setMargin(false);\r\n\t\tpanelImg.setContent(gridImg);\r\n\t\t\r\n\t\treturn panelImg;\r\n\t}", "private void addNetworkPanel(NetworkData data){\n networkPanePanelLength+=51;\n NetworkPanePanel.setPreferredSize(new Dimension(0,networkPanePanelLength));\n \n // Create the Network Obj Panel and add it\n NetworkPanePanel.add(new NetworkObjPanel(this, data)); \n \n // Redraw GUI with the new Panel\n NetworkPanePanel.revalidate();\n NetworkPanePanel.repaint(); \n \n //Lower the Scroll Bar to show the newly added container (BUG[6/25/20]: still always off by a single panel)\n networkScrollPaneBar.setValue(networkScrollPaneBar.getMaximum());\n \n // Make the Network Add Dialog Disappear\n NetworkAddDialog.setVisible(false);\n }", "public MondrianPanel()\n {\n setPreferredSize(new Dimension(size, size));\n }", "public PnlNoviUgovorOIzdavanjuNekretnine(PanelModeEnum mode) {\n initComponents();\n this.mode = mode;\n dekorisiPanel();\n }", "void createWires() {\n this.splitBoard(new Posn(0, 0), this.height, this.width);\n int counter = 0;\n for (int i = 0; i < this.width; i++) {\n for (int j = 0; j < this.height; j++) {\n nodes.set(counter, this.board.get(i).get(j));\n counter++;\n }\n }\n }", "private Node createVlanNode() {\n\t\tint infNumber = 0;\n\t\tNodeController nodeController = NodeController.getNodeController();\n\n\t\t// Calculate the vertical height multiplier\n\t\tif (nodeController.getHubNodes().size() == 0) {\n\t\t\tinfNumber =1;\n\t\t} else {\n\t\t\tfor (HubNode hubNode : nodeController.getHubNodes()) {\n\t\t\t\tif (hubNode.getVmInterfaceNames().size() == 0) {\n\t\t\t\t\tinfNumber += 1;\n\t\t\t\t} else {\n\t\t\t\t\tinfNumber += hubNode.getVmInterfaceNames().size();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint vlanHeight = ((infNumber * 100) + ((infNumber -1) * 50));\n\n\n\t\tImage routerImg = new Image(\"root/Images/ROUTER.png\"); //Selecting the Location of the router\n\t\t// each hub is represented by a blue rectangle\n\t\t//imageContainer.addAll(new Rectangle(64, 48, Color.CORNFLOWERBLUE), image); //new Rectangle(PatternConfig.nodeLength, PatternConfig.nodeWidth);\n\n\t\t//node.setFill(imagePattern);\n\n\t\tImageView imageView = new ImageView(routerImg);\n\t\tRectangle routerBox = new Rectangle(100 /* TODO: Make global constant*/, vlanHeight);\n\t\trouterBox.setFill(Color.FUCHSIA);\n\n\t\tStackPane nodeContainer = new StackPane();\n\t\tnodeContainer.getChildren().addAll(routerBox, imageView);\n\t\tnodeContainer.relocate(50, 50);\n\n\t\treturn nodeContainer;\n\t}", "private void createInnerNodePanel() {\n\t\tcreateLabel(getHierarchy().getName(), null, null);\n\t\taddGeneralInnerImages();\n\t}", "private void createUI() {\n\t\tthis.rootPane = new TetrisRootPane(true);\n\t\tthis.controller = new TetrisController(this, rootPane, getWorkingDirectory());\n\t\tthis.listener = new TetrisActionListener(controller, this, rootPane);\n\t\t\n\t\trootPane.setActionListener(listener);\n\t\trootPane.setGameComponents(controller.getGameComponent(), controller.getPreviewComponent());\n\t\trootPane.initialize();\n\t\t\n\t\tPanelBorder border = controller.getPlayer().getPanel().getPanelBorder(\"Tetris v\" + controller.getVersion());\n\t\tborder.setRoundedCorners(true);\n\t\tJPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));\n\t\tpanel.setBackground(getBackgroundColor(border.getLineColor()));\n\t\tpanel.setBorder(border);\n\t\tpanel.setPreferredSize(new Dimension(564, 551));\n\t\tpanel.add(rootPane);\n\t\trootPane.addPanelBorder(border, panel);\n\t\t\n\t\tthis.setContentPane(panel);\n\t\tthis.setSize(564, 550);\n\t\t\n\t\tcontroller.initializeUI();\n\t}", "private void registerNeurons(){\n\t\tneurons.add(new ObstaclesDetectionNeuron(this));\n\t\tneurons.add(new AreaLimitDetectionNeuron(this));\n\t\tneurons.add(new ButtonHandlerNeuron(this));\n\t\tneurons.add(new BeeperNeuron(this));\n\t}", "public Pymnt() {\n initComponents();\n init();\n ntf.setVisible(false);\n }", "public WoflanAnalysisUI(PetriNet net) {\n\t\tthis.net = net;\n\n\t\troot = new DefaultMutableTreeNode(\"Woflan\");\n\t\ttreeContainer = new JTree(root);\n\t\ttreeContainer.addTreeSelectionListener(this);\n\t\tcontainersPanel = new JPanel();\n\t\tnextButton = new JButton(\"Next\");\n\t\tfinishButton = new JButton(\"Finish\");\n\t\tbuttonsPanel = new JPanel();\n\n\t\tnetProperties = new DefaultMutableTreeNode(\"Net Properties\");\n\t\tnetDiagnosis = new DefaultMutableTreeNode(\"Net Diagnosis\");\n\t\ttry {\n\t\t\tjbInit();\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public View() {\n this.view = new ViewPanel();\n //this.view.setGraph(this.graph);\n initComponents();\n this.m_algoritmos.setEnabled(false);\n this.mi_maze.setEnabled(false);\n this.mi_salvarImagem.setEnabled(false);\n }", "private void populateWindow() {\n\t\tadd(net, BorderLayout.CENTER);\n\t\t//net.setPreferredSize(new Dimension(4 * Polje.defaultSize + 4 * 3, 5 * Polje.defaultSize + 5 * 3));\n\t\t//ipak radi samo ako se stavi za svaki kanvas prefferedSize(new Dimension(75,75))\n\t\t\n\t\t//trigger nek bude kad se dugme pritisne\n\t\trandomNumber.setText(\"\");\n\t\trandomNumber.setForeground(Color.WHITE);\n\t\trandomNumber.setFont(new Font(\"Arial\", Font.BOLD, 17)); //posto se slabo videlo\n\t\tstatusBar.setBackground(Color.GRAY);\n\t\tstatusBar.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\tstatusBar.add(randomNumber);\n\t\t//promene nek se desavaju u metodi dugmeta Igra\n\t\t\n\t\tcontrolPanel.setLayout(new GridLayout(5,1));\n\t\tPanel t1 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt1.add(new Label(\"Balans:\"));\n\t\tt1.add(balans);\n\t\tcontrolPanel.add(t1);\n\t\t\n\t\tPanel t2 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt2.add(new Label(\"Ulog:\"));\n\t\ttextfield.setText(\"100\");\n\t\ttextfield.addTextListener((ae) -> {\n\t\t\tupdateDobitak();\n\t\t});\n\t\tt2.add(textfield);\n\t\tcontrolPanel.add(t2);\n\t\t\n\t\tPanel t3 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt3.add(new Label(\"Kvota:\"));\n\t\tt3.add(kvota);\n\t\tcontrolPanel.add(t3);\n\t\t\n\t\tPanel t4 = new Panel(new FlowLayout(FlowLayout.LEFT));\n\t\tt4.add(new Label(\"Dobitak:\"));\n\t\tt4.add(dobitak);\n\t\tcontrolPanel.add(t4);\n\t\t\n\t\tPanel t5 = new Panel(new FlowLayout(FlowLayout.RIGHT));\n\t\tt5.add(igraj);\n\t\tcontrolPanel.add(t5);\n\t\t\n\t\tigraj.setEnabled(false);\n\t\t\n\t\tigraj.addActionListener((ae) -> {\n\t\t\t//TODO: heshset se uzima i gleda se da li je broj od generatora\n\t\t\t//u heshsetu\n\t\t\tHashSet<Integer> set = net.getHashSet();\n\t\t\tint t = Generator.generateNum(0, net.getRows() * net.getColumns());\n\t\t\trandomNumber.setText(Integer.toString(t));\n\t\t\tif(set.contains(t)) {\n\t\t\t\tstatusBar.setBackground(Color.GREEN);\n\t\t\t\trandomNumber.setBackground(Color.GREEN);\n\t\t\t\tupdateBalans(\"-\" + textfield.getText());\n\t\t\t\tupdateBalans(dobitak.getText());\n\t\t\t}else {\n\t\t\t\tstatusBar.setBackground(Color.RED);\n\t\t\t\trandomNumber.setBackground(Color.RED);\n\t\t\t\tupdateBalans(\"-\" + textfield.getText());\n\t\t\t}\n\t\t});\n\t\t\n\t\tcontrolPanel.setBackground(Color.LIGHT_GRAY);\n\t\tadd(controlPanel, BorderLayout.EAST);\n\t\tadd(statusBar, BorderLayout.SOUTH);\n\t}", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}", "public static JPanel newPanel() {\n\t\treturn null;\n\t}", "public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }", "private void addNode() {\n // Add GUI node\n int nodeCount = mGraph.getNodeCount();\n Node node = mGraph.addNode(String.valueOf(nodeCount));\n node.addAttribute(\"ui.label\", nodeCount);\n\n // Add Node_GUI node for algorithm to read from\n Node_GUI listNode = new Node_GUI();\n mNodeList.add(listNode);\n }", "public void addNeuron(){\n neurons.add(new Neuron(neurons.size(), layerIndex));\n for (Neuron n: upStream.getNeurons()){\n Connection con = new Connection(n, neurons.get(neurons.size()-1));\n n.addDownStream(con);\n neurons.get(neurons.size()-1).addUpStream(con);\n }\n for (Neuron n: downStream.neurons){\n Connection con = new Connection(neurons.get(neurons.size()-1), n);\n n.addUpStream(con);\n neurons.get(neurons.size()-1).addDownStream(con);\n }\n }", "private GridPane createPlayerPane(PlayerId pId) {\n\t\t\n\t\tGridPane playerPane = new GridPane();\n\t\t\n\t\tLabel id = new Label(pId.toString());\n\t\tid.setMaxWidth(Double.MAX_VALUE);\n\t\tid.setAlignment(Pos.CENTER);\n\t\t\n\t\t// player type setting\n\t\tGridPane buttons = new GridPane();\n\t\tToggleGroup group = new ToggleGroup();\n\t\t\n\t\tRadioButton human = new RadioButton(\"Human Player\");\n\t\thuman.setToggleGroup(group);\n\t\tbuttons.addRow(0, human);\n\t\t\n\t\tRadioButton simulated = new RadioButton(\"Simulated Player\");\n\t\tsimulated.setToggleGroup(group);\n\t\tbuttons.addRow(1, simulated);\n\t\t\n\t\tRadioButton remote = new RadioButton(\"Remote Player\");\n\t\tremote.setToggleGroup(group);\n\t\tbuttons.addRow(2, remote);\n\t\t\n\t\tgroup.selectedToggleProperty().addListener((a,b,c) -> {\n\t\t\tallButtons.set(pId.ordinal(), (RadioButton) c);\n\t\t});\n\t\t\n\t\t// player name setting\n\t\tLabel nameLabel = new Label(\"Name : \");\n\t\tTextField name = new TextField();\n\t\t\n\t\t// player special settings\n\t\tLabel iteration = new Label(\"Iterations : \");\n\t\titeration.visibleProperty().bind(simulated.selectedProperty());\n\t\t\n\t\tLabel ip = new Label(\"IP Address : \");\n\t\tip.visibleProperty().bind(remote.selectedProperty());\n\t\t\n\t\tTextField entry = new TextField();\n\t\tentry.visibleProperty().bind(remote.selectedProperty().or(simulated.selectedProperty()));\n\t\t\n\t\tplayerPane.add(id, 0, 0, 2, 1);\n\t\tplayerPane.add(buttons, 0, 1, 2, 1);\n\t\tplayerPane.addRow(2, nameLabel, name);\n\t\tStackPane it_ip = new StackPane(iteration, ip);\n\t\tplayerPane.addRow(3, it_ip, entry);\n\t\t\n\t\tplayerPane.setStyle(\"\"\n\t\t\t\t+ \"-fx-border-radius: 25;\"\n\t\t\t\t+ \"-fx-background-radius: 25;\"\n\t\t\t\t+ \"-fx-padding: 10;\"\n\t\t\t\t+ \"-fx-background-color:lightgray;\"\n\t\t\t\t+ \"-fx-border-width: 2;\"\n\t\t\t\t+ \" -fx-border-style: solid;\"\n\t\t\t\t+ \" -fx-border-color: gray;\");\n\t\t\n\t\ttexts.get(pId.ordinal() * 2).textProperty().bind(name.textProperty());\n\t\ttexts.get(pId.ordinal() * 2 + 1).textProperty().bind(entry.textProperty());\n\t\t\t\n\t\treturn playerPane;\n\t}", "private JPanel createUnclassifiedPanel() {\n\t\tJPanel unclassPanel = new JPanel();\n\t\tunclassPanel.setLayout(new BorderLayout());\n\t\tunclassPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\n\t\tJLabel unclassified = new JLabel(\"Unclassified\");\n\t\tunclassPanel.add(unclassified, BorderLayout.NORTH);\n\n\t\tunclassifiedCont = new JPanel();\n\t\tunclassifiedCont.setLayout(new FlowLayout());\n\t\tunclassPanel.add(createJScrollPane(unclassifiedCont), BorderLayout.CENTER);\n\n\t\treturn unclassPanel;\n\t}", "public AbstractREPLPanel() {\r\n\t\tsuper(new BorderLayout());\r\n\r\n\t\tloadArea();\r\n\t\tstyles = StyleSettings.getInstance(area);\r\n\t}", "private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "private void createNeuralNet() {\n\t\tMSimulationConfig simConfig;\n\t\tHashMap<Integer, MNeuron> neuronMap = new HashMap<Integer, MNeuron>();\n\t\tArrayList<MNeuron> neurons = new ArrayList<MNeuron>();\n\t\tArrayList<MSynapse> synapses = new ArrayList<MSynapse>();\n\n\t\tNeatGenome genome = (NeatGenome) geneticObject;\n\t\t/* Create neurons. */\n\t\tfor (NeatNode nn : genome.getNodes()) {\n\t\t\tint id = nn.getId();\n\t\t\tMNeuronParams params = nn.getParams();\n\t\t\tMNeuronState state =\n\t\t\t\t\tMFactory.createInitialRSNeuronState();\n\n\t\t\t/* Create a neuron. */\n\t\t\tMNeuron neuron = new MNeuron(params, state, id);\n\n\t\t\t/* Add it to temporary NID->Neuron map. */\n\t\t\tneuronMap.put(id, neuron);\n\n\t\t\t/* Add neuron to the list. */\n\t\t\tneurons.add(neuron);\n\t\t}\n\n\t\t/* Create synapses. */\n\t\tfor (GenomeEdge<NeatNode> g : genome.getGene()) {\n\t\t\t/* Get the synapse information. */\n\t\t\tNeatNode preNode = g.getIn();\n\t\t\tNeatNode postNode = g.getOut();\n\t\t\tdouble weight = g.getWeight();\n\t\t\tint delay = g.getDelay();\n\t\t\tInteger preNid = new Integer(preNode.getId());\n\t\t\tInteger postNid = new Integer(postNode.getId());\n\n\t\t\t/* Find the pre and post neurons. */\n\t\t\tMNeuron preNeuron = neuronMap.get(preNid);\n\t\t\tMNeuron postNeuron = neuronMap.get(postNid);\n\n\t\t\t/* Create the synapse. */\n\t\t\tMSynapse synapse = new MSynapse(preNeuron, postNeuron,\n\t\t\t\t\tweight, delay);\n\t\t\t/*\n\t\t\tAdd the synapse to the pre and post neuron synapse list\n\t\t\t */\n\t\t\tArrayList<MSynapse> postSynapses\n\t\t\t= preNeuron.getPostSynapses();\n\t\t\tArrayList<MSynapse> preSynapses\n\t\t\t= postNeuron.getPreSynapses();\n\n\t\t\tpostSynapses.add(synapse);\n\t\t\tpreSynapses.add(synapse);\n\n\t\t\tpreNeuron.setPostSynapses(postSynapses);\n\t\t\tpostNeuron.setPreSynapses(preSynapses);\n\n\t\t\t/* Add the synapse to the list. */\n\t\t\tsynapses.add(synapse);\n\t\t}\n\n\t\t/* Create the network. */\n\t\tthis.mnetwork = new MNetwork(neurons, synapses);\n\n\t\t/* Create and set the simulation configuration parameters. */\n\t\tsimConfig = new MSimulationConfig(20);\n\n\t\t/* Create the simulation instance with our network. */\n\t\tthis.msimulation = new MSimulation(this.mnetwork, simConfig);\n\t}", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "Neuron setName(String name);", "final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }", "public YonetimliNesne() {\n }", "private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }", "private void createNetwork(int inputNeuronsNum, int outputNeuronsNum,\n\t\tTransferFunctionType transferFunctionType) {\n\n\t\t// init neuron properties\n\t\tNeuronProperties neuronProperties = new NeuronProperties();\n//\t\tneuronProperties.setProperty(\"bias\", new Double(-Math\n//\t\t\t\t.abs(Math.random() - 0.5))); // Hebbian network cann not work\n\t\t// without bias\n\t\tneuronProperties.setProperty(\"transferFunction\", transferFunctionType);\n\t\tneuronProperties.setProperty(\"transferFunction.slope\", new Double(1));\n\n\t\t// set network type code\n\t\tthis.setNetworkType(NeuralNetworkType.UNSUPERVISED_HEBBIAN_NET);\n\n\t\t// createLayer input layer\n\t\tLayer inputLayer = LayerFactory.createLayer(inputNeuronsNum,\n\t\t\tneuronProperties);\n\t\tthis.addLayer(inputLayer);\n\n\t\t// createLayer output layer\n\t\tLayer outputLayer = LayerFactory.createLayer(outputNeuronsNum,\n\t\t\tneuronProperties);\n\t\tthis.addLayer(outputLayer);\n\n\t\t// createLayer full conectivity between input and output layer\n\t\tConnectionFactory.fullConnect(inputLayer, outputLayer);\n\n\t\t// set input and output cells for this network\n\t\tNeuralNetworkFactory.setDefaultIO(this);\n\n\t\t// set appropriate learning rule for this network\n\t\tthis.setLearningRule(new UnsupervisedHebbianLearning(this));\n\t//this.setLearningRule(new OjaLearning(this));\n\t}", "public void createCustomNode() {\n final PNode n = new PNode() {\n /**\n * \n */\n private static final long serialVersionUID = 1L;\n\n public void paint(final PPaintContext aPaintContext) {\n final double bx = getX();\n final double by = getY();\n final double rightBorder = bx + getWidth();\n final double bottomBorder = by + getHeight();\n\n final Line2D line = new Line2D.Double();\n final Graphics2D g2 = aPaintContext.getGraphics();\n\n g2.setStroke(new BasicStroke(0));\n g2.setPaint(getPaint());\n\n // draw vertical lines\n for (double x = bx; x < rightBorder; x += 5) {\n line.setLine(x, by, x, bottomBorder);\n g2.draw(line);\n }\n\n for (double y = by; y < bottomBorder; y += 5) {\n line.setLine(bx, y, rightBorder, y);\n g2.draw(line);\n }\n }\n };\n n.setBounds(0, 0, 100, 80);\n n.setPaint(Color.black);\n getCanvas().getLayer().addChild(n);\n }", "public ControlPanel() {\n\t\tpanelName = null;\n\t}", "public GUI(int n) {\n\t\tnum = n;\n\t\tarr = new int[n][n];\n\t\tif(n==5) {\n\t\t\tplay = new Level5(arr);\n\t\t\tscene = new Scene(root, 600, 600, Color.LIGHTBLUE);\n\t\t}\n\t\telse if(n==7) {\n\t\t\tplay = new Level7(arr);\n\t\t\tscene = new Scene(root, 746, 746, Color.rgb(180, 228, 204));\n\t\t}\n\t\tcurrentTiles = play.generateTiles();\n\t}", "public void createGraphPanel(List<String> states){\n\t\tgraph = new GraphPanel(states);\n\t\tgraph.update(updatePopulations(), 0);\n\t}", "Notentyp createNotentyp();", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public Simulation(PetriNet petrinet, Pane pane){\r\n\t\tnet = petrinet;\r\n\t\tlayout = pane;\r\n\t\tnumFirings = 1;\r\n\t}", "@Override\n public Setup build(int numberOfNodes) {\n Setup setup = new Setup();\n List connections = setup.getConnections();\n List immovableNodes = setup.getImmovableNodes();\n List typicalNodes = setup.getTypicalNodes();\n\n List<TypicalNode> nodes = new LinkedList<>();\n TypicalNode typicalNode;\n int id = 1;\n double n = (numberOfNodes - 1)/2.0;\n for (double i = -n; i < n + 1; i++, id++) {\n if (i == -n || i == n) {\n typicalNode = new ImmovableNode(i, 0, 0, id);\n immovableNodes.add(typicalNode);\n } else {\n typicalNode = new TypicalNode(i, 0, 0, id);\n typicalNodes.add(typicalNode);\n }\n nodes.add(typicalNode);\n }\n\n for (int i = 0; i < nodes.size() - 1; i++) {\n connections.add(new Connection(nodes.get(i), nodes.get(i+1), 0.07));\n }\n\n setup.setCentralNode(new TypicalNode(0, -1, 0, 0));\n\n return setup;\n }", "public TemporizadorPanel() {\n initComponents();\n }", "private JPanel getRentPane(){\r\n //Creates a new panel\r\n rentPane=new JPanel();\r\n rentPane.setLayout(null);\r\n //Sets the size for the panel\r\n rentPane.setBounds(10, 10, 485, 395);\r\n //Creates border for the panel\r\n rentPane.setBorder(BorderFactory.createTitledBorder(\"Hardware Device to Rent\"));\r\n\r\n // Label for rent description\r\n lableRent_Description = new JLabel(\"Description:\");\r\n lableRent_Description.setBounds(20, 30, 90, 30);\r\n rentPane.add(lableRent_Description);\r\n\r\n //Text field for rent description\r\n fieldRent_Description = new JTextField();\r\n fieldRent_Description.setBounds(110, 30, 355, 30);\r\n rentPane.add(fieldRent_Description);\r\n\r\n // Label for Manufacturer\r\n lableRent_Manufacturer = new JLabel(\"Manufacturer:\");\r\n lableRent_Manufacturer.setBounds(20, 65, 90, 30);\r\n rentPane.add(lableRent_Manufacturer);\r\n\r\n // Text field for Manufacturer\r\n fieldRent_Manufacturer = new JTextField();\r\n fieldRent_Manufacturer.setBounds(110, 65, 355, 30);\r\n rentPane.add(fieldRent_Manufacturer);\r\n\r\n // Label for daily rate for renting the hardware\r\n lableRent_dailyRate = new JLabel(\"Daily Rate:\");\r\n lableRent_dailyRate.setBounds(20, 100, 90, 30);\r\n rentPane.add(lableRent_dailyRate);\r\n\r\n // Text field for daily rate for renting the hardware\r\n fieldRent_dailyRate = new JTextField();\r\n fieldRent_dailyRate.setBounds(110, 100, 112, 30);\r\n rentPane.add(fieldRent_dailyRate);\r\n\r\n // Button that adds a new hardware to rent\r\n buttonAddToRent = new JButton(\"Add to Rent\");\r\n buttonAddToRent.setBounds(322, 100, 143, 30);\r\n buttonAddToRent.addActionListener(this);\r\n rentPane.add(buttonAddToRent);\r\n \r\n // Label for advanced payment for renting the hardware\r\n lableRent_Advance = new JLabel(\"Advanced:\");\r\n lableRent_Advance.setBounds(232, 135, 90, 30);\r\n rentPane.add(lableRent_Advance);\r\n\r\n // Text field for advanced payment for renting the hardware\r\n fieldRent_Advance = new JTextField();\r\n fieldRent_Advance.setBounds(322, 135, 143, 30);\r\n rentPane.add(fieldRent_Advance);\r\n \r\n // Label for Customer Name who rented the hardware\r\n lableRent_Customer = new JLabel(\"Customer:\");\r\n lableRent_Customer.setBounds(20,190, 90, 30);\r\n rentPane.add(lableRent_Customer);\r\n\r\n // Text field for Customer Field\r\n fieldRent_Customer = new JTextField();\r\n fieldRent_Customer.setBounds(110, 190, 355, 30);\r\n rentPane.add(fieldRent_Customer);\r\n \r\n // Label for hardware hire date \r\n lableRent_hireDate = new JLabel(\"Hire Date:\");\r\n lableRent_hireDate.setBounds(20, 225, 90, 30);\r\n rentPane.add(lableRent_hireDate);\r\n\r\n // Text field for hardware hire date\r\n fieldRent_hireDate= new JTextField();\r\n fieldRent_hireDate.setBounds(110, 225, 112, 30);\r\n rentPane.add(fieldRent_hireDate);\r\n\r\n // Label for Return Date\r\n lableRent_returnDate = new JLabel(\"Return Date:\");\r\n lableRent_returnDate.setBounds(232, 225, 90, 30);\r\n rentPane.add(lableRent_returnDate);\r\n\r\n // Text field for Return Date\r\n fieldRent_returnDate = new JTextField();\r\n fieldRent_returnDate.setBounds(322, 225, 143, 30);\r\n rentPane.add(fieldRent_returnDate);\r\n \r\n // Label for Number of Days\r\n lableRent_noOfDays = new JLabel(\"No. of Days:\");\r\n lableRent_noOfDays.setBounds(20, 260, 90, 30);\r\n rentPane.add(lableRent_noOfDays);\r\n\r\n // Text field for Number of Days\r\n fieldRent_noOfDays = new JTextField();\r\n fieldRent_noOfDays.setBounds(110, 260, 112, 30);\r\n rentPane.add(fieldRent_noOfDays);\r\n\r\n // Label for the Hardware Number\r\n lableRent_hardwareDeviceNo = new JLabel(\"Hardware No.:\");\r\n lableRent_hardwareDeviceNo.setBounds(232, 260, 90, 30);\r\n rentPane.add(lableRent_hardwareDeviceNo);\r\n\r\n // Text field for Hardware Number\r\n fieldRent_hardwareDeviceNo= new JTextField();\r\n fieldRent_hardwareDeviceNo.setBounds(322, 260, 143, 30);\r\n rentPane.add(fieldRent_hardwareDeviceNo);\r\n \r\n \r\n // Button to rent the Hardware device\r\n buttonRent = new JButton(\"Rent\");\r\n buttonRent.setBounds(110, 295, 112, 30);\r\n buttonRent.addActionListener(this);\r\n rentPane.add(buttonRent);\r\n\r\n // Button to clear all the rental fields\r\n buttonClear_Rent= new JButton(\"Clear\");\r\n buttonClear_Rent.setBounds(227, 295, 90, 30);\r\n buttonClear_Rent.addActionListener(this);\r\n rentPane.add(buttonClear_Rent);\r\n\r\n // Button to display all the hardware for rent\r\n buttonRent_Display= new JButton(\"Display All\");\r\n buttonRent_Display.setBounds(322, 295, 143, 30);\r\n buttonRent_Display.addActionListener(this);\r\n rentPane.add(buttonRent_Display);\r\n \r\n // Label for the Hardware Index Number\r\n lableRent_hardwareDeviceNo = new JLabel(\"Hardware No.:\");\r\n lableRent_hardwareDeviceNo.setBounds(20, 330, 90, 30);\r\n rentPane.add(lableRent_hardwareDeviceNo);\r\n\r\n // Text field for Hardware Index Number\r\n fieldRent_hardwareDeviceNoToReturn= new JTextField();\r\n fieldRent_hardwareDeviceNoToReturn.setBounds(111, 330, 130, 30);\r\n rentPane.add(fieldRent_hardwareDeviceNoToReturn);\r\n\r\n // Button for the Hardware device return \r\n buttonReturn_hardwareDevice = new JButton(\"Return\");\r\n buttonReturn_hardwareDevice.setBounds(322, 330, 143, 30);\r\n buttonReturn_hardwareDevice.addActionListener(this);\r\n rentPane.add(buttonReturn_hardwareDevice);\r\n \r\n return rentPane; \r\n }", "private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}", "private JPanel getTpjPanel() {\r\n\t\tif (tpjPanel == null) {\r\n\t\t\ttpjLabel = new JPanel();\r\n\t\t\ttpjLabel.setBackground(Color.GRAY);\r\n\t\t\ttpjLabel.setBounds(new Rectangle(0, 0, 788, 360));\r\n\t\t\ttpjPanel = new JPanel();\r\n\t\t\ttpjPanel.setLayout(null);\r\n\t\t\ttpjPanel.setBounds(new Rectangle(50, 78, 788, 360));\r\n\t\t\ttpjPanel.add(qdsj1jLabel, null);\r\n\t\t\ttpjPanel.add(qdsj2jLabel, null);\r\n\t\t\ttpjPanel.add(getJssjjLabel(), null);\r\n\t\t\ttpjPanel.add(getJssj2jLabel(), null);\r\n\t\t\ttpjPanel.add(tpjLabel, null);\r\n\r\n\t\t}\r\n\t\treturn tpjPanel;\r\n\t}", "private void setUpPanel() { \n this.setPreferredSize(new Dimension(myWidth, myHeight)); \n // Set this panel as a grid panel with 1 column, 6 rows. \n this.setLayout(new GridLayout(NUM_ROWS, 1)); \n // Create the next piece panel.\n this.myNextPiece = new TetrisNextPiecePanel();\n this.add(myNextPiece); \n // Add another panel which will show game instruction.\n final HowToPlayPanel instructionsPanel = new HowToPlayPanel();\n this.add(instructionsPanel);\n // add the last panel which will show the scores, level, game state etc.\n this.setUpLastPanel();\n }", "private JPanel getNumBuffersPanel() {\n\t\tif (numBuffersPanel == null) {\n\t\t\tradialBufferLabel = new JLabel();\n\t\t\tradialBufferLabel.setBounds(new java.awt.Rectangle(5, 3, 269, 19));\n\t\t\tradialBufferLabel.setText(PluginServices.getText(this,\n\t\t\t\t\t\"Numero_anillos_concentricos\"));\n\t\t\tnumBuffersPanel = new JPanel();\n\t\t\tnumBuffersPanel.setLayout(null);\n\t\t\tnumBuffersPanel.setBounds(new java.awt.Rectangle(10, 35, 448, 24));\n\t\t\tnumBuffersPanel.add(radialBufferLabel, null);\n\t\t\tnumBuffersPanel.add(getRadialBufferSpinner(), null);\n\t\t}\n\t\treturn numBuffersPanel;\n\t}", "private Node createDetails ()\n {\n\n List<String> prefix = Arrays.asList (charts,sessionlength,labels);\n\n FlowPane b = new FlowPane ();\n b.getStyleClass ().add (StyleClassNames.DETAIL);\n\n return b;\n\n }", "public Tablero(Reversi nuevoJuego) {\n\t\t\n\t\tjuego = nuevoJuego;\n\t\tescenario = new Stage();\n\t\tpanel = new BorderPane();\n\t\tgrilla = new GridPane();\n\t}", "public Node3() {\n initComponents();\n setSize(650, 550);\n }", "private JPanel addPannelName(){\n\t\tJPanel panNom = new JPanel();\n\t\tpanNom.setPreferredSize(new Dimension(175, 75));\n\t\tnameT = new JTextField();\n\t\tnameT.setPreferredSize(new Dimension(100, 25));\n\t\tpanNom.setBorder(BorderFactory.createTitledBorder(\"Channel name\"));\n\t\tname = new JLabel(\"Put a name :\");\n\t\tpanNom.add(name);\n\t\tpanNom.add(nameT);\n\t\treturn panNom;\n\t}", "@Override\r\n public void initialiseEmptyPanel()\r\n {\r\n gaugeName = Helpers.createLabel(\"Default\");\r\n \r\n gauge = new Radial();\r\n \r\n gauge.setPreferredSize(new Dimension(300,300));\r\n setTitle(\"Default\");\r\n add(gaugeName);\r\n add(gauge);\r\n \r\n }", "public void create(NetworkNode networkNode);", "public PnlMoneda() {\n initComponents();\n }", "private JPanel criarPainelSul() {\n\n JPanel pSul = new JPanel(new FlowLayout(FlowLayout.CENTER));\n\n this.btnUC3 = criarBtnUC3();\n this.btnUC4 = criarBtnUC4();\n this.btnUC5 = criarBtnUC5();\n\n disableBotoesUCs();\n pSul.add(this.btnUC3);\n pSul.add(this.btnUC4);\n pSul.add(this.btnUC5);\n\n pSul.setBorder(BorderFactory.createEmptyBorder(MARGEM_SUPERIOR,\n MARGEM_ESQUERDA,\n MARGEM_INFERIOR,\n MARGEM_DIREITA));\n\n return pSul;\n }", "private JPanel getSpodnyPanel() {\n\t\tif (spodnyPanel == null) {\n\t\t\tspodnyPanel = new JPanel();\n\t\t\tspodnyPanel.setLayout(null);\n\t\t\tspodnyPanel.setBounds(new Rectangle(13, 433, 521, 53));\n\t\t\tspodnyPanel.setVisible(false);\n\t\t\tspodnyPanel.add(getNavratButton(), null);\n\t\t\tspodnyPanel.add(getPomocButton2(), null);\n\t\t}\n\t\treturn spodnyPanel;\n\t}", "public JavaPanel() {\n\t\tsuper();\n\t}", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "private JPanel getAnalyzaPanel() {\n\t\tif (analyzaPanel == null) {\n\t\t\tucivoText = new JLabel();\n\t\t\tucivoText.setBounds(new Rectangle(128, 61, 299, 15));\n\t\t\tucivoText.setText(\"\");\n\t\t\tucivoText.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tanalyzaPanel = new JPanel();\n\t\t\tanalyzaPanel.setLayout(null);\n\t\t\tanalyzaPanel.setVisible(false);\n\t\t\tanalyzaPanel.setBounds(new Rectangle(12, 7, 523, 420));\n\t\t\tanalyzaPanel.add(getZahrajTlacitko(), null);\n\t\t\tanalyzaPanel.add(getAnalyzujTlacitko(), null);\n\t\t\tanalyzaPanel.add(getVstupText(), null);\n\t\t\tanalyzaPanel.add(getLogList(), null);\n\t\t\tanalyzaPanel.add(getPotvrdTlacitko(), null);\n\t\t\tanalyzaPanel.add(getAnalyzaScroll(), null);\n\t\t\tanalyzaPanel.add(suzvukText, null);\n\t\t\tanalyzaPanel.add(getDalejTlacitko(), null);\n\t\t\tanalyzaPanel.add(cvicenieText, null);\n\t\t\tanalyzaPanel.add(ucivoText, null);\n\t\t}\n\t\treturn analyzaPanel;\n\t}", "public static void createAndShowGUI(){\n\n //the main graph frame\n JFrame mainFrame = new JFrame(\"Graphit\");\n mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n mainFrame.setSize(CANVAS_WIDTH, CANVAS_HEIGHT);\n\n gc = new NGraphitController();\n\n p = new Point(0,0);\n\n // Viewport is to man through the graph.\n vp = new JViewport();\n vp.setSize(100, 100);\n vp.setView(gc);\n mainFrame.add(vp);\n\n mainFrame.pack();\n mainFrame.setLocationRelativeTo(null);\n mainFrame.setVisible(true);\n\n }", "public PanelJuego() {\r\n\t\tsetLayout(new GridLayout(3, 3, 20, 20));// Se crea una matriz 3x3 con un\r\n\t\t\t\t\t\t\t\t\t\t\t\t// espaciado tanto horizontal\r\n\t\t\t\t\t\t\t\t\t\t\t\t// como vertical.\r\n\t\tposicion = new JTextField[9];\r\n\t\tllenarPanel();\r\n\t\tsetBackground(Color.BLACK);// Se pinta el fondo de negro.\r\n\t\tsetVisible(true);\r\n\t}", "public Panneaux(){\n this.infoPane = new InfoPane();\n this.leftPanel = new LeftPanel();\n this.catalogue = leftPanel.getCatatalogue();\n this.panier = leftPanel.getPanier();\n }", "public CalculadoraVisualNetbeans() {\n initComponents();\n setLocationRelativeTo(this);\n }", "public VivariumPanel()\n {\n // Call super constructor\n super();\n\n // Initialize properties\n this.turtles = new HashSet<>();\n this.isDebug = false;\n }", "public nokno() {\n initComponents();\n }", "public void makeMainWindow() {\n\t\tfinal WindowReference windowReference = getDefaultWindowReference( \"MainWindow\", this );\n\t\t_mainWindowReference = windowReference;\t\t\n mainWindow = (XalWindow)windowReference.getWindow();\n\t\t\n\t\tfinal NodeRecordCompoundFilter recordFilter = new NodeRecordCompoundFilter();\n\t\tfinal NodeRecordModeFilter statusFilter = NodeRecordModeFilter.getStatusFilterInstance();\n\t\trecordFilter.addFilter( statusFilter );\n\t\tfinal NodeRecordModeFilter excludeFilter = NodeRecordModeFilter.getExclusionFilterInstance();\n\t\trecordFilter.addFilter( excludeFilter );\n\t\tfinal NodeRecordModeFilter modifiedFilter = NodeRecordModeFilter.getModificationFilterInstance();\n\t\trecordFilter.addFilter( modifiedFilter );\n\t\trecordFilter.addFilter( makeNodeNameFilterHandler() );\n\t\t\n\t\tsetupModeFilterRadioButtons( statusFilter, \"AnyStatus\", \"GoodStatus\", \"BadStatus\" );\n\t\tsetupModeFilterRadioButtons( excludeFilter, \"AnyInclusion\", \"Excluded\", \"Included\" );\n\t\tsetupModeFilterRadioButtons( modifiedFilter, \"AnyModification\", \"Modified\", \"Unmodified\" );\n\t\t\t\t\n\t\tfinal NodesTableModel nodesTableModel = new NodesTableModel( _optics.getNodeRecords(), recordFilter );\n\t\tfinal JTable nodesTable = getNodesTable();\n\t\tnodesTable.setModel( nodesTableModel );\n\t\tnodesTable.setSelectionMode( ListSelectionModel.MULTIPLE_INTERVAL_SELECTION );\n\t}", "public Controlador(){\n\t\tcuadricula = new Cuadricula();\n\t\tpanel = new Panel();\n\t\t\n\t\tnew JPanel();\n\t\t\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\tadd(cuadricula, BorderLayout.CENTER);\n\t\tadd(panel, BorderLayout.SOUTH);\n\t\t\n\t\tgetDensidad().addActionListener(new Oyente());\n\t\tgetBotonColor().addActionListener(new Oyente());\n\t\tgetBotonEmpezar().addActionListener(new Oyente());\n\t\tgetBotonFinalizar().addActionListener(new Oyente());\n\t\tgetBotonTodo().addActionListener(new Oyente());\n\t\tgetBotonPausar().addActionListener(new Oyente());\n\t\tgetBotonReanudar().addActionListener(new Oyente());\n\t\tgetBotonPausar().addActionListener(new Oyente());\n\t\tgetBotonPaso().addActionListener(new Oyente());\n\t}", "protected RBNBControl createRBNBControl(){\r\n\t\tlog.write(\"createRBNBControl() called from \" + this.getClass().getName());\r\n\t\treturn new RBNBControl();\r\n\t}", "public GUI(GUIController controler){\n\t\t//Create the fame with specific features\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedLookAndFeelException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.controler=controler;\n\t\tsetFrame(new JFrame(\"Network Topology\"));\n\t\t//getFrame().setPreferredSize(new Dimension(1200, 700));\n\t\tbuttons=new ArrayList<JButton>();\n\t\tcirclePanel=new CirclePanel();\n\t\tstratButtons= new ArrayList<JButton>();\n\t\t\n\t\tgetFrame().setResizable(true);\n\t\t}", "private GridPane createSeedPane() {\n\t\t\n\t\tGridPane seedPane = new GridPane();\n\t\t\n\t\tLabel nbSeed = new Label(\"Seed : \");\n\t\tTextField seedField = new TextField();\n\t\tseedPane.addRow(0, nbSeed, seedField);\n\t\tseed.textProperty().bind(seedField.textProperty());\n\t\t\n\t\tseedPane.setStyle(\"\"\n\t\t\t\t+ \"-fx-border-radius: 25;\"\n\t\t\t\t+ \"-fx-background-radius: 25;\"\n\t\t\t\t+ \"-fx-padding: 10;\"\n\t\t\t\t+ \"-fx-background-color:lightgray;\"\n\t\t\t\t+ \"-fx-border-width: 2;\"\n\t\t\t\t+ \" -fx-border-style: solid;\"\n\t\t\t\t+ \" -fx-border-color: gray;\");\n\t\t\n\t\treturn seedPane;\n\t}", "protected Panel createButtonPanel() {\n Panel panel = new Panel();\n panel.setLayout(new PaletteLayout(2, new Point(2,2), false));\n return panel;\n }", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "@Override\n\tprotected void createInteractiveControlPanel()\n\t{\n\t\tsuper.createInteractiveControlPanel();\n\t\t\n\t\t// create a tabbed pane that contains the telescope-window controls\n\t\tJTabbedPane tabbedPane = new JTabbedPane();\n\t\ttabbedPane.setBorder(GUIBitsAndBobs.getTitledBorder(\"Telescope window\"));\n\t\tinteractiveControlPanel.add(tabbedPane, \"span\");\n\t\t\n\t\t// refraction-parameter tab\n\t\tJPanel refractionParametersPanel = new JPanel();\n\t\trefractionParametersPanel.setLayout(new MigLayout(\"insets 0\"));\n\t\ttabbedPane.add(\"Refraction\", refractionParametersPanel);\n\t\t\n\t\taHatPanel = new LabelledVector3DPanel(\n\t\t\t\t// \"aHat = \"\n\t\t\t\t\"<html><b>a</b>&#x302; = </html>\"\n\t\t\t); // \"aHat\"\n\t\taHatPanel.setToolTipText(\"Direction of optical axis of telescopelets\");\n\t\taHatPanel.setVector3D(aHat);\n\t\trefractionParametersPanel.add(aHatPanel, \"span\");\n\n\t\tuHatPanel = new LabelledVector3DPanel(\n\t\t\t\t// \"uHat = \"\n\t\t\t\t\"<html><b>u</b>&#x302; = </html>\"\n\t\t\t);\t// \"uHat\"\n\t\tuHatPanel.setToolTipText(\n\t\t\t\t// \"First direction normal to aHat\"\n\t\t\t\t\"<html>First direction normal to <b>a</b>&#x302;</html>\"\n\t\t\t);\n\t\tuHatPanel.setVector3D(uHat);\n\t\trefractionParametersPanel.add(uHatPanel, \"span\");\n\n\t\tvHatPanel = new LabelledVector3DPanel(\n\t\t\t\t// \"vHat = \"\n\t\t\t\t\"<html><b>v</b>&#x302; = </html>\"\n\t\t\t);\t// \"vHat\"\n\t\tvHatPanel.setToolTipText(\n\t\t\t\t// \"Second direction normal to aHat\"\n\t\t\t\t\"<html>Second direction normal to <b>a</b>&#x302;</html>\"\n\t\t\t);\n\t\tvHatPanel.setVector3D(vHat);\n\t\trefractionParametersPanel.add(vHatPanel, \"span\");\n\n\t\tetaPanel = new LabelledVector2DPanel(\n\t\t\t\t\"<html>(<i>&eta;</i><sub><i>u</i></sub>, <i>&eta;</i><sub><i>v</i></sub>) = </html>\"\n\t\t\t);\n\t\tetaPanel.setToolTipText(\n\t\t\t\t\"<html><i>&eta;</i><sub><i>i</i></sub> = (-1) times focal-length ratio of telescopelets in <i>i</i> direction</html>\"\n\t\t\t);\n\t\tetaPanel.setVector2D(etaU, etaV);\n\t\trefractionParametersPanel.add(etaPanel, \"span\");\n\n\t\tdeltaPanel = new LabelledVector2DPanel(\n\t\t\t\t\"<html>(<i>&delta;</i><sub><i>u</i></sub>, <i>&delta;</i><sub><i>v</i></sub>) = </html>\"\n\t\t\t);\n\t\tdeltaPanel.setToolTipText(\n\t\t\t\t\"<html><i>&delta;</i><sub><i>i</i></sub> = (offset between the two lenslets' optical axes in <i>i</i> direction)/(<i>f</i><sub>1</sub>)\"\n\t\t\t);\n\t\tdeltaPanel.setVector2D(deltaU, deltaV);\n\t\trefractionParametersPanel.add(deltaPanel, \"span\");\n\n\t\t// aperture-parameter tab\n\t\tapertureParametersTabbedPane = new JTabbedPane();\n\t\ttabbedPane.add(\"Clear-aperture placement\", apertureParametersTabbedPane);\n\n\t\t// this is another tabbed pane, which decides on the algorithm that is used to set the aperture parameters, and sets any parameters\n\t\t\n\t\t// zero tab\n\t\tzeroParametersLabel = new JLabel(\"No additional parameters\");\n\t\tapertureParametersTabbedPane.add(AlphaChoice.ZERO.toString(), zeroParametersLabel);\n\n\t\t// manual tab\n\t\tmanualParametersPanel = new JPanel();\n\t\tmanualParametersPanel.setLayout(new MigLayout(\"insets 0\"));\n\t\tapertureParametersTabbedPane.add(AlphaChoice.MANUAL.toString(), manualParametersPanel);\n\t\t\n\t\tsigma1Panel = new LabelledVector2DPanel(\n\t\t\t\t\"<html>(<i>&sigma;</i><sub><i>1u</i></sub>, <i>&sigma;</i><sub><i>1v</i></sub>) = </html>\"\n\t\t\t);\n\t\tsigma1Panel.setToolTipText(\"sigma_1i = ...\");\n\t\tsigma1Panel.setVector2D(sigma1U, sigma1V);\n\t\tmanualParametersPanel.add(sigma1Panel, \"span\");\n\n\t\tsigma2Panel = new LabelledVector2DPanel(\n\t\t\t\t\"<html>(<i>&sigma;</i><sub><i>2u</i></sub>, <i>&sigma;</i><sub><i>2v</i></sub>) = </html>\"\n\t\t\t);\n\t\tsigma2Panel.setToolTipText(\"sigma_2i = ...\");\n\t\tsigma2Panel.setVector2D(sigma2U, sigma2V);\n\t\tmanualParametersPanel.add(sigma2Panel, \"span\");\n\t\t\n\t\talpha1Panel = new LabelledVector2DPanel(\n\t\t\t\t\"<html>(<i>&alpha;</i><sub><i>1u</i></sub>, <i>&alpha;</i><sub><i>1v</i></sub>) = </html>\"\n\t\t\t);\n\t\talpha1Panel.setToolTipText(\"alpha_1i = ...\");\n\t\talpha1Panel.setVector2D(alpha1U, alpha1V);\n\t\tmanualParametersPanel.add(alpha1Panel, \"span\");\n\n\t\talpha2Panel = new LabelledVector2DPanel(\n\t\t\t\t\"<html>(<i>&alpha;</i><sub><i>2u</i></sub>, <i>&alpha;</i><sub><i>2v</i></sub>) = </html>\"\n\t\t\t);\n\t\talpha2Panel.setToolTipText(\"alpha_2i = ...\");\n\t\talpha2Panel.setVector2D(alpha2U, alpha2V);\n\t\tmanualParametersPanel.add(alpha2Panel, \"span\");\n\n\t\t// optimised tab\n\t\toptimisedParametersPanel = new JPanel();\n\t\toptimisedParametersPanel.setLayout(new MigLayout(\"insets 0\"));\n\t\tapertureParametersTabbedPane.add(AlphaChoice.OPTIMISED.toString(), optimisedParametersPanel);\n\n\t\tpointAtFOVCentrePanel = new LabelledVector3DPanel(\"Point at FOV centre\");\n\t\tpointAtFOVCentrePanel.setVector3D(pointAtFOVCentre);\n\t\toptimisedParametersPanel.add(pointAtFOVCentrePanel, \"span\");\n\t\t\n//\t\tLabelledDoublePanel parallelityParameterPanel;\n//\t\tJComboBox alphaChoiceComboBox;\n\t\t\n\t\tswitch(alphaChoice)\n\t\t{\n\t\tcase ZERO:\n\t\t\tapertureParametersTabbedPane.setSelectedComponent(zeroParametersLabel);\n\t\t\tbreak;\n\t\tcase MANUAL:\n\t\t\tapertureParametersTabbedPane.setSelectedComponent(manualParametersPanel);\n\t\t\tbreak;\n\t\tcase OPTIMISED:\n\t\tdefault:\n\t\t\tapertureParametersTabbedPane.setSelectedComponent(optimisedParametersPanel);\n\t\t}\n\t\t\n\t\t// the camera\n\t\t\n\t\tJPanel cameraPanel = new JPanel();\n\t\tcameraPanel.setLayout(new MigLayout(\"insets 0\"));\n\t\tcameraPanel.setBorder(GUIBitsAndBobs.getTitledBorder(\"Camera\"));\n\t\tinteractiveControlPanel.add(cameraPanel, \"span\");\n\t\t\n\t\tapertureCentrePanel = new LabelledVector3DPanel(\"Aperture centre = \");\n\t\tapertureCentrePanel.setToolTipText(\"Aperture centre; framed sheet is centred at (0, 0, 10)\");\n\t\tapertureCentrePanel.setVector3D(apertureCentre);\n\t\tcameraPanel.add(apertureCentrePanel, \"span\");\n\t\t\n\t\tbrightnessFactorPanel = new LabelledDoublePanel(\"Brightness factor (i.e. exposure compensation) = \");\n\t\tbrightnessFactorPanel.setToolTipText(\"Factor by which light intensity appears brighter\");\n\t\tbrightnessFactorPanel.setNumber(brightnessFactor);\n\t\tcameraPanel.add(brightnessFactorPanel, \"span\");\n\t}", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}", "public Ventana() {\n initComponents();\n this.tipos.add(GD_C);\n this.tipos.add(GD_S);\n this.tipos.add(GND_C);\n this.tipos.add(GND_S);\n this.panel.setArea_text(text);\n\n }", "public void constructGameView(int num){\r\n\t\t\r\n\t\t//Create pawn panel\r\n\t\tgameView.getGamePiecesPanel().createPawnPanel(num);\r\n\t\t\r\n\t\t//Add action listeners to pawn buttons\r\n\t\tgameView.getGamePiecesPanel().setGamePieceButtonListener(new ActionListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif( pawnListener != null ){\r\n\r\n\t\t\t\t\tObject source = e.getSource();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(source instanceof PawnButton){\r\n\t\t\t\t\t\tint index = ((PawnButton) source).getIndex();\r\n\t\t\t\t\t\tVari vari = ((PawnButton) source).getColor(); \r\n\t\t\t\t\t\r\n\t\t\t\t\t\tpawnListener.pawnPressPerformed(new PawnButtonEvent(index, vari));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public DRInitialPlotPanel() {\n initComponents();\n }", "Stimulus createStimulus();", "public kinpanel() {\n initComponents();\n }", "private JPanel getPanelCrearCuenta() {\r\n\t\tif (PanelCrearCuenta == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints51 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints51.gridx = 1;\r\n\t\t\tgridBagConstraints51.insets = new Insets(20, 0, 0, 0);\r\n\t\t\tgridBagConstraints51.ipadx = 60;\r\n\t\t\tgridBagConstraints51.ipady = 20;\r\n\t\t\tgridBagConstraints51.gridy = 13;\r\n\t\t\tGridBagConstraints gridBagConstraints31 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints31.gridx = 1;\r\n\t\t\tgridBagConstraints31.insets = new Insets(20, 0, 0, 0);\r\n\t\t\tgridBagConstraints31.ipadx = 60;\r\n\t\t\tgridBagConstraints31.ipady = 20;\r\n\t\t\tgridBagConstraints31.gridy = 14;\r\n\t\t\tGridBagConstraints gridBagConstraints21 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints21.gridx = 1;\r\n\t\t\tgridBagConstraints21.ipadx = 60;\r\n\t\t\tgridBagConstraints21.insets = new Insets(35, 0, 0, 0);\r\n\t\t\tgridBagConstraints21.ipady = 20;\r\n\t\t\tgridBagConstraints21.gridy = 12;\r\n\t\t\tGridBagConstraints gridBagConstraints9 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints9.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints9.gridy = 9;\r\n\t\t\tgridBagConstraints9.weightx = 1.0;\r\n\t\t\tgridBagConstraints9.ipadx = 100;\r\n\t\t\tgridBagConstraints9.gridwidth = 2;\r\n\t\t\tgridBagConstraints9.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints7 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints7.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints7.gridy = 7;\r\n\t\t\tgridBagConstraints7.weightx = 1.0;\r\n\t\t\tgridBagConstraints7.ipadx = 100;\r\n\t\t\tgridBagConstraints7.gridwidth = 2;\r\n\t\t\tgridBagConstraints7.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints11 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints11.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints11.gridy = 11;\r\n\t\t\tgridBagConstraints11.weightx = 1.0;\r\n\t\t\tgridBagConstraints11.ipadx = 100;\r\n\t\t\tgridBagConstraints11.gridwidth = 2;\r\n\t\t\tgridBagConstraints11.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints10 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints10.gridx = 0;\r\n\t\t\tgridBagConstraints10.gridwidth = 2;\r\n\t\t\tgridBagConstraints10.gridy = 10;\r\n\t\t\tjLabelPais = new JLabel();\r\n\t\t\tjLabelPais.setText(PAIS);\r\n\t\t\tGridBagConstraints gridBagConstraints8 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints8.gridx = 0;\r\n\t\t\tgridBagConstraints8.gridwidth = 2;\r\n\t\t\tgridBagConstraints8.gridy = 8;\r\n\t\t\tjLabelConfirmacion = new JLabel();\r\n\t\t\tjLabelConfirmacion.setText(CONFIRMACION);\r\n\t\t\tGridBagConstraints gridBagConstraints6 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints6.gridx = 0;\r\n\t\t\tgridBagConstraints6.gridwidth = 2;\r\n\t\t\tgridBagConstraints6.gridy = 6;\r\n\t\t\tjLabelPassword = new JLabel();\r\n\t\t\tjLabelPassword.setText(PASSWORD);\r\n\t\t\tGridBagConstraints gridBagConstraints5 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints5.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints5.gridy = 5;\r\n\t\t\tgridBagConstraints5.weightx = 1.0;\r\n\t\t\tgridBagConstraints5.ipadx = 100;\r\n\t\t\tgridBagConstraints5.gridwidth = 2;\r\n\t\t\tgridBagConstraints5.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints4 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints4.gridx = 0;\r\n\t\t\tgridBagConstraints4.gridwidth = 2;\r\n\t\t\tgridBagConstraints4.gridy = 4;\r\n\t\t\tjLabelApellido = new JLabel();\r\n\t\t\tjLabelApellido.setText(APELLIDO);\r\n\t\t\tGridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints3.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints3.gridy = 3;\r\n\t\t\tgridBagConstraints3.weightx = 1.0;\r\n\t\t\tgridBagConstraints3.ipadx = 100;\r\n\t\t\tgridBagConstraints3.gridwidth = 2;\r\n\t\t\tgridBagConstraints3.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints2.gridx = 0;\r\n\t\t\tgridBagConstraints2.gridwidth = 2;\r\n\t\t\tgridBagConstraints2.gridy = 2;\r\n\t\t\tjLabelNombre = new JLabel();\r\n\t\t\tjLabelNombre.setText(NOMBRE);\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints1.gridy = 1;\r\n\t\t\tgridBagConstraints1.weightx = 1.0;\r\n\t\t\tgridBagConstraints1.ipadx = 100;\r\n\t\t\tgridBagConstraints1.gridwidth = 2;\r\n\t\t\tgridBagConstraints1.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\t\tgridBagConstraints.gridx = 0;\r\n\t\t\tgridBagConstraints.gridwidth = 2;\r\n\t\t\tgridBagConstraints.gridy = 0;\r\n\t\t\tjLabelNick = new JLabel();\r\n\t\t\tjLabelNick.setText(NICK);\r\n\t\t\tPanelCrearCuenta = new JPanel();\r\n\t\t\tPanelCrearCuenta.setLayout(new GridBagLayout());\r\n\t\t\tPanelCrearCuenta.add(jLabelNick, gridBagConstraints);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldNick(), gridBagConstraints1);\r\n\t\t\tPanelCrearCuenta.add(jLabelNombre, gridBagConstraints2);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldNombre(), gridBagConstraints3);\r\n\t\t\tPanelCrearCuenta.add(jLabelApellido, gridBagConstraints4);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldApellido(), gridBagConstraints5);\r\n\t\t\tPanelCrearCuenta.add(jLabelPassword, gridBagConstraints6);\r\n\t\t\tPanelCrearCuenta.add(jLabelConfirmacion, gridBagConstraints8);\r\n\t\t\tPanelCrearCuenta.add(jLabelPais, gridBagConstraints10);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldPais(), gridBagConstraints11);\r\n\t\t\tPanelCrearCuenta.add(getJPasswordFieldPWD(), gridBagConstraints7);\r\n\t\t\tPanelCrearCuenta.add(getJPasswordFieldConfirmacion(),\r\n\t\t\t\t\tgridBagConstraints9);\r\n\t\t\tPanelCrearCuenta.add(getJButtonCrear(), gridBagConstraints21);\r\n\t\t\tPanelCrearCuenta.add(getJButtonSalir(), gridBagConstraints31);\r\n\t\t\tPanelCrearCuenta.add(getJButtonCrearCuentaAdmin(),\r\n\t\t\t\t\tgridBagConstraints51);\r\n\t\t}\r\n\t\treturn PanelCrearCuenta;\r\n\t}", "public GraphPanel()\n\t{\n\t\t// instantiates graphArray to hold list of names to graph \n\t\tgraphArray = new ArrayList<NameRecord>();\n\t\t\n\t\t// sets the size of the panel\n\t\tsetPreferredSize(new Dimension(600,600));\n\t}" ]
[ "0.6117085", "0.59499365", "0.5913286", "0.5808381", "0.5802218", "0.57486624", "0.56774354", "0.56711227", "0.56624633", "0.56243044", "0.5613226", "0.56018525", "0.56002516", "0.55891323", "0.5526923", "0.54272926", "0.5419955", "0.5417645", "0.54029775", "0.53839874", "0.5380817", "0.5377769", "0.53714806", "0.53701156", "0.5368084", "0.53556657", "0.5347198", "0.5331766", "0.5321587", "0.5304156", "0.5302347", "0.5300557", "0.52906907", "0.52906907", "0.52640665", "0.52609134", "0.5231689", "0.52255976", "0.5213138", "0.5207728", "0.52062476", "0.5205156", "0.5202906", "0.5188216", "0.51848805", "0.51837605", "0.5178205", "0.51732564", "0.5160311", "0.5156547", "0.51507705", "0.5139267", "0.5139034", "0.51387006", "0.5134555", "0.5127477", "0.5124187", "0.5123476", "0.5118192", "0.51094335", "0.5109132", "0.5105498", "0.51046914", "0.50982624", "0.5093324", "0.5086034", "0.5078953", "0.5073017", "0.50697434", "0.5066659", "0.50626665", "0.50604904", "0.50592", "0.50527906", "0.50502294", "0.5040137", "0.5040017", "0.503292", "0.50307536", "0.5028201", "0.5026539", "0.50221467", "0.5021371", "0.5012494", "0.5011014", "0.50022006", "0.49945885", "0.4983239", "0.4981628", "0.49796334", "0.4973284", "0.49724105", "0.49692416", "0.49592412", "0.495222", "0.49504375", "0.49447277", "0.49440673", "0.49417892", "0.4932914" ]
0.6574453
0
Checks for using adaptation and enables or disables adaptation field accordingly.
private void checkUsingAdaptation() { if (tsUseAdaptation.isSelected()) { tfAdaptationTime.setEnabled(true); tfAdaptationParam.setEnabled(true); } else { tfAdaptationTime.setEnabled(false); tfAdaptationParam.setEnabled(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdjustMode(boolean adjust);", "private void actionChangedEstimatorSettingsManual ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(true);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(true);\r\n\t}", "private void enableFieldBasedOnUpdateMethod() {\r\n if (updateMethod.getSelectedItem() == CompetitiveGroup.UpdateMethod.ALVAREZ_SQUIRE) {\r\n tfSynpaseDecayPercent.setEnabled(true);\r\n } else if (updateMethod.getSelectedItem() == CompetitiveGroup.UpdateMethod.RUMM_ZIPSER) {\r\n tfSynpaseDecayPercent.setEnabled(false);\r\n }\r\n }", "private void actionChangedEstimatorSettingsAuto ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\t}", "public boolean adaptiveRateControlEnabled();", "private void actionChangedEstimatorON ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetFile().setEnabled(true);\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetManual().setEnabled(true);\r\n\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\r\n\t\t//---- Switch on if manual mode on\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetManual().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(true);\r\n\t\t}\r\n\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorAlgorithmType().setEnabled(true);\r\n\t}", "public boolean needEnableExposureAdjustment() {\n if (CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_ENABLE_COMPENSATION_OTHER_THAN_AUTO, true)) {\n return true;\n }\n return false;\n }", "boolean updateEnabling();", "boolean isTypeAdapterAware();", "private void enableFields(boolean enability){\n txtReference.setEditable(enability);\n txtItem.setEditable(enability);\n txtDescription.setEditable(enability);\n txtBrand.setEditable(enability);\n txtModel.setEditable(enability);\n txtQuantity.setEditable(enability);\n txtUnit.setEditable(enability);\n txtProductDate.setEnabled(enability);\n txtOrigPrice.setEditable(enability);\n txtAgent.setEditable(enability);\n txtCurrency.setEditable(enability);\n txtCurrency.setEnabled(enability);\n txtContactPerson.setEnabled(enability);\n \n }", "private void actionChangedEstimatorOFF ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetFile().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetManual().setEnabled(false);\r\n\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorAlgorithmType().setEnabled(false);\r\n\t}", "public void configure() {\n/* 754 */ if (isAutoRange()) {\n/* 755 */ autoAdjustRange();\n/* */ }\n/* */ }", "@Test\n public void dualModeDeviceNotConvertedAtRetrieval() throws Exception {\n mResources.setBoolean(R.bool.config_wifi_convert_apband_5ghz_to_any, true);\n\n WifiConfiguration persistedConfig = setupApConfig(\n \"ConfiguredAP\", /* SSID */\n \"randomKey\", /* preshared key */\n KeyMgmt.WPA_EAP, /* key management */\n WifiConfiguration.AP_BAND_ANY, /* AP band */\n 40, /* AP channel */\n false /* Hidden SSID */);\n\n writeApConfigFile(persistedConfig);\n WifiApConfigStore store = new WifiApConfigStore(\n mContext, mLooper.getLooper(), mBackupManagerProxy, mFrameworkFacade,\n mApConfigFile.getPath());\n verifyApConfig(persistedConfig, store.getApConfiguration());\n verify(mBackupManagerProxy, never()).notifyDataChanged();\n }", "private void checkEnabled() {\n }", "private void setModeUI(){\n\n if (this.inManualMode == true){ this.enableRadioButtons(); } // manual mode\n else if (this.inManualMode == false){ this.disableRadioButtons(); } // automatic mode\n }", "@Override\n\t\t\tprotected void updateEnabled() {\n\t\t\t}", "public void updateSwitches(){\r\n if(this.ar){\r\n this.augmentedReality.setChecked(true);\r\n }else{\r\n this.augmentedReality.setChecked(false);\r\n }\r\n\r\n if(this.easy){\r\n this.easyMode.setChecked(true);\r\n }else{\r\n this.easyMode.setChecked(false);\r\n }\r\n }", "public void enableAdaptiveRateControl(boolean enabled);", "private void handleDDCTypeChange() {\n\t\tString ddc = cbDDC.getText();\n\n\t\tif (optionC[1].equals(ddc)) {\n\t\t\ttxtDDC_minPerLR.setEnabled(true);\n\t\t\ttxtDDC_chargeArticle.setEnabled(true);\n\t\t} else {\n\t\t\ttxtDDC_minPerLR.setText(EMPTYSTRING);\n\t\t\ttxtDDC_minPerLR.setEnabled(false);\n\n\t\t\tif (optionC[0].equals(ddc)) {\n\t\t\t\ttxtDDC_chargeArticle.setEnabled(true);\n\t\t\t} else {\n\t\t\t\ttxtDDC_chargeArticle.setEnabled(false);\n\t\t\t\ttxtDDC_chargeArticle.setText(EMPTYSTRING);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void dualModeDeviceAnyNotConverted() throws Exception {\n mResources.setBoolean(R.bool.config_wifi_convert_apband_5ghz_to_any, true);\n\n /* Initialize WifiApConfigStore with default configuration. */\n WifiApConfigStore store = new WifiApConfigStore(\n mContext, mLooper.getLooper(), mBackupManagerProxy, mFrameworkFacade,\n mApConfigFile.getPath());\n verifyDefaultApConfig(store.getApConfiguration(), TEST_DEFAULT_AP_SSID);\n\n /* Update with a valid configuration. */\n WifiConfiguration expectedConfig = setupApConfig(\n \"ConfiguredAP\", /* SSID */\n \"randomKey\", /* preshared key */\n KeyMgmt.WPA_EAP, /* key management */\n WifiConfiguration.AP_BAND_ANY, /* AP band */\n 40, /* AP channel */\n false /* Hidden SSID */);\n store.setApConfiguration(expectedConfig);\n verify(mBackupManagerProxy).notifyDataChanged();\n verifyApConfig(expectedConfig, store.getApConfiguration());\n }", "private void enableDisable() throws Exception\n\t{\n\t\tfor (String param : parameters.keySet())\n\t\t{\n\t\t\tif (piseMarshaller.getPrecond(param) != null)\n\t\t\t{\n\t\t\t\tElement element = parameters.get(param); \n\t\t\t\tif (processPrecond(param) == true)\n\t\t\t\t{\n\t\t\t\t\telement.enabled = true;\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\telement.enabled = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "boolean isSetValueRatio();", "public void swapEquivalVisivility() {\n EquSelectors.setVisibility(Equival.isChecked()? View.VISIBLE : View.GONE);\n if(EquSelectors.getVisibility() == View.GONE){\n EquWord.setChecked(false);\n EquTran.setChecked(false);\n }\n\n WordText.setHint(getText(Equival.isChecked()? R.string.hint_for_equ_word : R.string.hint_for_word));\n TranText.setHint(getText(Equival.isChecked()? R.string.hint_for_equ_tran : R.string.hint_for_tran));\n InfoText.setHint(getText(Equival.isChecked()? R.string.hint_for_equ_info : R.string.hint_for_info));\n syncronizeForEquivalence();\n }", "@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}", "@Override\n public boolean isConfigured()\n {\n return (config != null) && config.isValid() &&!config.isDisabled();\n }", "private void enableFitTypeFields(Name fitType) {\r\n if (fitType.equals(Destination.TYPE_FIT) ||\r\n fitType.equals(Destination.TYPE_FITB)) {\r\n // disable all fields\r\n setFitTypesEnabled(false, false, false, false, false);\r\n }\r\n // just top enabled\r\n else if (fitType.equals(Destination.TYPE_FITH) ||\r\n fitType.equals(Destination.TYPE_FITBH)) {\r\n setFitTypesEnabled(true, false, false, false, false);\r\n }\r\n // Just left enabled\r\n else if (fitType.equals(Destination.TYPE_FITV) ||\r\n fitType.equals(Destination.TYPE_FITBV)) {\r\n setFitTypesEnabled(false, false, true, false, false);\r\n }\r\n // special xyz case\r\n else if (fitType.equals(Destination.TYPE_XYZ)) {\r\n setFitTypesEnabled(true, false, true, false, true);\r\n }\r\n // special FitR\r\n else if (fitType.equals(Destination.TYPE_FITR)) {\r\n setFitTypesEnabled(true, true, true, true, false);\r\n }\r\n }", "private void updateDemoModeEnabled() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_demo_allowed\", 0) != 0) {\n z = true;\n }\n this.mEnabledSwitch.setChecked(z);\n this.mOnSwitch.setEnabled(z);\n }", "boolean isAdaptive();", "private void enablePreferredAndMinimumIfComponentAvaible() {\r\n\t\tboolean itemInRow = tableLayoutUtil.containesItemInRow(cellForEditing.getCellY());\r\n\t\tJMenuItem temp;\r\n\t\tfor (int i = 0; i < changeSizeMeasurementPopupRow.getComponentCount(); i++) {\n\t\t\tComponent c = changeSizeMeasurementPopupRow.getComponent(i);\n\t\t\tif (c instanceof JMenuItem) {\n\t\t\t\ttemp = (JMenuItem) changeSizeMeasurementPopupRow.getComponent(i);\r\n\t\t\t\tif (itemInRow) {\r\n\t\t\t\t\tif (temp.getActionCommand().equals(\"PREFERRED\") || temp.getActionCommand().equals(\"MINIMUM\")) {\r\n\t\t\t\t\t\ttemp.setEnabled(true);\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t} else if (temp.getActionCommand().equals(\"PREFERRED\") || temp.getActionCommand().equals(\"MINIMUM\")) {\r\n\t\t\t\t\ttemp.setEnabled(false);\r\n\t\t\t\t}\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void setAdaptTo(String adaptTo) {\n this.adaptTo = adaptTo;\n }", "public void editEnabled(boolean enabled){\n }", "private void actionSampleDetectionModeChanged ()\r\n\t{\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeAuto().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(false);\r\n\t\t}\r\n\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeManual().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(true);\r\n\t\t}\r\n\t}", "private boolean isSmartModeEnabled()\n {\n try\n {\n return Integer.parseInt((String) _smartModeComboBox.getSelectedItem()) > 0;\n }\n catch (NumberFormatException neverOccurs)\n {\n return false;\n }\n }", "public void setEnabled(boolean aFlag) { _enabled = aFlag; }", "public void setValueIsAdjusting(boolean b) {\r\n setRangeProperties(getValue(), getExtent(), min, max, b);\r\n }", "private void updateDemoModeOn() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_tuner_demo_on\", 0) != 0) {\n z = true;\n }\n this.mOnSwitch.setChecked(z);\n }", "final void habilitarcampos(boolean valor){\n TXT_CodCliente.setEnabled(valor);\n TXT_Aparelho.setEnabled(valor);\n TXT_Valor.setEnabled(valor);\n TXT_Informacao.setEnabled(valor); \n TXT_CodServico.setEnabled(valor); \n TXT_Clientes.setEnabled(valor); \n TXT_Serial.setEnabled(valor);\n TXT_Data.setEnabled(valor);\n}", "public boolean getValueIsAdjusting() {\r\n return isAdjusting;\r\n }", "private void enableDisable() {\n fixDisplayName.setEnabled(automaticFix.isSelected());\n }", "public void setAvailable(boolean x){\n availabile = x;\n }", "public boolean setEnabled(boolean enable);", "private static void customSettingWhenDisabled(){\n if (format == null) setFormat(false);\n if (!format.equals(\"\")) tick(false); // If the setting is not empty, then use our custom format\n }", "private void validateToEditTransportAdaptorConfiguration(int tenantId,\n String transportAdaptorName,\n AxisConfiguration axisConfiguration,\n OMElement omElement)\n throws InputTransportAdaptorManagerConfigurationException {\n InputTransportAdaptorConfiguration transportAdaptorConfiguration = InputTransportAdaptorConfigurationHelper.fromOM(omElement);\n if (InputTransportAdaptorConfigurationHelper.validateTransportAdaptorConfiguration(transportAdaptorConfiguration)) {\n String pathInFileSystem = getFilePath(tenantId, transportAdaptorName);\n undeployActiveInputTransportAdaptorConfiguration(transportAdaptorName, axisConfiguration);\n InputTransportAdaptorConfigurationFilesystemInvoker.saveConfigurationToFileSystem(omElement, transportAdaptorName, pathInFileSystem, axisConfiguration);\n } else {\n log.error(\"There is no Input Transport Adaptor type called \" + transportAdaptorConfiguration.getType() + \" is available \");\n throw new InputTransportAdaptorManagerConfigurationException(\"There is no Input Transport Adaptor type called \" + transportAdaptorConfiguration.getType() + \" is available \");\n }\n }", "@Override\n\tpublic void fillInput(AdjustableRateMortgage mortgage) {\n\t LinearLayout specific_mortgage_input = (LinearLayout) frgActivity.findViewById(R.id.specific_mortgage_type_view);\n specific_mortgage_input.removeAllViews();\n LayoutInflater inflater = (LayoutInflater) frgActivity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View v = inflater.inflate(R.layout.arm_layout, null);\n specific_mortgage_input.addView(v);\n\n // make the section visible\n\t setSectionVisibility(R.id.arm_section_input_text, \n\t \t\tR.id.arm_section_input, \n\t \t\t((ResultsOne) frgActivity).getAdjustmentStrategyVisibility(), \n\t \t\tR.string.arm_section_input_visible, \n\t \t\tR.string.arm_section_input_invisible);\n\n\t // Set previously chosen values\n\t\tEditText adjustment_period = (EditText) frgActivity.findViewById(R.id.adjustment_period);\n\t\tadjustment_period.setText(String.valueOf(mortgage.getAdjustmentPeriod()), TextView.BufferType.EDITABLE);\n\n\t\tEditText months_between_adjustments = (EditText) frgActivity.findViewById(R.id.months_between_adjustments);\n\t\tmonths_between_adjustments.setText(String.valueOf(mortgage.getMonthsBetweenAdjustments()), TextView.BufferType.EDITABLE);\n\n\t\tEditText max_single_rate_adjustment = (EditText) frgActivity.findViewById(R.id.max_single_rate_adjustment);\n\t\tmax_single_rate_adjustment.setText(mortgage.getMaxSingleRateAdjustment().toString(), TextView.BufferType.EDITABLE);\n\n\t\tEditText total_interest_cap = (EditText) frgActivity.findViewById(R.id.total_interest_cap);\n\t\ttotal_interest_cap.setText(mortgage.getInterestRateCap().toString(), TextView.BufferType.EDITABLE);\n\n\t\tint arm_type = mortgage.getARMType();\n\t\tLog.d(\"arm_type\", String.valueOf(arm_type));\n\n\t\tswitch(arm_type) {\n\t\t case 71:\n\t\t \tsetRadioButton(R.id.arm71);\n\t\t \tdisableEditText();\n\t\t\t\tLog.d(\"arm_type 71\", String.valueOf(arm_type));\t\t \t\n\t\t \tbreak;\n\t\t case 51:\n\t\t \tsetRadioButton(R.id.arm51);\n\t\t \tdisableEditText();\n\t\t\t\tLog.d(\"arm_type 51\", String.valueOf(arm_type));\t\t \t\n\t\t \tbreak;\n\t\t case 31:\n\t\t \tsetRadioButton(R.id.arm31);\n\t\t \tdisableEditText();\n\t\t\t\tLog.d(\"arm_type 31\", String.valueOf(arm_type));\t\t \t\n\t\t \tbreak;\n\t\t case 0:\n\t\t \tsetRadioButton(R.id.arm_other);\n\t\t\t\tLog.d(\"arm_type 0\", String.valueOf(arm_type));\n\t\t \tbreak;\n\t\t default:\n\t\t \tsetRadioButton(R.id.arm71);\n\t\t \tdisableEditText();\n\t\t\t\tLog.d(\"arm_type default\", String.valueOf(arm_type));\t\t \t\n\t\t \tbreak;\n\t\t}\n\n\t\tcommonInput(mortgage);\n\t}", "@Override\n public boolean isProgrammable() {\n return false;\n }", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "protected boolean isDimmingEnable() {\n return BlurDialogEngine.DEFAULT_DIMMING_POLICY;\n }", "public boolean isValidConfiguration(Assignment assignment) throws OperationNotSupportedException, FMReasoningException {\n\t\tthrow new OperationNotSupportedException(\"Reasoning Operation Not Supported\");\n\t}", "public Boolean apply(WebDriver driver) {\n\t\t\t\tString enabled = driver.findElement(this.locator).getAttribute(\n\t\t\t\t\t\tthis.attr);\n\t\t\t\tif (enabled.equals(this.initialValue))\n\t\t\t\t\treturn false;\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "private void registerEditChange(){\n this.txtAmount.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n //Checks if the button should be enabled\n checkIfEnable();\n }\n });\n }", "private void handleIECTypeChange() {\n\t\tString iec = cbIEC.getText();\n\t\tif (optionB[3].equals(iec)) {\n\t\t\ttxtIEC_article.setEnabled(false);\n\t\t\ttxtIEC_article.setText(EMPTYSTRING);\n\t\t} else {\n\t\t\ttxtIEC_article.setEnabled(true);\n\t\t}\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:39:04.270 -0400\", hash_original_method = \"2F38A905A5E86814C35EEB65CB438D5E\", hash_generated_method = \"0D0B5F174678A92F10985B712A6C7215\")\n \n public static boolean setScanModeCommand(boolean setActive){\n \tdouble taintDouble = 0;\n \ttaintDouble += ((setActive) ? 1 : 0);\n \n \treturn ((taintDouble) == 1);\n }", "private boolean correctValues() {\n try {\n //TODO: check COM ports\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }", "@Override\r\n\tpublic void addListener() {\n\t\tsuper.addListener();\r\n\t\tswitchAntiLost.setOnCheckedChangeListener(new OnCheckedChangeListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\r\n\t\t\t\t// 每次设置成功后设置的数据会保存在数据库中,用于界面展示。\r\n\t\t\t\tdialog.show();\r\n\t\t\t\t// 设置防丢, 传参防丢类型 LOSE_MODE_NO_ANTI 不防丢 , LOSE_MODE_NEAR_ANTI 近距离防丢 ,LOSE_MODE_MID_ANTI 中距离防丢 ,LOSE_MODE_FAR_ANTI 远距离防丢\r\n\t\t\t\tProtocolUtils.getInstance().setAntilost(arg1?Constants.LOSE_MODE_MID_ANTI:Constants.LOSE_MODE_NO_ANTI);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "void setManualCheck (boolean value);", "public void setDecalsEnabled(final boolean dEnabled) { decalsEnabled = dEnabled; }", "public void genRepCheck(){\r\n if (tx_cb.getValue() == null || paModules.getValue() == null || mainExciterSW.getValue() == null\r\n || filter.getValue() == null || switchPatch.getValue() == null || testLoad.getValue() == null\r\n || mainAntFeed.getValue() == null)\r\n genRep.setDisable(true);\r\n else\r\n genRep.setDisable(false);\r\n }", "private void infereProteinsChanged() {\n boolean enabled = checkInferProteins.isSelected();\n\n filtersProteinInference.setEnabled(enabled);\n comboAvailableBaseScores.setEnabled(enabled);\n filtersProteinLevel.setEnabled(enabled);\n\n Enumeration<AbstractButton> btns = radioGrpInferenceMethod.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n\n btns = radioGrpProteinScoring.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n\n btns = radioGrpPSMsForScoring.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n }", "@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\n\t\t\t\t\t\t\t\t\t\t boolean isChecked) {\n\t\t\t\tif(isChecked){\n\t\t\t\t\t//editText1.setText(buttonView.getText()+\"选中\");\n\t\t\t\t\tavcom.BwSelfAdaptSwitch = 1;\n\t\t\t\t}else{\n\t\t\t\t\t//editText1.setText(buttonView.getText()+\"取消选中\");\n\t\t\t\t\tavcom.BwSelfAdaptSwitch = 0;\n\t\t\t\t}\n\t\t\t}", "public void enableSmartImprovement() { this.exec = this.exec.withProperty(\"sm.improve\", true); }", "public void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled);", "@Override\n protected boolean isAppropriate() {\n return true; // always show\n }", "private void configureFields() {\n\t\ttargetDiastolic.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(LOWER_DIASTOLIC_LIMIT,UPPER_DIASTOLIC_LIMIT));\n\t\ttargetDiastolic.setEditable(true);\n\t\ttargetSystolic.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(LOWER_SYSTOLIC_LIMIT,UPPER_SYSTOLIC_LIMIT));\n\t\ttargetSystolic.setEditable(true);\n\t\tdiastolicAlarm.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(DIASTOLIC_ALARM_LOWER, DIASTOLIC_ALARM_HIGHER));\n\t\tdiastolicAlarm.setEditable(true);\n\t\tsystolicAlarm.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(SYSTOLIC_ALARM_LOWER, SYSTOLIC_ALARM_HIGHER));\n\t\tsystolicAlarm.setEditable(true);\n\t\tSpinnerValueFactory.DoubleSpinnerValueFactory rateFactory=new SpinnerValueFactory.DoubleSpinnerValueFactory(MIN_FLOW_RATE, MAX_FLOW_RATE);\n\t\trateFactory.setAmountToStepBy(0.1);\n\t\tinfusionRate.setValueFactory(rateFactory);\n\t\t\n\t\t/*\n\t\t * We use bindBidirectional here because systolicProperty and diastolicProperty and numbers,\n\t\t * but the text field is a String, and bindBidrectional allows us to specify a converter\n\t\t * to handle the change between the two.\n\t\t */\n\t\tcurrentSystolic.textProperty().bindBidirectional(systolicProperty, new NumberStringConverter());\n\t\tcurrentDiastolic.textProperty().bindBidirectional(diastolicProperty, new NumberStringConverter());\n\t\t\n\t\tcurrentSystolic.setEditable(false);\n\t\tcurrentDiastolic.setEditable(false);\n\t\t\n\n\t\toperatingMode.selectedToggleProperty().addListener(new ChangeListener<Toggle>() {\n\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Toggle> ov, Toggle oldToggle, Toggle newToggle) {\n\t\t\t\tif(newToggle.equals(openRadio)) {\n\t\t\t\t\tbpVBox.setVisible(false);\n\t\t\t\t\tbpVBox.setManaged(false);\n\t\t\t\t} else {\n\t\t\t\t\tbpVBox.setManaged(true);\n\t\t\t\t\tbpVBox.setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t}", "protected void updateEnabled() {\n\t\tFieldGroup control = getUIControl();\n\t\tif (control != null) {\n\t\t\tCollection<? extends IRidget> ridgets = getRidgets();\n\t\t\tfor (IRidget ridget : ridgets) {\n\t\t\t\tridget.setEnabled(isEnabled());\n\t\t\t}\n\t\t\tcontrol.setEnabled(isEnabled());\n\t\t}\n\t}", "public boolean isAutomaticAccept() {\n return getBooleanProperty(\"IsAutomaticAccept\");\n }", "void setValidSettings(boolean valid);", "public boolean hasAdapter(Object adaptable, String adapterTypeName);", "private void validateBleSupport() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Snackbar.make(txtStatus, \"No LE Support.\", Snackbar.LENGTH_LONG).show();\n } else {\n\n /*\n * We need to enforce that Bluetooth is first enabled, and take the\n * user to settings to enable it if they have not done so.\n */\n BluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n .getDefaultAdapter();\n\n if (mBluetoothAdapter == null || !mBluetoothAdapter.isEnabled()) {\n Log.d(TAG, \"onResume: Bluetooth is disabled\");\n //Bluetooth is disabled, request enabling it\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivity(enableBtIntent);\n }\n }\n\n }", "@Override\n public void setConfigXML(Collection<Element> configXML, boolean visAvailable) {\n }", "public void enableSelfView(boolean val);", "public ParametersBuilder setAllowAudioMixedSampleRateAdaptiveness(\n boolean allowAudioMixedSampleRateAdaptiveness) {\n this.allowAudioMixedSampleRateAdaptiveness = allowAudioMixedSampleRateAdaptiveness;\n return this;\n }", "public void setForua(boolean newValue);", "public boolean applyDialog() {\n\n\t\tif (!editorsAreValid())\n\t\t\treturn false;\n\t\t\t\n\t\ttry {\n\t\t\tconnection.callRPC(GDL_CONFIGURE_PROC_,\n\t\t\t\tnew Object[]{editedItem, getResultStructures(), connection.retrieveSession()},\n\t\t\t\t30000);\n\t\t} catch (Exception e) {\n\t\t\tTrace.exception(e);\n\t\t\treturn false;\n\t\t}\n\t\tchangedAttributes.clear();\n\t\treturn true;\n\t}", "private boolean setConfiguration(){\r\n\t\tif(!checkInputFields()) return false;\r\n\t\t\r\n\t\tConfiguration conf = m_Categorizer.Configuration();\r\n\t\tconf.setMCSScore(Float.parseFloat(m_MCSTf.getText()));\r\n\t\tconf.setRelevanceWeight(Float.parseFloat(m_RelScoreTf.getText()));\r\n\t\tconf.setCoherenceWeight(Float.parseFloat(m_CohScoreTf.getText()));\r\n\t\tconf.setKeywordsWeight(Float.parseFloat(m_KeyTf.getText()));\r\n\t\tconf.setCategoryConfidenceWeight(Float.parseFloat(m_CatConfTf.getText()));\r\n\t\tconf.setRepeatedConceptWeight(Float.parseFloat(m_RepeatTf.getText()));\r\n\t\tconf.setMaxOutputCategories(Integer.parseInt(m_MaxCatsTf.getText()));\r\n\t\tconf.setMinOutputCategories(Integer.parseInt(m_MinCatsTf.getText()));\r\n\t\tconf.setMinScore(Float.parseFloat(m_MinCatScoreTf.getText()));\r\n\t\treturn true;\r\n\t}", "public void enableConversion(Boolean f) {\n enabled = f;\n }", "private void setEncryptionRequested(boolean encrypt) {\n }", "static final SettingsModelBoolean createAdjustDegreeOptionModel() {\n return new SettingsModelBoolean(\"adjust_degree\", \n \t\tDEFAULT_ADJUST_QUERY_PARAMETERS.getAdjustDegree());\n }", "public void setAvalible(boolean val) {\n this.available = val;\n }", "@FXML\n\tprivate void enableFPGA() {\n\t\tcheckFieldEditOrNot = true;\n\t\tif (enableFPGA.isSelected()) {\n\t\t\tfpgaFamily.setDisable(false);\n\t\t\tbrowseBitFile.setDisable(false);\n\t\t\tSX3Manager.getInstance().addLog(\"Enable FIFO Master Configuration Download : \" + true + \".<br>\");\n\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t} else {\n\t\t\tfpgaFamily.setDisable(true);\n\t\t\tbrowseBitFile.setDisable(true);\n\t\t\tchooseBitFile.setText(\"\");\n\t\t\tbitFileSize.setText(\"0\");\n\t\t\tSX3Manager.getInstance().addLog(\"Enable FIFO Master Configuration Download : \" + false + \".<br>\");\n\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t}\n\t}", "public void update() {\n \t\t\t\t// XXX: workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=206111\n \t\t\t\tif (fOperationCode == ITextOperationTarget.REDO)\n \t\t\t\t\treturn;\n \n \t\t\t\tboolean wasEnabled= isEnabled();\n \t\t\t\tboolean isEnabled= (fOperationTarget != null && fOperationTarget.canDoOperation(fOperationCode));\n \t\t\t\tsetEnabled(isEnabled);\n \n \t\t\t\tif (wasEnabled != isEnabled) {\n \t\t\t\t\tfirePropertyChange(ENABLED, wasEnabled ? Boolean.TRUE : Boolean.FALSE, isEnabled ? Boolean.TRUE : Boolean.FALSE);\n \t\t\t\t}\n \t\t\t}", "private void enableFields() {\n\t\t\t\t\t\tholderMain.editTextParametername.setEnabled(true);\n\t\t\t\t\t\tholderMain.editTextParameterValue.setEnabled(true);\n\n\t\t\t\t\t}", "private void updateEnabledState() {\n updateEnabledState(spinner, spinner.isEnabled()); }", "@Override\n public void setEnabled(boolean enabled) {\n }", "public boolean needEnableExposureAdjustment() {\n boolean z = true;\n if (CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_ENABLE_COMPENSATION_OTHER_THAN_AUTO, true)) {\n return true;\n }\n if (this.mSceneMode != SceneMode.AUTO || Keys.isLowlightOn(this.mAppController.getSettingsManager())) {\n z = false;\n }\n return z;\n }", "@Override\n public boolean isEnabled() {\n return true;\n }", "@Override\n\tpublic void stateChanged (ChangeEvent e)\n\t{\n\t\tboolean enabled = mAdvancedOptionsCheckBox.isSelected();\n\t\tmManualParametersPane.setEnabled(enabled);\n\t\tmGrid1Pane.setEnabled(enabled);\n\t\tmCartogramGridSizeLabel.setEnabled(enabled);\n\t\tmCartogramGridSizeTextField.setEnabled(enabled);\n\t\tmGrid2Pane.setEnabled(enabled);\n\t\tmDiffusionGridSizeLabel.setEnabled(enabled);\n\t\tmDiffusionGridMenu.setEnabled(enabled);\n\t\tmIterPane.setEnabled(enabled);\n\t\tmIterationsLabel.setEnabled(enabled);\n\t\tmDiffusionIterationsTextField.setEnabled(enabled);\n\t\n\t}", "void verifyModesEnable(String mode);", "@Override\n public boolean isEnabled() {\n return Boolean.TRUE;\n }", "default void onAutoModeChanged(int autoMode) {}", "@Override public boolean isEnabled() {\n return true;\n }", "@Override\n public boolean applies() {\n return true;\n }", "public void testTogglingEnabledWithDirectWritingPreservesContent() {\r\n \t\tfinal ITextRidget ridget = getRidget();\r\n \t\tfinal Text control = getWidget();\r\n \r\n \t\tridget.setDirectWriting(true);\r\n \r\n \t\tassertTrue(ridget.isDirectWriting());\r\n \r\n \t\tbean.setProperty(\"abcd\");\r\n \t\tridget.bindToModel(bean, TestBean.PROPERTY);\r\n \t\tridget.updateFromModel();\r\n \r\n \t\tassertEquals(\"abcd\", control.getText());\r\n \t\tassertEquals(\"abcd\", ridget.getText());\r\n \t\tassertEquals(\"abcd\", bean.getProperty());\r\n \r\n \t\tridget.setEnabled(false);\r\n \r\n \t\tassertEquals(\"\", control.getText());\r\n \t\tassertEquals(\"abcd\", ridget.getText());\r\n \t\tassertEquals(\"abcd\", bean.getProperty());\r\n \r\n \t\tridget.setEnabled(true);\r\n \r\n \t\tassertEquals(\"abcd\", control.getText());\r\n \t\tassertEquals(\"abcd\", ridget.getText());\r\n \t\tassertEquals(\"abcd\", bean.getProperty());\r\n \t}", "boolean hasBiddingStrategy();", "public void onEnabled() {\r\n }", "private void implicitDestinationFieldsEnabled(boolean isImplictDestSelected) {\r\n\r\n // implicit dest fields\r\n pageNumberTextField.setEnabled(isImplictDestSelected);\r\n implicitDestTypeComboBox.setEnabled(isImplictDestSelected);\r\n leftTextField.setEnabled(isImplictDestSelected);\r\n topTextField.setEnabled(isImplictDestSelected);\r\n zoomTextField.setEnabled(isImplictDestSelected);\r\n\r\n }" ]
[ "0.60144454", "0.5934216", "0.5835168", "0.58014464", "0.5704971", "0.5538246", "0.53736013", "0.5337919", "0.5249182", "0.5246068", "0.5228189", "0.5224484", "0.5223841", "0.5179786", "0.5170263", "0.5167464", "0.51533115", "0.51509213", "0.5148834", "0.51479435", "0.51149285", "0.5106206", "0.51004565", "0.50849795", "0.5064381", "0.5061151", "0.5055911", "0.50408834", "0.5039565", "0.50374925", "0.503499", "0.5023134", "0.50050825", "0.50028455", "0.49970508", "0.49865767", "0.49853164", "0.49835774", "0.4980937", "0.4977712", "0.49718696", "0.49478668", "0.49407515", "0.4934897", "0.49346107", "0.49334973", "0.49262583", "0.4919954", "0.49070144", "0.49030772", "0.49030772", "0.49030772", "0.49030772", "0.4894763", "0.48868835", "0.4886138", "0.4885989", "0.48828372", "0.4880926", "0.487487", "0.4871874", "0.4870942", "0.48607728", "0.48494905", "0.48466244", "0.48466244", "0.48441502", "0.48414138", "0.48389047", "0.48343918", "0.48272264", "0.48212394", "0.482111", "0.48152822", "0.4813268", "0.48124924", "0.48055124", "0.48001534", "0.47886118", "0.47828513", "0.47806263", "0.47733846", "0.47714984", "0.47685352", "0.47636586", "0.47577006", "0.47518212", "0.47509858", "0.47470936", "0.47440147", "0.47418487", "0.47372368", "0.4734856", "0.47334808", "0.47321135", "0.4723608", "0.4719507", "0.471823", "0.47181943", "0.4712737" ]
0.77565324
0
Populate fields with current data.
public void fillFieldValues(List<NeuronUpdateRule> ruleList) { NakaRushtonRule neuronRef = (NakaRushtonRule) ruleList.get(0); // (Below) Handle consistency of multiple selections // Handle Time Constant if (!NetworkUtils.isConsistent(ruleList, NakaRushtonRule.class, "getTimeConstant")) tfTimeConstant.setText(SimbrainConstants.NULL_STRING); else tfTimeConstant .setText(Double.toString(neuronRef.getTimeConstant())); // Handle Semi-Saturation Constant if (!NetworkUtils.isConsistent(ruleList, NakaRushtonRule.class, "getSemiSaturationConstant")) tfSemiSaturation.setText(SimbrainConstants.NULL_STRING); else tfSemiSaturation.setText(Double.toString(neuronRef .getSemiSaturationConstant())); // Handle Steepness if (!NetworkUtils.isConsistent(ruleList, NakaRushtonRule.class, "getSteepness")) tfSteepness.setText(SimbrainConstants.NULL_STRING); else tfSteepness.setText(Double.toString(neuronRef.getSteepness())); // Handle Noise if (!NetworkUtils.isConsistent(ruleList, NakaRushtonRule.class, "getAddNoise")) tsNoise.setNull(); else tsNoise.setSelected(neuronRef.getAddNoise()); // Handle Use Adaptation if (!NetworkUtils.isConsistent(ruleList, NakaRushtonRule.class, "getUseAdaptation")) tsUseAdaptation.setNull(); else tsUseAdaptation.setSelected(neuronRef.getUseAdaptation()); // Handle Adaptation Time if (!NetworkUtils.isConsistent(ruleList, NakaRushtonRule.class, "getAdaptationTimeConstant")) tfAdaptationTime.setText(SimbrainConstants.NULL_STRING); else tfAdaptationTime.setText(Double.toString(neuronRef .getAdaptationTimeConstant())); // Handle Adaptation Parameter if (!NetworkUtils.isConsistent(ruleList, NakaRushtonRule.class, "getAdaptationParameter")) tfAdaptationParam.setText(SimbrainConstants.NULL_STRING); else tfAdaptationParam.setText(Double.toString(neuronRef .getAdaptationParameter())); // Use Adaptation checkUsingAdaptation(); randTab.fillFieldValues(getRandomizers(ruleList)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateFields() {\n\n if (mReportCursor == null) {\n return;\n }\n\n Cursor c = mReportCursor;\n mValueText.setText(c.getString(c.getColumnIndexOrThrow(ReportPeer.KEY_VALUE)));\n }", "private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}", "private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}", "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "void populateData();", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "@Override\n\tprotected void initializeFields() {\n\n\t}", "private void populateFields() {\n pedidos = pdao.listaTodos();\n cCliente = new HashSet();\n cEstado = new HashSet();\n cCidade = new HashSet();\n cFornecedor = new HashSet();\n\n for (int i = 0; i < pedidos.size(); i++) {\n cCliente.add(pedidos.get(i).getCliente().getNome());\n cEstado.add(pedidos.get(i).getCliente().getEstado());\n cCidade.add(pedidos.get(i).getCliente().getCidade());\n for (int j = 0; j < pedidos.get(i).getItens().size(); j++) {\n cFornecedor.add(pedidos.get(i).getItens().get(j).getProduto().getFornecedor().getNome());\n }\n }\n\n clientes = new ArrayList<>(cCliente);\n fornecedores = new ArrayList<>(cFornecedor);\n\n Iterator i = cCliente.iterator();\n while (i.hasNext()) {\n jCBCliente.addItem(i.next());\n }\n\n i = null;\n i = cEstado.iterator();\n while (i.hasNext()) {\n jCBEstado.addItem(i.next());\n }\n\n i = null;\n i = cCidade.iterator();\n while (i.hasNext()) {\n jCBCidade.addItem(i.next());\n }\n i = null;\n i = cFornecedor.iterator();\n while (i.hasNext()) {\n jCBFornecedor.addItem(i.next());\n }\n\n }", "public static void populateData() {\n\n }", "protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }", "private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(String.valueOf(selectedPart.getId()));\n maximumInventory.setText(String.valueOf(selectedPart.getMax()));\n minimumInventory.setText(String.valueOf(selectedPart.getMin()));\n\n if (PassableData.isOutsourced()) {\n Outsourced part = (Outsourced) selectedPart;\n variableTextField.setText(part.getCompanyName());\n outsourced.setSelected(true);\n\n } else if (!PassableData.isOutsourced()) {\n InHouse part = (InHouse) selectedPart;\n variableTextField.setText(String.valueOf(part.getMachineId()));\n inHouse.setSelected(true);\n }\n\n\n }", "private void loadData() {\r\n titleField.setText(existingAppointment.getTitle());\r\n descriptionField.setText(existingAppointment.getDescription());\r\n contactField.setText(existingAppointment.getContact());\r\n customerComboBox.setValue(customerList.stream()\r\n .filter(x -> x.getCustomerId() == existingAppointment.getCustomerId())\r\n .findFirst().get());\r\n typeComboBox.setValue(existingAppointment.getType());\r\n locationComboBox.setValue(existingAppointment.getLocation());\r\n startTimeComboBox.setValue(existingAppointment.getStart().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n endTimeComboBox.setValue(existingAppointment.getEnd().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n startDatePicker.setValue(existingAppointment.getStart().toLocalDate());\r\n endDatePicker.setValue(existingAppointment.getEnd().toLocalDate());\r\n }", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "private void populateFields() {\n if (mRowId != null) {\n Cursor reminder = mDbHelper.fetchReminder(mRowId);\n startManagingCursor(reminder);\n mTitleText.setText(reminder.getString(\n \t reminder.getColumnIndexOrThrow(RemindersDbAdapter.KEY_TITLE)));\n mBodyText.setText(reminder.getString(\n reminder.getColumnIndexOrThrow(RemindersDbAdapter.KEY_BODY)));\n \n\n // Get the date from the database and format it for our use. \n SimpleDateFormat dateTimeFormat = new SimpleDateFormat(DATE_TIME_FORMAT);\n Date date = null;\n\t\t\ttry {\n\t\t\t\tString dateString = reminder.getString(reminder.getColumnIndexOrThrow(RemindersDbAdapter.KEY_DATE_TIME)); \n\t\t\t\tdate = dateTimeFormat.parse(dateString);\n\t mCalendar.setTime(date); \n\t\t\t} catch (ParseException e) {\n\t\t\t\tLog.e(\"ReminderEditActivity\", e.getMessage(), e); \n\t\t\t} \n } else {\n \t// This is a new task - add defaults from preferences if set. \n \tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); \n \tString defaultTitleKey = getString(R.string.pref_task_title_key); \n \tString defaultTimeKey = getString(R.string.pref_default_time_from_now_key); \n \t\n \tString defaultTitle = prefs.getString(defaultTitleKey, null);\n \tString defaultTime = prefs.getString(defaultTimeKey, null); \n \t\n \tif(defaultTitle != null)\n \t\tmTitleText.setText(defaultTitle); \n \t\n \tif(defaultTime != null)\n \t\tmCalendar.add(Calendar.MINUTE, Integer.parseInt(defaultTime));\n \t\n }\n \n updateDateButtonText(); \n updateTimeButtonText(); \n \t\n }", "public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "private void fillData() {\n\tparname.setText(UpStudentController.getName());\r\n\tparphone.setText(UpStudentController.getPhone());\r\n\tparmail.setText(UpStudentController.getMail());\r\n\taddres.setText(UpStudentController.getAdr());\r\n\tlocation.setText(UpStudentController.getLoc());\r\n\tkazi.setText(UpStudentController.getOc());\r\n\ttaifa.setText(UpStudentController.getNat());\r\n\t}", "private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}", "private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }", "private void initFields(){\n labels.put(\"patientID\", new JLabel(\"Patient ID:\"));\n labels.put(\"newOwed\", new JLabel(\"New Owed:\"));\n \n fields.put(\"patientID\", new JTextField());\n fields.put(\"newOwed\", new JTextField());\n }", "private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }", "private RowData() {\n initFields();\n }", "public void loadFields() {\n \tsuper.loadFields();\n \tif(getUIContext().get(\"taskId\")!=null){\n \t\teditData.setRelateTask((FDCScheduleTaskInfo) getUIContext().get(\"taskId\"));\n \t}\n \tfillPnlTaskInfo();\n \t\n }", "public void updateNonDynamicFields() {\n\n\t}", "private void initData(List<JTextField> fields) {\n Properties config = Utils.loadPropertiesFile(System.getProperty(\"user.dir\") + \"\\\\\" + CONF_FILE_NAME, this.getClass().getClassLoader().getResourceAsStream(CONF_FILE_NAME));\n \n List<String> props = Arrays.asList(\"fromDbDriver\", \"toDbDriver\", \"fromDbUrl\", \"toDbUrl\", \"fromDbUsername\", \"toDbUsername\", \"fromDbPassword\", \"toDbPassword\", \"criteria\");\n \n logger.info(\"Init data from configruation\");\n for (int i = 0; i < fields.size(); i++) {\n String key = props.get(i);\n String value = config.getProperty(key);\n logger.info(\"{} is {} \", key, value);\n fields.get(i).setText(value);\n }\n \n IS_OPEN_LOG_FILE = Utils.parseString2Boolean(config.getProperty(\"openLogFile\"), false);\n DELAY_TIME = Utils.parseString2Long(config.getProperty(\"delayTime\"), PER_SECOND);\n IS_DELETE_ORIGINAL_DATA = Utils.parseString2Boolean(config.getProperty(\"deleteOriginalData\"), true);\n ABORT_WHEN_ABNORMAL_INSERT = Utils.parseString2Boolean(config.getProperty(\"abort\"), false);\n }", "private TigerData() {\n initFields();\n }", "public synchronized void updateData() {\n updateDataFields(this::defaultFetcher);\n }", "protected void initialize() {\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tpe.setPage(this);\n\t\t\t\tpe.setPropertyChangeListener(this);\n\t\t\t\tpe.setPreferenceStore(getPreferenceStore());\n\t\t\t\tpe.load();\n\t\t\t}\n\t\t}\n\t}", "private void setData() {\n populateInterfaceElements();\n }", "private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerPerson = 0.0;\n\n }", "void onPrepareForSubmit() {\n\t\t// Create the same list as was rendered.\n\t\t// Loop will write its input field values into the list's objects.\n\n\t\tcreatePersonsList();\n\n\t\t// Prepare to take a copy of each field.\n\n\t\trowNum = -1;\n\t\tfirstNameFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tlastNameFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tregionFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tstartDateFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t}", "private void initializeData() {\n lblItem.setText(product.getName());\n txtReference.setText(product.getTransaction().getReferenceNumber());\n txtItem.setText(product.getName());\n txtDescription.setText(product.getDescription());\n txtBrand.setText(product.getBrand());\n txtModel.setText(product.getModel());\n txtQuantity.setText(String.valueOf(product.getQuantity()));\n txtUnit.setText(product.getUnit());\n txtProductDate.setDate(product.getProduct_date());\n txtOrigPrice.setText(String.valueOf(product.getOriginalPrice()));\n txtAgent.setText(product.getAgent());\n txtContactPerson.setText(product.getContactPerson());\n try { \n txtSupplier.setText(((Supplier)product.getSuppliers().toArray()[0]).getName());\n } catch(ArrayIndexOutOfBoundsException ex) {\n System.out.println(ex.toString());\n }\n }", "public void populateFields(String userName){\n this.userNameLabel.setText(userName);\n \n if(this.dbConnection.ConnectDB()){\n //we connected\n String[] temp = this.dbConnection.getUserInformation(userName);\n //take this array and populate the input fields for firstName, lastName,Email,\n this.firstNameInputField.setText(temp[0]);\n this.lastNameInputField.setText(temp[1]);\n this.emailInputField.setText(temp[4]);\n this.roleDropdown.promptTextProperty().set(temp[2]);\n this.departmentDropdown.promptTextProperty().set(temp[3]);\n //add these default values to the map\n this.defaultFirstname = temp[0];\n this.defaultLastname = temp[1];\n this.defaultEmail = temp[4];\n this.defaultRole = temp[2];\n this.defaultDepartment = temp[3];\n \n //repopulate the map\n populateMap();\n //unlock the checkboxes\n this.unlockCheckboxes(this.boxes);\n \n// //print out the mapfor testing purposes\n// for(Map.Entry<String,String> mapObj: this.defaultValuesMap.entrySet()){\n// System.out.println(mapObj.getKey());\n// System.out.println(mapObj.getValue());\n// }\n \n \n }\n }", "private void populateFields(AudioFragment fragment) {\n\t name.setText(fragment.getName());\n fileName.setText(fragment.getPath());\n }", "private void fillAllFields() {\r\n combo.setSelectedItem(moviesModule.getConfig().getOpeningSystem());\r\n fileChooser.setFilePath(moviesModule.getConfig().getFFmpegLocation());\r\n }", "@Override\n protected void initData()\n {\n super.initData();\n\n entityProps = getFormSession().getAssemblingMessageEntityProperties();\n\n refreshDataTable(entityProps);\n }", "private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }", "private <ResultType> void importDataToField(Result<ResultType> data, ActionImportField field) {\n List<Object> exportValues = getExportCandidatesForField(data, field);\n\n field.setValueIntelligently(exportValues);\n }", "public void populateMenuFields(){\n\t\t\t\n\t\t\tif (restaurant.getMenu().getItems().size()!=0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<restaurant.getMenu().getItems().size();i++)\n\t\t\t\t{\n\t\t\t\t\tlistOfItemNames.add(restaurant.getMenu().getItemAt(i).getItemName());\n\t\t\t\t\tlistOfDescription.add(restaurant.getMenu().getItemAt(i).getItemDescription());\n\t\t\t\t\tlistOfPrice.add(restaurant.getMenu().getItemAt(i).getItemPrice()+\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void fillData() {\n jTextField1.setEnabled(false);\n jTextField11.setEnabled(false);\n\n if (owners != null && owners.get(\"editedOwner\") != null) {\n this.jTextField1.setText(owners.get(\"editedOwner\").getAsJsonObject().get(\"rc\").getAsString());\n this.jTextField11.setText(owners.get(\"editedOwner\").getAsJsonObject().get(\"share\").getAsString());\n }\n String[] header = new String[]{\"Rodné čislo\", \"Podiel v %\"};\n dtm.setColumnIdentifiers(header);\n jTableOwnerships.setModel(dtm);\n if (owners != null && owners.get(\"ownerships\") != null) {\n for (JsonElement jsonElement : owners.get(\"ownerships\").getAsJsonArray()) {\n JsonObject owner = (JsonObject) jsonElement;\n dtm.addRow(new Object[]{owner.get(\"rc\").getAsString(), owner.get(\"share\").getAsString()});\n }\n }\n }", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "private void prepare( ) {\n super.prepare( schema.getCount( ) );\n serializer = new FieldSerializer[ fieldCount ];\n for ( int i = 0; i < fieldCount; i++ ) {\n FieldSchema field = schema.getField( i );\n serializer[i] = serializerByType[ field.getType().ordinal() ];\n }\n }", "private void populateFuelData(Fuel fuel) {\n\n // populate data and also remove trailing zero if any\n fuelDate = fuel.getFuelDate();\n tv_input_fuel_date.setText(AppUtils.getFormattedDateString(fuelDate));\n tin_perLitrePrice.setText(AppUtils.removeTrailingZero(fuel.getPerLitrePrice().toString()));\n tin_fuelQuantityLitres.setText(AppUtils.removeTrailingZero(fuel.getFuelQuantityLitres().toString()));\n tin_totalFuelPrice.setText(AppUtils.removeTrailingZero(fuel.getTotalFuelPrice().toString()));\n tin_currentKm.setText(AppUtils.removeTrailingZero(fuel.getCurrentKm().toString()));\n currentKm = fuel.getCurrentKm();\n tin_startingKm.setText(AppUtils.removeTrailingZero(fuel.getStartingKm().toString()));\n tin_distanceCovered.setText(AppUtils.removeTrailingZero(fuel.getDistanceCovered().toString()));\n tv_calculatedAverage_addEdit.setText(AppUtils.removeTrailingZero(fuel.getCalculatedAverage().toString()) + \" km/l\");\n tv_coverableDistance_addEdit.setText(AppUtils.removeTrailingZero(fuel.getCoverableDistance().toString()) + \" km\");\n tv_nextFuelFill_addEdit.setText(AppUtils.removeTrailingZero(fuel.getNextFuelFill().toString()) + \" km\");\n vehicleFuelCapacity = fuel.getTotalFuelCapacity(); // in editing mode, we want to get fuel capacity and store to variable so we can use it in calculating (coverableDistance and nextFuelFill)\n Log.d(TAG, \"populateFuelData: vehicleFuelCapacity = \" + vehicleFuelCapacity);\n }", "private void fillData()\n {\n\n }", "private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }", "private void populateRecipeInfo() {\n\t\tString title = currentRecipe.getTitle();\n\t\tString directions = currentRecipe.getDirections();\n\t\tString description = currentRecipe.getDescription();\n\n\t\tfillTextViews(title, description, directions);\n\t\tpopulateIngredientView();\n\t}", "private static void setData() {\n attributeDisplaySeq = new ArrayList<String>();\n attributeDisplaySeq.add(\"email\");\n\n signUpFieldsC2O = new HashMap<String, String>();\n signUpFieldsC2O.put(\"Email\",\"email\");\n\n\n signUpFieldsO2C = new HashMap<String, String>();\n signUpFieldsO2C.put(\"email\", \"Email\");\n\n\n }", "private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }", "private void fillExistingCustomer() {\n idField.setText(String.valueOf(existingCustomer.getCustomerID()));\n nameField.setText(existingCustomer.getCustomerName());\n String[] splitAddress = existingCustomer.getAddress().split(\", \");\n addressField.setText(splitAddress[0]);\n if ( splitAddress.length > 1 ) {\n cityField.setText(splitAddress[1]);\n }\n postalField.setText(existingCustomer.getPostalCode());\n phoneField.setText(existingCustomer.getPhone());\n\n FirstLevelDivision division = getDivisionByID(existingCustomer.getDivisionID());\n divisionComboBox.getSelectionModel().select(division);\n countryComboBox.getSelectionModel().select(getCountryByID(division.getCountryID()));\n }", "void fill(Row row) {\n if (row == null) return;\n for (Column column : getColumns()) {\n String name = column.getName();\n Object value = row.get(name);\n Classes.setFieldValue(this, name, value);\n }\n }", "protected void setData() {\n \t\n \teditTextDate.setText(record.getDateTimeString());\n \t\n if (record.getOdometer() == 0) {\n \teditTextOdometer.setText(\"\");\n } else {\n \teditTextOdometer.setText(record.getOdometerString());\n }\n \n if (record.getGallons() == 0) {\n \teditTextGallons.setText(\"\");\n } else {\n \teditTextGallons.setText(record.getGallonsString());\n }\n \n checkBoxFullTank.setChecked(record.isFullTank());\n \n if (record.getCost() == 0) {\n \teditTextCost.setText(\"\");\n } else {\n \teditTextCost.setText(record.getCostString());\n }\n \n editTextNotes.setText(record.getNotes());\n }", "public void populate(){\n salesRepRepository.save(new SalesRep(\"Maddy\"));\n salesRepRepository.save(new SalesRep(\"Jegor\"));\n salesRepRepository.save(new SalesRep(\"Natalia\"));\n salesRepRepository.save(new SalesRep(\"Joao\"));\n }", "private void populateTextViews() {\n full_name_tv.setText(contact.getFullName());\n school_tv.setText(contact.getSchool());\n department_tv.setText(getDepartmentString());\n email.setText(contact.getEmail());\n number_tv.setText(contact.getNumber());\n }", "public void populate() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tLOGGER.info(\"Entering into populate method\");\n\t\t\tsetZoneIdpk(null);\n\t\t\tsetZoneDescPk(null);\n\t\t\tsetZoneDescLocalPk(null);\n\t\t\tsetZoneDescription(null);\n\t\t\tsetZoneDescriptionLocal(null);\n\t\t\tzones = zoneMasterService.getZoneList(getZoneCode());\n\t\t\tif (zones.size() > 0) {\n\t\t\t\tif (zones.get(0).getIsactive().equalsIgnoreCase(Constants.Yes)) {\n\t\t\t\t\tsetDynamicLabelForActivateDeactivate(Constants.DEACTIVATE);\n\t\t\t\t\tsetRenderEditButton(true);\n\n\t\t\t\t} else if (zones.get(0).getIsactive().equalsIgnoreCase(Constants.D)) {\n\t\t\t\t\tsetDynamicLabelForActivateDeactivate(Constants.ACTIVATE);\n\t\t\t\t\tsetRenderEditButton(true);\n\n\t\t\t\t} else if (zones.get(0).getIsactive().equalsIgnoreCase(Constants.U)) {\n\t\t\t\t\tsetDynamicLabelForActivateDeactivate(Constants.DELETE);\n\t\t\t\t\tsetRenderEditButton(true);\n\n\t\t\t\t}\n\t\t\t\tsetCreatedBy(zones.get(0).getCreatedBy());\n\t\t\t\tsetCreatedDate(zones.get(0).getCreatedDate());\n\t\t\t\tsetZoneIdpk(zones.get(0).getZoneId());\n\t\t\t\tsetIsActive(zones.get(0).getIsactive());\n\t\t\t\tzoneDescriptionList = zoneMasterService.getZoneDescriptionList(zones.get(0).getZoneId());\n\t\t\t\tfor (ZoneMasterDesc zoneMasterDesc : zoneDescriptionList) {\n\t\t\t\t\tif (zoneMasterDesc.getLanguageType().getLanguageId().toString().equals(Constants.ENGLISH_LANGUAGE_ID)) {\n\t\t\t\t\t\tsetZoneDescPk(zoneMasterDesc.getZoneDescId());\n\t\t\t\t\t\tsetZoneDescription(zoneMasterDesc.getZoneDescription());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetZoneDescLocalPk(zoneMasterDesc.getZoneDescId());\n\t\t\t\t\t\tsetZoneDescriptionLocal(zoneMasterDesc.getZoneDescription());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tLOGGER.info(\"Exit into populate method\");\n\t\t\t\n\t\t} catch(NullPointerException ne){\n\t\tLOGGER.info(\"ne.getMessage():::::::::::::::::::::::::::::::\"+ne.getMessage());\n\t\t setErrorMessage(\"Method Name::populate\"); \n\t\t RequestContext.getCurrentInstance().execute(\"nullPointerId.show();\");\n\t\t return; \n}catch(Exception exception){\n LOGGER.info(\"exception.getMessage():::::::::::::::::::::::::::::::\"+exception.getMessage());\n setErrorMessage(exception.getMessage()); \n RequestContext.getCurrentInstance().execute(\"error.show();\");\n return; \n}\n\t\t\n\t}", "private void fillMandatoryFields() {\n\n }", "private void fillData() {\n table.setRowList(data);\n }", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "private void setAllFields(){\n Expense retrievedExpense = db.getExpenseWithId(bundle.getInt(EXPENSE_TABLE_COLUMN_ID));\n label.setText(retrievedExpense.getLabel());\n\n // Get adapter from category array\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.expense_category, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // Get position where it matches the category name retrieved with the category array\n int spinnerPosition = adapter.getPosition(retrievedExpense.getCategory());\n\n // Set category spinner\n category.setSelection(spinnerPosition);\n\n cost.setText(String.format(\"%.2f \",retrievedExpense.getCost()));\n paid.setChecked(retrievedExpense.isWasItPaid());\n dateDue.setText(retrievedExpense.getDueDate());\n\n }", "private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }", "private void insertFields()\n {\n RideDetails details=new RideDetails();\n details.setStartPt(editStartingPt.getText().toString());\n details.setEndPt(editEndingPt.getText().toString());\n\n try {\n details.setTravelDate(dateFormatter.parse(editDate.getText().toString()));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n details.setNoSpot(Integer.parseInt(editNoSpot.getText().toString()));\n\n\n dbOperations(details);\n\n }", "public void populateDetails() {\n\n txtpn_NameHeading.setText(selStudent.getfName() + \" \" + selStudent.getlName());\n\n txtpn_RacesComplete.setText(String.valueOf(dataCur.countNumberRaces(selStudent.getId())));\n txtpn_DaysAbsent.setText(String.valueOf(selStudent.getAttend()));\n txtpn_AgeGroup.setText(String.valueOf(selStudent.getAge()));\n\n }", "private RandomData() {\n initFields();\n }", "public void initData() {\n nameDetailOrder.setText(\"-\");\n tourDetailOrder.setText(\"-\");\n packDetailOrder.setText(\"-\");\n statusDetailOrder.setText(\"-\");\n }", "public void populate() {\n populate(this.mCurItem);\n }", "@Override\n protected void initializeFields() {\n \tsuper.initializeFields();\n\n \taddField(new DcField(DcMediaObject._A_TITLE, getIndex(), \"Title\", \n false, true, false, true, \n 255, ComponentFactory._SHORTTEXTFIELD, getIndex(), DcRepository.ValueTypes._STRING,\n \"Title\"));\n addField(new DcField(DcMediaObject._B_DESCRIPTION, getIndex(), \"Description\", \n false, true, false, true, \n 0, ComponentFactory._LONGTEXTFIELD, getIndex(), DcRepository.ValueTypes._STRING,\n \"Description\"));\n addField(new DcField(DcMediaObject._C_YEAR, getIndex(), \"Year\", \n false, true, false, true, \n 4, ComponentFactory._NUMBERFIELD, getIndex(), DcRepository.ValueTypes._LONG,\n \"Year\"));\n\n if (getIndex() != DcModules._IMAGE && !isAbstract())\n addField(new DcField(DcMediaObject._D_LANGUAGE, getIndex(), \"Languages\", \n true, true, false, true, \n 255, ComponentFactory._REFERENCESFIELD, DcModules._LANGUAGE, DcRepository.ValueTypes._DCOBJECTCOLLECTION,\n \"Languages\"));\n \n addField(new DcField(DcMediaObject._E_RATING, getIndex(), \"Rating\", \n false, true, false, true, \n 255, ComponentFactory._RATINGCOMBOBOX, getIndex(), DcRepository.ValueTypes._LONG,\n \"Rating\"));\n addField(new DcField(DcMediaObject._F_COUNTRY, getIndex(), \"Countries\", \n true, true, false, true, \n 255, ComponentFactory._REFERENCESFIELD, DcModules._COUNTRY, DcRepository.ValueTypes._DCOBJECTCOLLECTION,\n \"Countries\")); \n }", "@Override\n public void setRecords() {\n fields = recordNotifier.getFields();\n recordCount = recordNotifier.getRowCount();\n \n createComponents();\n \n }", "private void refreshData() {\r\n\tif (fieldSpeciesContextSpec == null){\r\n\t\tsetData(null);\r\n\t} else {\r\n\t\tsetData(fieldSpeciesContextSpec.computeApplicableParameterList());\r\n\t}\r\n}", "public void setFieldDetails(){\n if (this.project != null){\n projectTitleField.setText( project.getTitle() );\n projectDescriptionField.setText( project.getDescription() );\n colorThemeField.setValue( Color.valueOf(project.getColorTheme()) );\n dueDateField.setValue( project.getDueDate() );\n createProjectBtn.setText( \"Update Project\" );\n }\n\n }", "protected void fillAdditionalFields(U user, Map<String, Object> map) {\n\t}", "private void populate()\n\t{\n\t\tages = new int[] { 15, 18, 16, 16, 15, 16 }; \n\t}", "public void buildMetaFields() {\n for (AtreusMetaEntity metaEntity : environment.getMetaManager().getEntities()) {\n Class<?> entityType = metaEntity.getEntityType();\n\n // Build the fields\n for (Field field : entityType.getDeclaredFields()) {\n\n // Execute the meta property builder rule bindValue\n for (BaseEntityMetaComponentBuilder propertyBuilder : fieldPropertyBuilders) {\n if (!propertyBuilder.acceptsField((MetaEntityImpl) metaEntity, field)) {\n continue;\n }\n propertyBuilder.validateField((MetaEntityImpl) metaEntity, field);\n if (propertyBuilder.handleField((MetaEntityImpl) metaEntity, field)) {\n break;\n }\n }\n\n }\n }\n }", "public void formatFields() {\r\n\t}", "@Override\n\tpublic void fillData() {\n\t}", "private void fillData() {\n\t\tmCursor = dbHelper.getResultsByTime();\n\t\tstartManagingCursor(mCursor);\n\n\t\tdataListAdapter = new SimpleCursorAdapter(this, R.layout.row, mCursor,\n\t\t\t\tFROM, TO);\n\t\tmConversationView.setAdapter(dataListAdapter);\n\t}", "private void parse() {\n if (getFields() == null) {\n List<? extends StructField> fieldRefs =\n ((StructObjectInspector)getInspector()).getAllStructFieldRefs();\n setFields(new LazyObject[fieldRefs.size()]);\n for (int i = 0; i < getFields().length; i++) {\n String hbaseColumnFamily = hbaseColumnFamilies.get(i);\n String hbaseColumnQualifier = hbaseColumnQualifiers.get(i);\n\n ObjectInspector fieldObjectInspector = fieldRefs.get(i).getFieldObjectInspector();\n if (hbaseColumnQualifier == null && !HBaseSerDe.isSpecialColumn(hbaseColumnFamily)) {\n // a column family\n getFields()[i] = new LazyHBaseCellMap(\n (LazyMapObjectInspector) fieldObjectInspector);\n continue;\n }\n if(fieldObjectInspector instanceof LazyListObjectInspector) {\n \tgetFields()[i] = new LazyJsonArray((LazyListObjectInspector)fieldObjectInspector);\n \tcontinue;\n }\n\n getFields()[i] = LazyFactory.createLazyObject(fieldRefs.get(i).getFieldObjectInspector());\n }\n setFieldInited(new boolean[getFields().length]);\n }\n Arrays.fill(getFieldInited(), false);\n setParsed(true);\n }", "public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n if (iFieldSeq == 0)\n field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new StringField(this, DESCRIPTION, 10, null, null);\n //if (iFieldSeq == 4)\n // field = new CityField(this, CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 5)\n // field = new CityField(this, TO_CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 6)\n // field = new ContinentField(this, CONTINENT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 7)\n // field = new RegionField(this, REGION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 8)\n // field = new CountryField(this, COUNTRY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 9)\n // field = new StateField(this, STATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 10)\n // field = new VendorField(this, VENDOR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 13)\n // field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 14)\n // field = new ShortField(this, PAX, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)2));\n //if (iFieldSeq == 15)\n // field = new HotelScreenRecord_LastChanged(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 16)\n // field = new BooleanField(this, REMOTE_QUERY_ENABLED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 17)\n // field = new ShortField(this, BLOCKED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 18)\n // field = new ShortField(this, OVERSELL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 19)\n // field = new BooleanField(this, CLOSED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 20)\n // field = new BooleanField(this, DELETE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 21)\n // field = new BooleanField(this, READ_ONLY, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 22)\n // field = new ProductSearchTypeField(this, PRODUCT_SEARCH_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 23)\n // field = new ProductTypeField(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 24)\n field = new PaxCategorySelect(this, PAX_CATEGORY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }", "private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }", "protected void initValuesFromControlRecord() {\n int count = getControlRecords().size();\n for (int i = 0; i < count; i++) {\n setCurrentNbaMibPlanFControl((NbaMibPlanFControl) getControlRecords().get(i));\n if (getCurrentNbaMibPlanFControl().getOrganizationCode().equalsIgnoreCase(getCurrentCarrierCode())) {\n break;\n }\n }\n setStartDate(getCurrentNbaMibPlanFControl().getHighWaterDate());\n setStartRecord(getCurrentNbaMibPlanFControl().getNextRecord());\n }", "void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }", "@Override\r\n\tpublic void initializeBoard() {\r\n\t\t\r\n\t\tfor(int i = 0; i < FieldData.FIELDNAME_DATA.length; i++){\r\n\t\t\tswitch(FieldData.FIELDTYPE_DATA[i]){\r\n\t\t\tcase REFUGE:\r\n\t\t\t\tfields[i] = new Refuge.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"get\", 0) + \" \" + FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase TAX:\r\n\t\t\t\tfields[i] = new Tax.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"pay\", 0) + \" \" + FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase TERRITORY:\r\n\t\t\t\tfields[i] = new Street.Builder()\r\n\t\t\t\t.setBgColor(FieldData.fieldColor[i])\r\n\t\t\t\t.build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"territory\", 0) + \" \" +FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase LABOR_CAMP:\r\n\t\t\t\tfields[i] = new Brewery.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"laborCamp\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\tcase FLEET:\r\n\t\t\t\tfields[i] = new Shipping.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"fleet\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\tcase PRISON:\r\n\t\t\t\tfields[i] = new Jail.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"fine\", 0)+ \" \" + \"Kr. 1000\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase START:\r\n\t\t\t\tfields[i] = new Start.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"bonus\", 0) + \" \" + \"Kr. 4000\");\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase LUCKYCARD:\r\n\t\t\t\tfields[i] = new Chance.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"lucky\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tfields[i].setTitle(String.valueOf(i+1));\r\n\t\t\tfields[i].setSubText(reader.getElement(FieldData.FIELDNAME_DATA[i], 0));\r\n\t\t}\r\n\t\tGUI.create(fields);\r\n\t}", "protected void fromDBObject(DBObject data) {\n /* Get all public fields of the class */\n Field[] fields = this.getClass().getFields();\n for(Field field : fields) {\n String name = field.getName();\n \n if(data.containsField(name)) {\n if(Modifier.isFinal(field.getModifiers()))\n field.setAccessible(true);\n\n Object value = data.get(name);\n \n try {\n field.set(this, convertDBToField(value, field));\n } catch (IllegalAccessException | IllegalArgumentException ex) {\n throw new MongomanException(ex);\n }\n }\n }\n \n _id = (ObjectId) data.get(\"_id\");\n loaded = data;\n }", "private void setPhoneFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\t\tint selectedColumnType;\n\t\tint preferredColumn;\n\t\tint phoneType;\n\t\tString customLabel = null;\n\n\t\t//\n\t\t// Get PhonesColums fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Phone.NUMBER);\n\t\tselectedColumnType = cur.getColumnIndex(Phone.TYPE);\n\t\tpreferredColumn = cur.getColumnIndex(Phone.IS_PRIMARY);\n\t\tphoneType = cur.getInt(selectedColumnType);\n\t\tString phone = cur.getString(selectedColumn);\n\t\tboolean preferred = cur.getInt(preferredColumn) != 0;\n\t\tif (phoneType == Phone.TYPE_CUSTOM) {\n\t\t\tcustomLabel = cur.getString(cur.getColumnIndex(Phone.LABEL));\n\t\t}\n\n\t\tphones.add(new RowData(phoneType, phone, preferred, customLabel));\n\t}", "void populateFrom(Person r) {\n // nombre.setText(r.mail1);\n // apellido.setText(r.apellido1);\n usu.setText(r.nom_usuario1);\n // mail.setText(r.mail1);\n }", "@Override\n\tpublic void update(finalDataBean t, String[] fields) throws Exception {\n\t\t\n\t}", "@Override\n public void doPopulateInstance(Object mockInstance, Field field, Object value) throws Throwable {\n Object currentObject = value;\n if (currentObject == null) {\n int recurseTimes = getInstanceFieldRecurseTimes(mockInstance, field);\n // recursion times\n if (recurseTimes++ == getProperties().getRevisionTimes()) {\n RECURSION_INSTANCE_FIELD_MAP.remove(mockInstance);\n return;\n }\n addInstanceFieldRecurseTimes(mockInstance, field, recurseTimes);\n }\n\n // populate attributes\n currentObject = mockValue(field.getType(), mockInstance, value);\n\n // prevent reflection exceptions for recursions\n if (mockInstance == currentObject) {\n currentObject = JsonUtils.deepCopy(currentObject);\n }\n\n field.set(mockInstance, currentObject);\n\n // need to clear the recursion times in finally\n clearMockInstanceRecurseTimes();\n }", "private void fillConstructorFields() {\n constructorId.setText(\"\"+ constructorMutator.getConstructor().getConstructorId());\n constructorUrl.setText(\"\"+ constructorMutator.getConstructor().getConstructorUrl());\n constructorName.setText(\"\"+ constructorMutator.getConstructor().getConstructorName());\n constructorNationality.setText(\"\"+ constructorMutator.getConstructor().getNationality());\n teamLogo.setImage(constructorMutator.getConstructor().getTeamLogo().getImage());\n // Display Drivers that were from the JSON File\n constructorMutator.getConstructor().setBuffer(new StringBuffer());\n // Java 8 Streaming\n constructorMutator.getConstructorsList().stream().forEach(constructorList -> constructorMutator.getConstructor().toString(constructorList));\n }", "@Override\r\n public void performInitialization(Object model) {\r\n super.performInitialization(model);\r\n richTable.setForceLocalJsonData(true);\r\n\r\n //init binding info\r\n if (bindingInfo != null) {\r\n bindingInfo.setDefaults(ViewLifecycle.getView(), getPropertyName());\r\n }\r\n \r\n List<? extends Component> items = getItems();\r\n \r\n ComponentUtils.clearAndAssignIds(items);\r\n\r\n //iterate over this collections items to initialize\r\n for (Component item : this.getItems()) {\r\n initialComponentIds.add(item.getId());\r\n\r\n //if data field, setup a forced placeholder value\r\n if (item instanceof DataField) {\r\n ((DataField) item).setForcedValue(VALUE_TOKEN + item.getId() + VALUE_TOKEN);\r\n }\r\n\r\n ///populate expression map\r\n expressionConversionMap = buildExpressionMap(item, expressionConversionMap);\r\n }\r\n }", "public void updateData() {\n\t\tcal = eventsData.getCalendar();\n\t\tfirstDayOfWeek = eventsData.getFirstDayOfWeek();\n\t\tcurrentDayOfMonth = eventsData.getDayNumber();\n\t\tnumberOfDays = eventsData.getNumberOfDays();\n\t\tnumberOfWeeks = eventsData.getNumberOfWeeks();\n\t\tyear = eventsData.getYearNumber();\n\t\tmonth = eventsData.getMonthNumber();\n\t\tday = eventsData.getDayNumber();\n\t\tweek = eventsData.getDayOfWeek();\n\t}", "public static void setPartDataFromField(PartData data, String value, EntryFieldLabel field) {\n switch (field) {\n case PI:\n data.setPrincipalInvestigator(value);\n break;\n\n case PI_EMAIL: {\n data.setPrincipalInvestigatorEmail(value);\n break;\n }\n\n case FUNDING_SOURCE: {\n data.setFundingSource(value);\n break;\n }\n\n case IP:\n data.setIntellectualProperty(value);\n break;\n\n case BIO_SAFETY_LEVEL:\n Integer level = BioSafetyOption.intValue(value);\n if (level == null) {\n if (value.contains(\"1\"))\n level = 1;\n else if (value.contains(\"2\"))\n level = 2;\n else if (\"restricted\".equalsIgnoreCase(value))\n level = -1;\n else\n break;\n }\n data.setBioSafetyLevel(level);\n break;\n\n case NAME:\n data.setName(value);\n break;\n\n case ALIAS:\n data.setAlias(value);\n break;\n\n case KEYWORDS:\n data.setKeywords(value);\n break;\n\n case SUMMARY:\n data.setShortDescription(value);\n break;\n\n case NOTES:\n data.setLongDescription(value);\n break;\n\n case REFERENCES:\n data.setReferences(value);\n break;\n\n case LINKS:\n ArrayList<String> links = new ArrayList<>();\n links.add(value);\n data.setLinks(links);\n break;\n\n case STATUS:\n data.setStatus(value);\n break;\n\n case SELECTION_MARKERS:\n ArrayList<String> selectionMarkers = new ArrayList<>();\n selectionMarkers.add(value);\n data.setSelectionMarkers(selectionMarkers);\n break;\n\n case HOST:\n case GENOTYPE_OR_PHENOTYPE:\n data.setStrainData(setStrainDataFromField(data.getStrainData(), value, field));\n break;\n\n case BACKBONE:\n case ORIGIN_OF_REPLICATION:\n case CIRCULAR:\n case PROMOTERS:\n case REPLICATES_IN:\n data.setPlasmidData(setPlasmidDataFromField(data.getPlasmidData(), value, field));\n break;\n\n case HOMOZYGOSITY:\n case ECOTYPE:\n case HARVEST_DATE:\n case GENERATION:\n case SENT_TO_ABRC:\n case PLANT_TYPE:\n case PARENTS:\n data.setSeedData(setSeedDataFromField(data.getSeedData(), value, field));\n break;\n\n case ORGANISM:\n case FULL_NAME:\n case GENE_NAME:\n case UPLOADED_FROM:\n data.setProteinData(setProteinDataFromField(data.getProteinData(), value, field));\n break;\n\n case CREATOR:\n data.setCreator(value);\n break;\n\n case CREATOR_EMAIL:\n data.setCreatorEmail(value);\n break;\n\n default:\n break;\n }\n }", "public void initializeProperties() {\r\n DatabaseField dbField = getWriteLockField();\r\n dbField = descriptor.buildField(dbField);\r\n setWriteLockField(dbField);\r\n if (isStoredInCache() && (dbField.getType() == null)) {\r\n // Set the default type, only if un-mapped.\r\n dbField.setType(getDefaultLockingFieldType());\r\n }\r\n Enumeration enumtr = this.getUnmappedFields().elements();\r\n while (enumtr.hasMoreElements()) {\r\n DatabaseField lockField;\r\n lockField = (DatabaseField)enumtr.nextElement();\r\n descriptor.getFields().addElement(lockField);\r\n }\r\n }", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "private void initData() {\n\t\tcomboBoxInit();\n\t\tinitList();\n\t}", "private void setPeopleFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t// Set the contact id\n\t\tselectedColumn = cur.getColumnIndex(RawContacts._ID);\n\t\tlong nid = cur.getLong(selectedColumn);\n\t\t_id = String.valueOf(nid);\n\n\t\t// TODO: note and birthday\n\t\t// selectedColumn = cur.getColumnIndex(Contacts.People.NOTES);\n\t\t// notes = cur.getString(selectedColumn);\n\t\t// if (notes != null) {\n\t\t// Matcher ppm = birthdayPattern.matcher(notes);\n\t\t//\n\t\t// if (ppm.find()) {\n\t\t// birthday = ppm.group(1);\n\t\t// notes = ppm.replaceFirst(\"\");\n\t\t// }\n\t\t// }\n\t}", "public void setFields(final List<Field> fields) {\n this.fields.addAll(fields);\n }", "public void setData() {\n tVShortTitle.setText(mCurrencyShortForm);\n tVCount.setText(mCountTitle.concat(String.valueOf(mMainListForActions.size())));\n tVFirstCurrency.setText(mFirstCurrencyTitle);\n tVChosenOrganizationPurchase.setText(getInfoString(mPurchaseTitle + \": \", mPurchaseValue));\n tVChosenOrganizationSale.setText(getInfoString(mSaleTitle + \": \", mSaleValue));\n tVChosenOrganizationDate.setText(mDate.substring(0, 10));\n if (mAction.equals(ConstantsManager.CONVERTER_ACTION_SALE)) {\n tVChosenAction.setText(mSaleTitle.toUpperCase());\n } else {\n tVChosenAction.setText(mPurchaseTitle.toUpperCase());\n }\n mTextWatcherAdapter.setActionForFirst(false);\n mTextWatcherAdapter.setActionForSecond(false);\n convertValue();\n }", "private void setValues() {\n DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();\n DatabaseReference propRef = rootRef.child(\"Properties\").child(globals.chosenProp);\n\n propRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n for (DataSnapshot ds : dataSnapshot.getChildren()) {\n //Fetches the key for each child of the parent node\n String key = ds.getKey();\n\n //Runs key through switch to determine what variable needs to be assigned with the keys value\n switch(key) {\n case \"name\":\n name = ds.getValue().toString();\n break;\n case \"address\":\n address = ds.getValue().toString();\n break;\n case \"category\":\n category = ds.getValue().toString();\n break;\n case \"size\":\n size = ds.getValue().toString();\n break;\n case \"price\":\n price = ds.getValue().toString();\n break;\n case \"agent\":\n break;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + key);\n }\n }\n }\n //Runs loadDetails method\n loadDetails();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) { }\n });\n }", "public void fetchFields(DNStateManager sm)\r\n {\r\n sm.replaceFields(fpMembers, fm);\r\n }", "public void fetchFields(DNStateManager sm)\r\n {\r\n sm.replaceFields(fpMembers, fm);\r\n }", "@Override\r\n public void fillFieldValues() {\n if (panelType == CompetitivePropsPanelType.CREATE_GROUP) {\r\n competitive = new CompetitiveGroup(null, 1);\r\n tfNumCompetitiveNeurons.setText(\"\"\r\n + DEFAULT_NUM_COMPETITIVE_NEURONS);\r\n fillCompetitiveGroupFieldValues();\r\n } else if (panelType == CompetitivePropsPanelType.CREATE_NETWORK) {\r\n competitive = new CompetitiveNetwork(null, 1, 1,\r\n networkPanel.getWhereToAdd());\r\n tfNumCompetitiveNeurons.setText(\"\"\r\n + DEFAULT_NUM_COMPETITIVE_NEURONS);\r\n tfNumInputNeurons.setText(\"\" + DEFAULT_NUM_INPUT_NEURONS);\r\n fillCompetitiveNetworkFieldValues();\r\n } else if (panelType == CompetitivePropsPanelType.EDIT_GROUP) {\r\n fillCompetitiveGroupFieldValues();\r\n }\r\n }" ]
[ "0.7219631", "0.7202961", "0.68999475", "0.68231237", "0.6817776", "0.67070043", "0.6591886", "0.65847355", "0.65657157", "0.64612603", "0.6459767", "0.6418458", "0.6395232", "0.63832676", "0.63337344", "0.6231682", "0.61798894", "0.61374515", "0.6137227", "0.6122686", "0.6104145", "0.6098904", "0.6096428", "0.6051997", "0.6021696", "0.6015461", "0.60134196", "0.5986742", "0.59828234", "0.5968777", "0.596841", "0.59671754", "0.5912251", "0.58945507", "0.58492446", "0.58290505", "0.5804669", "0.5798101", "0.5795525", "0.5722275", "0.57073456", "0.5673751", "0.5673122", "0.5660956", "0.5656895", "0.5656604", "0.5640211", "0.5636571", "0.56331927", "0.56283015", "0.56197745", "0.5615771", "0.5606783", "0.5593231", "0.5587225", "0.5585869", "0.55664086", "0.55649966", "0.5564927", "0.5563452", "0.5550516", "0.554858", "0.55347556", "0.55343986", "0.55271256", "0.5512038", "0.55103076", "0.5503553", "0.55019397", "0.55004513", "0.54865444", "0.5486132", "0.54832673", "0.5474266", "0.54728186", "0.5469356", "0.5468145", "0.54586786", "0.54501146", "0.5446555", "0.54455596", "0.5443954", "0.544155", "0.5434449", "0.5421035", "0.5418734", "0.5417375", "0.5408873", "0.5407652", "0.54065865", "0.54039043", "0.5400274", "0.5400043", "0.53905594", "0.5387544", "0.5383025", "0.5369149", "0.53550196", "0.53527975", "0.53527975", "0.5351444" ]
0.0
-1
Fill field values to default values for this synapse type.
public void fillDefaultValues() { checkUsingAdaptation(); tfSemiSaturation.setText(Double.toString(prototypeRule .getSemiSaturationConstant())); tfSteepness.setText(Double.toString(prototypeRule.getSteepness())); tfTimeConstant .setText(Double.toString(prototypeRule.getTimeConstant())); tsNoise.setSelected(prototypeRule.getAddNoise()); tsUseAdaptation.setSelected(prototypeRule.getUseAdaptation()); tfAdaptationTime.setText(Double.toString(prototypeRule .getAdaptationTimeConstant())); tfAdaptationParam.setText(Double.toString(prototypeRule .getAdaptationParameter())); randTab.fillDefaultValues(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initDefaultValues() {\n }", "public void setCreationDefaultValues()\n {\n this.setDescription(this.getPropertyID()); // Warning: will be lower-case\n this.setDataType(\"\"); // defaults to \"String\"\n this.setValue(\"\"); // clear value\n //super.setRuntimeDefaultValues();\n }", "public void loadDefaultValues() {\r\n\t}", "private void setDefaultValueIfMissing() {\n if (!getType().isNumber() || !hasValidation()) {\n return;\n }\n if (!hasDefaultValue()) {\n if (validation.hasMinimum()) {\n setDefaultValue(validation.getMinimum());\n } else {\n if (validation.hasMaximum()) {\n setDefaultValue(validation.getMaximum());\n }\n }\n }\n }", "protected void reset () {\n for (Field field : this.map) {\n this.table.putNumber(field.getName(), field.getDefaultValue());\n }\n }", "public void setDefault() {\n fields[0].setText(\"\");\n fields[1].setText(\"\");\n fields[2].setText(\"\");\n fields[3].setText(\"\");\n }", "@Override\n protected void setInitialValues() {\n overrideProperty.set(false);\n typeProperty.set(\"0800\");\n }", "@Override\n\tpublic void fillDefault(Value v) {\n\n\t}", "@Override\n\tprotected void initializeFields() {\n\n\t}", "protected void typesReset() {\n\t valueList.setListData(nullValues);\n\t valueField.setEnabled(false);\n\t valueList.setEnabled(false);\t \t \n }", "protected void setToDefault(){\n\n\t}", "public void initDefaultValues(BinaryContent t)\r\n\t{\n\r\n\t}", "@Override\n\tprotected void performDefaults() {\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tpe.loadDefault();\n\t\t\t}\n\t\t}\n\t\t// Force a recalculation of my error state.\n\t\tcheckState();\n\t\tsuper.performDefaults();\n\t}", "private void setDefaultValues()\r\n\t{\r\n\t\tif (m_receiverAddress == null || m_receiverAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_receiverAddress = \"[email protected]\";\r\n\t\t}\r\n\r\n\t\tif (m_replyAddress == null || m_replyAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_replyAddress = \"no return\";\r\n\t\t}\r\n\r\n\t\tif (m_senderName == null || m_senderName.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_senderName = \"Unknown Sender\";\r\n\t\t}\r\n\r\n\t\tif (m_subject == null || m_subject.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_subject = \"AN.ON support request\";\r\n\t\t}\r\n\r\n\t\tif (m_bodyText == null || m_bodyText.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_bodyText = \"message is empty\";\r\n\t\t}\r\n\r\n\t}", "public void initialiseValues() {\n\t\tif (validationRule == null) { // NOSONAR\n\t\t\tvalidationRule = Optional.empty();\n\t\t}\n\t}", "protected void clear() {\r\n setValue(getDefault());\r\n }", "@Override\n\tpublic void initializeValues() {\n\n\t}", "private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }", "public void setToDefault();", "public void setParametersToDefaultValues()\n/* 65: */ {\n/* 66:104 */ super.setParametersToDefaultValues();\n/* 67:105 */ this.placeholder = _placeholder_DefaultValue_xjal();\n/* 68: */ }", "private void setNulls() {\n mEnum = null;\n mString = null;\n mCharSequence = null;\n //mBoolean = true;\n mBoolByte = BooleanDataType.NULL;\n mChar = CharDataType.NULL;\n mDateTime = DateTimeDataType.NULL;\n mTimeOfDay = TimeOfDayDataType.NULL;\n\n mByte = IntegerDataType.INT8_NULL;\n mShort = IntegerDataType.INT16_NULL;\n mInt = IntegerDataType.INT32_NULL;\n mInt48 = IntegerDataType.INT48_NULL;\n mLong = IntegerDataType.INT64_NULL;\n mFloat = FloatDataType.IEEE32_NULL;\n mDouble = FloatDataType.IEEE64_NULL;\n //mDouble2 = FloatDataType.IEEE64_NULL;\n mPUINT30 = IntegerDataType.PUINT30_NULL;\n mPUINT61 = IntegerDataType.PUINT61_NULL;\n mPIneterval = IntegerDataType.PINTERVAL_NULL;\n mSCALE_AUTO = FloatDataType.DECIMAL_NULL;\n mSCALE4 = FloatDataType.DECIMAL_NULL;\n }", "private void setDefaultValues() {\r\n this.nodeDegreeSpinner.setValue(display_node_degree_default);\r\n this.displayEdgesSpinner.setValue(display_edges_default);\r\n this.scaleSpinner.setValue(scale_default);\r\n this.minweightSpinner.setValue(minweight_edges_default);\r\n this.iterationsSpinner.setValue(iterations_default);\r\n this.vote_value.setValue(vote_value_default);\r\n this.mut_value.setValue(mut_value_default);\r\n this.keep_value.setValue(keepclass_value_default);\r\n\r\n this.only_sub.setSelected(display_sub_default);\r\n this.top.setSelected(true);\r\n this.continuous.setSelected(true);\r\n this.dec.setSelected(true);\r\n this.vote_value.setEnabled(false);\r\n this.is_alg_started = false;\r\n }", "private void initValues() {\n \n }", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "public final void setDefautlVals() {\n this.createTime = this.writeTime = GlobalMethods.getTimeStamp(null);\n this.createId = this.writeId = PackagingVars.context.getUser().getId();\n }", "private T setDefaultValue(T t) {\n\t\tif(t.getStatus() == null) {\n\t\t\tt.setStatus(1);\n\t\t}\n\t\tif(t.getCreateTime() == null) {\n\t\t\tt.setCreateTime(new Date());\n\t\t}\n\t\tif(t.getUpdateTime() == null) {\n\t\t\tt.setUpdateTime(new Date());\n\t\t}\n\t\treturn t;\n\t}", "public void resetData() {\r\n this.setName(\"\");\r\n this.setType(\"\");\r\n this.setContact(\"\");\r\n this.setAffiliatedResearchers(\"\");\r\n this.setCountry(\"\");\r\n this.setResearchKeywords(\"\");\r\n this.setResearchDescription(\"\");\r\n this.setHomePage(\"\");\r\n }", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}", "public void initDefaultValues() {\n setOrderActive(1);\n setProductQuantity(1);\n setBillingPhone1Blocked(0);\n setBillingPhone2Blocked(0);\n setOrderAvailabilityStatus(1);\n setDeliveryStatus(1);\n setMailedReminderToVendorStatus(0);\n setOrderCancelRequestStatus(0);\n setOrderCancellationToVendorStatus(0);\n setDisputeRaisedStatus(0);\n setOrderAcceptNewsletter(1);\n setOrderAcceptPromotionalMaterial(1);\n setBillingAdvanceAmount(0);\n setBillingBalanceAmount(0);\n setBillingGrossAmount(0f);\n setBillingMarginAmount(0f);\n setBillingNettCost(0f);\n setBillingPaymentGatewayRate(0f);\n setBillingStateId(0);\n setBillingTaxrate(0f);\n setBillingTotalAmount(0f);\n setCarYear(0);\n setCustomint1(0);\n setCustomint2(0);\n setCustPaymentMode(0);\n setCustPaymentStatus(0);\n setInvoiceId(0);\n setVendorPaymentMode(0);\n setShipmentRate(0);\n setShipmentCountryId(0);\n setShipmentCityId(0);\n setOrderType(0);\n setOrderStatus(0);\n setOrderRefundType(0);\n setOrderPriority(0);\n setOrderBulkType(0);\n setOrderCorporateType(0);\n setShipmentCityId(0);\n setShipmentCountryId(0);\n setShipmentRate(0f);\n setShipmentStateId(0);\n setOrderCancellationType(0);\n }", "private void fillMandatoryFields() {\n\n }", "public void initDefaultValues(SurgicalPathologyReport t)\r\n\t{\n\r\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public void initDefaultValues(ReportLoaderQueue t)\r\n\t{\n\r\n\t}", "private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}", "private Field[][] fillWithDefaultValues(Field[][] fieldsToFill) {\n for (int x = 0; x < fieldsToFill.length; x++) {\n for (int y = 0; y < fieldsToFill.length; y++) {\n fieldsToFill[x][y] = new Field(x, y);\n }\n }\n\n // add starting stones for both players\n Stone stoneBlack = new Stone();\n stoneBlack.setColor(Color.BLACK);\n Stone stoneWhite = new Stone();\n stoneWhite.setColor(Color.WHITE);\n\n int BoardHalfLength = fieldsToFill.length / 2;\n int middle_x_left = BoardHalfLength - 1;\n int middle_x_right = BoardHalfLength;\n int middle_y_up = BoardHalfLength - 1;\n int middle_y_down = BoardHalfLength;\n\n fieldsToFill[middle_x_left][middle_y_up].setStone(stoneBlack);\n fieldsToFill[middle_x_right][middle_y_up].setStone(stoneWhite);\n fieldsToFill[middle_x_left][middle_y_down].setStone(stoneWhite);\n fieldsToFill[middle_x_right][middle_y_down].setStone(stoneBlack);\n\n return fieldsToFill;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000008);\n type_ = fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType.FT_DEFAULT;\n onChanged();\n return this;\n }", "private void setValoresDefault()\n\t{\n\t\t// seta valores default dos campos\n\t\tlmResumo.clear();\n\n\t\tlmResumo.addElement(\"10000000\");\n\t\tlmResumo.addElement(\"20000000\");\n\t\tlmResumo.addElement(\"30000000\");\n\t\tlmResumo.addElement(\"40000000\");\n\t\tlmResumo.addElement(\"50000000\");\n\n\t\tjTFQTdRegistroBD.setText(null);\n\n\t\tjCBSmall.setSelected(true);\n\t\tjCBLarge.setSelected(true);\n\t\tjCBExtra.setSelected(true);\n\n\t\tjTFSlaps.setText(\"5\");\n\n\t\tatualizarGraficos(new TreeMap<Long, List<ResultadoVO>>());\n\n\t}", "private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerPerson = 0.0;\n\n }", "public void populateEntityModelDefaultValues() throws DeploymentException {\n LogHelperDeployment.getLogger().fine(\n i18NHelper.msg(\"MSG_PopulatingDefaultsForEntityModel\")); // NOI18N\n du.getPersistenceJar().accept(new TreeWalker(this));\n }", "@Override\n public void convertToDefaultValueOps() {\n\n }", "public void initDefaultValues(PathologyReportReviewParameter t)\r\n\t{\n\r\n\t}", "public void setValueNull()\n\t{\n\t\tallValues.clear();\n\t}", "@Override\n public void resetAllValues() {\n }", "@Override\r\n public void fillFieldValues() {\n if (panelType == CompetitivePropsPanelType.CREATE_GROUP) {\r\n competitive = new CompetitiveGroup(null, 1);\r\n tfNumCompetitiveNeurons.setText(\"\"\r\n + DEFAULT_NUM_COMPETITIVE_NEURONS);\r\n fillCompetitiveGroupFieldValues();\r\n } else if (panelType == CompetitivePropsPanelType.CREATE_NETWORK) {\r\n competitive = new CompetitiveNetwork(null, 1, 1,\r\n networkPanel.getWhereToAdd());\r\n tfNumCompetitiveNeurons.setText(\"\"\r\n + DEFAULT_NUM_COMPETITIVE_NEURONS);\r\n tfNumInputNeurons.setText(\"\" + DEFAULT_NUM_INPUT_NEURONS);\r\n fillCompetitiveNetworkFieldValues();\r\n } else if (panelType == CompetitivePropsPanelType.EDIT_GROUP) {\r\n fillCompetitiveGroupFieldValues();\r\n }\r\n }", "private static void initialize_sensorTypeToWrapperDataFormat() {\n\t\tsensorTypeToWrapperDataFormat.put(\"weather\", \"XML/JSON\");\n\t\tsensorTypeToWrapperDataFormat.put(\"traffic\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"roadactivity\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"snowfall\", \"Text\");\n\t\tsensorTypeToWrapperDataFormat.put(\"snowdepth\", \"Text\");\n\t\tsensorTypeToWrapperDataFormat.put(\"webcam\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"radar\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"satellite\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"sealevel\", \"Text\");\n\t\tsensorTypeToWrapperDataFormat.put(\"cosm\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"bikehire\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"railwaystation\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"ADSBHub\", \"Stream\");\n\t}", "private void setDefaultValues() {\n nameInput.setText(\"\");\n frontTrackInput.setText(String.valueOf(RaceCar.getDefaultTrack()));\n cornerWeightFLInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_FL()));\n cornerWeightRLInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_RL()));\n rearTrackInput.setText(String.valueOf(RaceCar.getDefaultTrack()));\n cornerWeightRRInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_RR()));\n cornerWeightFRInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_FR()));\n cogInput.setText(String.valueOf(RaceCar.getDefaultCogheight()));\n frontRollDistInput.setText(String.valueOf(RaceCar.getDefaultFrontrolldist()));\n wheelBaseInput.setText(String.valueOf(RaceCar.getDefaultWheelbase()));\n }", "protected void performDefaults() {\r\n\t}", "protected void resetValues(){\n bean.setName(\"\");\n bean.setPassword(\"\");\n bean.setPasswordRepeat(\"\");\n bean.setSurname(\"\");\n bean.setUsername(\"\");\n bean.setValidation(\"\");\n \n }", "public void setDefault(Type defaultType)\n\t{\n\t\tm_default = defaultType;\n\t}", "private void fillMandatoryFields_custom() {\n\n }", "void fillDatabase() {\n Type.type( \"FOOD\" );\n Type.type( \"HOT\" );\n Type.type( \"SNACK\" );\n }", "Field() {\n value = 0;\n }", "public void updateNonDynamicFields() {\n\n\t}", "private void replaceNullKeyWithEmptyString(PFXExtensionType extensionType, ObjectNode node) {\n Set<String> existingFields = getExistingFields(node);\n\n Set<String> missingFields = extensionType.getBusinessKeys();\n missingFields.removeAll(existingFields);\n\n for (String missingField : missingFields) {\n if (node.get(missingField) == null || node.get(missingField).isMissingNode() ||\n node.get(missingField).textValue() == null) {\n node.put(missingField, StringUtils.EMPTY);\n }\n }\n }", "private void updateDefaultValue(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\t\t\n\t\t((QuestionDef)propertiesObj).setDefaultValue(txtDefaultValue.getText());\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}", "@Override\n\tpublic void recalculate() {\n\t\tthis.constant = Convert.MapEntry.toBoolean(this.getAttributes(), \"constant\", false);\n\t\tfinal Object defaultObject = Base.getJava(this.getAttributes(), \"default\", null);\n\t\tif (defaultObject == null) {\n\t\t\tthis.defaultValue = null;\n\t\t} else {\n\t\t\tif (defaultObject instanceof Set<?>) {\n\t\t\t\tthis.defaultValue = (Set<?>) defaultObject;\n\t\t\t} else if (defaultObject instanceof Collection<?>) {\n\t\t\t\tthis.defaultValue = Create.tempSet((Collection<?>) defaultObject);\n\t\t\t} else if (defaultObject instanceof Object[]) {\n\t\t\t\tthis.defaultValue = Create.tempSet(Arrays.asList((Object[]) defaultObject));\n\t\t\t} else {\n\t\t\t\tfinal String defaultString = defaultObject.toString();\n\t\t\t\tif (defaultString.length() == 0) {\n\t\t\t\t\tthis.defaultValue = Create.tempSet();\n\t\t\t\t} else {\n\t\t\t\t\tthis.defaultValue = Create.tempSet(Arrays.asList((Object[]) defaultString.split(\",\")));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void initialize() {\r\n\t\tsetValue(initialValue);\r\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public static void generateDefaults() {\n Building temp = BuildingList.getBuilding(0);\n SubAreas temp2 = temp.getSubArea(1);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(2);\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(3);\n temp2.createMotionSensor();\n temp2.createFireSensor();\n temp2 = temp.getSubArea(5);\n temp2.createFireSensor();\n temp2 = temp.getSubArea(6);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n }", "private void resetFields() {\n\t\tthis.barcodeField.clear();\r\n\t\tthis.barcodeField.setDisable(false);\r\n\t\tthis.nameField.clear();\r\n\t\tthis.descriptionField.clear();\r\n\t\tthis.mrpField.clear();\r\n\t\tthis.revisedMrpField.clear();\r\n\t\tthis.stockField.clear();\r\n\t\tthis.availableStockLabelValue.setText(\"0.0\");\r\n\t\tthis.barcodeImageView.setImage(null);\r\n\t\tthis.barcodeDisplayLabel.setVisible(true);\r\n\t\tthis.barcodeNumberLabel.setVisible(false);\r\n\r\n\t}", "public void setDefaultParameters() {\n\t\toptions = 0;\n\t\toutBits = null;\n\t\ttext = new byte[0];\n\t\tyHeight = 3;\n\t\taspectRatio = 0.5f;\n\t}", "private void setDefaultDBValues() {\r\n this.rhostfield.setText(hostnameString_default);\r\n this.rportfield.setText((new Integer(portNr_default)).toString());\r\n this.rdatabasefield.setText(databaseString_default);\r\n this.ruserfield.setText(rusernameString_default);\r\n this.rpasswdfield.setText(\"\");\r\n this.rtablename1efield.setText(nodeList_DBtable_default);\r\n this.colnodeIdfield.setText(node_ids_DBcol_default);\r\n this.colnodeLabelfield.setText(node_labels_DBcol_default);\r\n this.rtablename2efield.setText(edgeList_DBtable_default);\r\n this.coledge1field.setText(edgeList_DBcol1_default);\r\n this.coledge2field.setText(edgeList_DBcol2_default);\r\n this.colweightfield.setText(edgeList_DBcolweight_default);\r\n this.otablenamefield.setText(result_DBtable_default);\r\n\r\n this.is_alg_started = false;\r\n this.is_already_read_from_DB = false;\r\n this.is_already_renumbered = false;\r\n }", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "public void setDefaultValue() throws Exception {\n\t\tString columns[] = CommonUtil.split(getFrwVarDefaultColumn(), \",\");\n\t\tString values[] = CommonUtil.split(getFrwVarDefaultValue(), \",\");\n\n\t\tif (CommonUtil.isNotEmpty(columns)) {\n\t\t\tfor (int i=0; i<columns.length; i++) {\n\t\t\t\tsetValue(columns[i], values[i]);\n\t\t\t}\n\t\t}\n\t}", "private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}", "public void clearFields() {\n\t\tid.clear();\n\t\tfn.clear();\n\t\tln.clear();\n\t\tage.clear();\n\t\tun.clear();\n\t\tpass.clear();\n\t\tdate.setValue(null);\n\t}", "public static void resetValues() {\r\n\t\t// System.out.println(\"ExPar.resetValues()\");\r\n\t\tString cn = \"de.pxlab.pxl.ExPar\";\r\n\t\ttry {\r\n\t\t\tClass cls = Class.forName(cn);\r\n\t\t\tField[] fld = cls.getFields();\r\n\t\t\tint n2 = fld.length;\r\n\t\t\tfor (int j = 0; j < n2; j++) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tObject p = fld[j].get(null);\r\n\t\t\t\t\tif (p instanceof de.pxlab.pxl.ExPar) {\r\n\t\t\t\t\t\t// System.out.println(\"ExPar.resetValue(): \" +\r\n\t\t\t\t\t\t// fld[j].getName() + \" = \" +\r\n\t\t\t\t\t\t// ((ExPar)p).defaultValue.toString());\r\n\t\t\t\t\t\t((ExPar) p)\r\n\t\t\t\t\t\t\t\t.setValue((ExParValue) (((ExPar) p).defaultValue\r\n\t\t\t\t\t\t\t\t\t\t.clone()));\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (NullPointerException npx) {\r\n\t\t\t\t} catch (IllegalAccessException iax) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ClassNotFoundException cnfe) {\r\n\t\t\tSystem.out.println(\"ExPar.resetValues(): Oh! Class \" + cn\r\n\t\t\t\t\t+ \" not found!\");\r\n\t\t}\r\n\t\tsetDate();\r\n\t\tif (Base.hasDisplayDeviceFrameDuration()) {\r\n\t\t\tVideoFrameDuration.set(Base.getDisplayDeviceFrameDuration());\r\n\t\t}\r\n\t}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "@Override\n\tpublic void fillData() {\n\t}", "protected abstract void resetInputFields();", "public Builder clearNilValue() {\n if (typeCase_ == 1) {\n typeCase_ = 0;\n type_ = null;\n onChanged();\n }\n return this;\n }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}", "private void initDefaults() {\n _nodeFadeSourceColor = _defNodeFadeSourceColor;\n _nodeFadeDestinationColor = _defNodeFadeDestinationColor;\n\n _nodeStrokeSourceColor = _defNodeStrokeSourceColor;\n _nodeStrokeDestinationColor = _defNodeStrokeDestinationColor;\n\n _nodeStrokeSourceWidth = _defNodeStrokeSourceWidth;\n _nodeStrokeDestinationWidth = _defNodeStrokeDestinationWidth;\n\n _supportEdgeFadeSourceColor = _defSupportEdgeFadeSourceColor;\n _supportEdgeFadeDestinationColor = _defSupportEdgeFadeDestinationColor;\n\n _refuteEdgeFadeSourceColor = _defRefuteEdgeFadeSourceColor;\n _refuteEdgeFadeDestinationColor = _defRefuteEdgeFadeDestinationColor;\n\n _edgeStrokeSourceWidth = _defEdgeStrokeSourceWidth;\n _edgeStrokeDestinationWidth = _defEdgeStrokeDestinationWidth;\n\n _curvedLines = _defCurvedLines;\n\n _manualBackgroundColor = _defManualBackgroundColor;\n\n _realTimeSliderResponse = _defRealTimeSliderResponse;\n }", "private void DefaultValues(){\n txtCategoryNo.setText(\"\");\n txtCategoryName.setText(\"\");\n }", "public void initializeProperties() {\r\n DatabaseField dbField = getWriteLockField();\r\n dbField = descriptor.buildField(dbField);\r\n setWriteLockField(dbField);\r\n if (isStoredInCache() && (dbField.getType() == null)) {\r\n // Set the default type, only if un-mapped.\r\n dbField.setType(getDefaultLockingFieldType());\r\n }\r\n Enumeration enumtr = this.getUnmappedFields().elements();\r\n while (enumtr.hasMoreElements()) {\r\n DatabaseField lockField;\r\n lockField = (DatabaseField)enumtr.nextElement();\r\n descriptor.getFields().addElement(lockField);\r\n }\r\n }", "@Modified(author=\"Phil Brown\", summary=\"Added Method\")\n public void setupStartValues() {\n }", "public Object getDefaultValue();", "public Object getDefaultValue();", "private static void initialize_sensorTypeToTableProperties() {\n\t\tinitialized_LinkType();\n\t\tinitialized_RoadActivitysType();\n\t\tinitialized_SealevelType();\n\t\tinitialized_SnowDepthType();\n\t\tinitialized_SnowFallType();\n\t\tinitialized_TrafficType();\n\t\tinitialized_WeatherType();\n\t\tinitialized_BikeHireType();\n\t\tinitialized_RailwayStationType();\n\t\tinitialized_ADSBHubType();\n\t}", "private void processPropDefaultValues() {\n getMethodsWithAnnotation(component, PropDefault.class).forEach(method -> {\n PropDefault propValidator = method.getAnnotation(PropDefault.class);\n\n String exposedMethodName = exposeExistingJavaMethodToJs(method);\n String propertyName = propValidator.value();\n optionsBuilder.addStatement(\"options.addJavaPropDefaultValue(p.$L, $S)\",\n exposedMethodName,\n propertyName);\n });\n }", "private static void initDataTypeList()\n\t{\n\t\tfor(String numberType : DATA_TYPE_ARRAY)\n\t\t{\n\t\t\tdataTypeList.add(numberType);\n\t\t}\n\t\tlogger.info(\" --|*|-- All Data types are initialized! --|*|--\");\n\t}", "public void resetTextFields()\n {\n formattedFirstName.setValue(null);\n formattedLastName.setValue(null);\n formattedTitleOfWork.setValue(null);\n }", "private void clearInsertingValues() {\n mapFieldsIntegers.clear();\n mapFieldsStrings.clear();\n }", "com.google.protobuf.Value getDefaultValue();", "@SuppressWarnings(\"deprecation\")\n @Override\n void setDefaults() {\n //Do nothing\n }", "private void updateDefaultValues(DefaultValues defValue) throws NbaDataAccessException {\n setDefValuesKeys(defValue); //SPR2741\n nbaAcdb.updateDefaultValues(defValue);\n }", "protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }", "public final void setDefault() {\n wind.setCoordinates(DEFAULT_TURBULENCES, DEFAULT_TURBULENCES,\n DEFAULT_TURBULENCES);\n }", "com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder();", "public void resetField() {\n setFields(new boolean[getLength()][getHeight()]);\n }", "public synchronized void resetCustomValues() {\n customValues = null;\n }", "private void populateEmptyFields(DublinCoreMetadataCollection dublinCoreMetadata, Set<String> emptyFields) {\n for (String field : emptyFields) {\n try {\n dublinCoreMetadata.addField(dublinCoreProperties.get(field), \"\", getListProvidersService());\n } catch (Exception e) {\n logger.error(\"Skipping metadata field '{}' because of error: {}\", field, ExceptionUtils.getStackTrace(e));\n }\n }\n }", "public void pushDefaultValue(Type aType)\n\t{\n\t\tswitch(aType.getSort())\n\t\t{\n case Type.BOOLEAN:\n case Type.BYTE:\n case Type.CHAR:\n case Type.SHORT:\n case Type.INT:\n \tpushInt(0);\n \tbreak;\n \t\n case Type.FLOAT:\n \tpushFloat(0);\n \tbreak;\n \t\n case Type.LONG:\n \tpushLong(0);\n \tbreak;\n \t\n case Type.DOUBLE:\n \tpushDouble(0);\n \tbreak;\n\n case Type.OBJECT:\n case Type.ARRAY:\n \tACONST_NULL();\n \tbreak;\n \t\n case Type.VOID:\n \tbreak;\n \t\n default:\n throw new RuntimeException(\"Not handled: \"+aType);\n\t\t}\n\t}", "private void setFieldsEmpty(){\n nameInput.setText(\"\");\n frontTrackInput.setText(\"\");\n cornerWeightFLInput.setText(\"\");\n cornerWeightRLInput.setText(\"\");\n rearTrackInput.setText(\"\");\n cornerWeightRRInput.setText(\"\");\n cornerWeightFRInput.setText(\"\");\n cogInput.setText(\"\");\n frontRollDistInput.setText(\"\");\n wheelBaseInput.setText(\"\");\n }", "@Override\r\n protected Object[] getFieldValues ()\r\n {\n return null;\r\n }", "public MyAllTypesFirst() {\n myInt = 0;\n myLong = 0;\n myString = \"\";\n myBool = false;\n myOtherInt = 0;\n }", "public static Object getDefaultValue(Object value) {\n if (value instanceof String) {\n return FieldType.STRING_TYPE.getDefaultValue();\n } else if (value instanceof ActivityStreamRest) {\n return FieldType.ACTIVITY_STREAM_REST.getDefaultValue();\n } else if (value instanceof ActivityRest) {\n return FieldType.ACTIVITY_REST_TYPE.getDefaultValue();\n }\n return new HashMap<String, Object>();\n }" ]
[ "0.65342104", "0.65321416", "0.60072786", "0.60054153", "0.5963121", "0.59591967", "0.5957467", "0.5943501", "0.58869666", "0.5883584", "0.58720267", "0.58399224", "0.5825658", "0.57985073", "0.57780045", "0.57668144", "0.57352096", "0.57278645", "0.5717959", "0.5716443", "0.5688278", "0.56807506", "0.56623554", "0.5658958", "0.5652558", "0.56442994", "0.55836475", "0.5580647", "0.5577702", "0.55611557", "0.55497473", "0.55393046", "0.5517434", "0.5465898", "0.54587156", "0.5427398", "0.54157156", "0.5403428", "0.540254", "0.5393126", "0.5377383", "0.5365013", "0.5358359", "0.53373295", "0.5337044", "0.53354764", "0.53220004", "0.5317816", "0.52995014", "0.52982795", "0.52718866", "0.5264061", "0.52336645", "0.522873", "0.52271146", "0.5211081", "0.5200952", "0.5192572", "0.517061", "0.51683736", "0.5163224", "0.5146446", "0.5142074", "0.5127409", "0.5122049", "0.5121332", "0.5111338", "0.5107255", "0.50835377", "0.50826794", "0.5082254", "0.5076634", "0.50522", "0.50516826", "0.5050985", "0.5039286", "0.5030375", "0.5027363", "0.5026743", "0.5025109", "0.5025109", "0.5022491", "0.5015383", "0.50125724", "0.50009745", "0.4997352", "0.49928063", "0.49886864", "0.49851763", "0.49809617", "0.4975771", "0.4968863", "0.4965369", "0.49639288", "0.4952932", "0.49464965", "0.49462697", "0.494501", "0.49393353", "0.4933929" ]
0.65974116
0
Responds to actions performed.
public void actionPerformed(final ActionEvent e) { Object o = e.getSource(); if (o == tsUseAdaptation) { checkUsingAdaptation(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Responder() {}", "@Override\n\tpublic void sendResponse() {\n\t\t\n\t}", "public boolean onRequestPerformed(E content);", "@Override\n\tpublic void sendResponse() {\n\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\n\tpublic void run() {\n\t\trespond();\n\t\tlisten();\n\t}", "public void actionOffered();", "@Override\n\t\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void execute() {\n\t\tString userID = clientMediator.getUserName();\n\t\tString id = reactToController.communicateWith(userID);\n\t\tif(id != null){\n\t\t\tclientMediator.setReactTo(id);\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tString message = reactToController.reactToEntity(id,userID);\n\t\t\tString result = \"You just interacted with \" + id + \", so you \" + message + \" at \" + df.format(new Date()).toString();\n\t\t\tclientMediator.setReactResult(result);\n\t\t\tclientMediator.getEventQueue().add(new ReactToEvent(id,userID));\n\t\t}\n\t}", "ResponseDTO performServerActions();", "@Override\n\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\r\n\t}", "private static void reply(final RoutingContext context, final Envelop envelop,\n final Set<MediaType> mediaTypes, final Method sessionAction) {\n final HttpServerResponse response = context.response();\n /*\n * FIX: java.lang.IllegalStateException: Response is closed\n */\n if (!response.closed()) {\n /*\n * Set http status information on response, all information came from `Envelop`\n * 1) Status Code\n * 2) Status Message\n */\n final HttpStatusCode code = envelop.status();\n response.setStatusCode(code.code());\n response.setStatusMessage(code.message());\n /*\n * Bind Data\n */\n envelop.bind(context);\n /*\n * Media processing\n */\n Outcome.media(response, mediaTypes);\n /*\n * Security for response ( Successful Only )\n */\n if (envelop.valid()) {\n Outcome.security(response);\n /*\n * SessionData Stored\n */\n storeSession(context, envelop.data(), sessionAction);\n }\n /*\n * Plugin Extension for response replying here ( Plug-in )\n */\n PluginExtension.Answer.reply(context, envelop);\n /*\n * Output of current situation\n */\n Outcome.out(response, envelop, mediaTypes);\n }\n }", "public void respond(IRequestCycle arg0) {\n\t\t\n\t}", "public void doInteract()\r\n\t{\n\t}", "@Override\n protected void doAct() {\n }", "public void responseSent(DesktopCtrl desktopCtrl, String channel, String reqId, Object resInfo);", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "public void doAction(){}", "public void interactWhenApproaching() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest req, HttpServletResponse resp, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "void sendResponseMessage(HttpResponse response) throws IOException;", "protected abstract void askResponse();", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "public void request() {\n }", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "void faild_response();", "public void processAction(ActionRequest request, ActionResponse response) throws PortletException, java.io.IOException {\r\n\r\n }", "@Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }", "@Override\n\tprotected void dispatch(CometResponseHandler handler) {\n\t\t\n\t}", "@Override\n public void sendResponse(final Response response) {\n\n }", "@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\r\n\t\t\t\t{\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}", "@Override\n public void sendSelectionMessage(CommandHandler commandHandler) {\n try {\n commandHandler.update(new Response(null, true, Constants.MAIN_ACTION));\n } catch (Observer.CommunicationError error) {\n error.printStackTrace();\n }\n }", "public void serverSideOk();", "void action(String response, GameChatEvent cause) throws InterruptedException, IOException;", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "@Override\n public byte[] execute() {\n return buildResponse();\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "public abstract void actionReal(HttpResponseCallback callback);", "public abstract void onAction();", "@Override\r\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n throws Exception {\n \r\n }", "public String receiveResponse()\n\t{\n\t\t\n\t}", "@Override\n public void action() {\n ACLMessage acl = receive();\n if (acl != null) {\n if (acl.getPerformative() == ACLMessage.REQUEST) {\n try {\n ContentElement elemento = myAgent.getContentManager().extractContent(acl);\n if (elemento instanceof PublicarServicio) {\n PublicarServicio publicar = (PublicarServicio) elemento;\n Servicio servicio = publicar.getServicio();\n jadeContainer.iniciarChat(servicio.getTipo(), servicio.getDescripcion());\n //myAgent.addBehaviour(new IniciarChatBehaviour(myAgent, servicio.getTipo(), servicio.getDescripcion()));\n } else if (elemento instanceof EnviarMensaje) {\n EnviarMensaje enviar = (EnviarMensaje) elemento;\n Mensaje mensaje = enviar.getMensaje();\n jadeContainer.enviarMensajeChatJXTA(mensaje.getRemitente(), mensaje.getMensaje());\n }\n } catch (CodecException ex) {\n System.out.println(\"CodecException: \" + ex.getMessage());\n } catch (UngroundedException ex) {\n System.out.println(\"UngroundedException: \" + ex.getMessage());\n } catch (OntologyException ex) {\n System.out.println(\"OntologyException: \" + ex.getMessage());\n }\n }\n } else {\n block();\n }\n }", "private String performTheAction(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tString servletPath = request.getServletPath();\r\n\t\tString action = getActionName(servletPath);\r\n\t\t// Let the logged in user run his chosen action\r\n\t\treturn Action.perform(action, request);\r\n\t}", "@Override\r\n\t\t\t\t\tpublic void onResponse(HttpResponse resp) {\n\t\t\t\t\t\tLog.i(\"HttpPost\", \"Success\");\r\n\r\n\t\t\t\t\t}", "void execute(HttpServletRequest request, HttpServletResponse response)\n throws Exception;", "public void processAction (ActionRequest request, ActionResponse response) \n throws PortletException, java.io.IOException {\n throw new PortletException(\"processAction method not implemented\");\n }", "@Override\r\n\tpublic void performAction(Client client, RentUnit rentUnit) {\n\t\tSystem.err.println(\"Program was not implemented\");\r\n\t}", "public interface IAction {\n /**\n * request dispatcher.\n * @param request objet resuete\n * @param response objet reponse\n * @return String return if the response is ok or ko\n */\n String execute(HttpServletRequest request, HttpServletResponse response);\n}", "public void interact() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLog.e(\"SERVICE\",\"sulod\");\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setAction(ResponseReceiver.ACTION_RESP);\n\t\t\t\tintent.addCategory(Intent.CATEGORY_DEFAULT);\n\t\t\t\tintent.putExtra(\"MESSAGE\", 100);\n\t\t\t\tsendBroadcast(intent);\n\t\t\t}", "public void actionSuccessful() {\n System.out.println(\"Action performed successfully!\");\n }", "void executeAction(String action, Map params,\n IPSAgentHandlerResponse response);", "public int accept(HttpResponseProlog prolog, HttpHeaders headers);", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n throws Exception {\n\n }", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n throws Exception {\n\n }", "@Override\r\n\tprotected void processRespond() throws SGSException {\n\r\n\t}", "@Override\n public void act() {\n }", "public void handle(String action, String resourceURI, HandlerContext context, Management request, Management response) throws Exception {\n\n if (Transfer.GET_ACTION_URI.equals(action)) {\n response.setAction(Transfer.GET_RESPONSE_URI);\n get(context, request, response);\n return;\n }\n\n if (Transfer.PUT_ACTION_URI.equals(action)) {\n response.setAction(Transfer.PUT_RESPONSE_URI);\n put(context, request, response);\n return;\n }\n if (Transfer.DELETE_ACTION_URI.equals(action)) {\n response.setAction(Transfer.DELETE_RESPONSE_URI);\n delete(context, request, response);\n return;\n }\n if (Transfer.CREATE_ACTION_URI.equals(action)) {\n response.setAction(Transfer.CREATE_RESPONSE_URI);\n create(context, request, response);\n return;\n }\n\n if (Enumeration.ENUMERATE_ACTION_URI.equals(action)) {\n response.setAction(Enumeration.ENUMERATE_RESPONSE_URI);\n Enumeration enuRequest = new Enumeration(request);\n Enumeration enuResponse = new Enumeration(response);\n enumerate( context, enuRequest, enuResponse);\n return;\n }\n if (Enumeration.PULL_ACTION_URI.equals(action)) {\n response.setAction(Enumeration.PULL_RESPONSE_URI);\n final Enumeration enuRequest = new Enumeration(request);\n final Enumeration enuResponse = new Enumeration(response);\n pull( context, enuRequest, enuResponse);\n return;\n }\n if (Enumeration.RELEASE_ACTION_URI.equals(action)) {\n response.setAction(Enumeration.RELEASE_RESPONSE_URI);\n final Enumeration enuRequest = new Enumeration(request);\n final Enumeration enuResponse = new Enumeration(response);\n release( context, enuRequest, enuResponse);\n return;\n }\n\n if(!customDispatch(action, context, request, response))\n throw new ActionNotSupportedFault(action);\n\t\t\n\t}", "@Override\r\n\tpublic void processAction(ActionRequest actionRequest,\r\n\t\t\tActionResponse actionResponse) throws IOException, PortletException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.processAction(actionRequest, actionResponse);\r\n\t}", "public void performAction();", "public void startResponse()\n\t\t\t{\n\t\t\t\tsend(\"<response>\", false);\n\t\t\t}", "@Override\r\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n Exception ex) throws Exception {\n\r\n }", "private void serve() {\n\t\tif (request == null) {\n\t\t\tchannel.close();\n\t\t\treturn;\n\t\t}\n\t\tlogger.fine(\"Serving \" + type + \" request : \" + request.getPath());\n\t\tResponse resp = RequestHandler.handle(request);\n\t\tif (resp.getRespCode() == ResponseCode.NOT_FOUND) {\n\t\t\terror404(resp);\n\t\t\treturn;\n\t\t}\n\n\t\tStringBuilder header = new StringBuilder();\n\t\tif (type == Type.HTTP) {\n\t\t\theader.append(\"HTTP/1.0 200 OK\\r\\n\");\n\t\t\theader.append(\"Content-Length: \")\n\t\t\t\t\t.append(resp.getFileData().remaining()).append(\"\\r\\n\");\n\t\t\theader.append(\"Connection: close\\r\\n\");\n\t\t\theader.append(\"Server: Hyperion/1.0\\r\\n\");\n\t\t\theader.append(\"Content-Type: \" + resp.getMimeType() + \"\\r\\n\");\n\t\t\theader.append(\"\\r\\n\");\n\t\t}\n\t\tbyte[] headerBytes = header.toString().getBytes();\n\n\t\tByteBuffer bb = resp.getFileData();\n\t\tChannelBuffer ib = ChannelBuffers.buffer(bb.remaining()\n\t\t\t\t+ headerBytes.length);\n\t\tib.writeBytes(headerBytes);\n\t\tib.writeBytes(bb);\n\t\tchannel.write(ib).addListener(ChannelFutureListener.CLOSE);\n\t}", "@Override\r\n public void afterCompletion(HttpServletRequest request,\r\n HttpServletResponse response, Object handler, Exception ex)\r\n throws Exception \r\n {\n }", "@Override\n protected void deliverResponse(JSONObject response) {\n listener.onResponse(response);\n System.out.println(\"response \"+response);\n }", "public void onEulaAction(boolean isAccepted);", "public Response callback() throws Exception;", "public void performAbility() { return; }", "void handleRequest();", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "protected void onMEVPollsForResponse( HttpServletRequest req, HttpServletResponse resp ) throws Exception {\r\n\tHttpSession session = req.getSession( false );\r\n\tif (session == null) throw new NullPointerException(\"Illegal call. Session has not been created \");\r\n\tSessionState si = (SessionState)session.getAttribute(\"MEV_SESSION\");\r\n\tif (si == null) throw new NullPointerException(\"Illegal call. Session info has not been created for the current session\");\r\n\tMEVPollAcceptStrategy strategy = new MEVPollAcceptStrategy( si, m_properties );\r\n\tstrategy.acceptPollRequest( req, resp );\r\n }", "@Override\n public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) {\n }", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\t\n\t}", "protected abstract void runHandler();", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t}", "@Override\n\tpublic void execute(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException\n\t{\n\t\t\n\t}", "abstract public void performAction();", "protected abstract void handleOk();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "@Override\n\tpublic void processAction(ActionRequest actionRequest, ActionResponse actionResponse)\n\t\t\tthrows IOException, PortletException {\n\t\tsuper.processAction(actionRequest, actionResponse);\n\t}", "@Override\r\n\tpublic Message doAction() {\n\t\treturn null;\r\n\t}", "@Override\n\t\tpublic void action() {\n\t\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.REQUEST); \n\t\t\tACLMessage msg = receive(mt);\n\t\t\tif(msg != null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tContentElement ce = null;\n\t\t\t\t\tSystem.out.println(msg.getContent()); //print out the message content in SL\n\n\t\t\t\t\t// Let JADE convert from String to Java objects\n\t\t\t\t\t// Output will be a ContentElement\n\t\t\t\t\tce = getContentManager().extractContent(msg);\n\t\t\t\t\tSystem.out.println(ce);\n\t\t\t\t\tif(ce instanceof Action) {\n\t\t\t\t\t\tConcept action = ((Action)ce).getAction();\n\t\t\t\t\t\tif (action instanceof SupplierOrder) {\n\t\t\t\t\t\t\tSupplierOrder order = (SupplierOrder)action;\n\t\t\t\t\t\t\t//CustomerOrder cust = order.getItem();\n\t\t\t\t\t\t\t//OrderQuantity = order.getQuantity();\n\t\t\t\t\t\t\tif(!order.isFinishOrder()) {\n\t\t\t\t\t\t\tSystem.out.println(\"exp test: \" + order.getQuantity());\n\t\t\t\t\t\t\trecievedOrders.add(order);}\n\t\t\t\t\t\t\telse {orderReciever = true;}\n\t\t\t\t\t\t\t//Item it = order.getItem();\n\t\t\t\t\t\t\t// Extract the CD name and print it to demonstrate use of the ontology\n\t\t\t\t\t\t\t//if(it instanceof CD){\n\t\t\t\t\t\t\t\t//CD cd = (CD)it;\n\t\t\t\t\t\t\t\t//check if seller has it in stock\n\t\t\t\t\t\t\t\t//if(itemsForSale.containsKey(cd.getSerialNumber())) {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Selling CD \" + cd.getName());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//else {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"You tried to order something out of stock!!!! Check first!\");\n\t\t\t\t\t\t\t\t//}\n\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t}\n\t\t\t\t\t//deal with bool set here\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (CodecException ce) {\n\t\t\t\t\tce.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcatch (OntologyException oe) {\n\t\t\t\t\toe.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tblock();\n\t\t\t}\n\t\t}", "public final void handle() {\n runHandler();\n }", "public void actionPerformed(ActionEvent e) {\n\t\tadaptee.botonEnviar_actionPerformed(e);\n\t}" ]
[ "0.65054804", "0.63470566", "0.633337", "0.6274462", "0.62693197", "0.62693197", "0.6074907", "0.60226506", "0.59374654", "0.59336185", "0.5924407", "0.592198", "0.58702874", "0.58210564", "0.5794496", "0.5778759", "0.5758759", "0.5755225", "0.57495147", "0.57475924", "0.5660403", "0.56295455", "0.5619424", "0.5608839", "0.55953926", "0.5594351", "0.55811995", "0.5577926", "0.55686307", "0.55676275", "0.55532545", "0.55455136", "0.5534221", "0.55253816", "0.55104464", "0.55063725", "0.55045307", "0.55014545", "0.55014545", "0.55014545", "0.549746", "0.54882675", "0.5478461", "0.5473304", "0.5470864", "0.5458285", "0.54503894", "0.5443947", "0.5443121", "0.5442453", "0.543379", "0.54332787", "0.5431974", "0.54318666", "0.5430138", "0.542974", "0.54292035", "0.54292035", "0.54292035", "0.54292035", "0.54292035", "0.54292035", "0.54292035", "0.54251546", "0.5420779", "0.5416678", "0.5413615", "0.5402772", "0.53941834", "0.53941834", "0.5393537", "0.53917116", "0.5391391", "0.53765416", "0.5376443", "0.5373901", "0.536716", "0.5365993", "0.53652817", "0.536148", "0.53610075", "0.53594524", "0.5358527", "0.5354828", "0.5353196", "0.5349007", "0.5347638", "0.53452545", "0.53452545", "0.533959", "0.5339397", "0.53389037", "0.5338159", "0.53322047", "0.532989", "0.532989", "0.53212446", "0.53201824", "0.5319863", "0.5319147", "0.53150576" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent intent = new Intent(MapActivity.this, GameActivity.class); startActivity(intent); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
List musers= (List) msg.obj;
@Override public void handleMessage(Message msg) { for (User user:users) { LatLng point=new LatLng(user.getLatitude(),user.getLongitude()); //构建Marker图标 BitmapDescriptor bitmap = BitmapDescriptorFactory .fromResource(R.drawable.icon_marki); //构建MarkerOption,用于在地图上添加Marker OverlayOptions option = new MarkerOptions() .position(point) .icon(bitmap); // mBaiduMap = nMapView.getMap(); //在地图上添加Marker,并显示 markers.add((Marker) mBaiduMap.addOverlay(option)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<Res.Msg>\n getMsgList();", "java.util.List<Rsp.Msg>\n getMsgList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "public List<Object> getMessageList()\r\n\t{\r\n\t\treturn messageList;\r\n\t}", "edu.usfca.cs.dfs.StorageMessages.List getList();", "java.util.List<main.java.io.grpc.chatservice.Message> \n getMessagesList();", "public List<Message> listMessages(Integer tid);", "java.util.List<protocol.Data.Friend.FriendItem> \n getFriendList();", "java.util.List<com.vine.vinemars.net.pb.SocialMessage.FriendObj> \n getFriendListList();", "java.util.List<com.polytech.spik.protocol.SpikMessages.Sms> \n getMessagesList();", "@Override\r\n\tpublic List<Msg> getmsg(Msg msg) {\n\t\treturn msgDao.getmsg(msg);\r\n\t}", "public java.util.List<Msg> getMsgList() {\n return msg_;\n }", "public java.util.List<Msg> getMsgList() {\n return msg_;\n }", "public java.util.List<Msg> getMsgList() {\n return java.util.Collections.unmodifiableList(\n instance.getMsgList());\n }", "public java.util.List<Msg> getMsgList() {\n return java.util.Collections.unmodifiableList(\n instance.getMsgList());\n }", "public List<Tuple> getMessagesList(){\n\t\tsynchronized(messagesList){\n\t\t\tLinkedList<Tuple> messagesListCopy = new LinkedList<Tuple>();\n\t\t\tmessagesListCopy.addAll(messagesList);\n\t\t\treturn messagesListCopy;\n\t\t}\n\t}", "public ArrayList<Message> getAllmessage(){return allmessage;}", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "public ArrayList<Message> getMessages(){\n return messages;\n }", "edu.usfca.cs.dfs.StorageMessages.ListOrBuilder getListOrBuilder();", "public void setMessageList(List<Object> message)\r\n\t{\r\n\t\tthis.messageList = message;\r\n\t}", "java.util.List<PCommon_Base.CommonBase.NetTransferMsg> \n getNetTransferMsgsList();", "Object getTolist();", "public List<Object> getListForum();", "java.util.List<? extends main.java.io.grpc.chatservice.MessageOrBuilder> \n getMessagesOrBuilderList();", "java.util.List<? extends com.rpg.framework.database.Protocol.UserOrBuilder> \n getUsersOrBuilderList();", "java.util.List<? extends com.rpg.framework.database.Protocol.UserOrBuilder> \n getUsersOrBuilderList();", "public List<MessageListItem> makeList(List<BMessage> list){\n return MessageListItem.makeList(mActivity, userID, list, customDateFormat);\n }", "java.util.List<? extends com.polytech.spik.protocol.SpikMessages.SmsOrBuilder> \n getMessagesOrBuilderList();", "java.util.List<POGOProtos.Rpc.GetFriendsListOutProto.FriendProto> \n getFriendList();", "@Override\r\n\tpublic List<TenantsMessageEntity> getlisttenantsmessageuserid(SearchBaseEntity sbitem) {\n\t\treturn dao.getlisttenantsmessageuserid(sbitem);\r\n\t}", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "@Override\n\tpublic void handleMessage(Message msg, Object object) {\n\t\tif(msg.what == 1){\n\t\t\tif (msg.obj != null) {\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tList<User> us = gson.fromJson(msg.obj.toString(),\n\t\t\t\t\t\tnew TypeToken<List<User>>() {\n\t\t\t\t\t\t}.getType());\n\t\t\t\tusers.clear();\n\t\t\t\tfor (User user : us) {\n\t\t\t\t\tusers.add(user);\n\t\t\t\t}\n\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\tif(users.size()==0){\n\t\t\t\t\tGFToast.show(getApplicationContext(),\"您没有推荐任何人\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tusers.clear();\n\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\tGFToast.show(getApplicationContext(),\"您没有推荐任何人\");\n\t\t\t}\n\t\t}\n\t}", "java.util.List<com.ljzn.grpc.personinfo.PersoninfoMessage> \n getPersonInfoList();", "public ObservableList<String> getListUser()\n {\n ObservableList<String> list = null;\n pw.println(9);\n try\n {\n ArrayList<String> s = (ArrayList<String>) ois.readObject();\n list = FXCollections.observableArrayList(s);\n\n }\n catch (IOException | ClassNotFoundException e)\n {\n System.out.println(e.getMessage());\n }\n return list;\n }", "java.util.List<? extends protocol.Data.Friend.FriendItemOrBuilder> \n getFriendOrBuilderList();", "@Override\r\n public void onActionCallback(boolean result, Object object) {\n if (result) {\r\n msgList = (List<XmppMessage>) object;\r\n RefreshAdapter();\r\n }\r\n }", "@Override\r\n\t\t\tpublic void Message(TranObject msg) {\n\t\t\t\tif(msg.getObjStr()!=null){\r\n\t\t\t\t\tString objStr=msg.getObjStr();\r\n\t\t\t\t\tUser addUser=gson.fromJson(objStr,new TypeToken<User>(){}.getType());\r\n\t\t\t\t\tboolean hasUser=false;\r\n\t\t\t\t\tfor(Category cate:user.getCategorys()){\r\n\t\t\t\t\t\tfor(User u:cate.getMembers()){\r\n\t\t\t\t\t\t\tif(u.getId()==addUser.getId()){\r\n\t\t\t\t\t\t\t\thasUser=true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hasUser){\r\n\t\t\t\t\t\tDisplay.getDefault().syncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\t\tMessageDialog.openWarning(Display.getDefault().getActiveShell(), \"wain\", \"you already has this friend\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tDisplay.getDefault().syncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\t\tl.add(addUser);\r\n\t\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tDisplay.getDefault().syncExec(new Runnable() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\tMessageDialog.openWarning(Display.getDefault().getActiveShell(), \"wain\", \"Without this user \");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "public UserList list();", "public edu.usfca.cs.dfs.StorageMessages.List getList() {\n if (listBuilder_ == null) {\n if (msgCase_ == 5) {\n return (edu.usfca.cs.dfs.StorageMessages.List) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.List.getDefaultInstance();\n } else {\n if (msgCase_ == 5) {\n return listBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.StorageMessages.List.getDefaultInstance();\n }\n }", "public ArrayList<UserBean> listOnlineUsers()\n\t{\n\t\ttry{\n\t\t\tSocket toServer = new Socket(server,directorySocket);\n\t\t\tObjectOutputStream outToServer = new ObjectOutputStream(toServer.getOutputStream());\n\t\t\t\n\t\t\tServerMessage m = new ServerMessage();\n\t\t\tm.setCommand(LIST);\n\t\t\t\n\t\t\toutToServer.writeObject(m);\n\t\t\t\n\t\t\tObjectInputStream serverInput = new ObjectInputStream(toServer.getInputStream());\n\t\t\tonlineUsers = (ArrayList<UserBean>) serverInput.readObject();\n\t\t\t\n\t\t\toutToServer.close();\n\t\t\tserverInput.close();\n\t\t\ttoServer.close();\n\t\t}catch(UnknownHostException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn onlineUsers;\n\t}", "com.google.protobuf.ProtocolStringList\n getListList();", "public java.util.List<if4031.common.Message> getMessagesList() {\n return messages_;\n }", "java.util.List<com.vine.vinemars.net.pb.SocialMessage.NoticeObj> \n getNoticeListList();", "public List<User> list();", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }", "java.util.List<com.pkuvr.game_server.proto.serverproto.Mine_Collect_Log_Response.Mine_Collect_Info_Mes>\n getCollectListList();", "List<MessageResource> getMensajes(Integer userID);", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "List<Object> getListProperty(Object name) throws JMSException;", "public List<User> list();", "public interface ChatList extends Remote {\r\n\r\n Chat newChat(String s) throws RemoteException;\r\n\r\n Vector allChats() throws RemoteException;\r\n\r\n int getVersion() throws RemoteException;\r\n\r\n boolean newName(String s) throws RemoteException;\r\n \r\n boolean deleteName(String s) throws RemoteException;\r\n\r\n void print() throws RemoteException;\r\n\r\n void registration(ChatList l) throws RemoteException;\r\n}", "@Override\n\tpublic List<MsgVO> listReceiveMsg(String receiveUser) {\n\t\treturn session.selectList(namespace + \".listAllReceiveMsg\", receiveUser);\n\t}", "public List<User> getUserList();", "java.util.List<People>\n getUserList();", "public ArrayList<InfoMensaje> getMensajes(String usuario) throws Exception;", "com.vine.vinemars.net.pb.SocialMessage.FriendObj getFriendList(int index);", "public List<MessageResource> listMessageResource();", "public List<MessageListItem> getListData() {\n return listData;\n }", "java.util.List<frame.socket.common.proto.Login.ActAmount> \n getActAmountList();", "java.util.List<People>\n getFriendListList();", "public edu.usfca.cs.dfs.StorageMessages.List getList() {\n if (msgCase_ == 5) {\n return (edu.usfca.cs.dfs.StorageMessages.List) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.List.getDefaultInstance();\n }", "java.util.List<com.message.BagProto.PlayerBagMsg> \n getListPlayerBagsList();", "java.util.List<java.lang.Long> getMessageIdList();", "java.util.List<com.message.MailProto.MailInboxMsg> \n getInboxPageListList();", "public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }", "FriendList.Rsp getFriendlistRes();", "@Override\n public List<MessageEntity> fetchMessages(UserEntity userEntity) {\n Query query = new Query();\n return mongoTemplate.find(query, MessageEntity.class);\n }", "public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }", "public ListeMessage() {\n\t\tmessagesEntrant = new ArrayList<Message>();\n\t\tmessagesSortant = new ArrayList<Message>();\n\t\tmessages = new ArrayList<Message>();\n\t}", "public void onRecvServerChatMsg(WsMessage.ServerPushChatMsg msg) {\n if (msg != null && msg.list != null && msg.list.size() > 0) {\n for (int i = 0; i < msg.list.size(); i++) {\n WsMessage.ChatMsg chatMsg = msg.list.get(i);\n ChatManager.GetInstance().onReceiveChatMsg(chatMsg.username, chatMsg.msg, \"\", chatMsg.userid, chatMsg.admin);\n }\n ((Activity) this.mContext).runOnUiThread(new Runnable() {\n public void run() {\n ChatManager.GetInstance().notifyChatHistoryDataSetChanged();\n }\n });\n }\n }", "java.util.List<java.lang.Long> getParticipantsList();", "@Override\r\n\tpublic List<TenantsMessageEntity> getListTenantsMessage(SearchBaseEntity sbitem) {\n\t\treturn dao.getListTenantsMessage(sbitem);\r\n\t}", "public edu.usfca.cs.dfs.StorageMessages.ListOrBuilder getListOrBuilder() {\n if ((msgCase_ == 5) && (listBuilder_ != null)) {\n return listBuilder_.getMessageOrBuilder();\n } else {\n if (msgCase_ == 5) {\n return (edu.usfca.cs.dfs.StorageMessages.List) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.List.getDefaultInstance();\n }\n }", "ReadResponseMessage fetchUserMessages(String user);", "public List<message> getList() {\n return chats;\n }", "java.util.List<com.orange.network.game.protocol.model.ZhaJinHuaProtos.PBZJHUserPlayInfo> \n getUsersInfoList();", "java.util.List<? extends com.rpg.framework.database.Protocol.ItemOrBuilder> \n getItemsOrBuilderList();", "java.util.List<com.rpg.framework.database.Protocol.Item> \n getItemsList();", "public java.util.List<com.polytech.spik.protocol.SpikMessages.Sms> getMessagesList() {\n if (messagesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(messages_);\n } else {\n return messagesBuilder_.getMessageList();\n }\n }", "private void fillUserList(UserListMessage msg)\n {\n allUsers = msg.getUsers();\n String userListText = \"Connected users:\\n\";\n\n for (String user : allUsers)\n {\n if(user.equals(nickname))\n userListText += user + \" (YOU)\\n\";\n else\n userListText += user + \"\\n\";\n }\n ChatGUI.getInstance().getUserList().setText(userListText);\n }", "public ArrayList<User> getArrayList(){\n return userlist;\n }", "public ArrayList<String> getMessages() {return messages;}", "public static ArrayList<NumberOfMsgFrom> getUnseenMessagesNumberForAdmin() {\r\n\t\tSystem.out.println(\"CustomerBAL.getUnseenMessagesNumberForAdmin()\");\r\n\t\tString msgfrom;\r\n\t\tint msgfromid;\r\n\t\tTimestamp dateTime;\r\n\t\tString prettyTime;\r\n\t\tint appliance_id;\r\n\t\t// connection.Connect.init2();\r\n\t\tPrettyTime p = new PrettyTime();\r\n\t\tArrayList<NumberOfMsgFrom> list = new ArrayList<>();\r\n\t\tNumberOfMsgFrom bean;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tConnection connection = Connect.getConnection();\r\n\t\t\tif (connection != null) {\r\n\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{CALL get_unseen_messages_number_for_admin()}\");\r\n\t\t\t\tResultSet resultSet = prepareCall.executeQuery();\r\n\t\t\t\t// End Stored Procedure\r\n\t\t\t\twhile (resultSet.next()) {\r\n\t\t\t\t\tmsgfrom = resultSet.getString(1);\r\n\t\t\t\t\tmsgfromid = resultSet.getInt(2);\r\n\t\t\t\t\tdateTime = resultSet.getTimestamp(3);\r\n\t\t\t\t\tappliance_id = resultSet.getInt(4);\r\n\t\t\t\t\tDate date = new Date(dateTime.getTime());\r\n\t\t\t\t\tprettyTime = p.format((date));\r\n\r\n\t\t\t\t\tbean = new NumberOfMsgFrom();\r\n\t\t\t\t\tbean.setMsg_form(msgfrom);\r\n\t\t\t\t\tbean.setMsg_id(msgfromid);\r\n\t\t\t\t\tbean.setMsg_time(prettyTime);\r\n\t\t\t\t\tbean.setAppliance_id(appliance_id);\r\n\t\t\t\t\tlist.add(bean);\r\n\t\t\t\t}\r\n\t\t\t\t// rs.close();\r\n\t\t\t\t// con.close();\r\n\t\t\t\tconnection.close();\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\r\n\t\t}\r\n\t\treturn list;\r\n\r\n\t}" ]
[ "0.7485407", "0.7275572", "0.710615", "0.710615", "0.710615", "0.710615", "0.710615", "0.70306087", "0.696225", "0.6645701", "0.6641104", "0.6630003", "0.661689", "0.6522401", "0.6504952", "0.63937485", "0.63937485", "0.63856506", "0.63856506", "0.63496727", "0.6288191", "0.6264506", "0.6264506", "0.6264506", "0.6264506", "0.6264506", "0.6258599", "0.62378734", "0.622408", "0.6217776", "0.6213632", "0.619738", "0.61905503", "0.6182676", "0.61812335", "0.6146192", "0.61259544", "0.6120515", "0.6071559", "0.6067352", "0.60669374", "0.60608023", "0.6043762", "0.60109866", "0.59977853", "0.59660447", "0.5953676", "0.59461206", "0.5942273", "0.59330994", "0.5922037", "0.59129107", "0.5908419", "0.59021294", "0.5883603", "0.5883603", "0.5883603", "0.5883603", "0.5883603", "0.58777636", "0.5875384", "0.5859974", "0.5859974", "0.5859974", "0.5859974", "0.5859974", "0.5842677", "0.58360827", "0.5831752", "0.5828404", "0.58265877", "0.5821169", "0.5811202", "0.58109444", "0.580416", "0.57967484", "0.5782839", "0.5782297", "0.577403", "0.576322", "0.57627517", "0.5754844", "0.5747104", "0.57406473", "0.5729755", "0.57265764", "0.57196075", "0.5713331", "0.5699703", "0.5699204", "0.5696168", "0.56889415", "0.56867415", "0.56834906", "0.56804013", "0.5676428", "0.5671866", "0.56663495", "0.5660339", "0.56575066", "0.5657504" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { switch (v.getId()) { case R.id.ivTitleBtnLeft: finish(); break; default: break; } }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { JFrame app = new JFrame("标题"); app.setSize(200, 160); app.setLocation(20, 30); app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container contentPane = app.getContentPane(); contentPane.setLayout(new GridLayout(2,1));//两行一列 contentPane.add(new JLabel("这是一个能响应关闭窗体操作的程序")); contentPane.add(new JButton("这是一个Swing按钮")); app.setVisible(true); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by yaojinwei on 2016/9/24.
public interface SampleB { void operation1(); void operation2(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "private void init() {\n\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void memoria() {\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tprotected void interr() {\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "private void kk12() {\n\n\t}", "private void init() {\n\n\n\n }", "@Override\n protected void init() {\n }", "@Override\n public void init() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo55254a() {\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public contrustor(){\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void initialize() {\n \n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "Petunia() {\r\n\t\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}" ]
[ "0.6134529", "0.6128806", "0.59264886", "0.5893239", "0.5893239", "0.5892129", "0.58492404", "0.5841486", "0.58388156", "0.5796297", "0.57756025", "0.5750416", "0.5741895", "0.5715444", "0.5715444", "0.57125396", "0.57114136", "0.5694009", "0.567822", "0.56682706", "0.566756", "0.56632096", "0.566217", "0.5661737", "0.56613797", "0.56421095", "0.5633598", "0.5630334", "0.56207585", "0.56207585", "0.56207585", "0.56207585", "0.56207585", "0.56198", "0.56137323", "0.5598642", "0.55951667", "0.5591048", "0.55841786", "0.55714726", "0.55714726", "0.5568293", "0.55570316", "0.5553734", "0.5553734", "0.5553734", "0.5553734", "0.5553734", "0.5553734", "0.5551948", "0.55468804", "0.55439085", "0.55439085", "0.55439085", "0.5542656", "0.5542656", "0.5542656", "0.5541469", "0.5541469", "0.5541469", "0.5541469", "0.5541469", "0.5541469", "0.5541469", "0.554011", "0.554011", "0.554011", "0.55370957", "0.5533225", "0.5516452", "0.5516452", "0.55129635", "0.5491712", "0.54848444", "0.54729176", "0.5470072", "0.5469728", "0.5465659", "0.5463588", "0.54592633", "0.54548424", "0.5436596", "0.5435303", "0.5431099", "0.5430473", "0.542911", "0.54159606", "0.5414442", "0.5411617", "0.5407056", "0.54016834", "0.5393443", "0.53929055", "0.5390056", "0.5380437", "0.53750855", "0.53596663", "0.5346267", "0.5345492", "0.5345492", "0.5345112" ]
0.0
-1
'p' is the probability of Perishable products occurring.
public Perishable(String name, String Type, int time, double p) { super(name, Type, time); isSpoilt = false; prob = p; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testP() {\n System.out.println(\"p\");\n NegativeBinomialDistribution instance = new NegativeBinomialDistribution(3, 0.3);\n instance.rand();\n assertEquals(0.027, instance.p(0), 1E-7);\n assertEquals(0.0567, instance.p(1), 1E-7);\n assertEquals(0.07938, instance.p(2), 1E-7);\n assertEquals(0.09261, instance.p(3), 1E-7);\n assertEquals(0.05033709, instance.p(10), 1E-7);\n }", "public double getProbabilityP() {\n return this.mProbabilityP;\n }", "public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}", "@Override\n\tpublic double probability() {\n\t\treturn 0;\n\n\t}", "public double getProbability() {\n return probability;\n }", "public void calculateProbabilities(){\n\t}", "public BigInteger getP() {return(p);}", "public double contagionProbability(Person p)\n\t{\n\t\tif(p.getAge()<=18)\n\t\t{\n\t\t\treturn con_18*p.contagionProbability();\n\t\t}\n\t\tif(p.getAge()>18 && p.getAge()<=55)\n\t\t{\n\t\t\treturn con_18_55*p.contagionProbability();\n\t\t}\n\t\treturn con_up55*p.contagionProbability();\n\t}", "public ProbabilityDistribution(Random random) {\n\t\trandom_ = random;\n\t\titemProbs_ = new MutableKeyMap<T, Double>();\n\t}", "private static BigInteger generatePFactor(\n Random randomSeed,\n SComplexity complexity,\n int certainty,\n BigInteger q) {\n long time = System.nanoTime();\n BigInteger m;\n BigInteger mR;\n BigInteger p = null;\n int step = 0;\n while ((step++) < MAX_STEPS) {\n m = new BigInteger(complexity.getPBitLength(), randomSeed);\n mR = m.mod(q.multiply(MathUtils.INTEGER_2));\n p = m.subtract(mR).add(BigInteger.ONE);\n if (p.isProbablePrime(certainty)) {\n LOGGER.info(\n String.format(\n \"Generated p number, took=%dms\\nq=%s\",\n TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - time),\n p.toString(RADIX)\n )\n );\n break;\n }\n }\n return p;\n }", "public BernoulliDistribution(double p){\n\t\tsuper(1, p);\n\t}", "public ProbabilityDistribution() {\n\t\trandom_ = new Random();\n\t\titemProbs_ = new MutableKeyMap<T, Double>();\n\t}", "float getSpecialProb();", "public int getP() {\r\n\t\treturn this.p;\r\n\t}", "public void setP(Double p);", "@Override\r\n\tpublic double getProb(double price, double[] realized) {\r\n\t\treturn getPMF(realized)[ bin(price, precision) ];\r\n\t}", "public double getProbability() {\r\n\t\treturn Probability;\r\n\t}", "@Test\n public void testLogP() {\n System.out.println(\"logP\");\n NegativeBinomialDistribution instance = new NegativeBinomialDistribution(3, 0.3);\n instance.rand();\n assertEquals(Math.log(0.027), instance.logp(0), 1E-7);\n assertEquals(Math.log(0.0567), instance.logp(1), 1E-7);\n assertEquals(Math.log(0.07938), instance.logp(2), 1E-7);\n assertEquals(Math.log(0.09261), instance.logp(3), 1E-7);\n assertEquals(Math.log(0.05033709), instance.logp(10), 1E-7);\n }", "public Unit<Dimensionless> ppm() {return ppm;}", "public final void mP() throws RecognitionException {\n try {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:542:11: ( ( 'p' | 'P' ) )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:542:13: ( 'p' | 'P' )\n {\n if ( input.LA(1)=='P'||input.LA(1)=='p' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n }\n finally {\n }\n }", "public double prom () {\n return this.sum()/this.size();\n }", "public void setProbability(double pProbability) throws Exception{\r\n\t\tif (pProbability >= 0) probability = pProbability;\r\n\t\telse throw new Exception(\"02; sPro,ProEle\");\r\n\t}", "Builder extremeSpikeProbability(double p);", "public static int geometric( double p ) {\n // using algorithm given by Knuth\n return (int) Math.ceil( Math.log( uniform() ) / Math.log( 1.0 - p ) );\n }", "public HugeUInt pow(int p) {\r\n \tHugeUInt one = new HugeUInt(1);\r\n \tHugeUInt acc = one;\r\n \tif(p==0){\r\n \t\treturn one;\r\n \t}\r\n \tHugeUInt c = one.multiply(this);\r\n \twhile(p>1){\r\n \t\tif(p%2==0){\r\n \t\t\tc = c.multiply(c);\r\n \t\t}\r\n \t\telse if(p%2==1){\r\n \t\t\tacc = acc.multiply(c);\r\n \t\t\tc = c.multiply(c);\r\n \t\t}\r\n \t\tp/=2;\r\n \t}\r\n \treturn c.multiply(acc);\r\n }", "private void evaluateProbabilities()\n\t{\n\t}", "private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}", "protected float computeProbs(int n)\n\t{\n\t\tfloat Cmi = 0;\n\t\t// Compute probabilities\n\t\tfor (int k = 0; k < bins; k++)\n\t\tfor (int l = 0; l < bins; l++)\n\t\t{\n\t\t float Pkl = Puv[k*bins+l];\n\t\t if (Pkl > 0)\n\t\t\t Cmi -= Pkl / n * Math.log(n * Pkl / (Pu[k] * Pv[l]));\n\t\t}\n\t\treturn Cmi;\n\t}", "abstract double rightProbability();", "public static int factorial(int p){\n\t\t// in this application p cannot be negative, so no logic for negative factorials\n\t\t// is included. if p=0 or 1 then 1 is returned.\n\t\t// if p>1 then p! is returned\n\t\t// also, in this application p is small (p will generally be 5, \n\t\t// but could range from 2 to 7)\n\t\t// so no logic for large p or exception handling for memory overflow is included\n\t\tint returnValue = p;\n\t\tif(p > 1) {\n\t\t\tfor(int m = 1; m < p; m++){\n\t\t\t\treturnValue = returnValue*(p-m);\n\t\t\t}\n\t\t} else if(p==0) {\n\t\t\treturnValue = 1;\n\t\t}\n\t\treturn(returnValue);\n\t}", "@Override\n public void pp(){\n PP=3+2*nivel;\n }", "@Override\n public float calculaPreu(PreuTipusHabitacio p) {\n return p.getPreu() * this.perc;\n }", "public void setNumberOfProducts (int p)\n {\n if (p <= 0)\n {\n System.out.println (\"Please try again and enter a valid number of products.\");\n }\n else{\n numberOfProducts = p;\n }\n\n }", "abstract double leftProbability();", "Term getP();", "int permute(int p) {\n int index = wrap(p);\n if (_map != null && _map.containsKey(index)) {\n return _map.get(index);\n } else {\n return index;\n }\n }", "static int[] permutationEquation(int[] p) {\n int[] ret = new int[p.length];\n HashMap<Integer,Integer> values = new HashMap<>();\n for(int i = 0; i < p.length; i++){\n values.put(p[i],i+1);\n }\n for(int i = 1; i <=p.length; i++){\n int index1 = values.get(i);\n int index2 = values.get(index1);\n ret[i-1] = index2;\n }\n return ret;\n }", "@Override\r\n\tpublic Double getPropensity_pension_score() {\n\t\treturn super.getPropensity_pension_score();\r\n\t}", "public double getPowerUpProbabilityPillar() {\n \t\treturn 0.15;\n \t}", "public void setPotion(int p) {\n setStat(p, potion);\n }", "private void fortificationPhase(Player p) \n\t{\n\t\tp.fortify();\n\t}", "public void setP(boolean p) {\n\tthis.p = p;\n }", "private int h2(int p){\n\t\tdouble A = (Math.sqrt(5) - 1) / 2;\n\t\treturn (int) Math.abs(this.table.length * ((p * A) - (int)(p * A))) % table.length;\n\t}", "private static long nPr(int[] frequency, int i, int n, int r)\n { \n //nao ha mais posicoes disponiveis para incluir elementos de permutacao\n if (r == 0) return 1;\n \n //retornara o calculo de nPr\n long npr = 0;\n \n //numero de elementos que ainda sobrarao, no proximo nivel de recursao,\n //para serem distribuidos pelas posicoes restantes\n n = n - frequency[i]; \n \n //chama o metodo recursivamente enquanto o numero de elementos que \n //restarem para serem distribuidos for maior ou igual ao numero de \n //posicoes disponiveis no proximo nivel de recursao\n for (\n int assignedsElements = Math.min(r, frequency[i]); \n (assignedsElements >= 0) && (n >= r - assignedsElements);\n assignedsElements--\n )\n \n //nCr() retorna o numero de maneiras que se pode distribuir \n //<assignedsElements> elementos de permutacao em <r> posicoes\n //Eh multiplicado pelas permutacoes que ainda se pode fazer nas \n //posicoes restantes com os elementos restantes\n npr += nCr(r, assignedsElements)\n * \n nPr(frequency, i+1, n, r - assignedsElements);\n \n return npr;\n }", "double getPValue();", "public double getProbability(Object rootState) { return getProbability(rootState, (Object[])null); }", "void setExtremeSpikeProbability(double p);", "static char mutateBaseWithProb(char base, double p)\n\t{\n\t\tif(rand.nextDouble() < p)\n\t\t{\n\t\t\tint baseAsInt = baseToInt(base);\n\t\t\tchar newBase = intToBase((baseAsInt + rand.nextInt(3) + 1)%4);\n\t\t\tif(Character.isLowerCase(base))\n\t\t\t{\n\t\t\t\tnewBase += 'a' - 'A';\n\t\t\t}\n\t\t\treturn newBase;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn base;\n\t\t}\n\t}", "public int countPowers (Power p) {\n return countPowers(p, 0);\n }", "void calculatePR( int iteration){\n\t\t\n\t\ttotal_nodes = inlinks.size();\n\t\tfor(String page : inlinks.keySet()){\n\t\t\tPageRank.put(page, (1/(double)(total_nodes)));\n\t\t\tinit_PageRank.put(page, (1/(double)(total_nodes)));\n\t\t}\n \n double ppx = 0.0;\n boolean cond = true;\n int itr =1;\n // while(iteration >0){ //Used for Graph page rank calculation; c\n while(cond){ \n \tSystem.out.println(\"Iteration\"+itr); \n double sinkPR = 0;\n for(String s: sink){\n \tsinkPR = sinkPR + (PageRank.get(s)); //calculate total sink PR\n }\n \n double entropy = 0.0;\n \n for(String s: PageRank.keySet()){\n \tdouble newPR;\n \tnewPR = (1.0 -d)/total_nodes;\n \tnewPR = newPR + (d*sinkPR)/total_nodes;\n \tSet<String> in = inlinks.get(s); //pages pointing to P\n \tif(in != null){\n \t\tfor(String s1 : in){\n \t\t\tnewPR = newPR + d* (PageRank.get(s1)/outlinks_count.get(s1)); \t\t \n \t\t}\n \t} \n \t\tnew_PageRank.put(s, newPR);\n \t\tentropy = entropy + (newPR*(Math.log(newPR)/Math.log(2))); //entroPy calculation\n \t}\n \n PageRank.putAll(new_PageRank);\n ppx = Math.pow(2,-1*entropy);\n System.out.println(\"perplexity : \"+ ppx);\n ppx_list.add(ppx);\n if(ppx_list.size()>5) \n \tcond= !check(4);\n \n itr++;\n \t\n //\t iteration --; //Used for page Rank Calculation of Graph\n } \n\t}", "public static void power(int n, int p) throws TipoException {\r\n try {\r\n if (n < 0 | p < 0) { \r\n throw new TipoException(\"n and p should be non-negative\");\r\n } else if(n==0 | p==0) {\r\n throw new TipoException(\"n and p should not be zero\");\r\n }else{ \r\n double v = Math.pow(n, p);\r\n System.out.println(\"valores\"+\" \" + v);\r\n }\r\n } catch (TipoException e) {\r\n System.out.println(\"\"+e.getMessage());\r\n }\r\n }", "public double getPrize();", "char permute(char p) {\n return _alphabet.toChar(permute(_alphabet.toInt(p)));\n }", "public void genKeyPair(BigInteger p, BigInteger q)\n {\n n = p.multiply(q);\n BigInteger PhiN = RSA.bPhi(p, q);\n do {\n e = new BigInteger(2 * SIZE, new Random());\n } while ((e.compareTo(PhiN) != 1)\n || (Utils.bigGCD(e,PhiN).compareTo(BigInteger.ONE) != 0));\n d = RSA.bPrivateKey(e, p, q);\n }", "@java.lang.Override\n public double getPValue() {\n return pValue_;\n }", "private static int randomHeight(double p)\n {\n\tint h = 1;\n\twhile (r.nextDouble() < p) {\n\t // make it higher!\n\t h++;\n\t}\n\treturn h;\n }", "public float evaluate(PhraseInfo p) {\n int numChords = p.gen.prog.get(p.gen.progIndex).size();\n int tn = Math.min(phraseLen, (int)Math.round(targetNotes * ((numChords + 1) / 3.0))); // not directly proportional.\n // scores: 50, 49, 46, 41, 34, 25 etc.\n int score = Math.max(0, 50 - (int)Math.round(Math.pow(Math.abs(p.noteCount - tn), 2)));\n return (float)Math.min(1.0f, score/50.0f);\n }", "@java.lang.Override\n public double getPValue() {\n return pValue_;\n }", "public void setProbability(double v) {\n probability = v;\n }", "public void probabiltDistribution() {\r\n\t\tfor (int k = 0; k < 1000; k++) {\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\trandomGrid[i][j] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdeployComputerShips();\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\tprobabilityGrid[i][j] = probabilityGrid[i][j] + randomGrid[i][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void CalculateProbabilities()\n\t{\n\t int i;\n\t double maxfit;\n\t maxfit=fitness[0];\n\t for (i=1;i<FoodNumber;i++)\n\t {\n\t if (fitness[i]>maxfit)\n\t maxfit=fitness[i];\n\t }\n\n\t for (i=0;i<FoodNumber;i++)\n\t {\n\t prob[i]=(0.9*(fitness[i]/maxfit))+0.1;\n\t }\n\n\t}", "public double getPowerUpProbabilityBox() {\n \t\treturn 0.4;\n \t}", "public final void mP() throws RecognitionException {\n try {\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:409:11: ( ( 'p' | 'P' ) )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:409:12: ( 'p' | 'P' )\n {\n if ( input.LA(1)=='P'||input.LA(1)=='p' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n }\n finally {\n }\n }", "@Override\r\n\tpublic void setProbability(double probability) {\n\t\tthis.probability = probability;\r\n\t}", "public double getProbabilityQ() {\n return this.mProbabilityQ;\n }", "public double[] proportionPercentage(){\n if(!this.pcaDone)this.pca();\n return this.proportionPercentage;\n }", "public byte[] getP() {\n return p;\n }", "public int countAvailablePowers (Power p) {\n return countPowers(p, 1);\n }", "public double getProbabilityOf(T aData) {\n\t\tdouble freq = this.getFrequencyOf(aData);\n\t\tdouble dblSize = numEntries;\n\t\treturn freq/dblSize;\n\t}", "public double fpp() {\n return config().getP();\n }", "static long productPandigitalSum() {\n // Create a long to return\n long sum = 0;\n HashSet<Integer> products = new HashSet<>();\n\n // Has to be a product between a two and three digit number\n for(int a = 1; a < 100; a++) {\n for(int b = 100; b < 10000; b++) {\n // If pandigital, add to the set\n if(arePandigital(a, b, (a*b))) products.add(a*b);\n }\n }\n\n // Go through the set and add it to the set\n for(Integer i : products) sum += i;\n\n return sum;\n }", "private double getPerc(int n) {\n\t\tdouble total = n*n;\n\t\tPercolation p = new Percolation(n);\n\t\twhile(!p.percolates()) {\n\t\t\tint row = StdRandom.uniform(n)+ 1;\n\t\t\tint col = StdRandom.uniform(n) + 1;\n\t\t\tp.open(row, col);\n\t\t}\n\t\tdouble openSites = (double)(p.numberOfOpenSites());\n\t\treturn openSites/total;\n\t}", "public double pathProb(S[] path) {\r\n\t\t// there is an equal probability to start in any state\r\n\t\tdouble prob = 1 / states.length;\r\n\t\t// loop over all state-pairs\r\n\t\tfor (int i = 0; i < path.length - 1; ++i)\r\n\t\t\t// multiply prob by this transition probability\r\n\t\t\tprob *= transProb(path[i], path[i + 1]);\r\n\t\t\r\n\t\treturn prob;\r\n\t}", "private boolean confirmPrimes(BigInteger p, BigInteger q)\n\t{\t\t\n\t\tif(p.compareTo(q) == 0) return false;\n\t\tif(p.mod(TWO) == ZERO || q.mod(TWO) == ZERO) return false;\n\t\tif((p.subtract(ONE)).gcd(E) == ONE || (q.subtract(ONE)).gcd(E) == ONE) return false;\n\t\t\n\t\treturn true;\n\t}", "private int p(K k, int i) {\r\n return i/2 + (i*i)/2 + (i%2);\r\n }", "public static double eval (int N, double p, int M) {\n int count = 0;\n for (int k = 0; k < M; k++) {\n boolean[][][] open = BooleanMatrix3D.random (N, p);\n if (Percolation3D.percolates (open))\n count++;\n }\n return (double) count / M;\n }", "public int get_num_p(){ return num_p; }", "@Override\r\n\tpublic double getProbabilityScore() {\n\t\treturn this.probability;\r\n\t}", "public BigDecimal getPercentageProfitPLimit();", "public abstract double applyDiscount(double p);", "private List<ProbabilityOfDefault> getPDs(Scenario s) {\n\t\t\r\n\t\tCountry ctry = getCountry();\r\n\t\t\r\n\t\tDouble probGrowth = ctry.getProbabilityOfGrowth();\r\n\t\tDouble probRecession = ctry.getProbabilityOfRecession();\r\n\t\t\r\n\t\tList<ProbabilityOfDefault> adjustedPDs = new ArrayList<>();\r\n\t\t\r\n\t\tfor (ProbabilityOfDefault pd : rating.getPDs()) {\r\n\t\t\tProbabilityOfDefault newPd = pd;\r\n\t\t\tnewPd.setPD((probGrowth * pd.getGrowthPD()) + (probRecession * pd.getRecessionPD()));\r\n\t\t\tadjustedPDs.add(newPd);\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(adjustedPDs);\r\n\t\treturn adjustedPDs;\r\n\t}", "public double Poids () {return this.masse()*G/(this.r*this.r);}", "public Polynomial multiply(Polynomial p){\n\t\tfor(int i=0; i<degreecoeff.length;i++) {\n\t\t\tfor(int j=0; j<degreecoeff.length;j++) {\n\t\t\t\t\n\t\t\tp.degreecoeff[i]=(p.degreecoeff[i])+(degreecoeff[i]*p.degreecoeff[j]);\n\t\t}\n\t\t}\n\t\treturn p;\n\t}", "public float getProbMut () {\r\n return mut_prob;\r\n }", "private static boolean isProbablePrime(BigInteger n, int k) {\n if (n.compareTo(ONE) == 0)\n return false;\n if (n.compareTo(THREE) < 0)\n return true;\n int s = 0;\n BigInteger d = n.subtract(ONE);\n while (d.mod(TWO).equals(ZERO)) {\n s++;\n d = d.divide(TWO);\n }\n for (int i = 0; i < k; i++) {\n BigInteger a = uniformRandom(TWO, n.subtract(ONE));\n BigInteger x = a.modPow(d, n);\n if (x.equals(ONE) || x.equals(n.subtract(ONE)))\n continue;\n int r = 0;\n for (; r < s; r++) {\n x = x.modPow(TWO, n);\n if (x.equals(ONE))\n return false;\n if (x.equals(n.subtract(ONE)))\n break;\n }\n if (r == s) // None of the steps made x equal n-1.\n return false;\n }\n return true;\n }", "public static boolean percentOfTime(int p) {\n return (rng.nextInt(100) + 1 <= p);\n }", "public static double squareToUniformDiskPdf(Tuple2d p) {\n // TODO: Fill in this method.\n return 0;\n }", "private int mapping(int p, int q) {\n if (p < 1 || q < 1)\n throw new IllegalArgumentException(\"either p or q or both are below 1\");\n// return -1;\n int k = count * (p - 1) + q - 1;\n return k;\n }", "public void calculeReduction(Produit p) {\r\n\t\tdouble res=0;\r\n\t\tres=p.getPrix()*taux;\r\n\t\tp.ajoutReduction(res);\r\n\t}", "@Test\n\tpublic void perpVector3D() {\n\t\tVector3f v1 = new Vector3f(this.random.nextDouble(), this.random.nextDouble(), this.random.nextDouble());\n\t\tVector3f v2 = new Vector3f(this.random.nextDouble(), this.random.nextDouble(), this.random.nextDouble());\n\t\t\n\t\tdouble dotProduct = v1.dot(v2);\n\t\tdouble perpProduct = Math.abs(v1.perp(v2));\n\t\tdouble angle = v1.angle(v2);\n\t\t\n\t\tassertEpsilonEquals(Math.tan(angle),perpProduct/dotProduct);\n\t\t\n\t}", "protected Double successProbability(){\n\t\tnodeKValues = collectKValues();\n\t\tList<Integer[]> placements = getDistinctPlacements(getMinKPath());\n\t\tlong maxNumberOfColorings = 0;\n\t\tfor (Integer[] placement : placements){\n\t\t\tlong colorings = numberOfColorings(placement);\n\t\t\tif (colorings > maxNumberOfColorings)\n\t\t\t\tmaxNumberOfColorings = colorings;\n\t\t}\n\t\tDouble probability = 1.0/maxNumberOfColorings;\n\t\tfor (int i=1; i<=pathLength; i++){ // factorial of pathlength\n\t\t\tprobability = probability * i;\n\t\t}\n\t\treturn probability;\n\t}", "RSAKeygen(){\n Random rnd = new Random();\n p = BigInteger.probablePrime(bitlength, rnd);\n BigInteger eTmp = BigInteger.probablePrime(bitlength, rnd);\n\n while(p.equals(eTmp)){\n eTmp = BigInteger.probablePrime(bitlength,rnd);\n }\n\n q = eTmp;\n n = p.multiply(q);\n }", "@Test public void numberOfPentagonalPyramidsTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 0);\n Assert.assertEquals(0, pList.numberOfPentagonalPyramids());\n }", "public boolean containsProduct(String p){\n\t\tfor (int i = 0; i < this.list.size(); i++){\n\t\t\tfor (int j = 0; j < list.get(i).getWishlist().size(); j++) {\n\t\t\t\tif( p.equals(list.get(i).getWishlist().get(j)) ){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public Percolation(int n) {\n this.count = n;\n\n\n }", "public double logpdf(int[][] table) {\n int n = 0;\n int N = 0;\n // Marginals from rows\n double logP = 0;\n for (int[] table1 : table) {\n int rMarginals = table1[0] + table1[1];\n N += rMarginals;\n n += table1[0];\n logP += logFactorial.getLogFactorial(rMarginals) - logFactorial.getLogFactorial(table1[0]) - logFactorial.getLogFactorial(table1[1]);\n }\n logP+= -(logFactorial.getLogFactorial(N)-logFactorial.getLogFactorial(n)-logFactorial.getLogFactorial(N-n));\n return logP;\n }", "public void setPotatoesPrice(double p) {\n this.potatoesPrice = p;\n }", "public ReporteProblema getProb() {\n return prob;\n }", "public final KeyPair generateKeyPair() {\n\t\tif (SECURE_RANDOM == null) {\n\t\t\tSECURE_RANDOM = new SecureRandom();\n\t\t}\n\t\t// for p and q we divide the bits length by 2 , as they create n, \n\t\t// which is the modulus and actual key size is depend on it\n\t\tBigInteger p = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\tBigInteger q;\n\t\tdo {\n\t\t\tq = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\t} while (q.compareTo(p) == 0);\n\n\t\t// lambda = lcm(p-1, q-1) = (p-1)*(q-1)/gcd(p-1, q-1)\n\t\tBigInteger lambda = p.subtract(BigInteger.ONE).multiply(q\n\t\t\t\t.subtract(BigInteger.ONE)).divide(p.subtract(BigInteger.ONE)\n\t\t\t\t.gcd(q.subtract(BigInteger.ONE)));\n\n\t\tBigInteger n = p.multiply(q); // n = p*q\n\t\tBigInteger nsquare = n.multiply(n); // nsquare = n*n\n\t\tBigInteger g;\n\t\tdo {\n\t\t\t// generate g, a random integer in Z*_{n^2}\n\t\t\tdo {\n\t\t\t\tg = new BigInteger(STRENGTH, 64, SECURE_RANDOM);\n\t\t\t} while (g.compareTo(nsquare) >= 0\n\t\t\t\t\t|| g.gcd(nsquare).intValue() != 1);\n\n\t\t\t// verify g, the following must hold: gcd(L(g^lambda mod n^2), n) =\n\t\t\t// 1,\n\t\t\t// where L(u) = (u-1)/n\n\t\t} while (g.modPow(lambda, nsquare).subtract(BigInteger.ONE).divide(n)\n\t\t\t\t.gcd(n).intValue() != 1);\n\n\t\t// mu = (L(g^lambda mod n^2))^{-1} mod n, where L(u) = (u-1)/n\n\t\tBigInteger mu = g.modPow(lambda, nsquare).subtract(BigInteger.ONE)\n\t\t\t\t.divide(n).modInverse(n);\n\n\t\tPaillierPublicKey publicKey = new PaillierPublicKey(n, g, nsquare);\n\t\tPaillierPrivateKey privateKey = new PaillierPrivateKey(lambda, mu,\n\t\t\t\tnsquare, n);\n\n\t\treturn new KeyPair(publicKey, privateKey);\n\t}", "public int countUsedPowers (Power p) {\n return countPowers(p, 2);\n }" ]
[ "0.70610946", "0.6932668", "0.6639456", "0.64622813", "0.63718957", "0.6363015", "0.6322338", "0.631421", "0.62992996", "0.6207893", "0.6155811", "0.608963", "0.6088819", "0.60801935", "0.60559434", "0.6054703", "0.60469127", "0.60140336", "0.6000339", "0.59968245", "0.5982498", "0.59520847", "0.5943894", "0.5943335", "0.59338427", "0.58953625", "0.5888128", "0.58817977", "0.58736783", "0.58569604", "0.58484966", "0.5836778", "0.5834029", "0.58311677", "0.58190954", "0.57947624", "0.57946175", "0.5791075", "0.57786775", "0.57714033", "0.5755604", "0.57398546", "0.57391876", "0.5729271", "0.57223344", "0.57221997", "0.5715759", "0.5714144", "0.56934816", "0.56907034", "0.5684129", "0.5674648", "0.56706285", "0.56608707", "0.5660212", "0.5659005", "0.5655862", "0.5653886", "0.5651486", "0.56497455", "0.56479025", "0.5644133", "0.56402004", "0.5633881", "0.56218034", "0.5620686", "0.5617245", "0.56085354", "0.56002825", "0.55962485", "0.55942863", "0.5592599", "0.55910826", "0.5572517", "0.5566981", "0.5549435", "0.5549196", "0.5547886", "0.5543695", "0.5542754", "0.55414313", "0.5536047", "0.5527367", "0.5524206", "0.5518392", "0.5501524", "0.5494352", "0.5493684", "0.5492776", "0.54923314", "0.5491937", "0.549103", "0.54797727", "0.5468484", "0.54678893", "0.54665625", "0.5462552", "0.5461986", "0.54609805", "0.54526484" ]
0.62013745
10
/Se asocia la barra de acciones a la actividad
@Override public boolean onCreateOptionsMenu(Menu menu){ getMenuInflater().inflate(R.menu.menu, menu); //Recibe como parametro el menu donde se situan las acciones return true; //Para que la barra sea visible }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void accionUsuario() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initAcciones() {\r\n\t\tacciones.put(\"Buscar\", new AccionBuscarEvento());\r\n\t\tacciones.put(\"Consultar\", new AccionConsultarEvento());\r\n\t\tacciones.put(\"Agregar\", new AccionAgregarEvento());\r\n\t}", "private void RealizarAccion() {\n if (ValidarCampos()) {\n\n persona.setPrimerNombre(txtPrimerNombre.getText());\n persona.setSegundoNombre(txtSegundoNombre.getText());\n persona.setPrimerApellido(txtPrimerApellido.getText());\n persona.setSegundoApellido(txtSegundoApellido.getText());\n persona.setTelefono(txtTelefono.getText());\n persona.setCedula(txtCedula.getText());\n persona.setCorreo(txtCorreo.getText());\n persona.setDireccion(txtDireccion.getText());\n\n empleado.setFechaInicio(dcFechaInicio.getDate());\n empleado.setSalario(Double.parseDouble(txtSalario.getText()));\n empleado.setCargo(txtCargo.getText());\n empleado.setUsuarioByUserModificacion(SessionHelper.usuario);\n empleado.setFechaModificacion(new Date());\n empleado.setRegAnulado(false);\n\n switch (btnAction.getText()) {\n case \"Guardar\":\n int maxid = personaBean.MaxId() + 1;\n persona.setIdPersona(maxid);\n\n Dbcontext.guardar(persona);\n\n empleado.setIdEmpleado(maxid);\n empleado.setPersona(persona);\n empleado.setUsuarioByUserCreacion(SessionHelper.usuario);\n empleado.setFechaCreacion(new Date());\n\n Dbcontext.guardar(empleado);\n break;\n\n case \"Actualizar\":\n\n Dbcontext.actualizar(persona);\n\n Dbcontext.actualizar(empleado);\n break;\n }\n if (ifrRegistroEmpleados.isActive) {\n ifrRegistroEmpleados.CargarTabla();\n }\n\n Mensajes.OperacionExitosa(this);\n dispose();\n } else {\n Mensajes.InformacionIncompleta(this);\n }\n }", "public void comprobarEficaciaAccion() throws IOException{\n if((fVerif.SetVerificacionEficaciaAccion(FechaComprobacionEficacia, ObservacionesEficacia, ComprobacionSeleccionadaEficacia, AccionSeleccionada.getId()))== -1){\n FacesContext.getCurrentInstance().addMessage(\"form_seguimiento_accion:btn_comprobar_eficacia\", new FacesMessage(SEVERITY_FATAL, \"No se pudo comprobar eficacia\", \"No se pudo comprobar eficacia\" ));\n FacesContext.getCurrentInstance().renderResponse();\n }else{\n // regresar a la pagina listar acciones\n String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();\n FacesContext.getCurrentInstance().getExternalContext().redirect(url+\"/Views/Acciones/General/SeguimientoAccion.xhtml?id=\"+AccionSeleccionada.getId());\n }\n }", "public JFPrincipioActivo() {\n initComponents();\n this.activarControles(false);\n this.listarPrincipiosActivos();\n }", "public boolean abilitaNuovoAccertamento(){\n\t\t\n\t\tif(isAzioneAbilitata(CodiciOperazioni.OP_ENT_insAcc)){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "private void cargarAutorizaciones() {\r\n\t\tif (parametros_empresa != null) {\r\n\t\t\tif (parametros_empresa.getTrabaja_autorizacion()) {\r\n\t\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\t\tadmision_seleccionada);\r\n\r\n\t\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\t\tIRutas_historia.PAGINA_AUTORIZACIONES,\r\n\t\t\t\t\t\t\"AUTORIZACIONES\", parametros);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void accusation() {\n\t\tNotebook notebook = turnController.getData().getCurrentTurn()\n\t\t\t\t.getPlayer().getNotebook();\n\t\tCard room = notebook.getViableCards(Card.Type.ROOM).get(0);\n\t\tCard suspect = notebook.getViableCards(Card.Type.SUSPECT).get(0);\n\t\tCard weapon = notebook.getViableCards(Card.Type.WEAPON).get(0);\n\n\t\tturnController.makeAccusation(room, suspect, weapon);\n\t}", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "public String registrarActividad(){\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tBloque bloque = context.getApplication().evaluateExpressionGet(context, \"#{bloque}\", Bloque.class);\n\t\tActividad actividad = context.getApplication().evaluateExpressionGet(context, \"#{actividad}\", Actividad.class);\n\t\tEncargado encargado = context.getApplication().evaluateExpressionGet(context, \"#{encargado}\", Encargado.class);\n\t\t\n\t\ttry {\n\t\t\tactividad.registrarActividad();\n\t\t\tactividad.registrarActividad_Bloque(bloque.getTematica());\n\t\t\tactividad.registrarActividad_Encargado(encargado.getCedula());\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\t\t\t\n\t\t// put the user object into the POST request \n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"actividad\", actividad);\n\t\t\n\t\treturn \"principalAdministrador.xhtml\";\n\t}", "private void controladorAtras(Controlador controlador){\n this.contAtras = controlador.getAtras();\n registro.setControlAtras(contAtras);\n login.setControlAtras(contAtras);\n }", "protected void agregarUbicacion(){\n\n\n\n }", "String ejecutarAccion();", "public cambiarContrasenna() {\n initComponents();\n txtNombreUsuario.setEnabled(false);\n inicializarComponentes();\n cargarUsuarios();\n }", "public void verSeleccionarAccion(String entidad)\r\n\t{\r\n\t\tseleccionaraccion = new SeleccionarAccion(this, entidad);\r\n\t\tseleccionaraccion.setVisible(true);\r\n\t}", "private void commitApuesta() {\n\t\tif(tipo != -1){\n\t\t\tmodelo.setDestLogin(ModeloApuestas.DEST_APOSTUBERRI);\n\t\t\tmodelo.setApuestaInProgress(apostado.get(), tipo);\n\t\t\tif(!myController.isScreenLoaded(\"login\")){\n\t\t\t\tmyController.loadScreen(ScreensFramework.Login, ScreensFramework.Login_FXML);\n\t\t\t}\n\t\t\tmyController.setScreenOverlay(\"login\");\n\t\t}\n\t\t\n\t\t\n\t}", "public void verSelecionarReglaConocimiento(String accion)\r\n\t{\r\n\t\tselecionarreglaconocimiento = new SelecionarReglaConocimiento(this, accion);\r\n\t\tselecionarreglaconocimiento.setVisible(true);\r\n\t}", "public void comprobarImplementacionAccion() throws IOException{\n if((fVerif.SetComprobacionImplementacionAccion(FechaComprobacionImplementacion, ObservacionesImplementacion, ComprobacionSeleccionadaImplementacion, AccionSeleccionada.getId()))== -1){\n FacesContext.getCurrentInstance().addMessage(\"form_seguimiento_accion:btn_comprobar_implementacion\", new FacesMessage(SEVERITY_FATAL, \"No se pudo comprobar implementacion\", \"No se pudo comprobar implementacion\" ));\n FacesContext.getCurrentInstance().renderResponse();\n }else{\n // regresar a la pagina listar acciones\n String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();\n FacesContext.getCurrentInstance().getExternalContext().redirect(url+\"/Views/Acciones/General/SeguimientoAccion.xhtml?id=\"+AccionSeleccionada.getId());\n }\n }", "private void authorize() {\r\n\r\n\t}", "public void activarNuevoAlmacen() {\n\t\ttxtId.setVisible(false);\n\t\tpnAlmacen.setVisible(true);\n\t\tsetTxtUbicacion(\"\");\n\t\tgetPnTabla().setVisible(false);\n\t\tadd(pnAlmacen,BorderLayout.CENTER);\n\t \n\t}", "private void filtrarAccion() {\n\n if (cbOpcion.getSelectedIndex()==0) {\n paramFecha =false;\n jPanel1.setVisible(false);\n jPanel3.setVisible(false);\n }\n if (cbOpcion.getSelectedIndex() == 1) {\n System.out.println(\"opcion: \" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(true);\n jPanel3.setVisible(false);\n campo = \"cobran_codigo\";\n paramFecha = false;\n\n } \n if (cbOpcion.getSelectedIndex() == 2) {\n System.out.println(\"opcion: \" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(true);\n jPanel3.setVisible(false);\n campo = \"cli_codigo\";\n paramFecha = false;\n\n } if(cbOpcion.getSelectedIndex()==3) {\n System.out.println(\"seleccion:\" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(false);\n jPanel3.setVisible(true);\n campo = \"cobran_fecha\";\n paramFecha = true;\n }\n\n }", "public String asignarActividad() throws SQLException {\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\n\t\t//Bloque bloque = context.getApplication().evaluateExpressionGet(context, \"#{bloque}\", Bloque.class);\n\t\tActividad actividad = context.getApplication().evaluateExpressionGet(context, \"#{actividad}\", Actividad.class);\n\t\tAsistente asistente = context.getApplication().evaluateExpressionGet(context, \"#{asistente}\", Asistente.class);\n\t\t\n\t\tSystem.out.println(\"resultado: \"+actividad.getNombreActividad());\n\t actividad.registrarActividad_Asistente(asistente.getCedula());\n\t\t\n\t\t// put the user object into the POST request \n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"actividad\", actividad);\n\t\t\n\t\treturn\"principalAsistente.xhtml\";\n\t}", "private void executeRicercaAccertamentoPerOrdinativo() {\n \tif (model.getGestioneOrdinativoStep1Model().getAnnoAccertamento() == null || model.getGestioneOrdinativoStep1Model().getNumeroAccertamento() == null) {\n\n \t\tif(!sonoInAggiornamento()){\n \t\t\t\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamento(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamentoOriginale(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(0);\n\n \t\t\tRicercaAccertamentiSubAccertamenti request= new RicercaAccertamentiSubAccertamenti();\n \t\t\trequest.setEnte(sessionHandler.getEnte());\n \t\t\trequest.setRichiedente(sessionHandler.getRichiedente());\n\n\n \t\t\tParametroRicercaAccSubAcc param= new ParametroRicercaAccSubAcc();\n \t\t\tparam.setAnnoEsercizio(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setAnnoAccertamento(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setDisponibilitaAdIncassare(true);\n\n \t\t\t// Capitolo\n \t\t\tif (model.getGestioneOrdinativoStep1Model().getCapitolo() != null) {\n \t\t\t\tparam.setNumeroCapitolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getNumCapitolo());\n \t\t\t\tparam.setNumeroArticolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getArticolo());\n \t\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb()){\n \t\t\t\t\tparam.setNumeroUEB(model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb().intValue());\n \t\t\t\t}\n \t\t\t}\n\n\n \t\t\tparam.setCodiceDebitore(model.getGestioneOrdinativoStep1Model().getSoggetto().getCodCreditore());\n \t\t\tparam.setIsRicercaDaAccertamento(false);\n \t\t\trequest.setParametroRicercaAccSubAcc(param);\n\n\n \t\t\taddNumAndPageSize(request, \"listaAccertamentoOrdinativoId\");\n\n \t\t\tRicercaAccertamentiSubAccertamentiResponse response= movimentoGestionService.ricercaAccertamentiSubAccertamentiPerOrdinativoIncasso(request);\n\n \t\t\tif(response.isFallimento() || !response.getErrori().isEmpty()){\n\n \t\t\t\t//setto gli errori cosi che siano segnalati lato app!\n \t\t\t\taddErrori(response.getErrori());\n\n \t\t\t}else{\n\n \t\t\t\tif (response.getListaAccertamenti() != null && response.getListaAccertamenti().size() > 0) {\n \t\t\t\t\tfor (Accertamento currentAccetamento : response.getListaAccertamenti()) {\n \t\t\t\t\t\taddAccertamentiESubAccertamentiInUnicaLista(currentAccetamento);\n \t\t\t\t\t}\n\n \t\t\t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(response.getNumRisultati());\n \t\t\t\t\t\n \t\t\t\t\tif(model.getGestioneOrdinativoStep2Model().getListaAccertamento()==null || model.getGestioneOrdinativoStep2Model().getListaAccertamento().size()==0){\n \t\t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t}\n \t\t\t}\n\n \t\t}\n \t}\n }", "@FXML void pagoCredito(ActionEvent event) {\n pagar(CREDITO);\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,TarjetaCredito tarjetacredito,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(tarjetacredito.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(tarjetacredito.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!tarjetacredito.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(tarjetacredito.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}", "public TelaCadastrarUsuarios() {\n initComponents();\n carregarTabela();\n carregarComboBoxFuncionarios();\n carregarImagens();\n }", "@Override\r\n\tpublic void guardar() {\n\t\ttab_cuenta.guardar();\r\n\t\tguardarPantalla();\r\n\t\t\r\n\t}", "public void accuse()\n {\n //show the accusation window\n accusationScreen = new AccusationScreen(this, false, null);\n accusationScreen.setVisible(true);\n }", "public void inicializa_controles() {\n bloquea_campos();\n bloquea_botones();\n carga_fecha();\n ocultar_labeles();\n }", "public void accionForm(boolean sw, String accion) throws Exception {\r\n groupboxConsulta.setVisible(!sw);\r\n groupboxEditar.setVisible(sw);\r\n\r\n if (!accion.equalsIgnoreCase(\"registrar\")) {\r\n buscarDatos();\r\n } else {\r\n // buscarDatos();\r\n limpiarDatos();\r\n }\r\n tbxAccion.setValue(accion);\r\n }", "public AdministrarUsuarios() {\n initComponents();\n modelo = (DefaultTableModel) tablaUsuarios.getModel();\n tablaUsuarios.getTableHeader().setReorderingAllowed(false);\n tablaUsuarios.getTableHeader().setDefaultRenderer(new Facturar.HeaderColor());\n \n manejador.CargarUsuarios();\n listaTotalUsuarios = manejador.ObtenerListaUsuarios();\n cargarUsuariosEnTabla(listaTotalUsuarios);\n ocultarColumnaID();\n }", "private void activarControles(boolean estado) {\n this.panPrincipioActivo.setEnabled(estado);\n this.lblNombre.setEnabled(estado);\n this.txtNombre.setEditable(estado);\n this.lblDescripcion.setEnabled(estado);\n this.txtDescripcion.setEditable(estado);\n this.chkVigente.setEnabled(estado);\n this.btnAceptar.setEnabled(estado);\n this.btnCancelar.setEnabled(estado);\n \n this.panListadoPA.setEnabled(! estado);\n this.tblListadoPA.setEnabled(! estado);\n this.btnNuevo.setEnabled(! estado);\n this.btnModificar.setEnabled(! estado);\n \n if(estado == true){\n this.txtNombre.requestFocusInWindow();\n }else{\n this.tblListadoPA.requestFocusInWindow();\n }\n }", "public String associaAuditors(){\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tDatiUtente user = (DatiUtente) request.getSession().getAttribute(\"DatiUtente\");\n\t\t\n\t\tlong idUtente=getModel().getIdAuditors();\n\t\tlong idAccesso=user.getIdSessione();\n\t\t\n\t\t//AuAssUtenteSessione ass = new AuAssUtenteSessione();\n\t\tAuAssUtenteSessione ass = auditService.getAssociazioneAuditors(idAccesso, idUtente);\n\t\tass.setIdSessione(idAccesso);\n\t\tass.setIdUtente(idUtente);\n\t\tass.setDataInizio(new Date());\n\t\tass.setDataFine(null);\n\t\tAuAssUtenteSessione managed=(AuAssUtenteSessione)auditService.salva(ass);\n\t\t\n\t\treturn SUCCESS;\n\t}", "public ModelAndView activateAccount(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) {\r\n\t\tInstAdminRegistrationInfo input = new InstAdminRegistrationInfo();\r\n HttpSession session = request.getSession(true);\r\n\t\t\r\n input.setUserId(request.getParameter(\"userId\"));\r\n input.setInstituteName(request.getParameter(\"instituteName\"));\r\n input.setInstituteNickName(request.getParameter(\"instituteNickName\"));\r\n input.setCity(request.getParameter(\"city\"));\r\n input.setState(request.getParameter(\"state\"));\r\n input.setCountry(request.getParameter(\"country\"));\r\n input.setPrimaryEmailId(request.getParameter(\"adminEmail\"));\r\n int i = instAdminRegistrationDAO.updateRequestStatus(input);\r\n\t\tif (i > 0) {\r\n\t\t\treturn new ModelAndView(\"sendpassword/accountInfo\", \"info\",\r\n\t\t\t\t\t\"Account request confirmed successfully.\");\r\n\t\t} else {\r\n\t\t\treturn new ModelAndView(\"sendpassword/accountInfo\", \"info\",\r\n\t\t\t\t\t\"Page Expired.\");\r\n\t\t}\r\n\t}", "public void accionForm(boolean sw, String accion) throws Exception {\n\t\tgroupboxConsulta.setVisible(!sw);\n\t\tgroupboxEditar.setVisible(sw);\n\n\t\tif (!accion.equalsIgnoreCase(\"registrar\")) {\n\t\t\tbuscarDatos();\n\t\t\tbtGuardar.setVisible(false);\n\t\t} else {\n\t\t\tbtGuardar.setVisible(true);\n\t\t\t// buscarDatos();\n\t\t\tlimpiarDatos();\n\t\t}\n\t\ttbxAccion.setValue(accion);\n\t}", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}", "public void limpiarCamposActividadesYRecord() {\r\n try {\r\n opcionTableroControlSeguim = \"\";\r\n estadoPanelMisActivid = false;\r\n estadoPanelMisRecordat = false;\r\n estadoPanelActividAsign = false;\r\n estadoPanelRecordatAsign = false;\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public Authentification() {\n initComponents();\n init_Panel();\n Admin_Button.addActionListener(new Admin_Action()); \n User_Button.addActionListener(new User_Action());\n Retour_Button.addActionListener(new Retour_Action() );\n Retour_Button.addActionListener(new Connexion_Action() );\n \n \n }", "@Override\n\tpublic String describirActividades() {\n\t\treturn (\"Soy el secretario, recibo documentos, atiendo llamadas telefónicas y atiendo visitas\");\n\t}", "@Override\n\tpublic String describirActividades() {\n\t\treturn (\"Soy el secretario, recibo documentos, atiendo llamadas telefónicas y atiendo visitas\");\n\t}", "public void accionForm(boolean sw, String accion) throws Exception {\r\n\t\tgroupboxConsulta.setVisible(!sw);\r\n\t\tgroupboxEditar.setVisible(sw);\r\n\r\n\t\tif (!accion.equalsIgnoreCase(\"registrar\")) {\r\n\t\t\tbuscarDatos();\r\n\t\t} else {\r\n\t\t\t// buscarDatos();\r\n\t\t\tlimpiarDatos();\r\n\t\t}\r\n\t\ttbxAccion.setValue(accion);\r\n\t}", "public void accionForm(boolean sw, String accion) throws Exception {\r\n\t\tgroupboxConsulta.setVisible(!sw);\r\n\t\tgroupboxEditar.setVisible(sw);\r\n\r\n\t\tif (!accion.equalsIgnoreCase(\"registrar\")) {\r\n\t\t\tbuscarDatos();\r\n\t\t} else {\r\n\t\t\t// buscarDatos();\r\n\t\t\tlimpiarDatos();\r\n\t\t}\r\n\t\ttbxAccion.setValue(accion);\r\n\t}", "public adminUsuarios() {\n initComponents();\n showUsuarios();\n }", "public void registrar() {\n try {\r\n do {\r\n //totalUsuarios = this.registraUnUsuario(totalUsuarios);\r\n this.registraUnUsuario();\r\n } while (!this.salir());\r\n } catch (IOException e) {\r\n flujoSalida.println(\"Error de entrada/salida, finalizará la aplicación.\");\r\n }\r\n flujoSalida.println(\"Total usuarios registrados: \"+totalUsuarios);\r\n }", "public List<Usuario> obtenerListaUsuariosActivos(){\n return usuarioBean.obtenerListaUsuariosActivos();\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,Caja caja,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(caja.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(caja.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!caja.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(caja.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "private void cargaUsuarios() {\n //Abre la conexion\n Connection con = Star.conAbrBas(true, false);\n \n //Declara variables de la base de datos \n java.sql.Statement st;\n java.sql.ResultSet rs; \n String sQ;\n /*Obtiene todos los datos del usuario*/\n try\n {\n sQ = \"SELECT estac FROM estacs WHERE estac <> '\" + Login.sUsrG + \"' AND admcaj <= (SELECT admcaj FROM estacs WHERE estac = '\" + Login.sUsrG + \"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n while(rs.next())\n {\n /*Obtiene los datos y cargalos en sus campos*/\n jcmbUsuarios.addItem(rs.getString(\"estac\"));\n }\n //si ingreso usuarios al combo, jalo los permisos del primer usuario\n// if(jcmbUsuarios.getItemCount() > 0){\n// cargaPermisos(jcmbUsuarios.getSelectedItem().toString());\n// }\n \n }catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n }\n }", "public void accionForm(boolean sw, String accion) throws Exception {\n\t\tgroupboxConsulta.setVisible(!sw);\n\t\tgroupboxEditar.setVisible(sw);\n\n\t\ttbxAccion.setValue(accion);\n\n\t\tif (!accion.equalsIgnoreCase(\"registrar\")) {\n\t\t\tbuscarDatos();\n\t\t} else {\n\t\t\t// buscarDatos();\n\t\t\tlimpiarDatos();\n\t\t\tif (admision != null) {\n\t\t\t\tcargarInformacion_paciente();\n\t\t\t}\n\t\t}\n\n\t}", "public account() {\n initComponents();\n autoID();\n branch();\n }", "public void setActividad(Actividad actividad) {\r\n\t\tthis.actividad = actividad;\r\n\t}", "public VueAccueil() {\r\n initComponents();\r\n }", "Activite getActiviteCourante();", "@Override\r\n\tpublic void realizarTransacción() {\n\t\tSystem.out.println(\"Transaccion en progreso\");\r\n\t}", "private void cargarDatos()\n {\n // Pantalla carga\n showProgress(true, mView, mProgressView, getContext());\n Comando login = new LoginComando(KPantallas.PANTALLA_PERFIL);\n String email = UtilUI.getEmail(getContext());\n String password = UtilUI.getPassword(getContext());\n login.ejecutar(email,password);\n }", "private void controladorInicio(Controlador controlador){\n this.inicioRegistro = controlador.getInicioRegistro();\n inicio.setControlRegistro(inicioRegistro);\n this.inicioLogin = controlador.getInicioLogin();\n inicio.setControlLogin(inicioLogin);\n }", "Account refresh();", "public accountant() {\n initComponents();\n conn = connector.ConnectDB();\n update_table();\n fill_combo();\n }", "protected void aktualisieren() {\r\n\r\n\t}", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "private void toCreateAcc() {\n Intent intent = new Intent(this, WelcomeActivity.class);\n startActivity(intent);\n }", "public SeeAnAccount() {\n initComponents();\n }", "public void Usuarios() {\n\t\r\n}", "public void activar(){\n\n }", "private void ingresarAplicacion() {\n\t\tXlinkUtils.shortTips(\"validarIngreso 11\");\r\n\t\tEquipoDataSource equipoDataSource = new EquipoDataSource(getApplicationContext());\r\n\t\tequipoDataSource.open();\r\n\t\tequipoDataSource.crearColumnas();\r\n\t\tEquipo equipoBusqueda = new Equipo();\r\n\t\tequipoBusqueda.setEstadoEquipo(EstadoDispositivoEnum.CONFIGURACION.getCodigo());\r\n\t\tArrayList<Equipo> equipos = equipoDataSource.getEquipoEstado(equipoBusqueda);\r\n\t\tequipoDataSource.close();\r\n\t\tif(equipos != null && equipos.size() > 0){\r\n\t\t\t//Cuenta activa y equipo en configuracion\r\n\t\t\tEquipo equipo = (Equipo) equipos.toArray()[0];\r\n\t\t\tdatosAplicacion.setEquipoSeleccionado(equipo);\r\n//\t\t\tIntent i = null;\r\n\t\t\tif(equipo.getTipoEquipo().equals(TipoEquipoEnum.PORTERO.getCodigo())){\r\n\t\t\t\tnumeroSerie = ((Equipo) equipos.toArray()[0]).getNumeroSerie();\r\n\t\t\t\tprimerEquipo = false;\r\n\t\t\t\tObtenerEquipoPorNumeroSerieAsyncTask numeroSerieAsyncTask = new ObtenerEquipoPorNumeroSerieAsyncTask(null, SplashActivity.this);\r\n\t\t\t\tnumeroSerieAsyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\r\n//\t\t\t\ti = new Intent(SplashActivity.this, InstalarEquipoActivity.class);\r\n//\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\r\n\t\t}else{\r\n\t\t\t//Cuenta activa y no hay dispositivos configurandose\r\n\t\t\tXlinkUtils.shortTips(\"validarIngreso 12\");\r\n\t\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\r\n\t\t\tString numeroSerie = sharedPrefs.getString(\"prefEquipo\", \"\").toString();\r\n\t\t\tequipoDataSource = new EquipoDataSource(getApplicationContext());\r\n\t\t\tequipoDataSource.open();\r\n\t\t\tequipoBusqueda = new Equipo();\r\n\t\t\tequipoBusqueda.setTipoEquipo(TipoEquipoEnum.PORTERO.getCodigo());\r\n\t\t\tequipos = equipoDataSource.getEquipoTipoEquipo(equipoBusqueda);\r\n\r\n\t\t\tif(equipos != null && equipos.size() > 0) {\r\n\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipos.get(0));\r\n\t\t\t\tdatosAplicacion.setPorteroInstalado(true);\r\n\t\t\t}else{\r\n\t\t\t\tdatosAplicacion.setPorteroInstalado(false);\r\n\t\t\t}\r\n\r\n\t\t\tequipoBusqueda = new Equipo();\r\n\t\t\tequipoBusqueda.setNumeroSerie(numeroSerie);\r\n\t\t\tEquipo equipoPreferencia = equipoDataSource.getEquipoNumSerie(equipoBusqueda);\r\n\t\t\tequipoPreferencia.setModo(YACSmartProperties.MODO_WIFI);\r\n//\t\t\tequipoPreferencia.setNombreWiFi(\"yacareWIFI\");\r\n//\t\t\tequipoDataSource.updateEquipo(equipoPreferencia);\r\n//\t\t\tequipoDataSource.close();\r\n\r\n\t\t\tif(equipoPreferencia != null && equipoPreferencia.getId() != null && equipoPreferencia.getTipoEquipo().equals(TipoEquipoEnum.PORTERO.getCodigo())) {\r\n\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 13\");\r\n\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipoPreferencia);\r\n\t\t\t\tIntent i = new Intent(SplashActivity.this, Y4HomeActivity.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}else if(equipoPreferencia != null && equipoPreferencia.getId() != null && equipoPreferencia.getTipoEquipo().equals(TipoEquipoEnum.LUCES.getCodigo())) {\r\n\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 14\");\r\n\t\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipoPreferencia);\r\n\t\t\t\tIntent i = new Intent(SplashActivity.this, LucesFragment.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}else{\r\n\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 15\");\r\n\t\t\t\tif(datosAplicacion.getPorteroInstalado()){\r\n\t\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 16\");\r\n\t\t\t\t\tIntent i = new Intent(SplashActivity.this, Y4HomeActivity.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 17\");\r\n\t\t\t\t\tequipoDataSource = new EquipoDataSource(getApplicationContext());\r\n\t\t\t\t\tequipoDataSource.open();\r\n\t\t\t\t\tequipoBusqueda = new Equipo();\r\n\t\t\t\t\tequipoBusqueda.setTipoEquipo(TipoEquipoEnum.LUCES.getCodigo());\r\n\t\t\t\t\tequipos = equipoDataSource.getEquipoTipoEquipo(equipoBusqueda);\r\n\t\t\t\t\tequipoDataSource.close();\r\n\t\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipos.get(0));\r\n\t\t\t\t\tIntent i = new Intent(SplashActivity.this, LucesFragment.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n//\t\t\tdatosAplicacion.getEquipoSeleccionado().setNombreWiFi(\"yacareWIFI\");\r\n//\t\t\tequipoDataSource.updateEquipo(datosAplicacion.getEquipoSeleccionado());\r\n\t\t\tequipoDataSource.close();\r\n\t\t}\r\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,PresuTipoProyecto presutipoproyecto,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(presutipoproyecto.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(presutipoproyecto.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!presutipoproyecto.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(presutipoproyecto.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,ValorPorUnidad valorporunidad,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(valorporunidad.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(valorporunidad.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!valorporunidad.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(valorporunidad.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "@Override\r\n\tpublic void NroAccount() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void showAccount() {\n\t\t\r\n\t}", "public void AddToAccountInfo();", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}", "public void activate(){\r\n\r\n\t}", "public TelaFuncionario_TelaMenu_GerenciarHistorico() {\n initComponents();\n try {\n listaUsuario = fc.listarTodos();\n } catch (SQLException ex) {\n Logger.getLogger(TelaFuncionario_TelaMenu_GerenciarCliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n btSelecionar.setEnabled(false);\n btHabilitar.setEnabled(false);\n }", "public TobaccoUse()\n\t{\n\t\ttobacco = new ArrayList<StateTobacco>();\n\t\ttokens = new String[32];\n\t}", "public void authorizeTransaction() {}", "public void acutualizarInfo(){\n String pibId = String.valueOf(comentario.getId());\n labelId.setText(\"#\" + pibId);\n\n String autor = comentario.getAutor().toString();\n labelAutor.setText(autor);\n\n String fecha = comentario.getFechaCreacion().toString();\n labelFecha.setText(fecha);\n \n String contenido = comentario.getContenido();\n textAreaContenido.setText(contenido);\n \n String likes = ((Integer)comentario.totalLikes()).toString();\n labelLikes.setText(likes);\n \n Collection<Comentario> comments = socialNetwork.searchSubComentarios(comentario);\n panelSubComentarios.loadItems(comments, 15);\n \n if(comentario.isSubcomentario()){\n jButton4.setEnabled(true);\n }\n else{\n jButton4.setEnabled(false);\n }\n }", "public void accionForm(boolean sw, String accion) throws Exception {\n\t\tgroupboxConsulta.setVisible(!sw);\n\n\t\tif (!accion.equalsIgnoreCase(\"registrar\")) {\n\t\t\tbuscarDatos();\n\t\t} else {\n\t\t\t// buscarDatos();\n\t\t\t// limpiarDatos();\n\t\t}\n\t}", "@Override\r\n\tpublic void analizarUsuario() {\n\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\tia.analizarUsuario();\r\n\t\t}\t\r\n\t}", "public void mostrarInstitucionAcceso(int institucion){\r\n periodoS=null;\r\n \r\n institucionAcceso=new institucionAccesoDAO().mostrarInstitucionAcceso(institucion);\r\n //LISTADO PERIODO INSTITUCION\r\n \r\n periodoL=new periodoDAO().mostrarPeriodoInstitucion(institucion);\r\n \r\n if (periodoL.size() >0){\r\n periodoS=periodoL.get(0).getPeriodo();\r\n }\r\n cargarMenu();\r\n }", "private void registrarControles(){\n txtNombreMedicamento=(EditText) findViewById(R.id.txtNombreMedicamento);\n txtNombreMedicamento.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n ValidacionUtil.tieneTexto(txtNombreMedicamento);\n }\n });\n txtCantidad=(EditText) findViewById(R.id.txtCantidad);\n txtCantidad.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n ValidacionUtil.tieneTexto(txtCantidad);\n }\n });\n cmbTipoMedicamento=(Spinner) findViewById(R.id.cmbTipoMedicamento);\n chkSecundaria=(CheckBox) findViewById(R.id.chkSecundaria);\n chkPrincipal=(CheckBox) findViewById(R.id.chkPrincipal);\n\n }", "private void cargarCatalogo() throws DAOException {\n\t\t List<Usuario> usuariosBD = adaptadorUsuario.recuperarTodosUsuarios();\n\t\t for (Usuario u: usuariosBD) \n\t\t\t usuarios.put(u.getTelefono(), u);\n\t}", "private void cargarContrarreferencia() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& !admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTRAREFERENCIA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTRAREFERENCIA, parametros);\r\n\t\t}\r\n\r\n\t}", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\r\n try {\r\n // Aplicacion Comprador\r\n if (ac != null) {\r\n System.out.println(\"Obteniendo ServiciosCompradorModelo\");\r\n sm = (ServiciosCompradorModelo) ac.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosCompradorModelo) sm.login((pl.getTxtCUsuario())\r\n .getText(), (pl.getTxtPassword()).getText(), true);\r\n \r\n ac.setSm((ServiciosCompradorRegistradoModelo)sm);\r\n \r\n System.out.println(\"Mostrando menu de usuario registrado\");\r\n ac.setMenuRegistrado();\r\n\r\n } else {\r\n System.out.println(\"***\\nObteniendo serviciosAccesoModelo\");\r\n \r\n sm = (ServiciosAccesoModelo) ae.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosAccesoModelo) sm.login((pl.getTxtCUsuario()).getText(),\r\n (pl.getTxtPassword()).getText(), false);\r\n \r\n if (sm instanceof ServiciosAdAuxModelo) {\r\n\t\t\t\t\tae.setMenuAdAux();\r\n\t\t}else if(sm instanceof ServiciosCocinaModelo) {\r\n\t\t\tae.setMenuCocina();\t\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Que servicios tenemos?\");\r\n\t\t}\r\n \r\n ae.setSm(sm);\r\n }\r\n\r\n // Actualizamos los servicios de la aplicacion a cliente registrado\r\n pl.setVisible(false);\r\n\r\n } catch (MalformedURLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (RemoteException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorConexionBD e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorSQL e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (NotBoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void setAccType(int fromAcc);", "int getActivacion();", "@Override\n\tpublic void registrarAtencion(TramiteUsuario tramite) {\n\t\ttramite.setSecUsuario1( Usuario.getUsuarioBean() );\n\t\ttramite.setSecUsuario2( Usuario.getUsuarioBean() );\n\t\ttramite.setEstado(1);\n\t\ttramite.setEstadoTramiteFinal( ParametroUtil.EstadoTramite.ATENDIDO.value );\n\t\ttramite.setFechaRegistro( new Date() );\n\t\ttramiteDAO.registrarMovimiento( tramite );\n\t\t\n\t\ttramite.getTramite().setEstado( ParametroUtil.EstadoTramite.ATENDIDO.value );\n\t\ttramiteDAO.registrar( tramite.getTramite() );\n\t\t\n\t}", "void checkForAccServices();", "private void registroProcesado(InterfazParams interfazParams) {\n\t\tLong registrosProcesados = (Long) interfazParams.getQueryParams().get(\n\t\t\t\t\"registrosProcesados\");\n\t\tregistrosProcesados = new Long(registrosProcesados.longValue() + 1);\n\t\tinterfazParams.getQueryParams().put(\"registrosProcesados\",\n\t\t\t\tregistrosProcesados);\n\t}", "private void btnAgregarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {\n String v_nombre=\" \";\n\n if(txtNombreAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Digite un nombre, por favor\", \"Informacion\");\n return;\n }\n v_nombre=txtNombreAU.getText(); \n //Valido la contrasenia\n if(txtContraseniaAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar una contraseña\", \"Informacion\");\n return;\n }\n if(!validarContraseniaUsuario(txtContraseniaAU.getText())){\n return;\n }\n String v_contrasenia=txtContraseniaAU.getText();\n //Valido nombre completo\n if(txtNombreCompletoAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar el nombre completo\", \"Informacion\");\n return;\n }\n String v_nombreCompleto=txtNombreCompletoAU.getText();\n \n //Valido que se escogio un valor para el cargo\n int v_cargo=0;\n //10 = Administrador, 20=Funcionario\n if(rbtnAdministradorAU.isSelected()){\n v_cargo=10;\n }else if(rbtnFuncionarioAU.isSelected()){\n v_cargo=20;\n }else{\n Utilidades.mensajeInformacion(\"Escoga un cargo\", \"Informacion\");\n return;\n }\n \n //Creo y agreggo un usuario dependiendo del cargo escogido (Administrador o funcionario)\n try{\n boolean agregado=false;\n if(v_cargo==10){\n Administrador nuevoUsuario=new Administrador(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n\n } \n if(v_cargo==20){\n Funcionario nuevoUsuario=new Funcionario(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n }\n\n\n if(agregado){\n Utilidades.mensajeExito(\"Se agrego el Usuario\", \"Agregacion Exitosa\");\n limpiarCamposAgregarUsuario();\n }else{\n Utilidades.mensajeError(\"El Usuario a agregar ya existe\", \"Error\");\n }\n\n }catch (IOException ex) {\n Logger.getLogger(Funcionario.class.getName()).log(Level.SEVERE, null, ex);\n Utilidades.mensajeAdvertencia(\"Se ha interrumpido la conexion con el servidor\", \"Error\");\n }\n \n }", "private void inicializarControlesConfiguracao(){\n lnkCadastrar = (TextView) findViewById(R.id.lnkCadastrar);\n btnLogar = (Button) findViewById(R.id.btnLogin);\n imgLoginGoogle = (ImageButton) findViewById(R.id.imgLoginGoogle);\n imgLoginLinkedin = (ImageButton) findViewById(R.id.imgLoginLinkedin);\n email = (EditText) findViewById(R.id.editLoginEmail);\n\n senha = (EditText) findViewById(R.id.editLoginSenha);\n\n //Configurando progressDialog\n progressDialog = new ProgressDialog(LoginActivity.this);\n progressDialog.setMessage(\"Efetuando login com a conta Google\");\n progressDialog.setCancelable(false);//Configurando progressDialog\n\n progressDialogComum = new ProgressDialog(LoginActivity.this);\n progressDialogComum.setMessage(\"Efetuando login! Aguarde...\");\n progressDialogComum.setCancelable(false);\n\n progressDialogLinkedin = new ProgressDialog(LoginActivity.this);\n progressDialogLinkedin.setMessage(\"Efetuando login com a conta Linkedin\");\n progressDialogLinkedin.setCancelable(false);\n\n controller = new Controller(LoginActivity.this);\n databaseReference = controller.getDatabaseReference();\n autenticador = controller.getAutenticador();\n }", "@Override\n\tpublic void registrarEntrada() {\n\n\t}", "private void controladorLogin(Controlador controlador){\n this.contLogin = controlador.getLogin();\n login.setControlContinuar(contLogin);\n }", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,GrupoBodega grupobodega,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(grupobodega.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(grupobodega.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!grupobodega.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(grupobodega.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public void accionForm(boolean sw,String accion)throws Exception{\n\t\tgroupboxConsulta.setVisible(!sw);\n\t\tgroupboxEditar.setVisible(sw);\n\t\t\n\t\tif(!accion.equalsIgnoreCase(\"registrar\")){\n\t\t\tbuscarDatos();\n\t\t\tbtGuardar.setVisible(false);\n\t\t}else{\n\t\t\tbtGuardar.setVisible(true);\n\t\t\tlimpiarDatos();\n\t\t\tdtbxFecha_muestra1.setValue(null);\n\t\t\tdtbxFecha_muestra2.setValue(null);\n\t\t\tFormularioUtil.cargarRadiogroupsDefecto(this);\n\t\t\t\n\t\t}\n\t\ttbxAccion.setValue(accion);\n\t}", "public TblActividadUbicacion() {\r\n }", "@Override\n public void onResume() {\n if(currentUser != null){\n btnEnviar.setEnabled(false);\n DatabaseReference referenciaTipo = FirebaseDatabase.getInstance().getReference().child(\"usuarios\").child(currentUser);\n referenciaTipo.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Usuarios usuarios = dataSnapshot.getValue(Usuarios.class);\n nombreUsuarioLog = usuarios.getNombre();\n textNombre.setText(nombreUsuarioLog);\n btnEnviar.setEnabled(true);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }else{\n returnLogin();\n }\n super.onResume();\n }", "private void controladorAdminUsuarios(Controlador controlador) {\n \tthis.contAdminConfig = controlador.getAdminConfig();\n \tadminUsuarios.setControlAdminConfig(contAdminConfig);\n \t\n \tthis.contAdminProyectos = controlador.getAdminProyectos();\n \tadminUsuarios.setControlAdminProyectos(contAdminProyectos);\n \t\n \tthis.contAdminUsuariosBloq = controlador.getAdminUsuariosBloq();\n \tadminUsuarios.setControlAdminBloq(contAdminUsuariosBloq);\n \t\n }", "@Override\n\tpublic List<ControlAcceso> registroUsers(String fecha, int codigo) {\n\t\treturn controlA.registroUsers(fecha, codigo);\n\t}", "public void viewAccPressed(ActionListener viewAccAction){\n \n viewAccount.addActionListener(viewAccAction);\n }" ]
[ "0.70700216", "0.6638406", "0.65755594", "0.65743655", "0.6460934", "0.6326957", "0.62976825", "0.616882", "0.61513984", "0.6064445", "0.60608363", "0.60337335", "0.601453", "0.59771925", "0.59703046", "0.591066", "0.5878186", "0.5855644", "0.582848", "0.5814425", "0.5811175", "0.5793082", "0.5751181", "0.5748425", "0.57376504", "0.5716715", "0.57043785", "0.57012707", "0.56987613", "0.5689908", "0.5687405", "0.56868064", "0.5686322", "0.5686266", "0.56741905", "0.56672215", "0.5659407", "0.56456214", "0.5620024", "0.56191415", "0.56191415", "0.5592065", "0.5592065", "0.5580725", "0.5575842", "0.5552287", "0.5551948", "0.5546612", "0.5545121", "0.55442613", "0.5539318", "0.55325836", "0.55273163", "0.5526317", "0.55149966", "0.55033624", "0.5499091", "0.5496364", "0.54929024", "0.549091", "0.5490827", "0.5477065", "0.5472766", "0.54657644", "0.54631776", "0.5458909", "0.54569995", "0.54566884", "0.54563415", "0.54384464", "0.54341185", "0.54306215", "0.5422756", "0.5413441", "0.54114246", "0.5409611", "0.54054105", "0.5405138", "0.54021466", "0.5399007", "0.53969234", "0.5385664", "0.53846174", "0.53841823", "0.5380747", "0.5380326", "0.5378397", "0.5376296", "0.5374157", "0.5365068", "0.53644973", "0.5361572", "0.5361012", "0.53567266", "0.53534675", "0.5345285", "0.5338136", "0.5333619", "0.5332221", "0.5332103", "0.53311086" ]
0.0
-1
/Sirve para gestionar los distintos elementos de la barra al pulsarlos
@Override public boolean onOptionsItemSelected (MenuItem item){ int id = item.getItemId(); switch (id){ case R.id.action_settings: return true; case R.id.action_share: return true; case R.id.action_delete: return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "Lista_Simple datos(File tipo1) {\n \n SAXBuilder builder = new SAXBuilder();\n try {\n \n \n \n\n \n //Se obtiene la lista de hijos de la raiz 'tables'\n Document document = builder.build(tipo1);\n Element rootNode = document.getRootElement(); \n // JOptionPane.showMessageDialog(null,\" e1: \"+(rootNode.getChildText(\"dimension\"))); \n tam= Integer.parseInt(rootNode.getChildText(\"dimension\"));\n Element dobles = rootNode.getChild(\"dobles\");\n \n List list = dobles.getChildren(\"casilla\");\n for ( int i = 0; i < list.size(); i++ )\n {\n Element tabla = (Element) list.get(i);\n d1.enlistar(tabla.getChildTextTrim(\"x\"));\n \n d1.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n \n \n Element triples = rootNode.getChild(\"triples\");\n \n List listt = triples.getChildren(\"casilla\");\n for ( int i = 0; i < listt.size(); i++ )\n {\n Element tabla = (Element) listt.get(i);\n d2.enlistar(tabla.getChildTextTrim(\"x\"));\n d2.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n Element dicc = rootNode.getChild(\"diccionario\");\n List dic = dicc.getChildren();\n\n for ( int i = 0; i < dic.size(); i++ )\n {\n Element tabla = (Element) dic.get(i);\n //JOptionPane.showMessageDialog(null,\"\"+tabla.getText().toString());\n d.enlistar(tabla.getText().toString());\n \n \n \n } \n \n }catch (JDOMException | IOException | NumberFormatException | HeadlessException e){\n JOptionPane.showMessageDialog(null,\" error de archivo\");\n }\n return d;\n \n}", "private void depurarElementos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size();i++){\n\t\t\tif (!JuegoListener.elementos.get(i).estaVivo())\n\t\t\t\tJuegoListener.elementos.remove(i);\n\t\t}\n\t\t\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "private void iniciarListas() {\n listaBebidas = new ElementoMenu[7];\n listaBebidas[0] = new ElementoMenu(1, \"Coca\");\n listaBebidas[1] = new ElementoMenu(4, \"Jugo\");\n listaBebidas[2] = new ElementoMenu(6, \"Agua\");\n listaBebidas[3] = new ElementoMenu(8, \"Soda\");\n listaBebidas[4] = new ElementoMenu(9, \"Fernet\");\n listaBebidas[5] = new ElementoMenu(10, \"Vino\");\n listaBebidas[6] = new ElementoMenu(11, \"Cerveza\");\n// inicia lista de platos\n listaPlatos = new ElementoMenu[14];\n listaPlatos[0] = new ElementoMenu(1, \"Ravioles\");\n listaPlatos[1] = new ElementoMenu(2, \"Gnocchi\");\n listaPlatos[2] = new ElementoMenu(3, \"Tallarines\");\n listaPlatos[3] = new ElementoMenu(4, \"Lomo\");\n listaPlatos[4] = new ElementoMenu(5, \"Entrecot\");\n listaPlatos[5] = new ElementoMenu(6, \"Pollo\");\n listaPlatos[6] = new ElementoMenu(7, \"Pechuga\");\n listaPlatos[7] = new ElementoMenu(8, \"Pizza\");\n listaPlatos[8] = new ElementoMenu(9, \"Empanadas\");\n listaPlatos[9] = new ElementoMenu(10, \"Milanesas\");\n listaPlatos[10] = new ElementoMenu(11, \"Picada 1\");\n listaPlatos[11] = new ElementoMenu(12, \"Picada 2\");\n listaPlatos[12] = new ElementoMenu(13, \"Hamburguesa\");\n listaPlatos[13] = new ElementoMenu(14, \"Calamares\");\n// inicia lista de postres\n listaPostres = new ElementoMenu[15];\n listaPostres[0] = new ElementoMenu(1, \"Helado\");\n listaPostres[1] = new ElementoMenu(2, \"Ensalada de Frutas\");\n listaPostres[2] = new ElementoMenu(3, \"Macedonia\");\n listaPostres[3] = new ElementoMenu(4, \"Brownie\");\n listaPostres[4] = new ElementoMenu(5, \"Cheescake\");\n listaPostres[5] = new ElementoMenu(6, \"Tiramisu\");\n listaPostres[6] = new ElementoMenu(7, \"Mousse\");\n listaPostres[7] = new ElementoMenu(8, \"Fondue\");\n listaPostres[8] = new ElementoMenu(9, \"Profiterol\");\n listaPostres[9] = new ElementoMenu(10, \"Selva Negra\");\n listaPostres[10] = new ElementoMenu(11, \"Lemon Pie\");\n listaPostres[11] = new ElementoMenu(12, \"KitKat\");\n listaPostres[12] = new ElementoMenu(13, \"IceCreamSandwich\");\n listaPostres[13] = new ElementoMenu(14, \"Frozen Yougurth\");\n listaPostres[14] = new ElementoMenu(15, \"Queso y Batata\");\n }", "public void retournerLesPilesParcelles() {\n int compteur = 0;\n //pour chacune des 4 piles , retourner la parcelle au sommet de la pile\n for (JLabel jLabel : pileParcellesGUI) {\n JLabel thumb = jLabel;\n retournerParcelles(thumb, compteur);\n compteur++;\n }\n }", "public void generTirarDados() {\n\r\n\t}", "long getNombreElements();", "public MonticuloSVG(Lista<Integer> elementos) {\n ordenada = Lista.mergeSort(elementos);\n while (!ordenada.esVacia()) {\n arbol.agrega(ordenada.eliminaPrimero());\n }\n altura = arbol.altura();\n ancho = 100 * ((int) Math.pow(2, altura)) + (100 * ((int) Math.pow(2, altura) - 1)) + 300;\n alto = 100 * altura + 100 * (altura - 1) + 300;\n }", "public abstract Elemento[] elementosStone(Elemento[] elementos);", "public static void main(String[] args) {\n\t\tnew Ventana();\n/*\n\t\tCollection<MuroDeEnergia> muros = new ArrayList<MuroDeEnergia>();\n\t\tCollection<NaveInvasora> naves = new ArrayList<NaveInvasora>();\n\t\tBateria jugador = new Bateria();\n\t\t\n\t\tJuego.getInstancia();\n\t\tmuros = Juego.getInstancia().getMuros();\n\t\tnaves = Juego.getInstancia().getEnemigos();\n\t\tjugador = Juego.getInstancia().getJugador();\n\t\t\n\t\tIterator<MuroDeEnergia> i;\n\t\tfor (i = muros.iterator(); i.hasNext();) {\n\t\t\tMuroDeEnergia act = i.next();\n\t\t\tSystem.out.println(\"El muro \" + act.getCodigoMuro() + \" esta ubicado en: (\" + act.getCoordenadaX() + \", \" + act.getCoordenadaY() + \")\");\n\t\t}\n\t\t\n\t\tIterator<NaveInvasora> j;\n\t\tfor (j = naves.iterator(); j.hasNext();) {\n\t\t\tNaveInvasora act = j.next();\n\t\t\tSystem.out.println(\"El enemigo \" + act.getCodigoNave() + \" esta ubicado en: (\" + act.getCoordenadaX() + \", \" + act.getCoordenadaY() + \")\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"Hay \" + muros.size() + \" muros de energia.\");\n\t\tJuego.getInstancia().destruirMuro(1);\n\t\tSystem.out.println(\"El muro 1 fue destruido.\");\n\t\tmuros = Juego.getInstancia().getMuros();\n\t\tSystem.out.println(\"Hay \" + muros.size() + \" muros de energia.\");\n\t\t\n\t\tSystem.out.println(\"Hay \" + naves.size() + \" enemigos. El jugador tiene \" + jugador.getPuntos() + \" puntos.\");\n\t\tJuego.getInstancia().destruirNave(9);\n\t\tSystem.out.println(\"La nave 9 fue destruida.\");\n\t\tnaves = Juego.getInstancia().getEnemigos();\n\t\tSystem.out.println(\"Hay \" + naves.size() + \" enemigos. El jugador tiene \" + jugador.getPuntos() + \" puntos.\");\n\t\tSystem.out.println(\"Usted esta en el nivel \" + Juego.getInstancia().getDificultad());\n\t\tSystem.out.println(\"Destruyendo naves...\");\n\t\tint idNave = 0;\n\t\twhile(idNave < 15) {\n\n\t\t\tJuego.getInstancia().destruirNave(idNave);\n\n\t\t\tidNave++;\n\n\t\t}\n\t\tSystem.out.println(\"Todas las naves fueron destruidas. Usted esta en el nivel \" + Juego.getInstancia().getDificultad() + \".\");\n\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\t\t\n\t\tSystem.out.println(\"El jugador se mueve a la izquierda\");\n\t\tJuego.getInstancia().presionaFlechaIzq();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\t\t\n\t\tSystem.out.println(\"El jugador se mueve a la izquierda\");\n\t\tJuego.getInstancia().presionaFlechaIzq();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"El jugador se mueve a la derecha\");\n\t\tJuego.getInstancia().presionaFlechaDer();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"Se termina el juego:\");\n\t\tJuego.getInstancia().finalizarJuego();\n\t\t\n*/\n\t}", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "private void obtenerAnimales() {\n // final ArrayList<String> lista = new ArrayList<>();\n //Para obtener datos de la base de datos\n refAnimales.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n long size = dataSnapshot.getChildrenCount();\n ArrayList<String> animalesFirebase = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n\n String code = dataSnapshot.child(\"\" + i).child(\"codigo\").getValue(String.class);\n String nombre = dataSnapshot.child(\"\" + i).child(\"nombre\").getValue(String.class);\n String tipo = dataSnapshot.child(\"\" + i).child(\"tipo\").getValue(String.class);\n String raza = dataSnapshot.child(\"\" + i).child(\"raza\").getValue(String.class);\n String animal = code + \" | \" + nombre + \" | \" + tipo + \" | \" + raza;\n\n animalesFirebase.add(animal);\n }\n\n adaptar(animalesFirebase);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "public EnemigoGenerico[] cargaBichos()\n {\n \n //Crear la bicheria (hardCoded)\n CoordCasilla[] origen={new CoordCasilla(1,1), new CoordCasilla(18,1), new CoordCasilla(14,8), new CoordCasilla(17,17), new CoordCasilla(13,5)};\n CoordCasilla[] destino={new CoordCasilla(6,18) , new CoordCasilla(1,1), new CoordCasilla(1,8), new CoordCasilla(18,1) , new CoordCasilla(13,18) };\n \n \n DefBicho pelota=this.atlasBicheria.get(\"Pelota Maligna\");\n EnemigoGenerico bichos[]=new EnemigoGenerico[origen.length];\n \n for(int x=0;x<origen.length;x++)\n {\n List<CoordCasilla> camino = this.getCamino(origen[x], destino[x]);\n Gdx.app.log(\"CAMINO:\", \"DESDE (\"+origen[x].x+\",\"+origen[x].y+\") HASTA ( \"+destino[x].x+\",\"+destino[x].y+\")\");\n for (CoordCasilla cc : camino)\n Gdx.app.log(\"CASILLA.\", String.format(\"(%2d ,%2d )\", cc.x, cc.y));\n \n \n bichos[x] = new EnemigoGenerico(pelota, this.mapaAnimaciones.get(pelota.archivoAnim), pelota.pv, pelota.tasaRegen, pelota.velocidad, camino, pelota.distanciaPercepcion, pelota.ataques);\n }\n \n return bichos;\n }", "public void dibujar() {\n\t\t\n\t\tgrilla.getChildren().clear();\n\t\t\n\t\tfor (int fila = 1; fila <= juego.contarFilas(); fila++) {\n\n\t\t\tfor (int columna = 1; columna <= juego.contarColumnas(); columna++) {\n\n\t\t\t\tdibujarFicha(fila, columna);\n\t\t\t\tdibujarBoton(fila, columna);\n\t\t\t}\n\t\t}\n\t\t\n\t\tdibujarEstado();\n\t}", "private void prepare()\n {\n addObject(new TempoLimite(), 432, 207);\n addObject(new NumeroVidas(), 395, 278);\n\n Cliqueparajogar clique = new Cliqueparajogar();\n addObject(clique, getWidth()/2, getHeight()/2);\n\n Som som = new Som();\n addObject(som, getWidth() - 37, getHeight()-57);\n \n umMin ummin = new umMin();\n addObject(ummin,630,206);\n\n doisMin doismin = new doisMin();\n addObject(doismin,670,206);\n \n tresMin tresmin = new tresMin();\n addObject(tresmin,710,206);\n \n quatroMin quatromin = new quatroMin();\n addObject(quatromin,750,206);\n \n cincoMin cincomin = new cincoMin();\n addObject(cincomin,790,206);\n \n umaVida umavida = new umaVida();\n addObject(umavida,630,280);\n \n duasVidas duasvidas = new duasVidas();\n addObject(duasvidas,670,280);\n \n tresVidas tresvidas = new tresVidas();\n addObject(tresvidas,710,280);\n \n quatroVidas quatrovidas = new quatroVidas();\n addObject(quatrovidas,750,280);\n \n cincoVidas cincovidas = new cincoVidas();\n addObject(cincovidas,790,280);\n \n voltaratras voltar = new voltaratras();\n addObject(voltar, getWidth() -37, 428);\n }", "public void trancribirPistas() {\r\n\t\t\r\n\t\tfor (int x = 0; x<manejadorArchivos.getPistas().size();x++) {\r\n\t\t\t\r\n\t\t\tpistas.add(manejadorArchivos.getPistas().get(x));\t\r\n\t\t}\r\n\t}", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "public static void main(String[] args) {\n \n Grupo [] grupos = new Grupo[5]; \n Grupo grupo1=new Grupo();\n Grupo grupo2=new Grupo();\n Grupo grupo3=new Grupo();\n Grupo grupo4=new Grupo();\n Grupo grupo5=new Grupo();\n \n \n // le doy valores a los atributos\n \n grupo1.nombre=\"verde\";\n grupo2.nombre=\"amarillo\";\n grupo3.nombre=\"rojo\";\n grupo4.nombre=\"naranja\";\n grupo5.nombre=\"azul\";\n \n grupo1.descripcion=\"verde como las hojas\";\n grupo2.descripcion=\"amarillo como el sol\";\n grupo3.descripcion=\"rojo como el tomate\";\n grupo4.descripcion=\"naranja como la naranja\";\n grupo5.descripcion=\"azul como el cielo\";\n \n // asigno los elementos al vector \n \n grupos[0]=grupo1; \n grupos[1]=grupo2;\n grupos[2]=grupo3;\n grupos[3]=grupo4;\n grupos[4]=grupo5;\n \n System.out.println(\"Los elementos del vector son: \\n\"); \n // muestro los elementos del vector\n \n for(Grupo r: grupos){\n r.mostrar();\n }\n \n //b con array \n \n // creo un array Grupis de cinco elementos\n \n ArrayList<Grupo> Grupis = new ArrayList<>();\n Grupis.add(grupo1);\n Grupis.add(grupo2);\n Grupis.add(grupo3);\n Grupis.add(grupo4);\n Grupis.add(grupo5);\n \n System.out.println(\"\\n Los elementos del Array son: \\n\");\n // muestro los elementos del array\n \n for (Grupo f: Grupis){\n f.mostrar(); \n }\n \n }", "private void moverCarroLujo() {\n for (Auto auto : arrEnemigosAuto) {\n auto.render(batch);\n\n auto.moverIzquierda();\n }\n }", "public void getFlies(){\r\n\ttry {\r\n\t\t \r\n\t\tFile xmlFile = new File(\"C:\\\\Users\\\\Mateusz\\\\Documents\\\\GitHub\\\\Plane\\\\Projekt\\\\loty.xml\");\r\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n\t\tDocument doc = dBuilder.parse(xmlFile);\r\n\t \r\n\t\t\r\n\t\tdoc.getDocumentElement().normalize();\r\n\t \r\n\t \r\n\t\tNodeList nList = doc.getElementsByTagName(\"plane\");\r\n\t \r\n\t\tSystem.out.println(\"----------------------------\");\r\n\t \r\n\t\tfor (int temp = 0; temp < nList.getLength(); temp++) {\r\n\t \r\n\t\t\tNode nNode = nList.item(temp);\r\n\t \r\n\t \r\n\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\r\n\t \r\n\t\t\t\tElement eElement = (Element) nNode;\r\n\t \r\n\t\t\t\t\r\n\t\t\t\tint planeId = Integer.parseInt(eElement.getAttribute(\"id\"));\r\n\t\t\t\tint planeFrom = Integer.parseInt(eElement.getElementsByTagName(\"fromId\").item(0).getTextContent());\r\n\t\t\t\tint planeTo = Integer.parseInt(eElement.getElementsByTagName(\"toId\").item(0).getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tSetup.planes.add(new Plane(planeId, planeFrom, planeTo,iterator));\r\n\t\t\t\tSetup.planesGUI.add(new PlaneGUI(iterator));\r\n\t\t\t\t\r\n\t\t\t\titerator++;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t } catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "private void aumentaCapacidade(){\n\t\tif(this.tamanho == this.elementos.length){\n\t\t\tObject[] elementosNovos = new Object[this.elementos.length*2];\n\t\t\tfor(int i =0; i<this.elementos.length;i++){\n\t\t\t\telementosNovos[i]=this.elementos[i];\n\t\t\t}\n\t\t\tthis.elementos=elementosNovos;\n\t\t}\n\t}", "public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public void UnDia()\n {\n int i = 0;\n for (i = 0; i < 6; i++) {\n for (int j = animales.get(i).size() - 1; j >= 0; j--) {\n\n if (!procesoComer(i, j)) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n } else {\n if (animales.get(i).size() > 0 && j < animales.get(i).size()) {\n\n if (animales.get(i).get(j).reproducirse()) {\n ProcesoReproducirse(i, j);\n }\n if (j < animales.get(i).size()) {\n if (animales.get(i).get(j).morir()) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n }\n }\n }\n }\n\n }\n }\n if (krill == 0) {\n Utilidades.MostrarExtincion(0, dia);\n }\n modificarKrill();\n modificarTemperatura();\n ejecutarDesastres();\n for (i = 1; i < animales.size(); i++) {\n if (animales.get(i).size() == 0 && !extintos.get(i)) {\n extintos.set(i, true);\n Utilidades.MostrarExtincion(i, dia);\n }\n }\n dia++;\n System.out.println(dia + \":\" + krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }", "private void calculerBordsDomaine() {\n\t\tfor (Contrainte c : contraintes) {\n\t\t\tbords.add(new Bord(this, c));\n\t\t}\n\t}", "private void renderObjetos()\n {\n for (int i=0;i<NCONSUMIBLES;i++)\n {\n //EDIT:Ruta de Inventario\n Consumible consumible=(Consumible)VenganzaBelial.atributoGestion.getInv().getItems().get(i);\n if(eleccionJugador==i)\n {\n opcionesJugadorTTF.drawString(10,i*20+400,consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\");\n }\n else{\n opcionesJugadorTTF.drawString(10, i * 20 + 400, consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\", notChosen);\n }\n }\n }", "public static void main(String[] args) {\n Bebida bebida1 = new Bebida (\"Coca-Cola Zero\", 20, 1.5f);\r\n Bebida bebida2 = new Bebida (\"Coca-Cola\", 18, 1.5f);\r\n HigienePersonal shampoo1 = new HigienePersonal (\"Shampoo Sedal\", 19, 500);\r\n Fruta fruta1 = new Fruta (\"Frutillas\", 64, \"Kilo\");\r\n \r\n //Genero una lista de Producto\r\n ArrayList<Producto> listaProductos = new ArrayList<Producto>();\r\n \r\n //Agrego a la lista creada anteriormente los productos ingresados\r\n listaProductos.add(bebida1);\r\n listaProductos.add(bebida2);\r\n listaProductos.add(shampoo1);\r\n listaProductos.add(fruta1);\r\n \r\n //itero la lista de productos y se muestran como quedó determinado en el método toString sobreescrito\r\n for (Producto p : listaProductos) {\r\n System.out.println(p); \r\n }\r\n \r\n /*se muestra el producto mas caro y el mas barato llamando a Collections min y max, Producto \r\n implementa la interfaz Comparable*/\r\n \r\n System.out.println(\"=============================\");\r\n System.out.println(\"Producto mas caro: \" + Collections.max(listaProductos).getNombre());\r\n System.out.println(\"Producto mas barato: \" + Collections.min(listaProductos).getNombre());\r\n \r\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public ArrayList<Elemento> getElementos(){\n ArrayList<Elemento> items = new ArrayList<>();\r\n\r\n SQLiteDatabase db = helper.getReadableDatabase();\r\n // Especificamos las columnas a usar\r\n String[] columnas = {\r\n ElementosContract.Entrada.COLUMNA_CARRITO_ID,\r\n ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO,\r\n ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO,\r\n ElementosContract.Entrada.COLUMNA_CANTIDAD,\r\n };\r\n\r\n // TODO: 15.- Se crea un cursor para hacer recorrido de resultados y se crea una estructura de query\r\n Cursor c = db.query(\r\n ElementosContract.Entrada.NOMBRE_TABLA, // nombre tabla\r\n columnas, // columnas\r\n null, //texto para filtrar\r\n null, // arreglo de parametros a filtrar\r\n null, // agrupar\r\n null, // contiene\r\n null); //limite\r\n\r\n // TODO: 16.- Se recorren los resultados y se añaden a la lista\r\n while (c.moveToNext()){\r\n items.add(new Elemento(\r\n c.getInt(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_CARRITO_ID)),\r\n c.getString(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO)),\r\n c.getFloat(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO)),\r\n c.getInt(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_CANTIDAD))\r\n ));\r\n }\r\n // TODO: 17.- Cerramos conexión y regresamos elementos\r\n c.close();\r\n return items;\r\n }", "private void dibujarPuntos() {\r\n for (int x = 0; x < 6; x++) {\r\n for (int y = 0; y < 6; y++) {\r\n panelTablero[x][y].add(obtenerIcono(partida.getTablero()\r\n .getTablero()[x][y].getColor()));\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "private void mostrarLibros() {\n dlmLibros.clear();\n for (Libro libro : modelo.getLibros()) {\n dlmLibros.addElement(libro);\n }\n seleccionarLibrosOriginales();\n }", "public void verElementos() {\n for (int i = 0; i <= top; i++) { // recorremos la pila para ir mostrando los elementos\r\n System.out.print(array[i] + \"=>\"); // mostramos el valor y unos caracteres para el siguiente valor\r\n }\r\n System.out.println(); // imprimimos un salto de linea\r\n System.out.println(\"Tamaño:\" + array.length); // mostramos el tamaño actual\r\n }", "private void montarBotoesJogo() {\n\r\n\t\tbotoes = new BotaoJogo[dificuldade.getValor()][dificuldade.getValor()];\r\n\r\n\t\tfor (int i = 0; i < botoes.length; i++) {\r\n\t\t\tfor (int j = 0; j < botoes.length; j++) {\r\n\t\t\t\tbotoes[i][j] = new BotaoJogo(i, j);\r\n\t\t\t\tbotoes[i][j].setDisabledIcon(iconBandeira);\r\n\t\t\t\tbotoes[i][j].addActionListener(this);\r\n\t\t\t\tbotoes[i][j].addMouseListener(this);\r\n\t\t\t\tbotoes[i][j].setIcon(iconBotao);\r\n\t\t\t\tthis.painelJogo.add(botoes[i][j]);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void turnos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size(); i++){\n\t\t\tElemento elemento = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\telemento.jugar();\n\t\t}\n\t}", "public void cargarProductosVendidos() {\n try {\n //Lectura de los objetos de tipo productosVendidos\n FileInputStream archivo= new FileInputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosVendidos = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}", "public static void llenarWalmart(){\r\n \r\n \r\n Producto café = new Producto(\"cafe\", \"nescafe\", 77, 2);\r\n Nodo<Producto> nTemp = new Nodo(café);\r\n listaWalmart.agregarNodo(nTemp);\r\n \r\n Producto panblancobimbo = new Producto(\"pan blanco bimbo\", \"bimbo\", 30, 2);\r\n Nodo<Producto> nTemp2 = new Nodo(panblancobimbo);\r\n listaWalmart.agregarNodo(nTemp2);\r\n \r\n Producto lecheentera = new Producto(\"leche\", \"Lala\", 17, 2);\r\n Nodo<Producto> nTemp3 = new Nodo(lecheentera);\r\n listaWalmart.agregarNodo(nTemp3);\r\n \r\n Producto mantequilla = new Producto(\"mantequilla\", \"sin sal lala\", 11.50, 2);\r\n Nodo<Producto> nTemp4 = new Nodo(mantequilla);\r\n listaWalmart.agregarNodo(nTemp4);\r\n \r\n Producto huevoblanco= new Producto(\"huevo\", \"san juan\",50.50, 2);\r\n Nodo<Producto> nTemp5 = new Nodo(huevoblanco);\r\n listaWalmart.agregarNodo(nTemp5);\r\n \r\n Producto crema= new Producto(\"crema\", \"lala\", 46, 2);\r\n Nodo<Producto> nTemp6 = new Nodo(crema);\r\n listaWalmart.agregarNodo(nTemp6);\r\n \r\n Producto naranja= new Producto(\"naranja\", \"valencia\", 15.90, 0);\r\n Nodo<Producto> nTemp7 = new Nodo(naranja);\r\n listaWalmart.agregarNodo(nTemp7);\r\n \r\n Producto limon= new Producto(\"limon\", \"limon agrio\", 25.90, 0);\r\n Nodo<Producto> nTemp8 = new Nodo(limon);\r\n listaWalmart.agregarNodo(nTemp8);\r\n \r\n Producto manzana= new Producto(\"manzana\", \"red delicious\", 39.90, 0);\r\n Nodo<Producto> nTemp9 = new Nodo(manzana);\r\n listaWalmart.agregarNodo(nTemp9);\r\n \r\n Producto plátano = new Producto(\"platano\", \"chiapas\", 13.90, 0);\r\n Nodo<Producto> nTemp10 = new Nodo(plátano);\r\n listaWalmart.agregarNodo(nTemp10);\r\n \r\n Producto papaya= new Producto(\"papaya\", \"maradol\",27.90, 0);\r\n Nodo<Producto> nTemp11 = new Nodo(papaya);\r\n listaWalmart.agregarNodo(nTemp11);\r\n \r\n Producto uva= new Producto(\"uva\", \"roja sin semilla\", 59, 0);\r\n Nodo<Producto> nTemp12 = new Nodo(uva);\r\n listaWalmart.agregarNodo(nTemp12);\r\n \r\n Producto chiledelarbol= new Producto(\"chile del arbol\", \"verde valle\", 20, 2);\r\n Nodo<Producto> nTemp13 = new Nodo(chiledelarbol);\r\n listaWalmart.agregarNodo(nTemp13);\r\n \r\n Producto piernaymuslodepollo = new Producto(\"pierna y muslo de pollo\", \"bachoco\", 34, 1);\r\n Nodo<Producto> nTemp14 = new Nodo(piernaymuslodepollo);\r\n listaWalmart.agregarNodo(nTemp14);\r\n \r\n Producto pechugadepollo= new Producto(\"pechuga de pollo\", \"bachoco\", 114, 1);\r\n Nodo<Producto> nTemp15 = new Nodo(pechugadepollo);\r\n listaWalmart.agregarNodo(nTemp15);\r\n \r\n Producto costilladecerdo= new Producto(\"costilla de cerdo\", \"pork loin\", 114, 1);\r\n Nodo<Producto> nTemp16 = new Nodo(costilladecerdo);\r\n listaWalmart.agregarNodo(nTemp16);\r\n \r\n Producto carnemolida= new Producto(\"carne molida\", \"premium\", 152, 1);\r\n Nodo<Producto> nTemp17 = new Nodo(carnemolida);\r\n listaWalmart.agregarNodo(nTemp17);\r\n \r\n Producto chuletadecostilla= new Producto(\"chuleta de costilla\", \"premium\", 219, 1);\r\n Nodo<Producto> nTemp18 = new Nodo(chuletadecostilla);\r\n listaWalmart.agregarNodo(nTemp18);\r\n \r\n Producto pescado= new Producto(\"pescado\", \"sierra del golfo\", 89, 1);\r\n Nodo<Producto> nTemp19 = new Nodo(pescado);\r\n listaWalmart.agregarNodo(nTemp19);\r\n \r\n Producto atun= new Producto(\"atun\", \"herdez\", 18.50, 2);\r\n Nodo<Producto> nTemp20 = new Nodo(atun);\r\n listaWalmart.agregarNodo(nTemp20);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"verde valle super extra\", 22.50, 2);\r\n Nodo<Producto> nTemp21 = new Nodo(arroz);\r\n listaWalmart.agregarNodo(nTemp21);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"verde valle\", 30, 2);\r\n Nodo<Producto> nTemp22 = new Nodo(frijol);\r\n listaWalmart.agregarNodo(nTemp22);\r\n \r\n \r\n Producto azucar= new Producto(\"azucar\", \"zulka\", 54, 2);\r\n Nodo<Producto> nTemp23 = new Nodo(azucar);\r\n listaWalmart.agregarNodo(nTemp23);\r\n \r\n Producto consome= new Producto(\"consome\", \"knorr\", 7, 2);\r\n Nodo<Producto> nTemp24 = new Nodo(consome);\r\n listaWalmart.agregarNodo(nTemp24);\r\n \r\n Producto galletassaladas= new Producto(\"galletas saladas\", \"saladitas\", 40, 2);\r\n Nodo<Producto> nTemp25 = new Nodo(galletassaladas);\r\n listaWalmart.agregarNodo(nTemp25);\r\n \r\n Producto sal= new Producto(\"sal\", \"la fina\", 8.90, 2);\r\n Nodo<Producto> nTemp26 = new Nodo(sal);\r\n listaWalmart.agregarNodo(nTemp26);\r\n \r\n Producto pimienta= new Producto(\"pimienta\", \"mccormick\", 47.50, 2);\r\n Nodo<Producto> nTemp27= new Nodo(pimienta);\r\n listaWalmart.agregarNodo(nTemp27);\r\n \r\n Producto comino= new Producto(\"comino\", \"mccormick\", 30, 2);\r\n Nodo<Producto> nTemp28 = new Nodo(comino);\r\n listaWalmart.agregarNodo(nTemp28);\r\n \r\n Producto canela= new Producto(\"canela\", \"el cuernito\", 4.50, 2);\r\n Nodo<Producto> nTemp29 = new Nodo(canela);\r\n listaWalmart.agregarNodo(nTemp29);\r\n \r\n Producto cebolla= new Producto(\"cebolla\", \"blanca\", 31.90, 2);\r\n Nodo<Producto> nTemp30 = new Nodo(cebolla);\r\n listaWalmart.agregarNodo(nTemp30);\r\n \r\n Producto zanahoria= new Producto(\"zanahoria\", \"simple\", 19.50, 2);\r\n Nodo<Producto> nTemp31 = new Nodo(zanahoria);\r\n listaWalmart.agregarNodo(nTemp31);\r\n \r\n Producto polvoparaprepararbebida= new Producto(\"polvo para preparar bebida\", \"zuko\", 3.80, 2);\r\n Nodo<Producto> nTemp32 = new Nodo(polvoparaprepararbebida);\r\n listaWalmart.agregarNodo(nTemp32);\r\n \r\n Producto cereal= new Producto(\"cereal\", \"nestle\", 39.90, 2);\r\n Nodo<Producto> nTemp33 = new Nodo(cereal);\r\n listaWalmart.agregarNodo(nTemp33);\r\n \r\n Producto sopa= new Producto(\"sopa\", \"aurrera \", 3.10, 2);\r\n Nodo<Producto> nTemp34 = new Nodo(sopa);\r\n listaWalmart.agregarNodo(nTemp34);\r\n \r\n \r\n Producto espagueti= new Producto(\"espagueti\", \"moderna\", 5.20, 2);\r\n Nodo<Producto> nTem35 = new Nodo(espagueti);\r\n listaWalmart.agregarNodo(nTem35);\r\n \r\n Producto maquinaparaafeitar= new Producto(\"maquina para afeitar\", \"gillette prestobarba\", 20, 3);\r\n Nodo<Producto> nTemp35 = new Nodo(maquinaparaafeitar);\r\n listaWalmart.agregarNodo(nTemp35);\r\n \r\n Producto shampoo= new Producto(\"shampoo\", \"ego black\", 63.50, 3);\r\n Nodo<Producto> nTemp36 = new Nodo(shampoo);\r\n listaWalmart.agregarNodo(nTemp36);\r\n \r\n \r\n Producto pastadental= new Producto(\"pasta dental\", \"colgate\", 43.50, 3);\r\n Nodo<Producto> nTemp37 = new Nodo(pastadental);\r\n listaWalmart.agregarNodo(nTemp37);\r\n \r\n Producto papelhigienico= new Producto(\"papel higienico\", \"elite\", 17.50, 3);\r\n Nodo<Producto> nTemp38 = new Nodo(papelhigienico);\r\n listaWalmart.agregarNodo(nTemp38);\r\n \r\n Producto pañuelos = new Producto(\"pañuelos\", \"kleenex\", 14.50, 3);\r\n Nodo<Producto> nTemp39 = new Nodo(pañuelos);\r\n listaWalmart.agregarNodo(nTemp39);\r\n \r\n Producto cremad = new Producto(\"crema\", \"pond´s\", 56, 2);\r\n Nodo<Producto> nTemp40 = new Nodo(cremad);\r\n listaWalmart.agregarNodo(nTemp40);\r\n \r\n Producto desodorantemasculino= new Producto(\"desodorante masculino\", \"stefano\", 41.50, 3);\r\n Nodo<Producto> nTemp41 = new Nodo(desodorantemasculino);\r\n listaWalmart.agregarNodo(nTemp41);\r\n \r\n Producto desodorantefemenino= new Producto(\"desodorante femenino\", \"lady speed stick\", 23, 3);\r\n Nodo<Producto> nTemp42 = new Nodo(desodorantefemenino);\r\n listaWalmart.agregarNodo(nTemp42);\r\n \r\n Producto cloro= new Producto(\"cloro\", \"cloralex\", 21, 3);\r\n Nodo<Producto> nTemp43 = new Nodo(cloro);\r\n listaWalmart.agregarNodo(nTemp43);\r\n \r\n Producto pinol= new Producto(\"pinol\", \"pinol\", 29.90, 3);\r\n Nodo<Producto> nTemp44 = new Nodo(pinol);\r\n listaWalmart.agregarNodo(nTemp44);\r\n \r\n Producto lavatrastes= new Producto(\"lavatrastes\", \"axion\", 36.90, 3);\r\n Nodo<Producto> nTemp45 = new Nodo(lavatrastes);\r\n listaWalmart.agregarNodo(nTemp45);\r\n \r\n Producto deterjente= new Producto(\"deterjente\", \"finish\", 99, 3);\r\n Nodo<Producto> nTemp46 = new Nodo(deterjente);\r\n listaWalmart.agregarNodo(nTemp46);\r\n \r\n Producto queso= new Producto(\"queso\", \"chichuahua\", 125, 1);\r\n Nodo<Producto> nTemp47 = new Nodo(queso);\r\n listaWalmart.agregarNodo(nTemp47);\r\n \r\n Producto lentejas= new Producto(\"lentejas\", \"verde valle\", 25.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo(lentejas);\r\n listaWalmart.agregarNodo(nTemp48);\r\n \r\n Producto papitas= new Producto(\"papitas\", \"sabritas\", 36, 2);\r\n Nodo<Producto> nTemp49 = new Nodo(papitas);\r\n listaWalmart.agregarNodo(nTemp49);\r\n \r\n Producto mole= new Producto(\"mole\", \"doña maria \", 33, 2);\r\n Nodo<Producto> nTemp50 = new Nodo(mole);\r\n listaWalmart.agregarNodo(nTemp50);\r\n }", "private void actualizarEnConsola() {\n\t\tfor(int i=0; i<elementos.size();i++){\n\t\t\tElemento e = elementos.get(i);\n\t\t\tSystem.out.println(e.getClass().getName()+\"- Posicion: , X: \"+e.getPosicion().getX()+\", Y: \"+ e.getPosicion().getY());\n\t\t}\n\t\t\n\t}", "private static Vuelo[] arribos(Vuelo [] vuelosArray) {\n Ciudad concordia = new Ciudad(\"CON\",\"Concordia\");\n\n Vuelo[] listado = new Vuelo[0];\n for (Vuelo vuelo: vuelosArray) {\n if (vuelo.getCiudaDestino().equals(concordia)) {\n listado = agregarVuelo(listado, vuelo);\n }\n }\n return listado;\n }", "private static void readBooksInfo() {\n List<eGenre> arrBook = new ArrayList<>();\n\n // 1 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.ADVENTURE);\n book.add(new Book(1200, arrBook, \"Верн Жюль\", \"Таинственный остров\", 1875));\n arrBook.clear();\n // 2 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(425, arrBook, \"Григоренко Виталий\", \"Иван-душитель\", 1953));\n arrBook.clear();\n // 3 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(360, arrBook, \"Сейгер Райли\", \"Последние Девушки\", 1992));\n arrBook.clear();\n // 4 //\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(385, arrBook, \"Ольга Володарская\", \"То ли ангел, то ли бес\", 1995));\n arrBook.clear();\n // 5 //\n arrBook.add(eGenre.NOVEL);\n arrBook.add(eGenre.ACTION);\n book.add(new Book(180, arrBook, \"Лихэйн Деннис\", \"Закон ночи\", 1944));\n arrBook.clear();\n // 6 //\n arrBook.add(eGenre.NOVEL);\n book.add(new Book(224, arrBook, \"Мураками Харуки\", \"Страна Чудес без тормозов и Конец Света\", 1985));\n arrBook.clear();\n // 7 //\n arrBook.add(eGenre.STORY);\n book.add(new Book(1200, arrBook, \"Джон Хейвуд\", \"Люди Севера: История викингов, 793–1241\", 2017));\n arrBook.clear();\n // 8 //\n arrBook.add(eGenre.ACTION);\n arrBook.add(eGenre.MYSTIC);\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(415, arrBook, \"Линдквист Юн\", \"Впусти меня\", 2017));\n arrBook.clear();\n // 9 //\n arrBook.add(eGenre.ACTION);\n book.add(new Book(202, arrBook, \"Сухов Евгений\", \"Таежная месть\", 2016));\n arrBook.clear();\n // 10 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(231, arrBook, \"Винд Кристиан\", \"Призраки глубин\", 2019));\n arrBook.clear();\n }", "public List<NodoRuta> getElementos() { \n \n return new ArrayList<NodoRuta>(nodos);\n }", "public static void main (String[] args){\n Vehiculo misVehiculos[] = new Vehiculo[4];\n\n misVehiculos[0] = new Vehiculo (\"XYS34\", \"Volkswagen\", \"Jetta\");\n misVehiculos[1] = new VehiculoTurismo(\"AVF76\", \"Ford\", \"Fiesta\", 4);\n misVehiculos[2] = new VehiculoDeportivo(\"AJK12\", \"Ferrari\", \"A89\", 500);\n misVehiculos[3] = new VehiculoFurgoneta(\"LKU90\", \"Toyota\", \"J9\", 2000);\n\n for(Vehiculo vehiculos: misVehiculos){\n System.out.println(vehiculos.mostrarDatos());\n System.out.println(\" \");\n }\n\n }", "public void imprimir_etiquetas() {\n\n\t\tLinkedList l = new LinkedList();\n\t\tString q=\"select id,isnull(idarticulo,''),isnull(descripcion,''),isnull(cantidad,0),isnull(especial,0),isnull(especial_width,0),isnull(especial_height,0),isnull(quitarprefijo,0) from b_etiquetas where isnull(impresa,0)=0 order by id \";\n\t\tList<String> ids=new ArrayList<String>();\t\n\t\tObject[][] results=data.getResults(q);\n\t\tif (results!=null){\n\t\t\tif (results.length>0){\n\t\t\t\tif (_debug>0) System.out.println(\"Etiquetas para imprimir=\"+results.length);\n\t\t\t\tfor (int i = 0; i < results.length; i++) {\n\t\t\t\t\tString idarticulo = \"\";\n\t\t\t\t\tString id = \"\";\n\t\t\t\t\tString descripcion = \"\";\n\t\t\t\t\tString cant = \"\";\n\t\t\t\t\tString width = \"\";\n\t\t\t\t\tString height = \"\";\n\t\t\t\t\tString prefijo = \"\";\n\t\t\t\t\tint _width=40;\n\t\t\t\t\tint _height=40;\n\t\t\t\t\tdouble _cant = 0.0;\n\t\t\t\t\tboolean especial=false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tid = (String) results[i][0];\n\t\t\t\t\t\tidarticulo = (String) results[i][1];\n\t\t\t\t\t\tdescripcion = (String) results[i][2];\n\t\t\t\t\t\tcant = (String) results[i][3];\n\t\t\t\t\t\tespecial = ((String) results[i][4]).compareTo(\"1\")==0;\n\t\t\t\t\t\twidth = (String) results[i][5];\n\t\t\t\t\t\theight = (String) results[i][6];\n\t\t\t\t\t\tprefijo = (String) results[i][7];\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t_width=new Integer(width);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t_height=new Integer(height);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_cant = new Double(cant);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tids.add(id);\n\t\t\t\t\tif (_cant >= 1) {\n\t\t\t\t\t\tif (idarticulo.compareTo(\"\")!=0){\n\t\t\t\t\t\t\tif (descripcion.compareTo(\"\")!=0){\n\t\t\t\t\t\t\t\tdescripcion.replaceAll(\"'\", \"\");\n\t\t\t\t\t\t\t\tStrEtiqueta str_etiqueta = new StrEtiqueta();\n\t\t\t\t\t\t\t\tstr_etiqueta.setCodigo(idarticulo);\n\t\t\t\t\t\t\t\tstr_etiqueta.setDescripcion(descripcion);\n\t\t\t\t\t\t\t\tstr_etiqueta.setCantidad(new Double(_cant).intValue());\n\t\t\t\t\t\t\t\tstr_etiqueta.setEspecial(especial);\n\t\t\t\t\t\t\t\tstr_etiqueta.setWidth(_width);\n\t\t\t\t\t\t\t\tstr_etiqueta.setHeight(_height);\n\t\t\t\t\t\t\t\tstr_etiqueta.setQuitar_prefijo(prefijo.compareTo(\"1\")==0);\n\t\t\t\t\t\t\t\tl.add(str_etiqueta);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (l.size() > 0) {\n\n\t\t\t\t\t// ImpresionCodigoDeBarras PI=new ImpresionCodigoDeBarras();\n\n\t\t\t\t\t\tprinting pi = this.getPrintingInterface();\n\t\t\t\t\t\tpi.setPrintList(l);\n\t\t\t\t\t\tpi.setDebug(false);\n\t\t\t\t\t\tboolean ok = pi.print_job();\n\t\t\t\t\t\tif (ok){\n\t\t\t\t\t\t\tif (_printer_error>0){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Se Enviaron las Etiquetas Pendientes a la Impresora\");\n\t\t\t\t\t\t\t\tthis.trayIcon.displayMessage(\"Beta Servidor de Impresion\", \"Se Enviaron las Etiquetas Pendientes a la Impresora\", TrayIcon.MessageType.INFO);\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tthis.trayIcon.displayMessage(\"Beta Servidor de Impresion\", \"Se Enviaron las Etiquetas a la Impresora\", TrayIcon.MessageType.INFO);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_printer_error=0;\n\t\t\t\t\t\t\tdata.beginTransaction();\n\t\t\t\t\t\t\tdata.clearBatch();\n\t\t\t\t\t\t\t\tfor (int i=0;i<ids.size();i++){\n\t\t\t\t\t\t\t\t\tq=\"update b_etiquetas set impresa=1 where id like '\"+ids.get(i)+\"'\";\n\t\t\t\t\t\t\t\t\tdata.addBatch(q);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdata.executeBatch();\n\t\t\t\t\t\t\t\tdata.commitTransaction();\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif (_printer_error<=0){\n\t\t\t\t\t\t\t\tthis._clock_printer_error=this._clock_printer_error_reset;\n\t\t\t\t\t\t\t\tSystem.out.println(\"primer error\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_printer_error=1;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t// PI.armar_secuencia();\n\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "Map<Double, Element> getElements();", "public static void main(String[] args) {\n\t\tFornitura forn= new Fornitura();\n\t\tArrayList<Dipendente> dip = new ArrayList<Dipendente>();\t\t\n\t\tfor(int j = 0;j<3;j++){\n\t\t\tDipendente d = new Dipendente();\n\t\t\td.setCodAziendaUfficiale(\"soc\"+j);\n\t\t\td.setCodDipendenteUfficiale(\"dip\"+j);\n\t\t\tArrayList<Voce> voc = new ArrayList<Voce>();\n\t\t\tArrayList<Movimento> mov = new ArrayList<Movimento>();\n\t\t\tfor(int i = 0;i<5;i++)\n\t\t\t{\n\t\t\t\tMovimento m = new Movimento();\n\t\t\t\tm.setIdCodDipZuc(d.getCodDipendenteUfficiale());\n\t\t\t\tm.setIdCodSocZuc(d.getCodAziendaUfficiale());\n\t\t\t\tVoce v = new Voce();\n\t\t\t\tv.setIdCodDipZuc(d.getCodDipendenteUfficiale());\n\t\t\t\tv.setIdCodSocZuc(d.getCodAziendaUfficiale());\n\t\t\t\ttry {\n\t\t\t\t\tm.setDatetime(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t\tv.setDatetimeFine(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t\tv.setDatetimeInit(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tm.setGiornoChiusuraStraordinari(\"N\");\n\t\t\t\tm.setNumMinuti(480);\n\t\t\t\tm.setPippo(4.56);\n\t\t\t\tm.setGiustificativo(\"Giustificativo\");\n\t\t\t\tv.setNumMinuti(60);\n\t\t\t\tv.setPippo(100.45);\n\t\t\t\tv.setTopolino(\"Topo Lino\");\n\t\t\t\tmov.add(m);\n\t\t\t\tvoc.add(v);\n\t\t\t}\n\t\t\td.setMovimenti(mov);\n\t\t\td.setVociRetributive(voc);\n\t\t\tdip.add(d);\n\t\t}\n\t\tforn.setDipendente(dip);\n\t\tJAXBContext jc;\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(Fornitura.class);\n\t\t\tMarshaller marshaller = jc.createMarshaller();\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tmarshaller.marshal(forn, System.out);\n\t\t} catch (JAXBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(FileOutputStream fileOut = new FileOutputStream(\"workbook.xlsx\");Workbook wb = new XSSFWorkbook())\n\t\t{\n\t\t XSSFSheet sheetA = (XSSFSheet)wb.createSheet(\"Movimenti\");\n//\t\t XSSFSheet sheetB = (XSSFSheet)wb.createSheet(\"VociRetributive\");\n\n\t\t \n\t\t /*Impostazioni per i movimenti*/\t\t \n\t\t /* Create an object of type XSSFTable */\n\t\t \n\t\t XSSFTable my_table = sheetA.createTable();\n\t\t \n\t\t /* get CTTable object*/\n\t\t CTTable cttable = my_table.getCTTable();\n\t\t \n\t\t /* Let us define the required Style for the table */ \n\t\t CTTableStyleInfo table_style = cttable.addNewTableStyleInfo();\n\t\t table_style.setName(\"TableStyleMedium9\"); \n\t\t \n\t\t /* Set Table Style Options */\n\t\t table_style.setShowColumnStripes(false); //showColumnStripes=0\n\t\t table_style.setShowRowStripes(true); //showRowStripes=1\n\t\t \n\t\t /* Define the data range including headers */\n\t\t AreaReference my_data_range = new AreaReference(new CellReference(0, 0), new CellReference(Fornitura.getNumeroDiMovimenti(forn), 6));\n\t\t \n\t\t /* Set Range to the Table */\n\t\t cttable.setRef(my_data_range.formatAsString());\n\t\t cttable.setDisplayName(\"Movimenti\"); /* this is the display name of the table */\n\t\t cttable.setName(\"Movimenti\"); /* This maps to \"displayName\" attribute in <table>, OOXML */ \n\t\t cttable.setId(1L); //id attribute against table as long value\n\t\t \n\t\t CTTableColumns columns = cttable.addNewTableColumns();\n\t\t CTAutoFilter autoFilter = cttable.addNewAutoFilter();\n\t\t \n\t\t columns.setCount(7L); //define number of columns\n\t\n\t\t /* Define Header Information for the Table */\n\t\t for (int i = 0; i < 7; i++)\n\t\t {\n\t\t CTTableColumn column = columns.addNewTableColumn(); \n\t \t switch(i)\n\t \t {\n\t \t \tcase 0:\n\t \t \t\tcolumn.setName(\"idCodDipZuc\");\n\t \t \t\tbreak;\n\t \t \tcase 1:\n\t \t \t\tcolumn.setName(\"idCodSocZuc\");\n\t \t \t\tbreak;\n\t \t \tcase 2:\n\t \t \t\tcolumn.setName(\"giustificativo\");\n\t \t \t\tbreak;\n\t \t \tcase 3:\n\t \t \t\tcolumn.setName(\"NumMinuti\");\n\t \t \t\tbreak;\n\t \t \tcase 4:\n\t \t \t\tcolumn.setName(\"GiornChiusS\");\n\t \t \t\tbreak;\n\t \t \tcase 5:\n\t \t \t\tcolumn.setName(\"Pippo\");\n\t \t \t\tbreak;\n\t \t \tcase 6:\n\t \t \t\tcolumn.setName(\"Data\");\n\t \t \t\tbreak;\n\t\n\t \t }\n\t \t \n\t \t \n\t \t column.setId(i+1);\n\t \t CTFilterColumn filter = autoFilter.addNewFilterColumn();\n\t \t filter.setColId(i+1);\n\t \t filter.setShowButton(true);\n\t \t sheetA.autoSizeColumn(i);\n\t \t sheetA.setColumnWidth(i, sheetA.getColumnWidth(i) + 1024);\n\t \t \n\t\t }\n\t\t \n\t\t List<Dipendente> ld = forn.getDipendente();\n\t\t int numRowMov = -1;\n\t\t /*Inizializzazione HEADER*/\n\t\t XSSFRow rowAA = sheetA.createRow(++numRowMov);\n\t\t for(int j=0;j<7;j++){\n \t\t\tXSSFCell localXSSFCellFD = rowAA.createCell(j);\n \t\t\tcreaHeader(j, localXSSFCellFD);\t\t\n\t\t }\n\t\t \n//\t\t int numRowVoc = 0;\n\t\t ;\n\t\t for(Dipendente d:ld)\n\t\t {\n\t\t \tList<Movimento> lm = d.getMovimenti();\n\t\t \t//List<Voce> lv = d.getVociRetributive();\n\t\t \tfor(Movimento m:lm)\n\t\t \t{\t \t\t\n\t\t \t\tXSSFRow rowA = sheetA.createRow(++numRowMov);\n\t\t \t\tfor(int j = 0; j < 7; j++)\n\t\t \t\t{\n\t\t \t\t\tXSSFCell localXSSFCell = rowA.createCell(j);\n\t\t\t\t\t\tcreaMovimento(wb, d, m, j, localXSSFCell);\n\t\t \t\t}\n\t\t \t}\n//\t\t \tfor(Voce v:lv)\n//\t\t \t{\n//\t\t \t\t\n//\t\t \t}\n\t\t \t\n\t\t }\n\t\t wb.write(fileOut);\n\t fileOut.flush();\n\t\t fileOut.close();\n\t wb.close();\n\t \n\t System.out.println(\"**** LEGGO IL FILE SCRITTO ****\");\n\t /*Aprire un altro file, leggerlo e generare l'xml*/\n\n FileInputStream excelFile = new FileInputStream(new File(\"workbook.xlsx\"));\n XSSFWorkbook workbook = new XSSFWorkbook(excelFile);\n XSSFSheet foglioMov = workbook.getSheet(\"Movimenti\");\n List<XSSFTable> ltab = foglioMov.getTables();\n HashMap<String,Dipendente> hmsd = new HashMap<String,Dipendente>();\n for(XSSFTable xsfftab:ltab)\n {\n \tif(\"Movimenti\".equals(xsfftab.getName()))\n \t{\n \t\tint iIni =xsfftab.getStartCellReference().getRow();\n \t\tint jIni =xsfftab.getStartCellReference().getCol();\n \t\tint iFin =xsfftab.getEndCellReference().getRow();\n \t\tint jFin =xsfftab.getEndCellReference().getCol();\n \t\tCTTableColumns cttc = xsfftab.getCTTable().getTableColumns();\n \t\tfor(int i = iIni+1;i<=iFin;i++)\n \t\t{\n \t\t\tString codDipZuc = null;\n \t\t\tString codSocZuc = null;\n \t\t\tString giustificativo = null;\n \t\t\tInteger numMin = null;\n \t\t\tString gioChiu = null;\n \t\t\tDouble pippo = null;\n \t\t\tjava.util.Date laData = null;\n \t\t\tfor(int j=jIni;j<=jFin;j++)\n \t\t\t{\n \t\t\t\tSystem.out.println(jFin);\n \t\t\t\tswitch(cttc.getTableColumnArray(j).getName())\n \t\t\t\t{\n \t\t\t\t\tcase \"idCodDipZuc\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tcodDipZuc = foglioMov.getRow(i).getCell(j).getStringCellValue(); \t\t\t\t\t\t\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"idCodSocZuc\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tcodSocZuc = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"giustificativo\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tgiustificativo = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"NumMinuti\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getNumericCellValue());\n \t\t\t\t\t\tnumMin = (int)foglioMov.getRow(i).getCell(j).getNumericCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"GiornChiusS\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tgioChiu = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"Pippo\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getNumericCellValue());\n \t\t\t\t\t\tpippo = foglioMov.getRow(i).getCell(j).getNumericCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"Data\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getDateCellValue());\n \t\t\t\t\t\tlaData = foglioMov.getRow(i).getCell(j).getDateCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t}\n\n \t\t\t}\n \t \tif(!hmsd.containsKey(codSocZuc+\";\"+codDipZuc))\n \t \t{\n \t \t\tDipendente dip0 = new Dipendente();\n \t \t\tdip0.setCodAziendaUfficiale(codSocZuc);\n \t \t\tdip0.setCodDipendenteUfficiale(codDipZuc);\n \t \t\tdip0.setMovimenti(new ArrayList<Movimento>());\n \t \t\thmsd.put(codSocZuc+\";\"+codDipZuc,dip0);\n \t \t}\t \t\n \t \tMovimento e = new Movimento();\n \t \tGregorianCalendar gc = GregorianCalendar.from(ZonedDateTime.now());\n \t \te.setIdCodDipZuc(codDipZuc);\n \t \te.setIdCodSocZuc(codSocZuc);\n \t \te.setGiornoChiusuraStraordinari(gioChiu);\n \t \te.setGiustificativo(giustificativo);\n \t \te.setNumMinuti(numMin);\n \t \te.setPippo(pippo);\n \t \tgc.setTime(laData);\n \t \ttry {\n\t\t\t\t\t\t\te.setDatetime(DatatypeFactory.newInstance().newXMLGregorianCalendar(gc));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (DatatypeConfigurationException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n \t \thmsd.get(codSocZuc+\";\"+codDipZuc).getMovimenti().add(e);\t \t\t\t\n \t\t}\n \t\t\t\n \t}\n }\n System.out.println(\"**** SCRIVO IL NUOVO XML ****\");\n Fornitura forni = new Fornitura();\n forni.setDipendente(new ArrayList<Dipendente>(hmsd.values()));\n \t\tJAXBContext jc12;\n \t\ttry {\n \t\t\tjc12 = JAXBContext.newInstance(Fornitura.class);\n \t\t\tMarshaller marshaller = jc12.createMarshaller();\n \t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n \t\t\tmarshaller.marshal(forni, System.out);\n \t\t} catch (JAXBException e) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n \n//\t for(/*TUTTE LE RIGHE DI VOCI RETRIBUTIVA*/)\n//\t {\n//\t \tif(!hmIDDip.containsKey(\"idSoc;idDip\"))\n//\t \t{\n//\t \t\tDipendente dip = new Dipendente();\n//\t \t\tdip.setCodAziendaUfficiale(\"idSoc\");\n//\t \t\tdip.setCodDipendenteUfficiale(\"idDip\");\n//\t \t\tdip.setVociRetributive(new ArrayList<Voce>());\n//\t \t\t\n//\t \t}else if(hmIDDip.get(\"idSoc;idDip\").getVociRetributive()==null)\n//\t \t\thmIDDip.get(\"idSoc;idDip\").setVociRetributive(new ArrayList<Voce>());\n//\t \thmIDDip.get(\"idSoc;idDip\").getVociRetributive().add(e);\n//\t }\n\t \n\t\t} catch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t \n \n\t\t\n\t}", "public void prepareObjetivos(){\n\t\tfor( int x= 0 ; x < game.getAmountObjetivos();x++){\n\t\t\tObjetivo o = game.getObjetivo(x);\n\t\t\timage = o.getImage();\n\t\t\ttemporal = image.getImage().getScaledInstance(o.getAncho(), o.getAlto(), Image.SCALE_SMOOTH);\n\t\t\to.setImage(new ImageIcon(temporal));\n\t\t}\n\t\t\n\t}", "private void avaliaTagObrigatoria() throws SQLException {\r\n\t\t/*\r\n\t\t * busca as tags obrigatorias do documento.\r\n\t\t */\r\n\t\t// TODO ESTE SELECT SOH TRAZ A TAG !DOCTYPE, OU SEJA, SE ELE TRAZ AS\r\n\t\t// TAGS OBRIGATORIAS,\r\n\t\t// ENTAO ELE SOH TAH CONSIDERANDO O !DOCTYPE COMO OBRIGATORIO. OU ENTAO\r\n\t\t// TEM ALGUMA\r\n\t\t// COISA ERRADA NO BANCO DE DADOS. OBS: NA BASE DE DADOS SOH TEM\r\n\t\t// CADASTRADA UMA LINHA\r\n\t\t// COM ID_ATITUDE = 4 (TABELA ESPERADO) : (9,4,9,0,0,'','',0)\r\n\t\t// TRECHO COMENTADO E HARDCODED PARA DIMINUIR AS CONSULTAS A BANCO DE\r\n\t\t// DADOS\r\n\t\t// final String sql = \"SELECT ta.nome_tag, v.pv3 \"\r\n\t\t// + \" FROM esperado e, validante v, tipoavaliacaoerro t, tag ta \"\r\n\t\t// + \" WHERE e.idesperado=v.idesperado \"\r\n\t\t// + \" AND v.pv3=t.pv3 AND idatitude = 4 \"\r\n\t\t// + \" AND v.idtag=ta.idtag AND t.idorgao = \" + orgao;\r\n\t\t//\r\n\t\t// ResultSet rs = con.getCon().createStatement().executeQuery(sql);\r\n\t\t//\r\n\t\t// String nome = null;\r\n\t\t// ArrayList<Validado> validados = null;\r\n\t\t//\r\n\t\t// /*\r\n\t\t// * Monta as tags especificas.\r\n\t\t// */\r\n\t\t// while (rs.next()) {\r\n\t\t// nome = rs.getString(1);\r\n\t\t// validados = new ArrayList<Validado>();\r\n\t\t// validados.add(new Validado(nome, rs.getInt(2)));\r\n\t\t// this.erradosMap.put(nome, validados);\r\n\t\t// }\r\n\t\t// gambiarra?????\r\n\t\t// TRECHO HARDCODED QUE SUBSTITUI A CONSULTA AO BD ACIMA\r\n\r\n\t\tArrayList<ArmazenaErroOuAvisoAntigo> validados = new ArrayList<ArmazenaErroOuAvisoAntigo>();\r\n\r\n\t\tvalidados.add(new ArmazenaErroOuAvisoAntigo(\"!DOCTYPE\", 33));\r\n\r\n\t\tthis.erradosMap.put(\"!DOCTYPE\", validados);\r\n\r\n\t\t// FIM DO TRECHO\r\n\t\tfor (String element : this.erradosMap.keySet()) {\r\n\r\n\t\t\t/*\r\n\t\t\t * Verifica se a existencia da tag dentro do documento. N�o\r\n\t\t\t * existindo a tag, adiciona a mesma a lista de erros.\r\n\t\t\t */\r\n\t\t\tif (!tag.contains(element)) {\r\n\r\n\t\t\t\tthis.errados.addAll(this.erradosMap.get(element));\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }", "private static List<Billetes> generarBilletes(String fecha, Pasajero p){\n\t\tList<Billetes> billetes = new ArrayList<>();\n\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tBilletes billete = new Billetes();\n\t\t\tbillete.setId(i);\n\t\t\tbillete.setFecha(fecha);\n\t\t\t\n\t\t\tchar c1 = (char)new Random().nextInt(50);\n\t\t\tchar c2 = (char)new Random().nextInt(50);\n\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t */\n\t\t\tbillete.setAsiento(\"\" + c1 + c2 + new Random().nextInt(100) + new Random().nextInt(50));\n\t\t\tbillete.setPasajero(p); \n\t\t\tbillete.setVuelo(p.getVuelos().get(new Random().nextInt(p.getVuelos().size())));\n\t\t\t\n\t\t\tbilletes.add(billete);\n\t\t}\n\t\t\n\t\treturn billetes;\n\t}", "public List<Mobibus> darMobibus();", "public ArrayList<Elemento> getElementos(int id){\n ArrayList<Elemento> items = new ArrayList<>();\r\n\r\n SQLiteDatabase db = helper.getReadableDatabase();\r\n // Especificamos las columnas a usar\r\n String[] columnas = {\r\n ElementosContract.Entrada.COLUMNA_CARRITO_ID,\r\n ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO,\r\n ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO,\r\n ElementosContract.Entrada.COLUMNA_CANTIDAD,\r\n };\r\n\r\n // TODO: 15.- Se crea un cursor para hacer recorrido de resultados y se crea una estructura de query\r\n Cursor c = db.query(\r\n ElementosContract.Entrada.NOMBRE_TABLA, // nombre tabla\r\n columnas, // columnas\r\n \" carrito_id = ?\", //texto para filtrar\r\n new String[]{String.valueOf(id)}, // arreglo de parametros a filtrar\r\n null, // agrupar\r\n null, // contiene\r\n null); //limite\r\n\r\n // TODO: 16.- Se recorren los resultados y se añaden a la lista\r\n while (c.moveToNext()){\r\n items.add(new Elemento(\r\n c.getInt(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_CARRITO_ID)),\r\n c.getString(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO)),\r\n c.getFloat(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO)),\r\n c.getInt(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_CANTIDAD))\r\n ));\r\n }\r\n // TODO: 17.- Cerramos conexión y regresamos elementos\r\n c.close();\r\n return items;\r\n }", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "private static void mostrarLibros() {\n\n\t\tlibros\n\t\t.stream()\n\t\t.forEach(System.out::println);\n//\t\t\n//\t\tfor (Libro l :libros) {\n//\t\t\tSystem.out.println(l);\n//\t\t}\n\t}", "public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }", "private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }", "private void inicializarcomponentes() {\n Comunes.cargarJList(jListBecas, becasFacade.getTodasBecasVigentes());\n \n }", "public void cargarProductosComprados() {\n try {\n //Lectura de los objetos de tipo productoComprado\n FileInputStream archivo= new FileInputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosComprados = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "public void elementosMapa() {\n\t\t\n\t\tHeroes heroe = (Heroes) ven.getHeroe();\n\t\t\n\t\tif(heroe.getPosX() >= 250 && heroe.getPosX() <= 302 && heroe.getPosY() >= 208 && heroe.getPosY() <= 255 && pregunta1 == false) {\n\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Cuántas transformaciones sufre Freezer?\" + \"\\n\" + \"a) 4\" + \"\\n\" + \"b) 5\" + \"\\n\" + \"c) 2\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"a\")) {\n\t\t\t\t\n\t\t\t\tpregunta1 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, acabas de ganar una nueva esfera :D\");\n\t\t\t\tven.modificarEsfera(2);\n\t\t\t\tven.actualizarInfo();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"a\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(281); \n\t\t\t\theroe.setPosY(311);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 1148 && heroe.getPosX() <= 1202 && heroe.getPosY() >= 33 && heroe.getPosY() <= 84 && pregunta2 == false) {\n\t\t\t\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién logró liberar la espada Z?\" + \"\\n\" + \"a) Goten\" + \"\\n\" + \"b) Goku\" + \"\\n\" + \"c) Gohan\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"c\")) {\n\t\t\t\t\n\t\t\t\tpregunta2 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, acabas de ganar una nueva esfera\");\n\t\t\t\tven.modificarEsfera(4);\n\t\t\t\tven.actualizarInfo();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"a\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(1280);\n\t\t\t\theroe.setPosY(119);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 50 && heroe.getPosX() <= 103 && heroe.getPosY() >= 558 && heroe.getPosY() <= 607 && pregunta3 == false) {\n\t\t\t\n\t\t\t\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién es hijo de Paragus?\" + \"\\n\" + \"a) Bardock\" + \"\\n\" + \"b) Broly\" + \"\\n\" + \"c) Freezer\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tpregunta3 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, acabas de ganar una nueva esfera :D\");\n\t\t\t\tven.modificarEsfera(6);\n\t\t\t\tven.actualizarInfo();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"b\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(135);\n\t\t\t\theroe.setPosY(593);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\telse if(heroe.getPosX() >= 70 && heroe.getPosX() <= 130 && heroe.getPosY() >= 1 && heroe.getPosY() <= 55 && pregunta4 == false) {\n\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién se convirtío primero en SSJ2?\" + \"\\n\" + \"a) Goku\" + \"\\n\" + \"b) Trunks\" + \"\\n\" + \"c) Gohan\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"c\")) {\n\t\t\t\t\n\t\t\t\tpregunta4 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, has aumentado el poder de tus ataques :D\");\n\t\t\t\theroe.setAtaque1(20);\n\t\t\t\theroe.setAtaque2(20);\n\t\t\t\theroe.setAtaque3(20);\n\t\t\t\theroe.setAtaqueEspecial(20);\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"c\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(208); \n\t\t\t\theroe.setPosY(47);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\n\t\telse if(heroe.getPosX() >= 585 && heroe.getPosX() <= 640 && heroe.getPosY() >= 258 && heroe.getPosY() <= 310 && pregunta5 == false) {\n\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién mantuvo su cola hasta la muerte?\" + \"\\n\" + \"a) Vegeta\" + \"\\n\" + \"b) Bardock\" + \"\\n\" + \"c) Gohan\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\n\t\t\t\tpregunta5 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, has aumentado el poder de tus ataques :D\");\n\t\t\t\theroe.setAtaque1(20);\n\t\t\t\theroe.setAtaque2(20);\n\t\t\t\theroe.setAtaque3(20);\n\t\t\t\theroe.setAtaqueEspecial(20);\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"b\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(577); \n\t\t\t\theroe.setPosY(356);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 396 && heroe.getPosX() <= 444 && heroe.getPosY() >= 230 && heroe.getPosY()<= 300 && Broly == false) {\n\t\t\t\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Broly\");\n\t\t\tvillanoActual = \"Broly\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Broly: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla3.jpg\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(414);\n\t\t\t\theroe.setPosY(352);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(414);\n\t\t\t\theroe.setPosY(352);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 1235 && heroe.getPosX() <= 1295 && heroe.getPosY() >= 290 && heroe.getPosY() <= 360 && Freezer == false) {\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Freezer\");\n\t\t\tvillanoActual = \"Freezer\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Freezer: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla2.png\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(1279);\n\t\t\t\theroe.setPosY(229);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(1279);\n\t\t\t\theroe.setPosY(229);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 1015 && heroe.getPosX() <= 1067 && heroe.getPosY() >= 7 && heroe.getPosY() <= 57 && MajinB == false) {\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Majin boo\");\n\t\t\tvillanoActual = \"Majin boo\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Majin boo: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla4.jpg\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(1020);\n\t\t\t\theroe.setPosY(106);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(1020);\n\t\t\t\theroe.setPosY(106);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}else if(heroe.getPosX() >= 222 && heroe.getPosX() <= 294 && heroe.getPosY() >= 480 && heroe.getPosY() <= 560 && Cell == false) {\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Cell\");\n\t\t\tvillanoActual = \"Cell\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Cell: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla.jpg\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(364);\n\t\t\t\theroe.setPosY(583);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(364);\n\t\t\t\theroe.setPosY(583);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}else if(heroe.getPosX() >= 900 && heroe.getPosX() <= 988 && heroe.getPosY() >= 314 && heroe.getPosY() <= 421) {\n\t\t\t\n\t\t\theroe.setPosX(956);\n\t\t\theroe.setPosY(484);\n\t\t\t\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Qué deseas hacer \" + ven.getNombreUsuario() + \"?\" + \"\\n\" + \"a) Guardar puntaje\" + \"\\n\" + \"b) Ver información de los personajes\" + \"\\n\" + \"c) Ver puntajes\");\n\t\t\tif(respuesta.equalsIgnoreCase(\"a\")) {\n\t\t\t\t\n\t\t\t\tven.guardarPuntaje();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else if(respuesta.equalsIgnoreCase(\"c\")){\n\t\t\t\tven.cargarPuntajes();\n\t\t\t\tven.visualizarPuntajes();\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\n\t\t\t\tString per = JOptionPane.showInputDialog(this, \"¿De qué personaje deseas ver la información \" + ven.getNombreUsuario() + \"\\n\" + \"a) Goku\" + \"\\n\" + \"b) Roshi\" + \"\\n\" + \"c) Vegeta\" + \"\\n\" + \"d) Freezer\" + \"\\n\" + \"e) Cell\" + \"\\n\" + \"f) Majin boo\" + \"\\n\" + \"g) Broly\");\n\t\t\t\t\n\t\t\t\tif(per.equalsIgnoreCase(\"a\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Goku\");\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Roshi\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"c\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Vegeta\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"d\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Freezer\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"e\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Cell\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"f\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Majin boo\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"g\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Broly\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\ttry {\n\t\t\t\t\tthrow new CaracterEquivocadoException();\n\t\t\t\t} catch (CaracterEquivocadoException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void arbolize() {\n //generando arbol desde nodos\n while (this.size > 1) {\n NodoCaracter smallest, smaller, ncAux;\n int aux;\n smallest = new NodoCaracter(inicio);\n smaller = new NodoCaracter(inicio.siguiente);\n aux = smallest.getFreq() + smaller.getFreq();\n this.eliminaInicio();\n this.eliminaInicio();\n ncAux = new NodoCaracter(aux, smallest, smaller);\n insertaOrdenado(ncAux);\n }\n \n //transferencia de nodo(s) a arbol\n System.out.println(\"Arbol generado\");\n System.out.println(inicio.getFreq() + \" es la frecuencia total sumada\");\n }", "public static void main(String args[]){\n int x = 10;\r\n List<Perro> perros = new ArrayList();\r\n \r\n Perro perro=new Perro();\r\n \r\n Persona persona = new Persona();\r\n persona.setAltura(5.5);\r\n persona.setColorPiel(\"Blanca\");\r\n persona.setEdad(16);\r\n persona.setGenero('f');\r\n persona.setNacionalidad(\"Japonesa\");\r\n persona.setPeso(130);\r\n persona.setTipoDePelo(\"Lacio\"); \r\n persona.setOcupacion(\"Dinero\");\r\n \r\n //Se dan todas las características\r\n perro.setNombre(\"Manuel\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);//Se añade a la instancia\r\n \r\n perro = new Perro();//Se limpia y se vuelve a llamar la instancia\r\n perro.setNombre(\"Igor\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Lacio\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n \r\n perro = new Perro();\r\n perro.setNombre(\"Luli\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Siberiano\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n //****************CUANDO EJECUTES ESTO VE COMENTADO LOS BLOQUES QUE NO QUIERES QUE SE USEN*************\r\n //foreach y for hace la misma funcion\r\n //Uso de for\r\n for (Perro perro1:perros){\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo());\r\n }\r\n \r\n //Formas de uso del for each\r\n perros.forEach(perro1->\r\n System.out.println(perro1.getNombre()));\r\n \r\n perros.forEach(perro1 ->{//Se define una variable que es perro1 y esta recorrera toda la lista\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo()); \r\n System.out.println();\r\n \r\n });\r\n \r\n \r\n System.out.println(\"Blanco\".equals(perro.color)? \"Si es blanco\":\"No es blanco\");\r\n \r\n //Uso del if\r\n if (((4/2==0)&&(10/5 !=0))||(100/20==0)){\r\n System.out.println(\"Es bisiesto\");\r\n }else{\r\n System.out.println(\"No es bisiesto\");\r\n }\r\n \r\n //Uso del switcH\r\n switch(x){\r\n case 6:\r\n System.out.println(\"Es verdadero\");\r\n break;\r\n case 2:\r\n System.out.println(\"Es falso\");\r\n break;\r\n default:\r\n System.out.println(\"No es ninguna\");\r\n \r\n //Uso de la lista de un item en especifico \r\n System.out.println(\"Nombre: \" + perros.get(2).getNombre());//El número del get\r\n System.out.println(\"Color: \"+perros.get(2).getColor());//define que item es que tomará\r\n System.out.println(\"Raza: \"+perros.get(2).getRaza());\r\n \r\n \r\n //Demostración del uso de getters\r\n System.out.println(\"Nombre: \");\r\n System.out.println(\"Altura: \" + persona.getAltura());\r\n System.out.println(\"Color: \" + persona.getColorPiel());\r\n System.out.println(\"Edad: \"+persona.getEdad());\r\n System.out.println(\"Genero: \"+persona.getGenero());\r\n System.out.println(\"Nacionalidad: \"+persona.getNacionalidad());\r\n System.out.println(\"Peso: \"+persona.getPeso());\r\n System.out.println(\"Tipo de Pelo: \"+persona.getTipoDePelo());\r\n \r\n }\r\n \r\n}", "Soldat[][] getUnites();", "public void ingresaVehiculo (){\r\n \r\n Vehicle skate = new Skateboard(\"vanz\", \"2009\", \"1 metro\");\r\n Vehicle carro = new Car(\"renault\", \"2009\", \"disel\",\"corriente\" );\r\n Vehicle jet = new Jet(\"jet\", \"2019\", \"premiun\", \"ocho motores\");\r\n Vehicle cicla = new Bicycle(\"shimano\", \"2010\",\"4 tiempos\" ) ; \r\n Vehuculo.add(skate);\r\n Vehuculo.add(carro);\r\n Vehuculo.add(jet);\r\n Vehuculo.add(cicla); \r\n \r\n /*\r\n for en el cual se hace el parceo y se instancia la clase Skateboard\r\n \r\n */\r\n for (Vehicle Vehuculo1 : Vehuculo) {\r\n if(Vehuculo1 instanceof Skateboard){\r\n Skateboard skatevehiculo = (Skateboard)Vehuculo1;\r\n skatevehiculo.imprimirPadre();\r\n skatevehiculo.imprimirSkate();\r\n skatevehiculo.imprimirInterfaz();\r\n }\r\n /*\r\n se intancia y se hace el parceo de la clase car\r\n \r\n */\r\n else if(Vehuculo1 instanceof Car){\r\n \r\n Car carvhiculo = (Car)Vehuculo1;\r\n carvhiculo.imprimirPadre();\r\n carvhiculo.imprimirCarro();\r\n carvhiculo.imprimirVehiculopotenciado();\r\n \r\n \r\n \r\n }\r\n /*se intancia y se hace el parceo de la clase\r\n \r\n */\r\n else if(Vehuculo1 instanceof Jet){\r\n \r\n Jet jethiculo = (Jet)Vehuculo1;\r\n jethiculo.imprimirPadre();\r\n jethiculo.imprimirJet();\r\n jethiculo.imprimirVehiculopotenciado();\r\n jethiculo.imprimirInterfaz();\r\n }\r\n else if(Vehuculo1 instanceof Bicycle){\r\n \r\n Bicycle ciclavehiculo = (Bicycle)Vehuculo1;\r\n ciclavehiculo.imprimirPadre();\r\n ciclavehiculo.imprimirBici();\r\n }\r\n }\r\n \r\n \r\n }", "public static void main(String[] args) {\n\t\tElementoRadiactivo e1 = new ElementoRadiactivo(\"Uranio 235\", 3.1229827968e-17);\n\t\tSystem.out.println(e1 + \" \" + e1.getVidaMedia());\n\t\te1 = new ElementoRadiactivo(\"Uranio 238\", 4.919326974e-18);\n\t\tSystem.out.println(e1 + \" Vida media=\" + e1.getVidaMedia());\n\t\tSystem.out.println(e1 + \" Desintegrados en t= 10000 =\" + e1.getProporcionDesintegrados(10000));\n\t\t\n\t\te1 = new ElementoRadiactivo(\"Rubidio 87\", 4.5040067466e-19);\n\t\tSystem.out.println(e1 + \" Vida media=\" + e1.getVidaMedia());\n\t\tSystem.out.println(e1 + \" Desintegrados en t= 10000 =\" + e1.getProporcionDesintegrados(10000));\n\t\t\n\t\te1 = new ElementoRadiactivo(\"Calcio 41\", 2.133937177e-13);\n\t\tSystem.out.println(e1 + \" Vida media=\" + e1.getVidaMedia());\n\t\tSystem.out.println(e1 + \" Desintegrados en t= 10000 =\" + e1.getProporcionDesintegrados(10000));\n\t\t\n\t\te1 = new ElementoRadiactivo(\"Radio 226\", 1.3720070489e-11);\n\t\tSystem.out.println(e1 + \" Vida media=\" + e1.getVidaMedia());\n\t\tSystem.out.println(e1 + \" Desintegrados en t= 10000 =\" + e1.getProporcionDesintegrados(10000));\n\t\t\n\t\te1 = new ElementoRadiactivo(\"Cesio 137\", 7.309462229e-10);\n\t\tSystem.out.println(e1 + \" Vida media=\" + e1.getVidaMedia());\n\t\tSystem.out.println(e1 + \" Desintegrados en t= 10000 =\" + e1.getProporcionDesintegrados(10000));\n\t\t\n\t\t\n\t}", "private void populateFields() {\n pedidos = pdao.listaTodos();\n cCliente = new HashSet();\n cEstado = new HashSet();\n cCidade = new HashSet();\n cFornecedor = new HashSet();\n\n for (int i = 0; i < pedidos.size(); i++) {\n cCliente.add(pedidos.get(i).getCliente().getNome());\n cEstado.add(pedidos.get(i).getCliente().getEstado());\n cCidade.add(pedidos.get(i).getCliente().getCidade());\n for (int j = 0; j < pedidos.get(i).getItens().size(); j++) {\n cFornecedor.add(pedidos.get(i).getItens().get(j).getProduto().getFornecedor().getNome());\n }\n }\n\n clientes = new ArrayList<>(cCliente);\n fornecedores = new ArrayList<>(cFornecedor);\n\n Iterator i = cCliente.iterator();\n while (i.hasNext()) {\n jCBCliente.addItem(i.next());\n }\n\n i = null;\n i = cEstado.iterator();\n while (i.hasNext()) {\n jCBEstado.addItem(i.next());\n }\n\n i = null;\n i = cCidade.iterator();\n while (i.hasNext()) {\n jCBCidade.addItem(i.next());\n }\n i = null;\n i = cFornecedor.iterator();\n while (i.hasNext()) {\n jCBFornecedor.addItem(i.next());\n }\n\n }", "private static void grabarYllerPaciente() {\r\n\t\tPaciente paciente = new Paciente(\"Juan\", \"Garcia\", \"65\", \"casa\", \"2\", \"1998\");\r\n\t\tPaciente pacienteDos = new Paciente(\"MArta\", \"Garcia\", \"65\", \"casa\", \"3\", \"1998\");\r\n\t\tPaciente pacienteTres = new Paciente(\"MAria\", \"Garcia\", \"65\", \"casa\", \"4\", \"1998\");\r\n\t\tString ruta = paciente.getIdUnico();\r\n\t\tString rutaDos = pacienteDos.getIdUnico();\r\n\t\tString rutaTres = pacienteTres.getIdUnico();\r\n\t\tDTO<Paciente> dtoPacienteDos = new DTO<>(\"src/Almacen/\" + rutaDos + \".dat\");\r\n\t\tDTO<Paciente> dtoPaciente = new DTO<>(\"src/Almacen/\" + ruta + \".dat\");\r\n\t\tDTO<Paciente> dtoPacienteTres = new DTO<>(\"src/Almacen/\" + rutaTres + \".dat\");\r\n\t\tif (dtoPaciente.grabar(paciente) == true) {\r\n\r\n\t\t\tSystem.out.println(paciente.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tif (dtoPacienteDos.grabar(pacienteDos) == true) {\r\n\r\n\t\t\tSystem.out.println(pacienteDos.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tif (dtoPacienteTres.grabar(pacienteTres) == true) {\r\n\t\t\tSystem.out.println(pacienteTres.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tPaciente pacienteLeer = dtoPaciente.leer();\r\n\t\tSystem.out.println(pacienteLeer);\r\n\t\tSystem.out.println(pacienteLeer.getNombre());\r\n\t}", "public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public GenerarInformePlanificacion(Curso[] cursos, Apoderado[] apoderados) {\n this.apoderados = new PlanificacionApoderado[apoderados.length];\n for (int i = 0; i < apoderados.length; i++) {\n this.apoderados[i] = new PlanificacionApoderado();\n }\n\n int cantidadCurso = 0;\n\n for (int apTotal = 0; apTotal < this.apoderados.length; apTotal++) {\n this.apoderados[apTotal].nombre = apoderados[apTotal].getNombre();\n this.apoderados[apTotal].apellido = apoderados[apTotal].getApellido();\n this.apoderados[apTotal].run = apoderados[apTotal].getRun();\n for (int cantPupilos = 0; cantPupilos < apoderados[apTotal].getPupilos().size(); cantPupilos++) {\n\n PlanificacionAlumno alumnoAgregar = new PlanificacionAlumno();\n alumnoAgregar.nombre = apoderados[apTotal].getPupilos().get(cantPupilos).getNombre();\n alumnoAgregar.apellido = apoderados[apTotal].getPupilos().get(cantPupilos).getApellido();\n alumnoAgregar.run = apoderados[apTotal].getPupilos().get(cantPupilos).getRun();\n for (int j = 0; j < 16; j++) {\n for (int alum = 0; alum < 30; alum++) {\n if (cursos[j].getAlumnos()[alum].getRun().equals(apoderados[apTotal].getPupilos().get(cantPupilos).getRun())) {\n cantidadCurso = j;\n break;\n }\n }\n }\n for (int i = 0; i < 50; i++) {\n alumnoAgregar.plan[i] = cursos[cantidadCurso].getAsignaturas()[(int) i / 10].getPlan()[i % 10];\n }\n this.apoderados[apTotal].pupilos.add(alumnoAgregar);\n\n }\n }\n\n }", "public synchronized Collection getElementos() {\n return elemento.values();\n }", "public static void main (String [] args){\r\n Jefatura jefe_RR=new Jefatura(\"Jeanpool\",55000,2006,9,25);\r\n jefe_RR.estableceIncentivo(2570);\r\n Empleado [] misEmpleados=new Empleado[6];\r\n misEmpleados[0]=new Empleado(\"Paco Gomez\",85000,1990,12,17);\r\n misEmpleados[1]=new Empleado(\"Ana Lopez\",95000,1995,06,02);\r\n misEmpleados[2]=new Empleado(\"Maria Martin\",105000,2002,03,15);\r\n misEmpleados[3]=new Empleado(\"Jeanpool Guerrero\");\r\n misEmpleados[4]=jefe_RR;/**--Polimorfismo: Prinicipio de sustitucion*/\r\n misEmpleados[5]=new Jefatura(\"Maria\",95000,1999,5,26);\r\n Jefatura jefa_Finanzas=(Jefatura)misEmpleados[5];/** CASTING CONVERTIR UN OBJETO A otro */\r\n jefa_Finanzas.estableceIncentivo(55000);\r\n \r\n \r\n \r\n /** for(int i=0;i<3; i++){\r\n misEmpleados[i].subeSueldo(5);\r\n \r\n }\r\n \r\n for(int i=0;i<3;i++){\r\n System.out.println(\"Nombre \"+misEmpleados[i].dimeNombre() + \"Sueldo: \"+misEmpleados[i].dimeSueldo()+ \"Fecha Alta: \"+misEmpleados[i].dameFechaContrato());\r\n }\r\n */\r\n\r\n for(Empleado elementos:misEmpleados){\r\n \r\n elementos.subeSueldo(5);\r\n \r\n }\r\n \r\n for(Empleado elementos:misEmpleados){\r\n System.out.println(\"Nombre: \"+elementos.dimeNombre()+ \" Sueldo: \"+elementos.dimeSueldo()+ \" Alta Contrato: \"+elementos.dameFechaContrato());\r\n }\r\n \r\n }", "public void geneticoPSO(){ \n //leer archivos de texto\n nombreArchivos.stream().map((nombreArchivo) -> lam.leerArchivo(nombreArchivo)).forEach((Mochila moc) -> {\n mochilas.add(moc);\n }); \n \n int o = 0;\n for (Mochila mochila : mochilas) { \n \n Algorithm_PSO alg_pso = new Algorithm_PSO(0.1, 0.8, 0.7, 0.6, 1, tamanioPob, EFOs, mochila.getSolucion().length, mochila); \n Individuo_mochilaPSO res = (Individuo_mochilaPSO)alg_pso.correr();\n System.out.println(\"fitnes: \" + res.getFitness() + \". Solucion\" + Arrays.toString(res.getCromosoma()));\n if (o == 9){\n System.out.println(\"\");\n }\n o++;\n }\n \n }", "public ArrayList<Elemento> getPosicionesAdyacentes(){\n ArrayList <Elemento> result = new ArrayList<>();\n int[] coordenada_i = {0,1,1,1,0,-1,-1,-1};\n int[] coordenada_j = {1,1,0,-1,-1,-1,0,1};\n int nueva_posicion_fila = 0;\n int nueva_posicion_columna = 0;\n for(int k=0; k<8; k++){\n nueva_posicion_fila = fila + coordenada_i[k];\n nueva_posicion_columna = columna + coordenada_j[k];\n \n if((0 <= nueva_posicion_fila) && (nueva_posicion_fila < automata.getAutomata().length) && \n (0<= nueva_posicion_columna) && (nueva_posicion_columna < automata.getAutomata()[0].length)){\n result.add(automata.getElemento(nueva_posicion_fila,nueva_posicion_columna));\n \n }\n \n }\n return result;\n }", "List<Oficios> buscarActivas();", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "private void showBars() {\n graph.removeAllSeries();\n Log.d(\"ShowGraph \", \"started\");\n Log.d(\"Tuples length \", tuples.size() + \"\");\n ArrayList<Double> vkupno = new ArrayList<Double>();\n //vo vkupno, sekoj element, e vkupnata vrednost za nutrientot pod toj broj\n int brNutrienti = values.size();\n Log.d(\"Values length\", brNutrienti + \"\");\n for (int i = 0; i < brNutrienti; i++) {\n vkupno.add(i, 0.0);\n }\n Iterator<String> it = values.iterator();\n String currentNutrient = null;\n double dodadi = 0;\n for (int j = 0; j < brNutrienti; j++) {\n currentNutrient = it.next();\n for (int i = 0; i < tuples.size(); i++) {\n Tuple currentTuple = tuples.get(i);\n if (currentNutrient.equals(\"Protein\")) {\n dodadi = (currentTuple.getProtein()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Total lipid (fat)\")) {\n dodadi = (currentTuple.getLipid()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Carbohydrate\")) {\n dodadi = (currentTuple.getCarbohydrate()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Glucose\")) {\n dodadi = (currentTuple.getGlucose()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Calcium\")) {\n dodadi = (currentTuple.getCalcium()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Iron\")) {\n dodadi = (currentTuple.getIron()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Magnesium\")) {\n dodadi = (currentTuple.getMagnesium()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Zinc\")) {\n dodadi = (currentTuple.getZinc()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Vitamin C\")) {\n dodadi = (currentTuple.getVitaminC()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Thiamin\")) {\n dodadi = (currentTuple.getThiamin()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Riboflavin\")) {\n dodadi = (currentTuple.getRibofavin()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Niacin\")) {\n dodadi = (currentTuple.getNiacin()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Vitamin B6\")) {\n dodadi = (currentTuple.getVitaminB6()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Vitamin B12\")) {\n dodadi = (currentTuple.getVitaminB12()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"VitaminA\")) {\n dodadi = (currentTuple.getVitaminA()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Vitamin D\")) {\n dodadi = (currentTuple.getVitaminD()) * currentTuple.getQuantity() / 100;\n } else if (currentNutrient.equals(\"Vitamin E\")) {\n dodadi = (currentTuple.getVitaminE()) * currentTuple.getQuantity() / 100;\n }\n dodadi = dodadi + vkupno.get(j);\n vkupno.set(j, dodadi);\n dodadi = 0;\n }\n }\n Log.d(\"Posle polenje na vkupno\", \"sfsfsdf\");\n //posle ova vo vkupno se sodrzhat y vrednostite za grafikot\n DataPoint[] dpArray = new DataPoint[vkupno.size()];\n for (int i = 0; i < vkupno.size(); i++) {\n dpArray[i] = new DataPoint(i + 1, vkupno.get(i));\n intake.add(vkupno.get(i));\n Log.d(\"y(\" + i + \")=\", vkupno.get(i) + \"\");\n }\n BarGraphSeries<DataPoint> series = new BarGraphSeries<DataPoint>(dpArray);\n graph.addSeries(series);\n // styling\n series.setValueDependentColor(new ValueDependentColor<DataPoint>() {\n @Override\n public int get(DataPoint data) {\n return Color.rgb((int) data.getX() * 255 / 4, (int) Math.abs(data.getY() * 255 / 6), 100);\n }\n });\n series.setSpacing(1);\n series.setDataWidth(0.2);\n // draw values on top\n series.setDrawValuesOnTop(true);\n series.setValuesOnTopColor(Color.BLACK);\n /* StaticLabelsFormatter staticLabelsFormatter = new StaticLabelsFormatter(graph);\n staticLabelsFormatter.setHorizontalLabels(new String[] {\"CH\", \"F\", \"Pr\",\"Mi\"});\n graph.getGridLabelRenderer().setLabelFormatter(staticLabelsFormatter);\n */\n //graph.getLegendRenderer().setVisible(true);\n graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.TOP);\n }", "public static void llenarAlsuper(){\r\n Producto huevos = new Producto(\"huevos\", \"bachoco\", 56.90, 1);\r\n Nodo<Producto> ATemp = new Nodo(huevos);\r\n listaAlsuper.agregarNodo(ATemp);\r\n \r\n Producto chuletas = new Producto(\"chuletas\", \"Del Cero\", 84.90, 1);\r\n Nodo<Producto> ATemp2 = new Nodo(chuletas);\r\n listaAlsuper.agregarNodo(ATemp2);\r\n \r\n Producto carnemolida = new Producto(\"carne molida\", \"premium\", 79.90, 1);\r\n Nodo<Producto> ATemp3 = new Nodo(carnemolida);\r\n listaAlsuper.agregarNodo(ATemp3);\r\n \r\n Producto pollo = new Producto(\"pollo\", \"super pollo\", 59.90, 1);\r\n Nodo<Producto> ATemp4 = new Nodo(pollo);\r\n listaAlsuper.agregarNodo(ATemp4);\r\n \r\n Producto pescado = new Producto(\"pescado\", \"el pecesito\", 63.90, 1);\r\n Nodo<Producto> ATemp5 = new Nodo(pescado);\r\n listaAlsuper.agregarNodo(ATemp5);\r\n \r\n Producto atunagua = new Producto(\"atun en agua\", \"en agua\", 9.90, 1);\r\n Nodo<Producto> ATemp6 = new Nodo(atunagua);\r\n listaAlsuper.agregarNodo(ATemp6);\r\n \r\n Producto atunaceite = new Producto(\"atun en aceite\", \"en aceite\", 9.90, 1);\r\n Nodo<Producto> ATemp7 = new Nodo(atunaceite);\r\n listaAlsuper.agregarNodo(ATemp7);\r\n \r\n Producto leche = new Producto(\"leche\", \"nutri leche\", 14.90, 1);\r\n Nodo<Producto> ATemp8 = new Nodo(leche);\r\n listaAlsuper.agregarNodo(ATemp8);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"mimarca\", 13.90, 1);\r\n Nodo<Producto> ATemp9 = new Nodo(arroz);\r\n listaAlsuper.agregarNodo(ATemp9);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"pinto\", 16.90, 1);\r\n Nodo<Producto> ATemp10 = new Nodo(frijol);\r\n listaAlsuper.agregarNodo(ATemp10);\r\n \r\n Producto azucar = new Producto(\"azucar\", \"mimarca\", 17.90, 1);\r\n Nodo<Producto> ATemp11 = new Nodo(azucar);\r\n listaAlsuper.agregarNodo(ATemp11);\r\n \r\n Producto sal = new Producto(\"sal\", \"salada\", 10.90, 1);\r\n Nodo<Producto> ATemp12 = new Nodo(sal);\r\n listaAlsuper.agregarNodo(ATemp12);\r\n \r\n Producto pimienta = new Producto(\"pimienta\", \"pimi\", 3.90, 2);\r\n Nodo<Producto> ATemp13 = new Nodo(pimienta);\r\n listaAlsuper.agregarNodo(ATemp13);\r\n \r\n Producto limon = new Producto(\"limon\", \"verde\", 5.90, 0);\r\n Nodo<Producto> ATemp14 = new Nodo(limon);\r\n listaAlsuper.agregarNodo(ATemp14);\r\n \r\n Producto tomate = new Producto(\"tomate\", \"rojo\", 13.90, 0);\r\n Nodo<Producto> ATemp15 = new Nodo(tomate);\r\n listaAlsuper.agregarNodo(ATemp15);\r\n \r\n Producto zanahoria = new Producto(\"zanahoria\", \"goku\", 8.90, 0);\r\n Nodo<Producto> ATemp16 = new Nodo(zanahoria);\r\n listaAlsuper.agregarNodo(ATemp16);\r\n \r\n Producto papas = new Producto(\"papas\", \"ochoa\", 8.90, 0);\r\n Nodo<Producto> ATemp17 = new Nodo(papas);\r\n listaAlsuper.agregarNodo(ATemp17);\r\n \r\n Producto cebolla = new Producto(\"cebolla\", \"blanca\", 17.90, 1);\r\n Nodo<Producto> ATemp18 = new Nodo(cebolla);\r\n listaAlsuper.agregarNodo(ATemp18);\r\n \r\n Producto aceitecocina = new Producto(\"aceite de cocina\", \"123\", 29.90, 1);\r\n Nodo<Producto> ATemp19 = new Nodo(aceitecocina);\r\n listaAlsuper.agregarNodo(ATemp19);\r\n \r\n Producto panblanco = new Producto(\"pan blanco\", \"blanco\", 2.90, 1);\r\n Nodo<Producto> ATemp20 = new Nodo(panblanco);\r\n listaAlsuper.agregarNodo(ATemp20);\r\n \r\n Producto pan = new Producto(\"pan\", \"bimbo\", 39.90, 1);\r\n Nodo<Producto> ATemp21 = new Nodo(pan);\r\n listaAlsuper.agregarNodo(ATemp21);\r\n \r\n Producto zuko = new Producto(\"zuko\", \"zuko\", 4.90, 1);\r\n Nodo<Producto> ATemp22 = new Nodo(zuko);\r\n listaAlsuper.agregarNodo(ATemp22);\r\n \r\n Producto consome = new Producto(\"consome\", \"panchi\", 10.90, 2);\r\n Nodo<Producto> ATemp23 = new Nodo(consome);\r\n listaAlsuper.agregarNodo(ATemp23);\r\n \r\n Producto cereal = new Producto(\"cereal\", \"nesquik\", 40.90, 2);\r\n Nodo<Producto> ATemp24 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp24);\r\n \r\n Producto cereal2 = new Producto(\"cereal\", \"zucaritas\", 50.90, 2);\r\n Nodo<Producto> ATemp25 = new Nodo(cereal2);\r\n listaAlsuper.agregarNodo(ATemp25);\r\n \r\n Producto cereal3 = new Producto(\"cereal\", \"kellogs\", 35.90, 2);\r\n Nodo<Producto> ATemp26 = new Nodo(cereal3);\r\n listaAlsuper.agregarNodo(ATemp26);\r\n \r\n Producto chocomilk = new Producto(\"chocomilk\", \"pancho pantera\", 60.90, 2);\r\n Nodo<Producto> ATemp27 = new Nodo(chocomilk);\r\n listaAlsuper.agregarNodo(ATemp27);\r\n \r\n Producto apio = new Producto(\"apio\", \"pa el clamato\", 1.90, 0);\r\n Nodo<Producto> ATemp28 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp28);\r\n \r\n Producto chocomilk2 = new Producto(\"chocomilk\", \"el dinosaurio\", 15.90, 2);\r\n Nodo<Producto> ATemp29 = new Nodo(chocomilk2);\r\n listaAlsuper.agregarNodo(ATemp29);\r\n \r\n Producto chile = new Producto(\"chile\", \"amor\", 7.90, 0);\r\n Nodo<Producto> ATemp30 = new Nodo(chile);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto chilaca = new Producto(\"chilaca\", \"chihuahua\", 8.80, 0);\r\n Nodo<Producto> ATemp31 = new Nodo(chilaca);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto cafe= new Producto(\"cafe\", \"nescafe\",.90, 2);\r\n Nodo<Producto> ATemp32 = new Nodo(cafe);\r\n listaAlsuper.agregarNodo(ATemp32);\r\n \r\n Producto sopa = new Producto(\"sopa\", \"de coditos\", 4.90, 2);\r\n Nodo<Producto> ATemp33 = new Nodo(sopa);\r\n listaAlsuper.agregarNodo(ATemp33);\r\n \r\n Producto sopa2 = new Producto(\"sopa\", \"estrellas\", 3.90, 2);\r\n Nodo<Producto> ATemp34 = new Nodo(sopa2);\r\n listaAlsuper.agregarNodo(ATemp34);\r\n \r\n Producto sopa3 = new Producto(\"sopa\", \"moñitos\", 3.90, 2);\r\n Nodo<Producto> ATemp35 = new Nodo(sopa3);\r\n listaAlsuper.agregarNodo(ATemp35);\r\n \r\n Producto sopa4 = new Producto(\"sopa\", \"letras\", 3.90, 2);\r\n Nodo<Producto> ATemp36 = new Nodo(sopa4);\r\n listaAlsuper.agregarNodo(ATemp36);\r\n \r\n Producto pasta = new Producto(\"pasta\", \"spaguetti\", 15.90, 2);\r\n Nodo<Producto> ATemp37 = new Nodo(pasta);\r\n listaAlsuper.agregarNodo(ATemp37);\r\n \r\n Producto shampoo = new Producto(\"champu\", \"palmolive\", 36.90, 3);\r\n Nodo<Producto> ATemp38 = new Nodo(shampoo);\r\n listaAlsuper.agregarNodo(ATemp38);\r\n \r\n Producto desodorante = new Producto(\"desodorante\", \"old spice\", 50.90, 3);\r\n Nodo<Producto> ATemp39 = new Nodo(desodorante);\r\n listaAlsuper.agregarNodo(ATemp39);\r\n \r\n Producto jabontrastes = new Producto(\"jabon para los trastes\", \"salvo\", 40.90, 3);\r\n Nodo<Producto> ATemp40 = new Nodo(jabontrastes);\r\n listaAlsuper.agregarNodo(ATemp40);\r\n \r\n Producto jaboncuerpo = new Producto(\"jabon para el cuerpo\", \"jabonzote\", 6.90, 3);\r\n Nodo<Producto> ATemp41 = new Nodo(jaboncuerpo);\r\n listaAlsuper.agregarNodo(ATemp41);\r\n \r\n Producto rastrillo = new Producto(\"rastrillo\", \"gillette\", 60.90, 3);\r\n Nodo<Producto> ATemp42 = new Nodo(rastrillo);\r\n listaAlsuper.agregarNodo(ATemp42);\r\n \r\n Producto detergente = new Producto(\"detergente\", \"downy\", 38.90, 3);\r\n Nodo<Producto> ATemp43 = new Nodo(detergente);\r\n listaAlsuper.agregarNodo(ATemp43);\r\n \r\n Producto puredetomate = new Producto(\"pure de tomate\", \"tomax\", 9.90, 3);\r\n Nodo<Producto> ATemp44 = new Nodo(puredetomate);\r\n listaAlsuper.agregarNodo(ATemp44);\r\n \r\n Producto mole = new Producto(\"mole\", \"doña maria\", 25.90, 3);\r\n Nodo<Producto> ATemp45 = new Nodo(mole);\r\n listaAlsuper.agregarNodo(ATemp45);\r\n \r\n Producto papel = new Producto(\"papel\", \"petalo\", 6.90, 3);\r\n Nodo<Producto> ATemp46 = new Nodo(papel);\r\n listaAlsuper.agregarNodo(ATemp46);\r\n \r\n Producto servilletas = new Producto(\"servilletas\", \"mimarca\", 12.90, 3);\r\n Nodo<Producto> ATemp47 = new Nodo(servilletas);\r\n listaAlsuper.agregarNodo(ATemp47);\r\n \r\n Producto manzana = new Producto(\"manzanas\", \"roja\", 20.90, 0);\r\n Nodo<Producto> ATemp48 = new Nodo(manzana);\r\n listaAlsuper.agregarNodo(ATemp48);\r\n \r\n Producto platano = new Producto(\"platano\", \"meagarras\", 19.90, 0);\r\n Nodo<Producto> ATemp50 = new Nodo(platano);\r\n listaAlsuper.agregarNodo(ATemp50);\r\n \r\n Producto papaya = new Producto(\"papaya\", \"naranja\", 0.90, 0);\r\n Nodo<Producto> ATemp51 = new Nodo(papaya);\r\n listaAlsuper.agregarNodo(ATemp51);\r\n \r\n Producto pastadedientes = new Producto(\"pasta de dientes\", \"colgate\", 30.90, 0);\r\n Nodo<Producto> ATemp52 = new Nodo(pastadedientes);\r\n listaAlsuper.agregarNodo(ATemp52);\r\n \r\n Producto desodorante2 = new Producto(\"desodorante\", \"axe\", 50.90, 3);\r\n Nodo<Producto> ATemp53 = new Nodo(desodorante2);\r\n listaAlsuper.agregarNodo(ATemp53);\r\n \r\n Producto cremacuerpo = new Producto(\"crema\", \"real\", 30.90, 3);\r\n Nodo<Producto> ATemp54 = new Nodo(cremacuerpo);\r\n listaAlsuper.agregarNodo(ATemp54);\r\n \r\n Producto cremacomer = new Producto(\"crema\", \"lala\", 29.90, 2);\r\n Nodo<Producto> ATemp55 = new Nodo(cremacomer);\r\n listaAlsuper.agregarNodo(ATemp55);\r\n \r\n Producto cloro = new Producto(\"cloro\", \"cloralex\", 9.90, 3);\r\n Nodo<Producto> ATemp56 = new Nodo(cloro);\r\n listaAlsuper.agregarNodo(ATemp56);\r\n \r\n Producto pinol = new Producto(\"pinol\", \"pinol\", 28.90, 0);\r\n Nodo<Producto> ATemp57 = new Nodo(pinol);\r\n listaAlsuper.agregarNodo(ATemp57);\r\n \r\n Producto amonia = new Producto(\"amonia\", \"amonio\", 666.66, 3);\r\n Nodo<Producto> ATemp58 = new Nodo(amonia);\r\n listaAlsuper.agregarNodo(ATemp58);\r\n \r\n Producto tortillas = new Producto(\"tortillas\", \"caseras\", 18.90, 2);\r\n Nodo<Producto> ATemp59 = new Nodo(tortillas);\r\n listaAlsuper.agregarNodo(ATemp59);\r\n \r\n Producto winni = new Producto(\"winni\", \"chimex\", 30.90, 1);\r\n Nodo<Producto> ATemp60 = new Nodo(winni);\r\n listaAlsuper.agregarNodo(ATemp60);\r\n \r\n Producto salchicha = new Producto(\"salchicha\", \"chimex\", 60.90, 1);\r\n Nodo<Producto> ATemp61 = new Nodo(salchicha);\r\n listaAlsuper.agregarNodo(ATemp61);\r\n \r\n Producto jamon = new Producto(\"jamon\", \"chimex\", 70.90, 1);\r\n Nodo<Producto> ATemp63 = new Nodo(jamon);\r\n listaAlsuper.agregarNodo(ATemp63);\r\n \r\n Producto queso = new Producto(\"queso\", \"camargo\", 90.90, 1);\r\n Nodo<Producto> ATemp64 = new Nodo(queso);\r\n listaAlsuper.agregarNodo(ATemp64);\r\n \r\n Producto saladas = new Producto(\"saladas\", \"saladitas\", 15.90, 2);\r\n Nodo<Producto> ATemp65 = new Nodo(saladas);\r\n listaAlsuper.agregarNodo(ATemp65);\r\n \r\n Producto galletas = new Producto(\"galletas\", \"emperador\", 18.90, 2);\r\n Nodo<Producto> ATemp66 = new Nodo(galletas);\r\n listaAlsuper.agregarNodo(ATemp66);\r\n \r\n Producto lentejas = new Producto(\"lentejas\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp67 = new Nodo(lentejas);\r\n listaAlsuper.agregarNodo(ATemp67);\r\n \r\n Producto puredepapa = new Producto(\"pure de papa\", \"mi marca\", 20.90, 2);\r\n Nodo<Producto> ATemp68 = new Nodo(puredepapa);\r\n listaAlsuper.agregarNodo(ATemp68);\r\n \r\n Producto trapos = new Producto(\"trapos\", \"trapitos\", 15.90, 3);\r\n Nodo<Producto> ATemp69 = new Nodo(trapos);\r\n listaAlsuper.agregarNodo(ATemp69);\r\n \r\n Producto soda = new Producto(\"soda\", \"cocacola\", 31.90, 2);\r\n Nodo<Producto> ATemp70 = new Nodo(soda);\r\n listaAlsuper.agregarNodo(ATemp70);\r\n \r\n Producto jugo = new Producto(\"jugo\", \"jumex\",19.90, 2);\r\n Nodo<Producto> ATemp71 = new Nodo(jugo);\r\n listaAlsuper.agregarNodo(ATemp71);\r\n \r\n Producto cerbeza = new Producto(\"cerbeza\", \"indio\", 11.90, 2);\r\n Nodo<Producto> ATemp72 = new Nodo(cerbeza);\r\n listaAlsuper.agregarNodo(ATemp72);\r\n \r\n Producto hielo = new Producto(\"hielo\", \"pinguino\", 10.90, 2);\r\n Nodo<Producto> ATemp73 = new Nodo(hielo);\r\n listaAlsuper.agregarNodo(ATemp73);\r\n \r\n Producto salsa = new Producto(\"salsa\", \"maggi\", 60.90, 2);\r\n Nodo<Producto> ATemp74 = new Nodo(salsa);\r\n listaAlsuper.agregarNodo(ATemp74);\r\n \r\n Producto desechables = new Producto(\"desechables\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp75 = new Nodo(desechables);\r\n listaAlsuper.agregarNodo(ATemp75);\r\n \r\n Producto chicharo = new Producto(\"chicharo\", \"chicharo\", 10.90, 2);\r\n Nodo<Producto> ATemp76 = new Nodo(chicharo);\r\n listaAlsuper.agregarNodo(ATemp76);\r\n \r\n Producto elotes = new Producto(\"elotes\", \"elotin\", 2.90, 2);\r\n Nodo<Producto> ATemp77 = new Nodo(elotes);\r\n listaAlsuper.agregarNodo(ATemp77);\r\n \r\n Producto champiñones = new Producto(\"champiñones\", \"toat\", 14.90, 2);\r\n Nodo<Producto> ATemp78 = new Nodo(champiñones);\r\n listaAlsuper.agregarNodo(ATemp78);\r\n \r\n Producto sardina = new Producto(\"sardina\", \"sardinota\", 31.90, 2);\r\n Nodo<Producto> ATemp79 = new Nodo(sardina);\r\n listaAlsuper.agregarNodo(ATemp79);\r\n \r\n Producto hilodental = new Producto(\"hilo dental\", \"colgate\", 40.90, 3);\r\n Nodo<Producto> ATemp80 = new Nodo(hilodental);\r\n listaAlsuper.agregarNodo(ATemp80);\r\n \r\n Producto cepillodedientes = new Producto(\"cepillo de dientes\", \"colgate\", 25.90, 3);\r\n Nodo<Producto> ATemp81 = new Nodo(cepillodedientes);\r\n listaAlsuper.agregarNodo(ATemp81);\r\n \r\n Producto gel = new Producto(\"gel para el cabello\", \"ego\", 16.90, 3);\r\n Nodo<Producto> ATemp82 = new Nodo(gel);\r\n listaAlsuper.agregarNodo(ATemp82);\r\n \r\n Producto cera = new Producto(\"cera\", \"ego\", 47.90, 3);\r\n Nodo<Producto> ATemp83 = new Nodo(cera);\r\n listaAlsuper.agregarNodo(ATemp83);\r\n \r\n Producto aerosol = new Producto(\"aerosol\", \"paris\", 75.90, 3);\r\n Nodo<Producto> ATemp84 = new Nodo(aerosol);\r\n listaAlsuper.agregarNodo(ATemp84);\r\n \r\n Producto acondicionador = new Producto(\"acondicionador\", \"loreal paris\", 70.90, 3);\r\n Nodo<Producto> ATemp85 = new Nodo(acondicionador);\r\n listaAlsuper.agregarNodo(ATemp85);\r\n \r\n Producto cremaafeitar = new Producto(\"crema para afeitar\", \"yilet\", 40.90, 3);\r\n Nodo<Producto> ATemp86 = new Nodo(cremaafeitar);\r\n listaAlsuper.agregarNodo(ATemp86);\r\n }", "@Override\n public List<Map<String, Object>> tareasOrdenadasPorDistancia(long id_emergencia){\n try(Connection conn = sql2o.open()){\n List<Emergencia> emergencia = conn.createQuery(\"SELECT ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud FROM emergencia WHERE id = :id_eme\")\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetch(Emergencia.class);\n String punto = \"POINT(\" + emergencia.get(0).getLongitud() + \" \" + emergencia.get(0).getLatitud() + \")\";\n return conn.createQuery(\"SELECT id, nombre, ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud, ST_Distance(ST_GeomFromText(:tar_punto, 4326), ubicacion::geography) AS distancia FROM tarea WHERE id_emergencia = :id_eme ORDER BY distancia ASC\")\n .addParameter(\"tar_punto\", punto)\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetchTable()\n .asList();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return null;\n }\n }", "private void obtenerGastosDiariosMes() {\n\t\t// Obtenemos las fechas actuales inicial y final\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n int diaFinalMes = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t\tList<Movimiento> movimientos = this.movimientoService.obtenerMovimientosFechaUsuario(idUsuario, LocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(),1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(), diaFinalMes));\n\t\tList<Double> listaGastos = new ArrayList<Double>();\n\t\tList<String> listaFechas = new ArrayList<String>();\n\t\t\n\t\tDate fechaUtilizadaActual = null;\n\t\tdouble gastoDiario = 0;\n\t\t\n\t\tfor (Iterator iterator = movimientos.iterator(); iterator.hasNext();) {\n\t\t\tMovimiento movimiento = (Movimiento) iterator.next();\n\t\t\tif(fechaUtilizadaActual == null) { //Comprobamos si se acaba de entrar en el bucle para inicializar la fecha del movimiento\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha();\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Si hemos cambiado de fecha del movimiento se procede a guardar los datos recogidos\n\t\t\tif(!fechaUtilizadaActual.equals(movimiento.getFecha())) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t\tgastoDiario = 0; // Reiniciamos el contador del gasto\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha(); // Almacenemos la fecha del nuevo gasto\n\t\t\t}\n\t\t\t\n\t\t\t// Si el movimiento que se ha realizado es un gasto lo sumamos al contador de gasto\n\t\t\tif(movimiento.getTipo().equals(TipoMovimiento.GASTO)) {\n\t\t\t\tgastoDiario += movimiento.getCantidad();\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Comprobamos si es el ultimo item del iterador y almacenamos sus datos\n\t\t\tif(!iterator.hasNext()) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.listadoGastosDiariosDiagrama = new Double[listaGastos.size()];\n\t\tthis.listadoGastosDiariosDiagrama = listaGastos.toArray(this.listadoGastosDiariosDiagrama);\n\t\tthis.fechasDiagrama = new String[listaFechas.size()];\n\t\tthis.fechasDiagrama = listaFechas.toArray(this.fechasDiagrama);\n\t\t\n\t}", "public void provocarEvolucion(Tribu tribuJugador, Tribu tribuDerrotada){\r\n System.out.println(\"\\n\");\r\n System.out.println(\"-------------------Fase de evolución ----------------------\");\r\n int indiceAtributo;\r\n int indiceAtributo2;\r\n double golpeViejo = determinarGolpe(tribuJugador);\r\n for(int i = 1; i <= 10 ; i++){\r\n System.out.println(\"Iteración número: \" + i);\r\n indiceAtributo = (int)(Math.random() * 8);\r\n indiceAtributo2 = (int)(Math.random() * 8);\r\n String nombreAtributo1 = determinarNombrePosicion(indiceAtributo);\r\n String nombreAtributo2 = determinarNombrePosicion(indiceAtributo2);\r\n if((tribuJugador.getArray()[indiceAtributo] < tribuDerrotada.getArray()[indiceAtributo] \r\n && (tribuJugador.getArray()[indiceAtributo2] < tribuDerrotada.getArray()[indiceAtributo2]))){\r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo1 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo] = tribuDerrotada.getArray()[indiceAtributo];\r\n \r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo2 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo2] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo2] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo2] = tribuDerrotada.getArray()[indiceAtributo2];\r\n }\r\n }\r\n double golpeNuevo = determinarGolpe(tribuJugador);\r\n if(golpeNuevo > golpeViejo){\r\n tribus.replace(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n System.out.println(\"\\nTribu evolucionada\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n else{\r\n System.out.println(\"\\nTribu sin evolucionar\");\r\n System.out.println(\"La tribu no evolucionó porque no se encontraron atributos\"\r\n + \" que permitiesen crecer su golpe\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n }", "private List<Pelicula> getLista() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tList<Pelicula> lista = null;\n\t\ttry {\n\t\t\tlista = new LinkedList<>();\n\n\t\t\tPelicula pelicula1 = new Pelicula();\n\t\t\tpelicula1.setId(1);\n\t\t\tpelicula1.setTitulo(\"Power Rangers\");\n\t\t\tpelicula1.setDuracion(120);\n\t\t\tpelicula1.setClasificacion(\"B\");\n\t\t\tpelicula1.setGenero(\"Aventura\");\n\t\t\tpelicula1.setFechaEstreno(formatter.parse(\"02-05-2017\"));\n\t\t\t// imagen=\"cinema.png\"\n\t\t\t// estatus=\"Activa\"\n\n\t\t\tPelicula pelicula2 = new Pelicula();\n\t\t\tpelicula2.setId(2);\n\t\t\tpelicula2.setTitulo(\"La bella y la bestia\");\n\t\t\tpelicula2.setDuracion(132);\n\t\t\tpelicula2.setClasificacion(\"A\");\n\t\t\tpelicula2.setGenero(\"Infantil\");\n\t\t\tpelicula2.setFechaEstreno(formatter.parse(\"20-05-2017\"));\n\t\t\tpelicula2.setImagen(\"bella.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula3 = new Pelicula();\n\t\t\tpelicula3.setId(3);\n\t\t\tpelicula3.setTitulo(\"Contratiempo\");\n\t\t\tpelicula3.setDuracion(106);\n\t\t\tpelicula3.setClasificacion(\"B\");\n\t\t\tpelicula3.setGenero(\"Thriller\");\n\t\t\tpelicula3.setFechaEstreno(formatter.parse(\"28-05-2017\"));\n\t\t\tpelicula3.setImagen(\"contratiempo.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula4 = new Pelicula();\n\t\t\tpelicula4.setId(4);\n\t\t\tpelicula4.setTitulo(\"Kong La Isla Calavera\");\n\t\t\tpelicula4.setDuracion(118);\n\t\t\tpelicula4.setClasificacion(\"B\");\n\t\t\tpelicula4.setGenero(\"Accion y Aventura\");\n\t\t\tpelicula4.setFechaEstreno(formatter.parse(\"06-06-2017\"));\n\t\t\tpelicula4.setImagen(\"kong.png\"); // Nombre del archivo de imagen\n\t\t\tpelicula4.setEstatus(\"Inactiva\"); // Esta pelicula estara inactiva\n\t\t\t\n\t\t\t// Agregamos los objetos Pelicula a la lista\n\t\t\tlista.add(pelicula1);\n\t\t\tlista.add(pelicula2);\n\t\t\tlista.add(pelicula3);\n\t\t\tlista.add(pelicula4);\n\n\t\t\treturn lista;\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "public Productos1[] buscarTodos() {\n\t\treturn productosColeccion.values().toArray(new Productos1[productosColeccion.size()]);// y te mide lo que ocupa procutosColeccion.\r\n\r\n\t}", "public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}", "public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }", "public void cargarOfertas() {\r\n\t\tcoi.clearOfertas();\r\n\t\tController c = gui.getController();\r\n\t\tList<Integer> ofertas = c.ofertanteGetMisOfertas();\r\n\t\tfor (Integer id : ofertas) {\r\n\t\t\tString estado = c.ofertaGetEstado(id);\r\n\t\t\tif (estado.equals(GuiConstants.ESTADO_ACEPTADA) || estado.equals(GuiConstants.ESTADO_CONTRATADA)\r\n\t\t\t\t\t|| estado.equals(GuiConstants.ESTADO_RESERVADA)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOferta(gui, id);\r\n\t\t\t\tcoi.addActiva(oferta);\r\n\t\t\t} else if (estado.equals(GuiConstants.ESTADO_PENDIENTE) || estado.equals(GuiConstants.ESTADO_PENDIENTE)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOfertaEditable(gui, id);\r\n\t\t\t\tcoi.addPendiente(oferta);\r\n\t\t\t} else if (estado.equals(GuiConstants.ESTADO_RETIRADA)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOferta(gui, id);\r\n\t\t\t\tcoi.addRechazada(oferta);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcoi.repaint();\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tscrollPane.getHorizontalScrollBar().setValue(0);\r\n\t\t\t\tscrollPane.getVerticalScrollBar().setValue(0);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public Test3()\n {\n for(int i=0; i< horas.length;i++){\n String [] d = horas[i].split(\":\");\n v[i][0] = new CarroGrande(\"URC781\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][1] = new CarroPequeno(\"URC782\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][2] = new Moto(\"URC783\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][3] = new Bicicleta(\"URC784\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n }\n }", "public static List<Object> czytaniePogody(){\r\n Object[] elementyPogody = new Object[3];\r\n elementyPogody[0]=0;\r\n elementyPogody[1]=0;\r\n elementyPogody[2]=null;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazapogod.txt\");\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n String numerWStringu = String.valueOf(elementyPogody[0] = (int) (Math.random() * 4));\r\n while ((line = czytaj.readLine()) != null){\r\n if (line.equals(numerWStringu)){\r\n elementyPogody[1] = Integer.parseInt(czytaj.readLine());\r\n elementyPogody[2] = czytaj.readLine();\r\n System.out.println(\"\\nPogoda na dzis: \" + elementyPogody[2]);\r\n break;\r\n }\r\n else {\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (Exception ignored) {\r\n }\r\n return List.of(elementyPogody);\r\n }", "private void readProgress() {\n Log.d(\"Progress\", \"Get Progress under Pond\");\r\n\r\n List<Progress> progressesWatchList = db.getAllProgressByPond(pond_id, \"Bulan 1\");\r\n for (Progress progress : progressesWatchList) {\r\n Log.e(\"Progress\", progress.getId() + \", \" + progress.getMonth() + \", \" + progress.getWeight1() + \", \" + progress.getFeed_weight1());\r\n progress_id = progress.getId();\r\n month = progress.getMonth();\r\n beratBibit1 = progress.getWeight1();\r\n beratPakan1 = progress.getFeed_weight1();\r\n beratBibit2 = progress.getWeight2();\r\n beratPakan2 = progress.getFeed_weight2();\r\n beratBibit3 = progress.getWeight3();\r\n beratPakan3 = progress.getFeed_weight3();\r\n\r\n Log.e(\"BULAN1FRAGMENT1\", progress_id + \", \" + month + \", \" + beratBibit1 + \", \" + beratBibit2 + \", \" + beratBibit3);\r\n\r\n beratBibit1 = beratBibit1 * 1000;\r\n beratBibit2 = beratBibit2 * 1000;\r\n beratBibit3 = beratBibit3 * 1000;\r\n\r\n Log.e(\"BULAN1FRAGMENT2\", progress_id + \", \" + month + \", \" + beratBibit1 + \", \" + beratBibit2 + \", \" + beratBibit3);\r\n\r\n mBeratBibit1EditText.setText(String.valueOf(beratBibit1));\r\n mBeratPakan1TextView.setText(String.valueOf(beratPakan1));\r\n mBeratBibit2EditText.setText(String.valueOf(beratBibit2));\r\n mBeratPakan2TextView.setText(String.valueOf(beratPakan2));\r\n mBeratBibit3EditText.setText(String.valueOf(beratBibit3));\r\n mBeratPakan3TextView.setText(String.valueOf(beratPakan3));\r\n }\r\n }", "@SuppressWarnings(\"unused\")\r\n private void findAbdomenVOI() {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 39; angle < 45; angle += 3) {\r\n int x, y, yOffset;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n scaleFactor = Math.tan(angleRad);\r\n x = xDim;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x > xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x--;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n x = xcm;\r\n y = 0;\r\n yOffset = y * xDim;\r\n while (y < ycm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n y++;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n x = 0;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x < xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x++;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n x = xcm;\r\n y = yDim;\r\n yOffset = y * xDim;\r\n while (y < yDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n y--;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n }\r\n } // end for (angle = 0; ...\r\n \r\n int[] x1 = new int[xValsAbdomenVOI.size()];\r\n int[] y1 = new int[xValsAbdomenVOI.size()];\r\n int[] z1 = new int[xValsAbdomenVOI.size()];\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n x1[idx] = xValsAbdomenVOI.get(idx);\r\n y1[idx] = xValsAbdomenVOI.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n\r\n\r\n }", "Polo(ArrayList<Integer> valoresConfig)\n {\n flagsDesastres = new ArrayList();\n for (int d = 0; d < numCatastrofes; d++) //< Modificar al añadir desastres\n {\n flagsDesastres.add(false);\n }\n dia = 1;\n animales = new ArrayList();\n extintos = new ArrayList();\n for (int i = 0; i < 6; i++) //ID 0 reservado para el krill, no son objetos, pero si objetivos de comida\n {\n animales.add(new ArrayList());\n extintos.add(false);\n }\n SerVivo.IniciaCantidad();\n int randNum = Utilidades.rand(valoresConfig.get(0), valoresConfig.get(1));\n krill = randNum;\n randNum = Utilidades.rand(valoresConfig.get(2), valoresConfig.get(3));\n for (int i = 0; i < randNum; i++) {\n animales.get(1).add(new Pez(0, dia, 0));\n }\n randNum = Utilidades.rand(valoresConfig.get(4), valoresConfig.get(5));\n for (int i = 0; i < randNum; i++) {\n animales.get(2).add(new Foca(0, dia));\n }\n randNum = Utilidades.rand(valoresConfig.get(8), valoresConfig.get(9));\n for (int i = 0; i < randNum; i++) {\n animales.get(3).add(new Oso(0, dia));\n }\n randNum = Utilidades.rand(valoresConfig.get(6), valoresConfig.get(7));\n for (int i = 0; i < randNum; i++) {\n animales.get(4).add(new Morsa(0, dia));\n }\n\n randNum = Utilidades.rand(valoresConfig.get(10), valoresConfig.get(11));\n for (int i = 0; i < randNum; i++) {\n animales.get(5).add(new Esquimal(0, dia));\n }\n temperatura = valoresConfig.get(12);\n\n for (int i = 1; i < 6; i++) {\n animales.set(i, Utilidades.RadixSortIMC(animales.get(i)));\n }\n System.out.println(krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }", "private IOferta buildOfertaEjemplo7() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoEnSegundoProducto(\"11-111-1111\", \"11-111-1112\", 50);\n\t\treturn new OfertaDinero(\"50% en Sprite, comprando 1 Coca\", condicion,\tdescuento);\n\t}", "public static void SerializarCadastro(List ArrayAlunos) {\n\n XStream xstream = new XStream(new DomDriver()); //Classe responsavel pela serialização xml\n\n OutputStream outputStream = null;\n\n xstream.alias(\"Cadastro\", List.class);\n xstream.alias(\"aluno\", Aluno.class);\n //File file = new File(\"/home/david/Documentos\",\"CadastroAluno.xml\" );\n File file = new File(\"XML/CadastroAluno.xml\");\n\n try {\n outputStream = new FileOutputStream(file);\n Writer writer = new OutputStreamWriter(outputStream, \"UTF-8\");\n xstream.toXML(ArrayAlunos, writer);\n } catch (IOException ex) {\n //Logger.getLogger(SerializaAluno.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n\n\n\n\n }", "public void ordenarXNombreBurbuja() {\r\n\t\tfor (int i = datos.size(); i > 0; i-- ) {\r\n\t\t\tfor (int j=0; j<i-1; j++) {\r\n\t\t\t\tif(\tdatos.get(j).compare(datos.get(j), datos.get(j+1)) == (1)) {\r\n\t\t\t\t\tJugador tmp = datos.get(j);\r\n\t\t\t\t\tdatos.set(j, datos.get(j+1));\r\n\t\t\t\t\tdatos.set((j+1), tmp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void datosBundle()\n {\n //creamos un Bundle para recibir los datos de MascotasFavoritas al presionar el boton de atras en la ActionBar\n Bundle datosBundleAtras = getActivity().getIntent().getExtras();\n //preguntamos si este objeto viene con datos o esta vacio\n if(datosBundleAtras!=null)\n {//si hay datos estos se los agregamos a un ArrayList de mascotas\n mascotas = (ArrayList<Mascota>) datosBundleAtras.getSerializable(\"listamascotasatras\");\n }else{\n //si el bundle No trae datos entonces se inicializara la lista con datos\n validarBundle=1;\n //return;\n }\n }", "public Elemento crearElementos(String contenido) {\n\t\tTitulo unTitulo = new Titulo();\n\t\tSubTitulo unSubTitulo = new SubTitulo();\n\t\tImagen unaImagen = new Imagen();\n\t\tSeccion unaSeccion = new Seccion();\n\t\tLista unaLista = new Lista();\n\t\tTextoPlano textoPlano = new TextoPlano();\n\n\t\t// Se agregan los elementos a la cadena\n\t\tthis.setSiguiente(unTitulo);\n\t\tunTitulo.setSiguiente(unSubTitulo);\n\t\tunSubTitulo.setSiguiente(unaImagen);\n\t\tunaImagen.setSiguiente(unaSeccion);\n\t\tunaSeccion.setSiguiente(unaLista);\n\t\tunaLista.setSiguiente(textoPlano);\n\n\t\tElemento elemento = this.siguiente.crearElemento(contenido);\n\n\t\treturn elemento;\n\t}", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "private void cargarTarjetaTuberculosis() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_HC_TUBERCULOSIS,\r\n\t\t\t\tIRutas_historia.LABEL_HC_TUBERCULOSIS, parametros);\r\n\t}", "public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }", "private void initializeData() {\n ListaOfertas.removeAll(ListaOfertas);\n for(Articulo listaJuegos: ArticuloRepository.getListArticulo()){\n if(listaJuegos.getOferta().contains(\"S\")){\n listaJuegos.setValorDescuento(String.valueOf(listaJuegos.getPrecioArticulo()-(listaJuegos.getPrecioArticulo()*listaJuegos.getPorcentajeDescuento()/100)));\n ListaOfertas.add(listaJuegos);\n }\n\n }\n }" ]
[ "0.67699015", "0.5944719", "0.59351", "0.591448", "0.5861123", "0.5743067", "0.57415104", "0.5734442", "0.5726188", "0.5713521", "0.56798184", "0.56789804", "0.567193", "0.5667032", "0.56658024", "0.56450504", "0.56286716", "0.5619968", "0.56132966", "0.56037116", "0.560116", "0.5600998", "0.5588164", "0.55614364", "0.5558532", "0.5540082", "0.5539393", "0.5516826", "0.55018824", "0.5490397", "0.549016", "0.5485868", "0.5481476", "0.54806", "0.54701406", "0.5462744", "0.54606694", "0.5459175", "0.545864", "0.54476184", "0.5442044", "0.54313934", "0.5427664", "0.5426853", "0.5414766", "0.54135865", "0.5409087", "0.5404716", "0.5403438", "0.5402218", "0.5399945", "0.539227", "0.53727645", "0.5364627", "0.53598946", "0.5358227", "0.5355351", "0.5353626", "0.5350553", "0.5342977", "0.5338214", "0.5334152", "0.5333755", "0.5330158", "0.5330136", "0.5326638", "0.5325822", "0.53250855", "0.53221065", "0.53219205", "0.53208655", "0.5319808", "0.5311295", "0.5307806", "0.53026694", "0.5297678", "0.529046", "0.5285201", "0.52839047", "0.5281566", "0.5281337", "0.5278434", "0.5277238", "0.52757335", "0.5274369", "0.52698714", "0.526865", "0.52634317", "0.5263047", "0.52617204", "0.5253414", "0.5251266", "0.5241558", "0.5240478", "0.52370846", "0.52361774", "0.52280235", "0.5224909", "0.5224523", "0.52239454", "0.52233845" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onBackward(View backwardView) { super.onBackward(backwardView); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onForward(View backwardView) { super.onForward(backwardView); Log.d("info", "submit"); String resultContent = info_et.getText().toString().trim(); int length = resultContent.length(); if (length > num) { Toast.makeText(getApplicationContext(), "字数超过限制字数", Toast.LENGTH_LONG); return; } Intent resultIntent = new Intent(); Bundle bundle = new Bundle(); bundle.putString("result", resultContent); resultIntent.putExtras(bundle); this.setResult(RESULT_OK, resultIntent); Log.d("info", "set value"); this.finish(); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { super.onClick(v); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Next should return the values in the record set as an ImmutableList of Strings per row.
@Test public void testNext() throws SQLException, InputIterationException { // Setup ResultSet resultSet = twoLinesResultSetFixture.getTestData(); ResultSetIterator resultSetIterator = new ResultSetIterator(resultSet); // Check result List<Boolean> expectedNextValues = twoLinesResultSetFixture.getExpectedNextValues(); List<ImmutableList<String>> expectedRecords = twoLinesResultSetFixture.getExpectedRecords(); for (int i = 0; i < twoLinesResultSetFixture.numberOfRows(); i++) { assertEquals(expectedNextValues.get(i), resultSetIterator.hasNext()); assertEquals(expectedRecords.get(i), resultSetIterator.next()); } assertEquals(expectedNextValues.get(twoLinesResultSetFixture.numberOfRows()), resultSetIterator.hasNext()); // Next should have been called. verify(resultSet, times(3)).next(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getRows();", "java.util.List<String>\n getRowsList();", "private List<String> nextRecord() {\n\t\t\t\t\tList<String> record = new LinkedList<String>();\n\t\t\t\t\twhile (lines.hasNext()) {\n\t\t\t\t\t\tString line = lines.next();\n\t\t\t\t\t\tif (line.startsWith(\"---\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\trecord.add(line);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn record;\n\t\t\t\t}", "java.util.List<java.lang.String> getValuesList();", "public com.google.protobuf.ProtocolStringList\n getRowsList() {\n return rows_.getUnmodifiableView();\n }", "default CompletableFuture<List<OUT>> fetchNextRecords() throws IOException {\n return fetchNextRecord().thenApply((r) -> Collections.singletonList(r));\n }", "public com.google.protobuf.ProtocolStringList\n getRowsList() {\n return rows_;\n }", "String getValues() {\n String r = x + \" \";\n Lista iter = new Lista(this);\n while(iter.next != null) {\n iter = iter.next;\n r += iter.x + \" \";\n } \n return r;\n }", "public void PrintResult() {\n try {\n res.beforeFirst();\n int columnsNumber = res.getMetaData().getColumnCount();\n while (res.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n Object columnValue = res.getObject(i);\n System.out.print(res.getMetaData().getColumnName(i) + \" \" + columnValue);\n }\n System.out.println();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private static ListOfString readListAndClose(final ILogger aLogger,\r\n final ResultSet aResultSet) {\r\n if (aResultSet==null) return null;\r\n ListOfString r;\r\n if (!moveNext(aLogger, aResultSet)) {\r\n r= new ListOfString();\r\n } else {\r\n r= getRowAsList(aLogger, aResultSet);\r\n }\r\n close(aLogger, aResultSet);\r\n return r;\r\n }", "private String printRow(Result res){\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n String row = \"\";\n while(iter.hasNext()){\n Pair<String ,byte[]> col = iter.next();\n String val = appendFromCol(col.getFirst(), res);\n row += val + delim;\n }\n // strip out last delim\n return row.substring(0, row.length()-1);\n }", "java.util.List<String> getRepeatedStringFieldList();", "private String getValues()\n\t{\n\t\tString values = \"(\";\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tvalues += \"'\" + fieldList.get(spot).getText() + \"'\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tvalues += \");\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalues += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn values;\n\t}", "public String toString() {\n\t\tboolean first = true;\n\t\tStringWriter buf = new StringWriter();\n\t\tbuf.append('[');\n\t\tfor(String value : values) {\n\t\t\tif(first) { first = false; } else { buf.append(\",\"); }\n\t\t\tbuf.append(value);\n\t\t}\n\t\tbuf.append(']');\n\t\treturn buf.toString();\t\t\n\t}", "public String getValues() {\n\t\tString[] valStrArr = values.toArray(new String[values.size()]);\n\t\tlogInfo(String.join(\", \", valStrArr));\n\t\treturn \"\"+String.join(\", \", valStrArr);\n\t}", "@Override\n\tpublic Row next(){\n\t\treturn res;\n\t}", "public java.util.List<java.lang.String> getValuesList() {\n return java.util.Collections.unmodifiableList(result.values_);\n }", "@Override\n public String toString(){\n\n ArrayList<String> headers = new ArrayList<>();\n ArrayList<String[]> records = new ArrayList<>();\n\n for(Col col : columns){\n headers.add(col.getName());\n }\n\n if(getRecordSize() < 1){\n return headers.toString();\n }\n\n for(int i = 0; i < getRecordSize(); i++){\n\n ArrayList<Rec> recs = getRecordsByRowIndex(i);\n String[] r = new String[recs.size()];\n\n for(int j = 0; j < recs.size(); j++){\n r[j] = recs.get(j).getLastEntry().getData();\n }\n\n records.add(r);\n\n }\n\n return displayTable(headers, records);\n\n }", "public final String[] toStrings() {\n String[] txtRecords = new String[records.size() + 1];\n String headers = \"\";\n boolean debut = true;\n\n /*\n * If the line is the first line, print headers (name of attributes\n * printed).\n */\n for (int i = 0; i < attributes.length; i++) {\n if (debut) {\n debut = false;\n } else {\n headers += \";\";\n }\n headers += attributes[i];\n }\n txtRecords[0] = headers;\n\n /*\n * Get an iterator from the Vector (note that hashmap sets also support\n * iterators), and iterate over the set.\n */\n Iterator iterator = records.iterator();\n for (int i = 1; i < records.size() + 1; i++) {\n Record tmpRecord = (Record) iterator.next();\n txtRecords[i] = \"\";\n debut = true;\n\n /*\n * For each record, extract all attributes in the order they have\n * been entered in the report.\n */\n for (int j = 0; j < attributes.length; j++) {\n if (debut) {\n debut = false;\n } else {\n txtRecords[i] += \";\";\n }\n txtRecords[i] += tmpRecord.getAttribute(attributes[j]);\n }\n }\n return txtRecords;\n }", "List<List<Object>> getTableValues();", "public List<String> getRecordings(){\n findRecordings();\n return _records;\n }", "List getValues();", "public String toString() {\n/* 46 */ return ModelUtil.toCommaSeparatedList((Object[])getValue());\n/* */ }", "@Override\n public String toString() {\n return allRecords.stream()\n .flatMap(m -> m.entrySet().stream())\n .sorted(Comparator.comparing(Map.Entry::getKey))\n .map(Map.Entry::getValue)\n .collect(Collectors.joining());\n }", "java.lang.String getValues(int index);", "public void expandRecords() {\n for (StringStorage stringConstant : getStringConstants()) {\n stringConstant.expandString(getStringConstants());\n }\n for (RecordStorage record : getRecords()) {\n record.expandFields(getStringConstants());\n }\n }", "java.util.List<java.lang.String>\n getStrValuesList();", "private void fetchStringValue(Tuple next, String columnName,\n ColumnValueAnalysisResult result) throws IOException,\n AnalysisException, ExecException {\n\t\tInteger order = AlpinePigSummaryStatistics.analyzingColumns.length*generator.getColumnOrder(columnName);\n\t\t//order = 0;\n\n\t\tresult.setMaxNA(true);\n\t\tresult.setQ1NA(true);\n\t\tresult.setMedianNA(true);\n\t\tresult.setQ3NA(true);\n\t\tresult.setMinNA(true);\n\t\tresult.setAvgNA(true);\n\t\tresult.setDeviationNA(true);\n\t\tresult.setZeroCountNA(true);\n\t\tresult.setPositiveValueCountNA(true);\n\t\tresult.setNegativeValueCountNA(true);\n\n\t\tresult.setMinNA(true);\n\n\t\tresult.setCount(null==next.get(order+1)?0:DataType.toLong(next.get(order+1)));\n\t\tresult.setUniqueValueCount(null==next.get(order+7)?0:DataType.toLong(next.get(order+7)));\n\t\tresult.setNullCount(null==next.get(order+2)?0:DataType.toLong(next.get(order+2)));\n\t\tresult.setEmptyCount(null==next.get(order+2)?0:DataType.toLong(next.get(order+2)));\n\t\tif(-1==result.getUniqueValueCount()){\n\t\t\tresult.setUniqueValueCountNA(true);\n\t\t}\n\n\t\tresult.setTop01Value(null == next.get(order + 14) ? 0 : (next.get(order + 14)));\n\t\tresult.setTop01Count(null == next.get(order + 15) ? 0 : DataType.toLong(next.get(order + 15)));\n\t\tresult.setTop02Value(null == next.get(order + 16) ? 0 : (next.get(order + 16)));\n\t\tresult.setTop02Count(null == next.get(order + 17) ? 0 : DataType.toLong(next.get(order + 17)));\n\t\tresult.setTop03Value(null == next.get(order + 18) ? 0 : (next.get(order + 18)));\n\t\tresult.setTop03Count(null == next.get(order + 19) ? 0 : DataType.toLong(next.get(order + 19)));\n\t\tresult.setTop04Value(null == next.get(order + 20) ? 0 : (next.get(order + 20)));\n\t\tresult.setTop04Count(null == next.get(order + 21) ? 0 : DataType.toLong(next.get(order + 21)));\n\t\tresult.setTop05Value(null == next.get(order + 22) ? 0 : (next.get(order + 22)));\n\t\tresult.setTop05Count(null == next.get(order + 23) ? 0 : DataType.toLong(next.get(order + 23)));\n\t\tresult.setTop06Value(null == next.get(order + 24) ? 0 : (next.get(order + 24)));\n\t\tresult.setTop06Count(null == next.get(order + 25) ? 0 : DataType.toLong(next.get(order + 25)));\n\t\tresult.setTop07Value(null == next.get(order + 26) ? 0 : (next.get(order + 26)));\n\t\tresult.setTop07Count(null == next.get(order + 27) ? 0 : DataType.toLong(next.get(order + 27)));\n\t\tresult.setTop08Value(null == next.get(order + 28) ? 0 : (next.get(order + 28)));\n\t\tresult.setTop08Count(null == next.get(order + 29) ? 0 : DataType.toLong(next.get(order + 29)));\n\t\tresult.setTop09Value(null == next.get(order + 30) ? 0 : (next.get(order + 30)));\n\t\tresult.setTop09Count(null == next.get(order + 31) ? 0 : DataType.toLong(next.get(order + 31)));\n\t\tresult.setTop10Value(null == next.get(order + 32) ? 0 : (next.get(order + 32)));\n\t\tresult.setTop10Count(null == next.get(order + 33) ? 0 : DataType.toLong(next.get(order + 33)));\n\n\n\t}", "public String toString()\n {\n String filler = new String(\"\\\"RoomId\\\", \\\"Name\\\", \\\"Surname\\\", \\\"Situation\\\"\");\n for(Room temp : data_set)\n {\n filler += \"\\n\" + temp.toString();\n }\n return filler;\n }", "@Override\n public List<RlpType> rlpValues() {\n List<RlpType> result = super.rlpValues();\n result.add(RlpString.create(Numeric.hexStringToByteArray(getTo())));\n result.add(RlpString.create(getValue()));\n result.add(RlpString.create(Numeric.hexStringToByteArray(getFrom())));\n return result;\n }", "List<String[]> readAll();", "public String getValueString() {\n int len=0;\n for (String value : values)\n len += value.length();\n return Util.join(values, len>30 ?\"\\n\":\" \");\n }", "public ArrayList<ArrayList<Object>> getRowSet()\r\n {\r\n ArrayList<ArrayList<Object>> list = new ArrayList<>();\r\n try {\r\n int c = 0; \r\n while(c < rows)\r\n {\r\n rs.next();\r\n System.out.println(c);\r\n ArrayList<Object> obj = new ArrayList<>();\r\n int col = rs.getMetaData().getColumnCount();\r\n for(int i = 1; i < col; i++)\r\n {\r\n obj.add(rs.getObject(i));\r\n }\r\n list.add(obj);\r\n c++;\r\n }\r\n return list;\r\n \r\n } catch (SQLException ex) {\r\n return list;\r\n }\r\n }", "java.util.List<io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row> \n getRowList();", "public Builder addAllRows(\n Iterable<String> values) {\n ensureRowsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, rows_);\n onChanged();\n return this;\n }", "List<Pair<String, Value>> fields();", "private String rowOfEntriesToString(TableEntry<K, V> element) {\r\n\t\tString s = \"\";\r\n\r\n\t\twhile (element != null) {\r\n\t\t\ts += \", \" + element.toString();\r\n\t\t\telement = element.next;\r\n\t\t}\r\n\r\n\t\treturn s;\r\n\t}", "public List<String> getResults(){\r\n\t\tList<String> results = new ArrayList<String>();\r\n\t\t\r\n\t\tfor(int i = 0; i < getExcel_file().size(); i++) {\r\n\t\t\tString s = getExcel_file().get(i).toString();\r\n\t\t\tfor(int j = 0; j < columns.size(); j++) {\r\n\t\t\t\ts += \" \" + columns.get(j).getArray().get(i).toString();\r\n\t\t\t}\r\n\t\t\tresults.add(s);\r\n\t\t}\r\n\t\t\r\n\t\treturn results;\r\n\t}", "public List<String> getField() {\r\n\t\tList<String> field = new ArrayList<String>();\r\n\t\tString line = null;\r\n\t\tfor (int i = 0; i < playBoard.length; i++) {\r\n\t\t\tfor (int j = 0; j < playBoard[0].length; j++) {\r\n\t\t\t\tif (j == 0) {\r\n\t\t\t\t\tline = String.valueOf(playBoard[i][j]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tline = line + playBoard[i][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfield.add(line);\r\n\t\t\tline = null;\r\n\t\t}\r\n\t\treturn field;\r\n\t}", "private String getStringFromResultSet(ResultSet rs) throws SQLException, UnsupportedEncodingException {\n ResultSetMetaData meta = rs.getMetaData();\n\n StringBuilder sb = new StringBuilder();\n\n int numColumns = meta.getColumnCount();\n for (int i = 1; i <= numColumns; i++) {\n sb.append(meta.getColumnLabel(i));\n if (i == numColumns) {\n sb.append('\\n');\n } else {\n sb.append('\\t');\n }\n }\n\n\n JMeterVariables jmvars = getThreadContext().getVariables();\n String varnames[] = getVariableNames().split(COMMA);\n String resultVariable = getResultVariable().trim();\n List<Map<String, Object>> results = null;\n if (resultVariable.length() > 0) {\n results = new ArrayList<Map<String, Object>>();\n jmvars.putObject(resultVariable, results);\n }\n int j = 0;\n while (rs.next()) {\n Map<String, Object> row = null;\n j++;\n for (int i = 1; i <= numColumns; i++) {\n Object o = rs.getObject(i);\n if (results != null) {\n if (row == null) {\n row = new HashMap<String, Object>(numColumns);\n results.add(row);\n }\n row.put(meta.getColumnLabel(i), o);\n }\n if (o instanceof byte[]) {\n o = new String((byte[]) o, ENCODING);\n }\n sb.append(o);\n if (i == numColumns) {\n sb.append('\\n');\n } else {\n sb.append('\\t');\n }\n if (i <= varnames.length) { // i starts at 1\n String name = varnames[i - 1].trim();\n if (name.length() > 0) { // Save the value in the variable if present\n jmvars.put(name + UNDERSCORE + j, o == null ? null : o.toString());\n }\n }\n }\n if (NumberUtils.isNumber(getResultSetReadDelay())) {\n try {\n Thread.sleep(Long.valueOf(getResultSetReadDelay()));\n } catch (InterruptedException e) {\n log.warn(\"Result set read delay caused InterruptedException.\", e);\n }\n }\n }\n // Remove any additional values from previous sample\n for (int i = 0; i < varnames.length; i++) {\n String name = varnames[i].trim();\n if (name.length() > 0 && jmvars != null) {\n final String varCount = name + \"_#\"; // $NON-NLS-1$\n // Get the previous count\n String prevCount = jmvars.get(varCount);\n if (prevCount != null) {\n int prev = Integer.parseInt(prevCount);\n for (int n = j + 1; n <= prev; n++) {\n jmvars.remove(name + UNDERSCORE + n);\n }\n }\n jmvars.put(varCount, Integer.toString(j)); // save the current count\n }\n }\n\n return sb.toString();\n }", "public List<Getable> data() {\n assertVisible();\n String[] headings = headings();\n List<List<String>> rowsWithTdStrings = get().findElements(By.tagName(\"tr\")).stream()\n // Ignore rows without TD elements\n .filter(e -> !e.findElements(By.tagName(\"td\")).isEmpty())\n // Then turn each row of TDs into a list of their string-contents\n .map(row -> row.findElements(By.tagName(\"td\")).stream().map(e -> e.getText()).collect(toList()))\n .collect(toList());\n\n List<Getable> result = new ArrayList<>();\n for (List<String> rowWithTdStrings : rowsWithTdStrings) {\n GetableMap aResult = new GetableMap();\n assertEquals(\"Different number of headings and columns\",\n headings.length, rowWithTdStrings.size());\n for (int i = 0; i < headings.length; i++) {\n aResult.put(headings[i], rowWithTdStrings.get(i));\n }\n result.add(aResult);\n }\n return result;\n }", "ImmutableList<SchemaOrgType> getRecordedAtList();", "private RecordSet getRecordSet(String arg[]){\n RecordSet datos = new RecordSet();\n datos.addColumn(\"CODIGO\");\n\t\tdatos.addColumn(\"VALOR\"); \n\n for(int j=0;j<arg.length;j++) { \n datos.addRow(new Object[] { arg[j], arg[j] }); \n }\n return datos;\n }", "public String[] readNext() {\n\t\treturn null;\n\t}", "public String returnList() {\n\n String str = \"\";\n Node<T> currentNode = head;\n\n while (currentNode.next != null) {\n\n str += currentNode.data + \" \";\n currentNode = currentNode.next;\n\n }\n\n str = str + currentNode.data;\n return str;\n\n }", "java.util.List<io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row> \n getRowList();", "public String toString(){\r\n\t DoubleLinkedSeq clone = new DoubleLinkedSeq(); \r\n\t clone = this.clone();\r\n\t String elements = \"{\";\r\n\t for(clone.cursor = head; clone.cursor != null; clone.cursor = clone.cursor.getLink()){\r\n\t\t elements = elements + (clone.cursor.getData() + \",\"); \r\n\t }\r\n\t \r\n\t elements = elements + \")\";\r\n\t \r\n\t return elements; \r\n }", "private List<String> firstRecord() {\n\t\t\t\t\twhile (lines.hasNext()) {\n\t\t\t\t\t\tif (lines.next().startsWith(\"===\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn nextRecord();\n\t\t\t\t}", "Stream<DataFrameValue<R,C>> values();", "@Override\n public void emitTuples() {\n\n Statement query = queryToRetrieveData();\n logger.debug(String.format(\"select statement: %s\", query.toString()));\n RecordSet rs;\n try {\n rs = store.getClient().query(null, query);\n while(rs.next()){\n Record rec = rs.getRecord();\n T tuple = getTuple(rec);\n outputPort.emit(tuple);\n }\n }\n catch (Exception ex) {\n store.disconnect();\n DTThrowable.rethrow(ex);\n }\n }", "@Override\r\n\tpublic List<T> getRecords() {\n\t\treturn null;\r\n\t}", "protected abstract String listLearnValues();", "public List getRows() \n {\n return rows;\n }", "public String toListString() {\n\t\treturn head.toListString(); \n\t}", "public java.util.List<java.lang.String>\n getStrValuesList() {\n return strValues_;\n }", "private List<ChunkGroupMetadata> getAppendedRowMetadata() {\n List<ChunkGroupMetadata> append = new ArrayList<>();\n if (lastFlushedChunkGroupIndex < chunkGroupMetadataList.size()) {\n append.addAll(\n chunkGroupMetadataList.subList(\n lastFlushedChunkGroupIndex, chunkGroupMetadataList.size()));\n lastFlushedChunkGroupIndex = chunkGroupMetadataList.size();\n }\n return append;\n }", "public String toString()\n\t{\n\t\treturn _RowData.toString();\n\t}", "private List<LinkedHashMap<String, String>> resultSetToArrayList(ResultSet rs) throws SQLException {\r\n ResultSetMetaData md = rs.getMetaData();\r\n int columns = md.getColumnCount();\r\n ArrayList list = new ArrayList(50);\r\n while (rs.next()) {\r\n LinkedHashMap row = new LinkedHashMap(columns);\r\n for (int i = 1; i <= columns; ++i) {\r\n row.put(md.getColumnName(i), rs.getObject(i));\r\n }\r\n list.add(row);\r\n }\r\n return list;\r\n }", "public String toString()\n {\n return row0 + \"\\n\" + row1 + \"\\n\" + row2 + \"\\n\" + row3;\n }", "public Set<LinkedHashMap<String, String>> getRows() {\n return rows;\n }", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tif (size == 0) {\r\n\t\t\treturn \"[]\";\r\n\t\t}\r\n\r\n\t\tString s = \"[\";\r\n\r\n\t\tint currentRow = 0;\r\n\t\twhile (table[currentRow] == null) {\r\n\t\t\tcurrentRow++;\r\n\t\t}\r\n\r\n\t\ts += table[currentRow].toString();\r\n\t\ts += rowOfEntriesToString(table[currentRow].next);\r\n\r\n\t\tcurrentRow++;\r\n\r\n\t\twhile (currentRow < table.length) {\r\n\t\t\ts += rowOfEntriesToString(table[currentRow]);\r\n\t\t\tcurrentRow++;\r\n\t\t}\r\n\r\n\t\ts += \"]\";\r\n\t\treturn s;\r\n\t}", "@Override\n\tpublic Collection<String> values() {\n\t\treturn null;\n\t}", "private ArrayList<String> writeResultSet(ResultSet resultSet) throws SQLException {\n\t ArrayList<String> inter_result = new ArrayList<String>();\r\n\t\t while (resultSet.next()) {\r\n\t // it is possible to get the columns via name\r\n\t // also possible to get the columns via the column number\r\n\t // which starts at 1\r\n\t // e.g., resultSet.getSTring(2);\r\n\t String hotel_name = resultSet.getString(\"name\");\r\n\t inter_result.add(hotel_name);\r\n\t //String hotel_area = resultSet.getString(\"area\");\r\n\t System.out.println(\"Name: \" + hotel_name);\r\n\t //System.out.println(\"Area: \" + hotel_area);\r\n\r\n\t }\r\n\t return inter_result; \r\n\t }", "private String[] readNextRecord() throws IOException {\n final String nextLine = getNextLine();\n return parseLine(nextLine, true);\n }", "@Override\n public Collection<V> values() {\n Collection<V> values = new HashSet<V>(size());\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry != null) {\n values.add(entry.getValue());\n }\n }\n }\n return values;\n }", "public abstract List<V> makeRowData();", "public java.util.List<com.randioo.tiger_server.protocol.Entity.RowData> getRowDataList() {\n return java.util.Collections.unmodifiableList(result.rowData_);\n }", "private static String processOneRow(int[] rowSize, String[] values){\n\t\tStringBuilder result = new StringBuilder();\t\t\n\t\tprocessOneRow(rowSize, values, result, false); \n\t\treturn result.toString(); \t\n\n\t}", "private List<String> readRecord(JsonObject workItem) throws AutomicException {\n List<String> record = new ArrayList<String>(resultFields.size());\n for (String field : resultFields) {\n JsonElement jeObj = workItem.get(field);\n String value = null;\n if (jeObj != null && jeObj.isJsonPrimitive()) {\n value = jeObj.getAsString();\n } else if (jeObj != null && jeObj.isJsonObject()) {\n JsonObject jObj = (JsonObject) jeObj;\n if (jObj.has(\"_refObjectName\")) {\n value = jObj.get(\"_refObjectName\").getAsString();\n }\n }\n record.add(value);\n }\n return record;\n }", "private String getFields()\n\t{\n\t\tString fields = \"(\";\n\t\t\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tfields += \"`\" + fieldList.get(spot).getName() + \"`\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tfields += \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfields += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn fields;\n\t}", "@Override\n protected List<WriteStatus> computeNext() {\n BoundedInMemoryExecutor<HoodieRecord<T>, HoodieInsertValueGenResult<HoodieRecord>, List<WriteStatus>> bufferedIteratorExecutor =\n null;\n try {\n final Schema schema = new Schema.Parser().parse(hoodieConfig.getSchema());\n bufferedIteratorExecutor =\n new SparkBoundedInMemoryExecutor<>(hoodieConfig, inputItr, getInsertHandler(), getTransformFunction(schema));\n final List<WriteStatus> result = bufferedIteratorExecutor.execute();\n assert result != null && !result.isEmpty() && !bufferedIteratorExecutor.isRemaining();\n return result;\n } catch (Exception e) {\n throw new HoodieException(e);\n } finally {\n if (null != bufferedIteratorExecutor) {\n bufferedIteratorExecutor.shutdownNow();\n }\n }\n }", "public List<Record> listAllRecords();", "private ArrayList<HashMap<String, String>> processRetrieve() {\n //Transform and Return Rows to a List of HashMaps\n try {\n if (rs == null) {\n System.out.println(\"rs is null\");\n } else {\n return rsToMaps();\n }\n } catch (SQLException ex) {\n throw new RuntimeException(ex);\n }\n return null;\n }", "java.util.List<io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row> \n getRowList();", "HCollection values();", "public List<Record>getRecords(){\n List<Record>recordList=new ArrayList<>();\n RecordCursorWrapper currsorWrapper=queryRecords(null,null);\n try{\n currsorWrapper.moveToFirst();\n while(!currsorWrapper.isAfterLast()){\n recordList.add(currsorWrapper.getRecord());\n currsorWrapper.moveToNext();\n }\n }finally {\n currsorWrapper.close();\n }\n return recordList;\n }", "@Override\n\tpublic String getNextSequenceValuesQuery(String sequence) {\n\t\treturn \"\";\n\t}", "@Override\n List<Value> values();", "@Override\n public Optional<UniqueRecordList> readRecordList() throws DataConversionException, IOException {\n return readRecordList(recordListFilePath);\n }", "public List<String> build() {\n equalColSize();\n\n //titlebar\n String message = \"```\" + title + \"```\";\n\n int numRows = columnList.get(0).entries.size();\n int rowIndex = 0;\n String potentialMsg = \"\";\n while (rowIndex < numRows) {\n //for each row, iterate through columns and add entries to potentialMsg\n Iterator<ColumnElement> columnsListIt = columnList.iterator();\n while (columnsListIt.hasNext()) {\n ColumnElement columnElement = columnsListIt.next();\n switch (columnElement.columnType) {\n case HYPERLINK:\n //rowIndex 0 is title row and gets same treatment as ColumnType.DEFAULT\n if (rowIndex != 0) {\n potentialMsg = potentialMsg.concat(\"<\" + columnElement.entries.get(rowIndex) + \"> \");\n break;\n }\n case DEFAULT:\n potentialMsg = potentialMsg.concat(\"`\" + columnElement.entries.get(rowIndex) + \"` \");\n break;\n }\n }\n //Remove last trailing space\n potentialMsg = potentialMsg.trim();\n\n //max char limit is 2000, so if concatenating the potentialMsg to message will be less then 1996, go ahead and concat.\n //if not, add current message to array and then make a new message for the bot to send\n if ((message.length() + potentialMsg.length()) <= 1996) {\n message = message.concat(potentialMsg);\n } else {\n fullMsgList.add(message);\n message = potentialMsg;\n }\n\n //end of row\n message = message.concat(\"\\n\");\n potentialMsg = \"\";\n rowIndex++;\n }\n fullMsgList.add(message);\n return fullMsgList;\n }", "public List<List<Object>> rows() {\n List<List<Object>> rows = new ArrayList<List<Object>>();\n for (List<String> rawRow : getRawRows()) {\n List<Object> newRow = new ArrayList<Object>();\n for (int i = 0; i < rawRow.size(); i++) {\n newRow.add(transformCellValue(i, rawRow.get(i)));\n }\n rows.add(newRow);\n }\n return rows;\n }", "public Row getValue()\n\t{\n\t\treturn valueList;\n\t}", "public String[][] getData(String stmt, int numOfFields) {\n String[][] result = new String[0][];\n try {\n Statement stmnt = connection.createStatement();\n result = new String[100][100];\n ResultSet rs = stmnt.executeQuery(stmt);\n int row = 0;\n while (rs.next()) {\n for (int i = 1; i <= numOfFields; i++) {\n\n result[row][i - 1] = rs.getString(i);\n\n } //for\n row++;\n } //while\n } //try\n catch (SQLException sqlex) {\n System.out.println(sqlex.getMessage());\n } //catch\n return result;\n }", "private List<T> singleRowResult( final Rows<R, C> result ) {\n\n if (logger.isTraceEnabled()) logger.trace( \"Only a single row has columns. Parsing directly\" );\n\n for ( R key : result.getKeys() ) {\n final ColumnList<C> columnList = result.getRow( key ).getColumns();\n\n final int size = columnList.size();\n\n if ( size > 0 ) {\n\n final List<T> results = new ArrayList<>(size);\n\n for(Column<C> column: columnList){\n results.add(columnParser.parseColumn( column ));\n }\n\n return results;\n\n\n }\n }\n\n //we didn't have any results, just return nothing\n return Collections.<T>emptyList();\n }", "public String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"[\");\n\t\tfor(int i = 0; i < size(); i++) {\n\t\t\tif( i != size()-1)\n\t\t\t\tsb.append(get(i) + \" , \");\n\t\t\telse\n\t\t\t\tsb.append(get(i));\n\t\t}\n\t\tsb.append(\"]\");\n\t\tsb.append(\"\\n\");\n\t\t\n\t\treturn sb.toString();\n\t}", "public Collection<V> values() {\r\n\t\t\tCollection<V> valueList = new ArrayList<V>();\r\n\t\t\tListNode current = header;\r\n\t\t\twhile (current != null) {\r\n\t\t\t\tvalueList.add(current.value);\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t\t\treturn valueList;\r\n\t\t}", "List<String> data();", "public List<String> getAllData(){\n\t}", "public List<String> getResult()\n {\n while (!readComplete)\n {\n try\n {\n Thread.sleep(1000);\n }\n catch (InterruptedException ex)\n {\n // swallow and exit;\n }\n }\n return lines;\n }", "private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1];\n builder.append(t.toString() + \" \");\n if (i % 28 == 0) {\n builder.append(\"\\n\");\n }\n }\n return builder.toString();\n }", "public String getCSVString() {\n StringBuilder builder = new StringBuilder();\n\n // key / value header\n builder.append(\"key,\\tvalue\");\n builder.append(System.getProperty(\"line.separator\").toString());\n\n // key / value pairs\n for (Entry<String, String> entry : results.entrySet()) {\n builder.append(entry.getKey());\n builder.append(\",\");\n builder.append(entry.getValue());\n builder.append(System.getProperty(\"line.separator\").toString());\n }\n\n builder.deleteCharAt(builder.length() - 1);\n return builder.toString();\n }", "private ArrayList<String[]> getTableRowData() \n {\n int numRow, numCol;\n ArrayList<String[]> data = new ArrayList<>();\n numRow = jtModel.getRowCount(); \n numCol = jtModel.getColumnCount();\n String[] row;\n for(int i = 0; i< numRow; i++)\n {\n row = new String[numCol];\n for(int j = 0; j< numCol; j++)\n {\n row[j] = jtModel.getValueAt(i, j).toString();\n } \n data.add(row);\n } \n return data;\n }", "public List<Field> iterateThroughAllFields() {\n\n List<Field> listOfFields = new ArrayList<Field>(fields.length * fields.length);\n // TODO: n**m complexity\n for (int i = 0; i < this.fields.length; i++) {\n for (int j = 0; j < this.fields.length; j++) {\n listOfFields.add(this.fields[i][j]);\n }\n }\n return listOfFields;\n }", "private List<PageExtract> getList() throws SQLException {\n\t\tDbConnector db = null;\n\t\ttry {\n\t\t\tdb = new DbConnector();\n\t\t} catch (ClassNotFoundException | SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tdb.executeQuery(SqlConstants.SET_MAX_CONCAT_LENGTH);\n\t\tResultSet pageResult = db.executeQuery(SqlConstants.PAGE_EXTRACT);\n\t\tList<PageExtract> list = new ArrayList<>();\n\t\twhile (pageResult.next()) {\n\t\t\tint pageId = pageResult.getInt(\"pageId\");\n\t\t\tString content = pageResult.getString(\"content\");\n\t\t\tlist.add(new PageExtract(pageId, content));\n\n\t\t}\n\t\treturn list;\n\t}", "public List<T> values();", "public String list() {\n final StringBuilder list = new StringBuilder(\"Here are the tasks in your list:\\n\\t\");\n records.forEach((el) -> list.append(\n String.format(\"%1$d. %2$s \\n\\t\",\n records.indexOf(el) + 1, el.toString())));\n return list.toString();\n }", "public String toString() {\n // The argument passed to StringBuilder is a pretty good estimate of the\n // length of the final string based on the row key and number of elements.\n final String metric = metricName();\n final StringBuilder buf = new StringBuilder(80 + metric.length()\n + row.length * 4 + size * 16);\n final long base_time = baseTime();\n buf.append(\"IncomingDataPoints(\")\n .append(row == null ? \"<null>\" : Arrays.toString(row))\n .append(\" (metric=\")\n .append(metric)\n .append(\"), base_time=\")\n .append(base_time)\n .append(\" (\")\n .append(base_time > 0 ? new Date(base_time * 1000) : \"no date\")\n .append(\"), [\");\n for (short i = 0; i < size; i++) {\n buf.append('+').append(delta(qualifiers[i]));\n if (isInteger(i)) {\n buf.append(\":long(\").append(longValue(i));\n } else {\n buf.append(\":float(\").append(doubleValue(i));\n }\n buf.append(')');\n if (i != size - 1) {\n buf.append(\", \");\n }\n }\n buf.append(\"])\");\n return buf.toString();\n }" ]
[ "0.61018956", "0.6018842", "0.58440816", "0.5739572", "0.5722723", "0.56326264", "0.5618719", "0.5596644", "0.559059", "0.55692625", "0.55259556", "0.5490184", "0.5487836", "0.5482356", "0.5480136", "0.54517645", "0.54467785", "0.53786707", "0.5357351", "0.53213847", "0.5295575", "0.52901375", "0.51882136", "0.51837045", "0.51756316", "0.51313215", "0.5110876", "0.51098365", "0.5087485", "0.5087451", "0.50864965", "0.5080377", "0.5075315", "0.5072356", "0.5065535", "0.50604373", "0.50413126", "0.50378984", "0.5030581", "0.5028133", "0.5003667", "0.50022566", "0.49986795", "0.4996973", "0.4993436", "0.49883622", "0.49779683", "0.4977392", "0.4971333", "0.4971166", "0.49679953", "0.49559748", "0.4947261", "0.49444818", "0.49368244", "0.49347377", "0.49306098", "0.492986", "0.4929347", "0.49245206", "0.4921489", "0.4921489", "0.4921489", "0.49168652", "0.4906463", "0.48990288", "0.48961565", "0.48914734", "0.48887935", "0.4883567", "0.48717257", "0.48708332", "0.4862725", "0.48622933", "0.48600513", "0.48569676", "0.4854983", "0.4842808", "0.48408005", "0.4838942", "0.48328838", "0.48306072", "0.4830379", "0.48239958", "0.4822934", "0.48228258", "0.4822706", "0.4822607", "0.48183647", "0.4818361", "0.4815058", "0.481416", "0.48116755", "0.4806322", "0.48061514", "0.48052207", "0.48008993", "0.47999966", "0.47983414", "0.4796515", "0.4786291" ]
0.0
-1
Next should return the correct rows and call next on the result set although hasNext has not been called.
@Test public void testNextWithoutHasNext() throws SQLException, InputIterationException { // Setup ResultSet resultSet = twoLinesResultSetFixture.getTestData(); ResultSetIterator resultSetIterator = new ResultSetIterator(resultSet); // Check result List<ImmutableList<String>> expectedRecords = twoLinesResultSetFixture.getExpectedRecords(); for (int i = 0; i < twoLinesResultSetFixture.numberOfRows(); i++) { assertEquals(expectedRecords.get(i), resultSetIterator.next()); } // Next should have been called (although hasNext has not been called on sqlIterator). verify(resultSet, times(2)).next(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testNext() throws SQLException, InputIterationException {\n // Setup\n ResultSet resultSet = twoLinesResultSetFixture.getTestData();\n ResultSetIterator resultSetIterator = new ResultSetIterator(resultSet);\n\n // Check result\n List<Boolean> expectedNextValues = twoLinesResultSetFixture.getExpectedNextValues();\n List<ImmutableList<String>> expectedRecords = twoLinesResultSetFixture.getExpectedRecords();\n for (int i = 0; i < twoLinesResultSetFixture.numberOfRows(); i++) {\n assertEquals(expectedNextValues.get(i), resultSetIterator.hasNext());\n assertEquals(expectedRecords.get(i), resultSetIterator.next());\n }\n assertEquals(expectedNextValues.get(twoLinesResultSetFixture.numberOfRows()),\n resultSetIterator.hasNext());\n // Next should have been called.\n verify(resultSet, times(3)).next();\n\n }", "@Override\n\tpublic Row next(){\n\t\treturn res;\n\t}", "public boolean next() throws SQLException {\n\n try {\n debugCodeCall(\"next\");\n checkClosed();\n return nextRow();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "@Override\n\tpublic boolean hasNext() {\n\t\tthis.res = new Row();\n\t\ttry{\n\t\t\twhile(index < dataCopy.size()){\n\t\t\t\tdata2 = dataCopy.get(index++);\t\t\t\t\t\t\t\n\t\t\t\tif(whereExp != null && !eval1.eval(whereExp).toBool()) continue;\t\n\t\t\t\t\n\t\t\t\tTableContainer.orderByData.add(new Row());\n\t\t\t\tfor(PrimitiveValue v : data2.rowList)\n\t\t\t\t\tTableContainer.orderByData.get(count).rowList.add(v);\t\n\t\t\t\tcount++;\n\t\t\t\n\t\t\t\t/*if the query is SELECT * FROM R*/\n\t\t\t\tif(flag2){\n\t\t\t\t\tres = data2;\n\t\t\t\t}else{\n\t\t\t\t\t/*if it is the regular query*/\n\t\t\t\t\tfor (int i = 0; i < itemLen; i++) res.rowList.add(eval1.eval((selectItemsExpression.get(i))));\n\t\t\t\t}\n\t\t\t\treturn true;\t\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public boolean next()\n throws SQLException\n {\n boolean hasNext = m_rs.next();\n\n // special case for handling a filter for next\n if (m_filter != null)\n {\n // only execute if we are not currently at the\n // end of the result set\n while (hasNext && !m_filter.accept(m_data, getFilterVals()))\n {\n // since we are not accepting this row\n // move the position forward and keep\n // checking, if hasNext == false, that\n // means we are at the end\n hasNext = m_rs.next();\n }\n }\n return hasNext;\n }", "public ResultSetRow next() throws SQLException {\n/* 338 */ if (this.fetchedRows == null && this.currentPositionInEntireResult != -1) {\n/* 339 */ throw SQLError.createSQLException(Messages.getString(\"ResultSet.Operation_not_allowed_after_ResultSet_closed_144\"), \"S1000\", this.mysql.getExceptionInterceptor());\n/* */ }\n/* */ \n/* */ \n/* 343 */ if (!hasNext()) {\n/* 344 */ return null;\n/* */ }\n/* */ \n/* 347 */ this.currentPositionInEntireResult++;\n/* 348 */ this.currentPositionInFetchedRows++;\n/* */ \n/* */ \n/* 351 */ if (this.fetchedRows != null && this.fetchedRows.size() == 0) {\n/* 352 */ return null;\n/* */ }\n/* */ \n/* 355 */ if (this.fetchedRows == null || this.currentPositionInFetchedRows > this.fetchedRows.size() - 1) {\n/* 356 */ fetchMoreRows();\n/* 357 */ this.currentPositionInFetchedRows = 0;\n/* */ } \n/* */ \n/* 360 */ ResultSetRow row = this.fetchedRows.get(this.currentPositionInFetchedRows);\n/* */ \n/* 362 */ row.setMetadata(this.metadata);\n/* */ \n/* 364 */ return row;\n/* */ }", "@Override\n public boolean hasNext() {\n return nextRowSet || setNextObject();\n }", "@Override\n public Row next() {\n if (!nextRowSet && !setNextObject()) {\n throw new NoSuchElementException();\n }\n nextRowSet = false;\n return this;\n }", "public TableGenRow nextRow() {\n try {\n if(DBMacros.next(rs)) {\n return this;\n }\n } catch (Exception t) {\n dbg.ERROR(\"nextRow() Exception skipping to the next record!\");\n dbg.Caught(t);\n }\n return null;\n }", "private Row nextRow() {\n\t\tRow row = (nextRow == null) ? getStarts().next() : nextRow;\n\n\t\ttry {\n\t\t\tnextRow = getStarts().next();\n\t\t} catch (NoSuchElementException e) {\n\t\t\tnextRow = null;\n\t\t}\n\n\t\treturn row;\n\t}", "public boolean hasNext() throws SQLException {\n/* 285 */ if (this.fetchedRows != null && this.fetchedRows.size() == 0) {\n/* 286 */ return false;\n/* */ }\n/* */ \n/* 289 */ if (this.owner != null && this.owner.owningStatement != null) {\n/* 290 */ int maxRows = this.owner.owningStatement.maxRows;\n/* */ \n/* 292 */ if (maxRows != -1 && this.currentPositionInEntireResult + 1 > maxRows) {\n/* 293 */ return false;\n/* */ }\n/* */ } \n/* */ \n/* 297 */ if (this.currentPositionInEntireResult != -1) {\n/* */ \n/* 299 */ if (this.currentPositionInFetchedRows < this.fetchedRows.size() - 1)\n/* 300 */ return true; \n/* 301 */ if (this.currentPositionInFetchedRows == this.fetchedRows.size() && this.lastRowFetched) {\n/* 302 */ return false;\n/* */ }\n/* */ \n/* 305 */ fetchMoreRows();\n/* */ \n/* 307 */ return (this.fetchedRows.size() > 0);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 313 */ fetchMoreRows();\n/* */ \n/* 315 */ return (this.fetchedRows.size() > 0);\n/* */ }", "@Test\n public void testIterator(){\n while(ROW_ITR.hasNext()){\n ROW_ITR.next();\n }\n }", "public boolean first() throws SQLException {\n\n try {\n debugCodeCall(\"first\");\n checkClosed();\n if (result.getRowId() < 0) { return nextRow(); }\n resetResult();\n return nextRow();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "@Override\r\n\tpublic boolean hasNext() {\r\n\t\t\r\n\t\tif (super.hasNext()) {\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * We want to avoid any array out of index exceptions, this will make sure that we \r\n\t\t\t * are only considering rows with +ve indices, which are real.\r\n\t\t\t * */\r\n\t\t\tif (previousRow > -1) {\r\n\t\t\t\t\r\n\t\t\t\tTuple row = this.table.getTuple(this.previousRow);\r\n\t\t\t\tString timeStep = row.get(this.timeStepTableColumnName).toString();\r\n\t\t\t\t\r\n\t\t\t\tif (Integer.parseInt(timeStep) > this.timestepBounds.getUpperbound()) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} \r\n\t\t\t\t\r\n\t\t\t\tif (Integer.parseInt(timeStep) < this.timestepBounds.getLowerbound()) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private void advance(final ResultSet rs, final RowSelection selection)\n \t\t\tthrows SQLException {\n \n-\t\tfinal int firstRow = getFirstRow( selection );\n+\t\tfinal int firstRow = LimitHelper.getFirstRow( selection );\n \t\tif ( firstRow != 0 ) {\n \t\t\tif ( getFactory().getSettings().isScrollableResultSetsEnabled() ) {\n \t\t\t\t// we can go straight to the first required row\n \t\t\t\trs.absolute( firstRow );\n \t\t\t}\n \t\t\telse {\n \t\t\t\t// we need to step through the rows one row at a time (slow)\n \t\t\t\tfor ( int m = 0; m < firstRow; m++ ) rs.next();\n \t\t\t}\n \t\t}\n \t}", "@Override\n public boolean getMoreResults(int current) throws SQLException {\n return false;\n }", "public AllByRowsIterator() {\n\t\t\tsuper();\n\t\t\tlastIndex = numCols * numRows;\n\t\t}", "private boolean setNextObject() {\n while (iterator.hasNext()) {\n final int row = iterator.next();\n if (!rowIsDeleted(row)) {\n rowNumber = row;\n nextRowSet = true;\n return true;\n }\n }\n return false;\n }", "@Override\n public boolean hasNext() {\n return i+1 < queries.size();\n }", "@Override\r\n public Boolean moreRecords()\r\n {\r\n Boolean blnRet = false;\r\n try\r\n {\r\n blnRet = dbRecordset.next();\r\n }\r\n catch (Exception e)\r\n {\r\n blnRet = false;\r\n }\r\n return blnRet; // only one RETURN in each function!\r\n }", "@Override\r\n public boolean hasNext() {\r\n if (Col + 1 == NCols) {\r\n if (Row + 1 == NRows) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean onNextRecord(IDataTableRecord record) throws Exception;", "@Override\n protected Iterator<? extends Map<String, AttributeValue>> nextIterator(final int count) {\n if (count == 1) {\n return currentResult.getItems().iterator();\n }\n // subsequent chained iterators will be obtained from dynamoDB\n // pagination\n if ((currentResult.getLastEvaluatedKey() == null)\n || currentResult.getLastEvaluatedKey().isEmpty()) {\n return null;\n } else {\n request.setExclusiveStartKey(currentResult.getLastEvaluatedKey());\n currentResult = dynamoDBClient.query(request);\n return currentResult.getItems().iterator();\n }\n }", "@Override\n public Iterator<Space> iterator() {\n return row.iterator();\n }", "public final void nextRow() {\n this.line++;\n }", "public Object fetchNext()\n {\n if (!isOpen) {\n isOpen = true;\n open();\n }\n for (;;) {\n if (leftObj == null) {\n Object next = inputIterator.fetchNext();\n if (next instanceof NoDataReason) {\n return next;\n }\n\n leftObj = next;\n }\n if (rightIterator == null) {\n rightIterator = getNextRightIterator();\n needNullRow = isLeftOuter;\n }\n if (rightIterator instanceof TupleIter) {\n TupleIter ri = (TupleIter) rightIterator;\n Object next = ri.fetchNext();\n if (next == NoDataReason.END_OF_DATA) {\n if (needNullRow) {\n needNullRow = false;\n return calcRightNullRow();\n }\n leftObj = null;\n rightObj = null;\n rightIterator = null;\n continue;\n }\n rightObj = next;\n } else {\n rightObj = rightIterator;\n rightIterator = TupleIter.EMPTY_ITERATOR;\n }\n Object row = calcJoinRow();\n if (row != null) {\n needNullRow = false;\n return row;\n }\n }\n }", "@Override\n public boolean hasNext() {\n if (generateAllTables && childRow != null) {\n getFromParent = false;\n return true;\n }\n\n // Current table still has more\n if (tableIterators.get(currentTableIndex).hasNext()) {\n return true;\n }\n\n // We went over all the tables\n if (currentTableIndex == tableCount - 1) {\n return false;\n }\n\n // Go to the next table\n currentTableIndex++;\n currentTable = selectedTables.get(currentTableIndex);\n\n return hasNext();\n }", "OResultSet fetchNext(int n);", "@SuppressWarnings(\"unchecked\")\n\t\tpublic T next() throws NoSuchElementException {\n\n\t\t\ttry {\n\t\t\t\tint row = cursor / numCols;\n\t\t\t\tint col = cursor % numCols;\n//\t\t\t\tT object = (T)data[cursor];\n//\t\t\t\tSystem.out.println(\"cursor=\"+cursor+\", row=\"+row+\"/\"+numRows+\", col=\"+col+\"/\"+numCols);\n\t\t\t\tT object = get(row, col);\n\t\t\t\tlastRet = cursor++;\n\t\t\t\treturn object;\n\t\t\t} catch ( IndexOutOfBoundsException e ) {\n\t\t\t\tthrow new NoSuchElementException( \"You have iterated past the last element. \" + e.toString() );\n\t\t\t}\n\n\t\t}", "@Override\n public boolean hasNext() {\n \n if (iter != null && iter.hasNext()) {\n return true;\n }\n do {\n index++;\n if (index >= table.length) {\n return false;\n }\n } while (table[index] == null);\n iter = table[index].iterator();\n return iter.hasNext();\n }", "@SuppressWarnings(\"unchecked\")\n\t\tpublic T next() throws NoSuchElementException {\n\t\t\ttry {\n//\t\t\t\tT object = (T)data[cursor * numCols + pinnedColumn];\n\t\t\t\tT object = get(cursor, pinnedColumn);\n\t\t\t\tlastRet = cursor++;\n\t\t\t\treturn object;\n\t\t\t} catch ( IndexOutOfBoundsException e ) {\n\t\t\t\tthrow new NoSuchElementException( \"You have iterated past the last element.\" + e.toString() );\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic Tuple next() throws DbException, TransactionAbortedException,\n\t\t\t\tNoSuchElementException {\n\t\t\tif(tplItr.hasNext())\n\t\t\t\treturn tplItr.next();\n\t\t\tthrow new NoSuchElementException();\n\t\t}", "@SuppressWarnings(\"unchecked\")\n\t\tpublic T next() throws NoSuchElementException {\n\n\t\t\ttry {\n\n//\t\t\t\tT object = (T)data[currentRow * numCols + currentColumn];\n\t\t\t\tT object = get(currentRow, currentColumn);\n\n\t\t\t\tcurrentRow++;\n\t\t\t\tif ( currentRow == numRows ) {\n\t\t\t\t\tcurrentRow = 0;\n\t\t\t\t\tcurrentColumn++;\n\t\t\t\t}\n\n\t\t\t\tlastRet = cursor++;\n\t\t\t\treturn object;\n\t\t\t} catch ( IndexOutOfBoundsException e ) {\n\t\t\t\tthrow new NoSuchElementException( \"You have iterated past the last element. \" + e.toString() );\n\t\t\t}\n\n\t\t}", "public void MoveNext()\r\n \t{\r\n\r\n\t try{\r\n\t\t if(!rsTution.next())rsTution.last();\r\n\t\t Display();\r\n\r\n\r\n\t }catch(SQLException sqle)\r\n\t {System.out.println(\"Move Next Error:\"+sqle);}\r\n \t}", "public final boolean hasNext() {\n return rowIndex < tables.getTablesHeader().getRowCount(getTableId())-1;\n }", "@Override\r\n public V next() {\r\n // control: fail-fast iterator...\r\n if (TSB_OAHashtable.this.modCount != expected_modCount) {\r\n throw new ConcurrentModificationException(\"next(): modificación inesperada de tabla...\");\r\n }\r\n\r\n if (!hasNext()) {\r\n throw new NoSuchElementException(\"next(): no existe el elemento pedido...\");\r\n }\r\n\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry;\r\n for (next_entry++ ; s[next_entry] != 1; next_entry++);\r\n\r\n // Actualizo los indices\r\n last_entry = current_entry;\r\n current_entry = next_entry;\r\n \r\n // avisar que next() fue invocado con éxito...\r\n next_ok = true;\r\n \r\n // y retornar la clave del elemento alcanzado...\r\n V value = t[current_entry].getValue();\r\n\r\n return value;\r\n }", "public boolean hasNext()\r\n/* 30: */ {\r\n/* 31:36 */ return this.nextResult != null;\r\n/* 32: */ }", "public boolean executeNext();", "@Nullable\n\tprotected abstract T readCursor(ResultSet rs, int currentRow) throws SQLException;", "private Iterator<Integer> intIterator() {\n return new Iterator<Integer>() {\n\n @Override\n public boolean hasNext() {\n return rowNumber < table.getRowCount() - 1;\n }\n\n @Override\n public Integer next() {\n rowNumber++;\n return rowNumber;\n }\n };\n }", "@Test\n\tpublic void testNext() {\n\t\tIntArrayIterator instance = createIterator();\n\t\tboolean[] expResults = new boolean[] { true, true, true, true, true, true, false };\n\t\tboolean result = false;\n\t\tboolean exceptionResult = false;\n\t\t\n\t\t// iterate over the underlying array, testing proper\n\t\t// results for each iteration against the iterator\n\t\tfor(int i = 0; i <= testData.length; ++i) {\n\t\t\tresult = instance.hasNext();\n\t\t\tassertEquals(expResults[i], result);\n\n\t\t\ttry {\n\t\t\t\tint value = instance.next();\n\t\t\t\tassertEquals(testData[i], value);\n\t\t\t}\n\t\t\tcatch (NoSuchElementException e) {\n\t\t\t\t// on last iteration, next() should throw\n\t\t\t\tassertEquals(testData.length, i);\n\t\t\t\texceptionResult = true;\n\t\t\t}\n\t\t}\n\t\tassertEquals(true, exceptionResult);\n\t}", "@Test void addNextRow() {\n\t\tcheckAddNextRow(false,5,4);\n\n\t\t// X X X X\n\t\t// X X X X X\n\t\tcheckAddNextRow(true,4,5);\n\n\t\t// X\n\t\t// x\n\t\tcheckAddNextRow(false,1,1);\n\n\n\n\t\t// X\n\t\t// x\n\t\tcheckAddNextRow(true,1,1);\n\t}", "@Override\n\t\tpublic boolean hasNext() throws DbException,\n\t\t\t\tTransactionAbortedException {\n\t\t\treturn tplItr.hasNext();\n\t\t}", "@Override\r\n public K next() {\r\n // control: fail-fast iterator...\r\n if (TSB_OAHashtable.this.modCount != expected_modCount) {\r\n throw new ConcurrentModificationException(\"next(): modificación inesperada de tabla...\");\r\n }\r\n\r\n if (!hasNext()) {\r\n throw new NoSuchElementException(\"next(): no existe el elemento pedido...\");\r\n }\r\n\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry;\r\n for (next_entry++ ; s[next_entry] != 1; next_entry++);\r\n\r\n // Actualizo los indices\r\n last_entry = current_entry;\r\n current_entry = next_entry;\r\n \r\n // avisar que next() fue invocado con éxito...\r\n next_ok = true;\r\n \r\n // y retornar la clave del elemento alcanzado...\r\n K key = t[current_entry].getKey();\r\n\r\n return key;\r\n }", "public ListIterator<T> getAllByRowsIterator() {\n\t\tAllByRowsIterator it = new AllByRowsIterator();\n\t\treturn it;\n\t}", "@Override\n public V next() throws NoSuchElementException {\n Object result;\n if (this.hasNext()) {\n result = myHashMap.getTable()[this.number].getValue();\n this.number++;\n } else {\n throw new NoSuchElementException(\"\");\n }\n return (V) result;\n }", "public void getNextResultSet(ActionEvent e)\r\n\t{\r\n\t\t// Ensure that an Indexing is not taking place\r\n\t\tif (this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_INDEXING_COMMENCED))\r\n\t\t{\r\n\t\t\tthis.errorMessages\r\n\t\t\t .addMessage(\"We're sorry. The Search Engine is re-indexing the database right now. Please try again in 1 - 2 minutes. Thank you!\");\r\n\t\t\tthis.errorMessages.renderMessages();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif ((this.pageBackingBean.getCurrentUser() != null && this.pageBackingBean.getCurrentUser().isActive())\r\n\t\t || this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_ALLOW_NON_USERS))\r\n\t\t{\r\n\t\t\t// Clear the current set of results\r\n\t\t\tthis.setResultsList(this.indexEjb.getBrowseResults(((this.resultsPage - 1) * this.resultsPerPage), this.resultsPerPage));\r\n\t\t}\r\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "@Test(timeout=100,expected=java.util.NoSuchElementException.class)\r\n\tpublic void testNextThrowsException() {\r\n\t\tString [] r1 = {\"Crash\",\"and\",\"burn\"};\r\n\t\twriteArrayToLine(r1);\r\n\t\tout.close();\r\n\t\t\r\n\t\tCSVReader csv = new CSVReader(getInstream());\r\n\t\tassertTrue( csv.hasNext() );\r\n\t\tString [] next = csv.next();\r\n\t\tassertArrayEquals( r1, next );\r\n\t\tcsv.next();\r\n\t\tfail(\"next should throw NoSuchElementException if no more data\");\r\n\t}", "@Override\r\n public Entry<K, V> next() {\r\n // control: fail-fast iterator...\r\n if (TSB_OAHashtable.this.modCount != expected_modCount) {\r\n throw new ConcurrentModificationException(\"next(): modificación inesperada de tabla...\");\r\n }\r\n\r\n if (!hasNext()) {\r\n throw new NoSuchElementException(\"next(): no existe el elemento pedido...\");\r\n }\r\n\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry;\r\n for (next_entry++ ; s[next_entry] != 1; next_entry++);\r\n\r\n // Actualizo los indices\r\n last_entry = current_entry;\r\n current_entry = next_entry;\r\n \r\n // avisar que next() fue invocado con éxito...\r\n next_ok = true;\r\n \r\n // y retornar el entry alcanzado...\r\n return t[current_entry];\r\n }", "@Override\n protected List<WriteStatus> computeNext() {\n BoundedInMemoryExecutor<HoodieRecord<T>, HoodieInsertValueGenResult<HoodieRecord>, List<WriteStatus>> bufferedIteratorExecutor =\n null;\n try {\n final Schema schema = new Schema.Parser().parse(hoodieConfig.getSchema());\n bufferedIteratorExecutor =\n new SparkBoundedInMemoryExecutor<>(hoodieConfig, inputItr, getInsertHandler(), getTransformFunction(schema));\n final List<WriteStatus> result = bufferedIteratorExecutor.execute();\n assert result != null && !result.isEmpty() && !bufferedIteratorExecutor.isRemaining();\n return result;\n } catch (Exception e) {\n throw new HoodieException(e);\n } finally {\n if (null != bufferedIteratorExecutor) {\n bufferedIteratorExecutor.shutdownNow();\n }\n }\n }", "default Iterator<T> iterator(ResultSet rs) {\r\n\t\treturn new ResultSetIterator<>(rs, this);\r\n\t}", "public boolean getMoreResults(int current) throws SQLException {\n return false;\r\n }", "Iterator<TabularData> dataIterator();", "public abstract boolean hasNext() throws TrippiException;", "@Override\n\tpublic boolean hasNext() {\n\t\tif (rowIterator == null) {\n\t\t\ttry {\n\t\t\t\trowIterator = createRangeRowIterator();\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.error(\"Error starting RangeRowIterator.\", e);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tif (flattenIterator != null && flattenIterator.hasNext())\n\t\t\treturn true;\n\t\tflattenIterator = null;\n\n\t\tif (!rowIterator.hasNext())\n\t\t\treturn false;\n\n\t\t// there may be nothing in the row we can return (e.g. just\n\t\t// tombstones)\n\t\twhile (rowIterator.hasNext()) {\n\t\t\tRow row = rowIterator.next();\n\t\t\tflattenIterator = new FlattenIterator(row, keyAliasNames, columnAliasNames, metadata, columnNamesMap, key, value);\n\t\t\tif (flattenIterator.hasNext())\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "@Override\n public Iterator<Row> iterator() {\n\n return new Iterator<Row>() {\n\n private final Row row = new Row(TableSlice.this);\n\n @Override\n public Row next() {\n return row.next();\n }\n\n @Override\n public boolean hasNext() {\n return row.hasNext();\n }\n };\n }", "@Override\n E next();", "private void fetchMoreRows() throws SQLException {\n/* 370 */ if (this.lastRowFetched) {\n/* 371 */ this.fetchedRows = new ArrayList<ResultSetRow>(0);\n/* */ \n/* */ return;\n/* */ } \n/* 375 */ synchronized (this.owner.connection.getConnectionMutex()) {\n/* 376 */ boolean oldFirstFetchCompleted = this.firstFetchCompleted;\n/* */ \n/* 378 */ if (!this.firstFetchCompleted) {\n/* 379 */ this.firstFetchCompleted = true;\n/* */ }\n/* */ \n/* 382 */ int numRowsToFetch = this.owner.getFetchSize();\n/* */ \n/* 384 */ if (numRowsToFetch == 0) {\n/* 385 */ numRowsToFetch = this.prepStmt.getFetchSize();\n/* */ }\n/* */ \n/* 388 */ if (numRowsToFetch == Integer.MIN_VALUE)\n/* */ {\n/* */ \n/* 391 */ numRowsToFetch = 1;\n/* */ }\n/* */ \n/* 394 */ this.fetchedRows = this.mysql.fetchRowsViaCursor(this.fetchedRows, this.statementIdOnServer, this.metadata, numRowsToFetch, this.useBufferRowExplicit);\n/* */ \n/* 396 */ this.currentPositionInFetchedRows = -1;\n/* */ \n/* 398 */ if ((this.mysql.getServerStatus() & 0x80) != 0) {\n/* 399 */ this.lastRowFetched = true;\n/* */ \n/* 401 */ if (!oldFirstFetchCompleted && this.fetchedRows.size() == 0) {\n/* 402 */ this.wasEmpty = true;\n/* */ }\n/* */ } \n/* */ } \n/* */ }", "@SuppressWarnings(\"unchecked\")\n\t\tpublic T next() throws NoSuchElementException {\n\t\t\ttry {\n\t\t\t\tT object = (T)data[pinnedRow * numCols + cursor];\n\t\t\t\tlastRet = cursor++;\n\t\t\t\treturn object;\n\t\t\t} catch ( IndexOutOfBoundsException e ) {\n\t\t\t\tthrow new NoSuchElementException( \"You have iterated past the last element.\" + e.toString() );\n\t\t\t}\n\t\t}", "private void loadNext() {\n\n String\tsql\t= \"SELECT * FROM MPC_Order_NodeNext WHERE MPC_Order_Node_ID=? AND IsActive='Y' ORDER BY SeqNo\";\n boolean\tsplitAnd\t= SPLITELEMENT_AND.equals(getSplitElement());\n\n try {\n\n PreparedStatement\tpstmt\t= DB.prepareStatement(sql);\n\n pstmt.setInt(1, getID());\n\n ResultSet\trs\t= pstmt.executeQuery();\n\n while (rs.next()) {\n\n MMPCOrderNodeNext\tnext\t= new MMPCOrderNodeNext(getCtx(), rs, \"MPC_Order_NodeNext\");\n\n next.setFromSplitAnd(splitAnd);\n m_next.add(next);\n }\n\n rs.close();\n pstmt.close();\n\n } catch (SQLException e) {\n log.log(Level.SEVERE, \"loadNext\", e);\n }\n\n log.info(\"loadNext #\" + m_next.size());\n\n }", "@Override\n public boolean getMoreResults() throws SQLException {\n\n return (result != null);\n\n }", "@Override\r\n public boolean hasNext() {\n return returned.next != header;\r\n }", "@Override\n public Integer next() {\n return query.poll();\n }", "@Override\n public SingleQuery next() {\n i++;\n current = queries.get(i);\n\n return current;\n }", "@Override\n public boolean hasNext() {\n if(dataPageIterator.hasNext()) {\n return true;\n }\n while(dataPage.getNextPageId().isValid()) {\n PageId next = dataPage.getNextPageId();\n DBComponent.BUFFER_MANAGER().unpin(dataPageId, false);\n dataPage = getDataPage(next);\n dataPageId = next;\n dataPageIterator = new DataPageIterator(dataPage);\n if(dataPageIterator.hasNext()) return true;\n }\n return false;\n }", "@Override\npublic Tuple get_next() throws IOException, JoinsException, IndexException, InvalidTupleSizeException,\n\t\tInvalidTypeException, PageNotReadException, TupleUtilsException, PredEvalException, SortException,\n\t\tLowMemException, UnknowAttrType, UnknownKeyTypeException, Exception {\n\treturn null;\n}", "@Override\n\tpublic void next()\n\t{\n\n\t}", "public void next() {\n\t\t}", "@Override\n public boolean hasNext() {\n return itListCell != first;\n }", "@Override\r\n\tpublic void next() {\n\n\t}", "abstract protected Entity selectNextEntity();", "@Override\n\tpublic void next() {\n\t\t\n\t}", "@Override\n\t\tpublic T next() {\n\t\t\tmoveToNextIndex();\n\t\t\treturn objectAtIndex(_indicesByInsertOrder[_index]);\n\t\t}", "@Override\n public boolean hasNext() {\n return !query.isEmpty();\n }", "public boolean hasNext() { return cursor != lastIndex; }", "@Override\n public boolean hasNext() {\n return curIndex < maxIndex || super.hasNext();\n }", "@Test\n public void testIterator() {\n this.sPQ.insert(\"a\");\n this.sPQ.insert(\"b\");\n this.sPQ.insert(\"c\");\n this.sPQ.insert(\"d\");\n this.sPQ.insert(\"e\");\n\n \n Iterator<String> iter = this.sPQ.iterator();\n assertEquals(\"a\", iter.next());\n assertTrue(iter.hasNext());\n assertEquals(\"b\", iter.next());\n assertEquals(\"c\", iter.next());\n assertEquals(\"d\", iter.next());\n assertTrue(iter.hasNext());\n assertEquals(\"e\", iter.next());\n assertFalse(iter.hasNext());\n }", "@Override\n public boolean getMoreResults(int i) throws SQLException {\n throw new SQLFeatureNotSupportedException();\n }", "public void afterLast() throws SQLException {\n\n try {\n debugCodeCall(\"afterLast\");\n checkClosed();\n while (nextRow()) {\n // nothing\n }\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public FlujoDetalleDTO next() {\n/* */ try {\n/* 64 */ if (this.rs.next()) {\n/* 65 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 68 */ catch (Exception e) {\n/* 69 */ e.printStackTrace();\n/* 70 */ Utilidades.writeError(\"FlujoDetalleDAO:next \", e);\n/* */ } \n/* 72 */ return null;\n/* */ }", "@Override\n public Integer next() {\n Integer result = null;\n if (checkCurrentIterator(this.currentIterator) && this.currentIterator.hasNext()) {\n while (this.currentIterator.hasNext()) {\n return this.currentIterator.next();\n }\n } else if (it.hasNext()) {\n this.currentIterator = getIterator(it);\n return this.next();\n }\n return result;\n }", "public abstract boolean hasNext();", "public abstract boolean hasNext();", "public Object next()\n/* */ {\n/* 84 */ if (this.m_offset < this.m_limit) {\n/* 85 */ return this.m_array[(this.m_offset++)];\n/* */ }\n/* 87 */ throw new NoSuchElementException();\n/* */ }", "private void prepareNext() {\n this.hasNext = false;\n while (!this.hasNext && this.nodesIterator.hasNext()) {\n this.next = this.nodesIterator.next();\n this.hasNext = this.computeHasNext();\n }\n }", "private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }", "@Override\n public boolean hasNext() {\n return next != null;\n }", "private IteratorImpl() {\r\n\t\t\titeratorModificationCount = modificationCount;\r\n\r\n\t\t\tnextEntry = table[0] == null ? findNextNonNullTableRowEntry() : table[0];\r\n\t\t}", "public void next() {\n\t\titerator.next();\n\t}", "public boolean next () throws Exception;", "@Override\r\n public boolean hasNext() {\n return true;\r\n }", "protected Tuple fetchNext() throws NoSuchElementException, TransactionAbortedException, DbException {\n\t\t// some code goes here\n\t\tTuple ret;\n\t\twhile (childOperator.hasNext()) {\n\t\t\tret = childOperator.next();\n\t\t\tif (pred.filter(ret))\n\t\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public boolean hasNext() {\n if (currentTaraCellIterator == null) {\n if (currentRowNum <= getLastRowNum()) {\n Row currentRow = getRow(currentRowNum);\n // init TaraCell iterator.\n currentTaraCellIterator = currentRow.iterator();\n } else {\n return false;\n }\n }\n\n /*\n * traverse all TaraCells, line by line,\n * if the current line has been traversed, then traverse the TaraCells of the next\n * line.\n */\n if (!currentTaraCellIterator.hasNext()) {\n currentRowNum++;\n // get the TaraCell of the next row.\n if (currentRowNum <= getLastRowNum()) {\n Row currentRow = getRow(currentRowNum);\n currentTaraCellIterator = currentRow.iterator();\n } else {\n return false;\n }\n }\n\n // start traversing current TaraCells.\n return currentTaraCellIterator.hasNext();\n }", "public boolean hasNext()\n/* */ {\n/* 73 */ return this.m_offset < this.m_limit;\n/* */ }", "@Override\n public Iterator<Iterable<T>> iterator() {\n return new TableIterator();\n }", "public boolean hasNext() {\n if (nextRecord != null) {\n return true;\n }\n\n try {\n while (true) {\n if (leftRecord == null) {\n if (LBIter.hasNext()) {\n // If left page still has records to give, then just get the\n // next one and restart right block iter.\n\n leftRecord = LBIter.next();\n RBIter = getBlockIterator(getRightTableName(),\n new Page[]{currentRightPage});\n } else {\n // Current left page is exhausted. Restart it with the next\n // right page (if there is one).\n\n if (!RPIter.hasNext()) {\n // Right page relation is exhausted. Need to restart it with\n // LPIter on the next page (if there is one).\n\n currentLeftPages = new Page[numBuffers];\n for (int i = 0; i < numBuffers; i++) {\n currentLeftPages[i] = LPIter.hasNext() ? LPIter.next() : null;\n }\n\n // Remove null values from currentLeftPages\n currentLeftPages = Arrays.stream(currentLeftPages)\n .filter(x -> x != null)\n .toArray(Page[]::new);\n\n LBIter = getBlockIterator(getLeftTableName(), currentLeftPages);\n if (!LBIter.hasNext()) {\n return false;\n }\n\n leftRecord = LBIter.next();\n RPIter = getPageIterator(getRightTableName()); // Restart RP\n RPIter.next(); // Consume header page\n } else {\n LBIter = getBlockIterator(getLeftTableName(), currentLeftPages);\n assert LBIter.hasNext() : \"LBIter degenerate\";\n leftRecord = LBIter.next();\n }\n\n currentRightPage = RPIter.next();\n RBIter = getBlockIterator(getRightTableName(),\n new Page[]{currentRightPage});\n }\n }\n while (RBIter.hasNext()) {\n Record rightRecord = RBIter.next();\n DataBox leftJoinValue = leftRecord.getValues().get(getLeftColumnIndex());\n DataBox rightJoinValue = rightRecord.getValues().get(getRightColumnIndex());\n if (leftJoinValue.equals(rightJoinValue)) {\n List<DataBox> leftValues = new ArrayList<>(leftRecord.getValues());\n List<DataBox> rightValues = new ArrayList<>(rightRecord.getValues());\n leftValues.addAll(rightValues);\n nextRecord = new Record(leftValues);\n return true;\n }\n }\n leftRecord = null;\n }\n } catch (DatabaseException e) {\n System.err.println(\"Caught database error \" + e.getMessage());\n return false;\n }\n //throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "@Override\n public Iterator<T> iterator() {\n return new CLITableIterator<T>(createNew(tables, cursor, rowIndex));\n }", "public void Next() {\n OCCwrapJavaJNI.Interface_EntityIterator_Next(swigCPtr, this);\n }", "public void next() {\n if (hasNext()) {\n setPosition(position + 1);\n }\n }" ]
[ "0.7578709", "0.7411209", "0.7281617", "0.7180611", "0.7145648", "0.71192783", "0.7005123", "0.6891317", "0.688027", "0.67962164", "0.6710848", "0.6597061", "0.6534566", "0.6457845", "0.64444906", "0.6400192", "0.6362609", "0.6335474", "0.62895554", "0.6288407", "0.62838316", "0.6276304", "0.6250761", "0.62214863", "0.6217753", "0.6197429", "0.61886084", "0.615964", "0.6157958", "0.61304164", "0.61285913", "0.61121017", "0.6087958", "0.6071686", "0.60446614", "0.60367936", "0.60323197", "0.6026339", "0.5987067", "0.5971327", "0.59534794", "0.5945882", "0.59302706", "0.5920717", "0.5904535", "0.59044313", "0.58972853", "0.58925664", "0.5891206", "0.5878133", "0.58579606", "0.58554906", "0.5847589", "0.5834874", "0.58215666", "0.58109045", "0.58080345", "0.5795584", "0.5791544", "0.57881427", "0.5771833", "0.5762302", "0.5757404", "0.5739721", "0.57349664", "0.5724199", "0.5723032", "0.5720909", "0.57202256", "0.5706998", "0.5705507", "0.56983584", "0.56945956", "0.56922764", "0.5690815", "0.5689959", "0.5681793", "0.56791866", "0.5676932", "0.5672209", "0.5669525", "0.5662678", "0.5661622", "0.5661622", "0.5652082", "0.5633186", "0.5628745", "0.562605", "0.5625767", "0.5613597", "0.56134576", "0.56116503", "0.5611496", "0.56071436", "0.56060094", "0.56054604", "0.56015646", "0.5600937", "0.55992466", "0.55941504" ]
0.739575
2
Ad passed back in request filled callback, ad can now be show
@Override public void onRequestFilled(AdColonyInterstitial ad) { mAd = ad; notifyLoaded(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\r\n public void onAdLoaded() {\n }", "@Override\n\tpublic void getDisplayAdResponse(View arg0) {\n\t\t\n\t}", "@Kroll.method\n public void show(){\n if (isShowingAd) {\n Log.w(TAG, \"The App Open Ad is already showing.\");\n return;\n }\n\n // If the app open ad is still loading, you can not show the ad.\n if (isLoadingAd){\n Log.w(TAG, \"The App Open Ad is still loading. Hang on!\");\n return;\n }\n\n // If the app open ad is not available yet, invoke the callback then load the ad.\n if (!isAdAvailable()) {\n Log.w(TAG, \"The App Open Ad is not available. Did you call load() method?\");\n if (hasListeners(AdmobModule.AD_NOT_READY)) {\n KrollDict rewardedError = new KrollDict();\n rewardedError.put(\"message\", \"Ad not ready yet! You should run the method load() first and wait for the callbacks\");\n fireEvent(AdmobModule.AD_NOT_READY, rewardedError);\n }\n // load();\n return;\n }\n\n if(isAdAvailable()){\n isShowingAd = true;\n appOpenAd.show(TiApplication.getAppCurrentActivity());\n }\n }", "private void requestNewBanner(){\n AdView mAdView = (AdView) findViewById(R.id.adView);\n AdRequest adRequest = new AdRequest.Builder().build();\n mAdView.loadAd(adRequest);\n }", "private void bannerAds() {\n Log.d(TAG, \"bannerAds invoked\");\n BannerAdView bannerAdView = new BannerAdView(MainActivity.this);\n bannerAdView.loadOnAttach();\n FrameLayout bannerPlaceholder = findViewById(R.id.banner_placeholder);\n bannerPlaceholder.addView(bannerAdView);\n bannerAdView = new BannerAdView(this)\n .withListener(new BannerAdListener() {\n @Override\n public void onAdError(BannerAd ad, String error) {\n // Called when the banner triggered an error\n Log.d(TAG, \"Something went wrong with the request: \" + error);\n }\n\n @Override\n public void onAdLoaded(BannerAd ad) {\n // Called when the banner has been successfully loaded\n Log.d(TAG, \"Banner successfully loaded\");\n\n }\n\n @Override\n public void onAdClicked(BannerAd ad) {\n // Called when the banner was clicked\n Log.d(TAG, \"User clicked on banner\");\n }\n\n @Override\n public void onAdLeftApplication(BannerAd ad) {\n // Called when the banner interaction causes an external application to be open\n Log.d(TAG, \"User directed out of app by banner\");\n }\n });\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n\n }", "@Override\n public void onAdClosed() {\n mAdView.loadAd(adRequest);\n }", "@Override\n public void onAdLoaded(BannerAd ad) {\n Log.d(TAG, \"Banner successfully loaded\");\n\n }", "@Override\r\n\t\t\tpublic void onAdReceive() {\n\t\t\t\tad.showAd();\r\n\t\t\t}", "@Override\n public void onAdLoaded(Ad ad) {\n interstitialAd.show();\n enableButton();\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n// interstitialAd.show();\n }", "@Override\n public void onAdLoaded() {\n Log.d(\"TAG\",\"Ad loaded\");\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n //pd.cancel();\n interstitialAd.show();\n }", "@Override\n public void onAdLoaded() {\n mButton.setEnabled(true);\n if (mAd.isLoaded()){\n mAd.show();\n }\n\n }", "public interface AdResponseListener {\n\n void onAdLoaded();\n\n void onAdLoadFailed(String message);\n\n void addAdViewToContainer(Object object);\n}", "@Override\n public void onAdLoaded() {\n adContainerView.setVisibility(View.VISIBLE);\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdLoaded() {\n mAdView.setVisibility(View.VISIBLE);\n }", "private void rewardedAds() {\n Log.d(TAG, \"rewardedAds invoked\");\n final RequestCallback requestCallback = new RequestCallback() {\n\n @Override\n public void onAdAvailable(Intent intent) {\n // Store the intent that will be used later to show the video\n rewardedVideoIntent = intent;\n Log.d(TAG, \"RV: Offers are available\");\n showRV.setEnabled(true);\n Toast.makeText(MainActivity.this, \"RV: Offers are available \", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onAdNotAvailable(AdFormat adFormat) {\n // Since we don't have an ad, it's best to reset the video intent\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: No ad available \");\n Toast.makeText(MainActivity.this, \"RV: No ad available \", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onRequestError(RequestError requestError) {\n // Since we don't have an ad, it's best to reset the video intent\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: Something went wrong with the request: \" + requestError.getDescription());\n Toast.makeText(MainActivity.this, \"RV: Something went wrong with the request: \", Toast.LENGTH_SHORT).show();\n }\n };\n\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n RewardedVideoRequester.create(requestCallback)\n .request(MainActivity.this);\n Log.d(TAG, \"RV request: added delay of 5 secs\");\n Toast.makeText(MainActivity.this, \"RV Request: delay of 5 secs\", Toast.LENGTH_SHORT).show();\n }\n }, 5000);\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n\n }", "@Override\n public void onAdClicked() {\n }", "@Override\r\n public void onAdLoaded()//When interstitial is ready to be shoved\r\n {\r\n mInterstitial.showAd();\r\n }", "@Override\n public void adDisplayed(Ad ad) {\n\n }", "@Override\n public void adDisplayed(Ad ad) {\n\n }", "@Override\r\n public void onAdOpened() {\n }", "private void ads(View view){\n String ID = \"95b9dd1c47e6407db176bc2398bda2c8323030f814183567\" ;\n\n Appodeal.initialize((Activity)view.getContext(),ID,Appodeal.INTERSTITIAL);\n Appodeal.show((Activity)view.getContext(), Appodeal.INTERSTITIAL);\n Appodeal.isLoaded(Appodeal.INTERSTITIAL);\n\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n if (nativeAdfb == null || nativeAdfb != ad) {\n return;\n }\n // Inflate Native Ad into Container\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n interstitialAd.show(context);\n\n }", "@Override\n public void onAdClicked() {\n Toast.makeText(Apply3Activity.this,\"Logged in SuccessFully\",Toast.LENGTH_SHORT).show();\n Log.d(\"TAG\",\"Ad clicked\");\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n Log.e(TAG, \"Interstitial ad displayed.\");\n // pd.cancel();\n // showDialog(\"Success!\", \"Adfly earning has been activated successfully. You will see Adfly ads when you click links in articles.\");\n }", "private void displayAd() {\n\t\tif (mInterstitialAd != null && mInterstitialAd.isLoaded()) {\n\t\t\tmInterstitialAd.show();\n\t\t} else {\n\t\t\t// Toast.makeText(MainActivity.this, \"Ad did not load\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t// LoadAdd();\n\t\t\t/*\n\t\t\t * if (!mInterstitialAd.isLoaded()) { Toast.makeText(mcq.this,\n\t\t\t * \"not load\", Toast.LENGTH_SHORT).show(); } else {\n\t\t\t * Toast.makeText(mcq.this, \" not \", Toast.LENGTH_SHORT) .show(); }\n\t\t\t */\n\t\t}\n\t}", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"xxx Banner onAdLoaded; isShow==\" + view.isShown());\n }", "@Override\n public void onAdLoaded() {\n sponsoredLinearLayout.setVisibility(View.VISIBLE);\n adView.setVisibility(View.VISIBLE);\n adProgressBar.setVisibility(View.GONE);\n adFailedLinearLayout.setVisibility(View.GONE);\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n mInterstitialAd = interstitialAd;\n Log.d(TAG, \"onAdLoaded\" + mInterstitialAd);\n showAdsInterstitial();\n }", "@Override\r\n public void onAdClicked() {\n }", "@Override\n public void adHidden(Ad ad) {\n\n }", "private void interstitialAds() {\n Log.d(TAG, \"interstitialAds invoked\");\n final RequestCallback requestCallback = new RequestCallback() {\n @Override\n public void onAdAvailable(Intent intent) {\n // Store the intent that will be used later to show the interstitial\n interstitialIntent = intent;\n Log.d(TAG, \"IS: Offers are available\");\n Toast.makeText(MainActivity.this, \"IS: Offers are available\", Toast.LENGTH_SHORT).show();\n showOW.setEnabled(false);\n }\n\n @Override\n public void onAdNotAvailable(AdFormat adFormat) {\n // Since we don't have an ad, it's best to reset the interstitial intent\n interstitialIntent = null;\n Log.d(TAG, \"IS: No ad available\");\n Toast.makeText(MainActivity.this, \"IS: No ad available\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onRequestError(RequestError requestError) {\n // Since we don't have an ad, it's best to reset the interstitial intent\n interstitialIntent = null;\n Log.d(TAG, \"IS: Something went wrong with the request: \" + requestError.getDescription());\n Toast.makeText(MainActivity.this, \"IS: Something went wrong with the request: \", Toast.LENGTH_SHORT).show();\n }\n };\n\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n InterstitialRequester.create(requestCallback)\n .request(MainActivity.this);\n Log.d(TAG, \"Interst Request: added delay of 5 secs\");\n }\n }, 5000);\n }", "@Override\n public void onAdAvailable(Intent intent) {\n rewardedVideoIntent = intent;\n Log.d(TAG, \"RV: Offers are available\");\n showRV.setEnabled(true);\n Toast.makeText(MainActivity.this, \"RV: Offers are available \", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onAdLoaded(AppOpenAd ad) {\n Log.d(TAG, \"Ad was loaded.\");\n appOpenAd = ad;\n isLoadingAd = false;\n\n setAppOpenEvents();\n\n KrollDict sCallback = new KrollDict();\n\n if (hasListeners(AdmobModule.AD_LOADED)) {\n fireEvent(AdmobModule.AD_LOADED, sCallback);\n }\n\n // DEPRECATED\n if (hasListeners(AdmobModule.AD_RECEIVED)) {\n org.appcelerator.kroll.common.Log.w(TAG, \"AD_RECEIVED has been deprecated and should be replaced by AD_LOADED\");\n fireEvent(AdmobModule.AD_RECEIVED, sCallback);\n }\n }", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n }", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n }", "@Override\n public void onAdClicked(Ad ad) {\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"xxx WelcomeAd onAdLoaded\");\n }", "@Override\n public void adHidden(Ad ad) {\n\n }", "@Override\n public void adHidden(Ad ad) {\n\n }", "void onInterstitialAdFinished();", "@Override\n public void onAdOpened() {\n Log.d(\"TAG\",\"Ad opened\");\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n mInterstitialAd = interstitialAd;\n Log.i(TAG, \"onAdLoaded\");\n }", "@Override\n public void onAdError(BannerAd ad, String error) {\n Log.d(TAG, \"Something went wrong with the request: \" + error);\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n mInterstitialAd = interstitialAd;\n Log.i(TAG, \"onAdLoaded\");\n }", "@Override\n public void onAdNotAvailable(AdFormat adFormat) {\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: No ad available \");\n Toast.makeText(MainActivity.this, \"RV: No ad available \", Toast.LENGTH_SHORT).show();\n }", "private void offerwallAds() {\n Log.d(TAG, \"offerwallAds invoked\");\n final RequestCallback requestCallback = new RequestCallback() {\n\n @Override\n public void onAdAvailable(Intent intent) {\n // Store the intent that will be used later to show the Offer Wall\n offerwallIntent = intent;\n Log.d(TAG, \"OW: Offers are available\");\n Toast.makeText(MainActivity.this, \"OW: Offers are available\", Toast.LENGTH_SHORT).show();\n showOW.setEnabled(true);\n }\n\n @Override\n public void onAdNotAvailable(AdFormat adFormat) {\n // Since we don't have an ad, it's best to reset the Offer Wall intent\n offerwallIntent = null;\n Log.d(TAG, \"OW: No ad available\");\n Toast.makeText(MainActivity.this, \"OW: No ad available\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onRequestError(RequestError requestError) {\n // Since we don't have an ad, it's best to reset the Offer Wall intent\n offerwallIntent = null;\n Log.d(TAG, \"OW: Something went wrong with the request: \" + requestError.getDescription());\n Toast.makeText(MainActivity.this, \"OW: Something went wrong with the request:\", Toast.LENGTH_SHORT).show();\n }\n };\n\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n boolean shouldCloseOfferwall = true;\n OfferWallRequester.create(requestCallback)\n .closeOnRedirect(shouldCloseOfferwall)\n .request(MainActivity.this);\n Log.d(TAG, \"OW request: added delay of 5 secs\");\n }\n }, 5000);\n }", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n Log.e(\"onInterstitialDisplayed\",\"\"+ad);\n }", "public void requestFreshAd() {\n // Get a message from AdMob to the developer here. Only run once and only run on the emulator.\n Context context = getContext();\n if (AdManager.getUserId(context) == null && !checkedForMessages) // null means this is emulator.\n {\n // go get the developer messages.\n checkedForMessages = true;\n retrieveDeveloperMessage(context);\n }\n\n // Only get an ad when this view is visible and not already getting an ad.\n if (super.getVisibility() != View.VISIBLE) {\n // Getting an ad when the view is hidden means it might not be shown to the user.\n // This greatly impairs AdMob's ability to optimize ads.\n Log.w(AdManager.LOG, \"Cannot requestFreshAd() when the AdView is not visible. Call AdView.setVisibility(View.VISIBLE) first.\");\n } else if (requestingFreshAd) {\n if (Log.isLoggable(AdManager.LOG, Log.DEBUG)) {\n Log.d(AdManager.LOG, \"Ignoring requestFreshAd() because we are already getting a fresh ad.\");\n }\n } else {\n requestingFreshAd = true;\n\n // get a uithreadHandler for post callbacks.\n if (uiThreadHandler == null) {\n uiThreadHandler = new Handler();\n }\n\n // Get the new ad on a background thread so the UI thread isn't blocked.\n new Thread() {\n public void run() {\n try {\n // Get a new Ad from AdMob.\n Context context = getContext();\n Ad newAd = AdRequester.requestAd(context, keywords, searchQuery);\n\n if (newAd != null) // we got an ad back\n {\n synchronized (this) {\n // Did we get a different ad than we're already showing?\n // always rotate if in test mode.\n if ((ad != null) && newAd.equals(ad.getAd()) && !AdManager.isInTestMode()) {\n if (Log.isLoggable(AdManager.LOG, Log.DEBUG)) {\n Log.d(AdManager.LOG, \"Received the same ad we already had. Discarding it.\");\n }\n\n requestingFreshAd = false;\n } else // let's show our brand new ad!\n {\n // Create a view for the ad.\n final boolean firstAd = (ad == null);\n final int visibility = AdView.super.getVisibility();\n\n final AdContainer newAdContainer = new AdContainer(newAd, context);\n newAdContainer.setBackgroundColor(getBackgroundColor());\n newAdContainer.setTextColor(getTextColor());\n newAdContainer.setVisibility(visibility);\n LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, HEIGHT);\n newAdContainer.setLayoutParams(params);\n\n // Notify the client event listener.\n if (listener != null) {\n try {\n listener.onNewAd();\n listener.onReceiveAd(AdView.this);\n } catch (Exception e) {\n Log.w(AdManager.LOG, \"Unhandled exception raised in your AdListener.onReceiveAd.\", e);\n }\n }\n\n // Force this view to show the newAdContainer view.\n uiThreadHandler.post(new Runnable() {\n public void run() {\n try {\n // Place the ad container into this view group.\n addView(newAdContainer);\n\n // Perform an animation to swap the new ad for the old.\n if (visibility == View.VISIBLE) {\n if (firstAd) {\n applyFadeIn(newAdContainer);\n } else {\n applyRotation(newAdContainer);\n }\n } else {\n // Just record the new ad for when this becomes visible.\n ad = newAdContainer;\n }\n } catch (Exception e) {\n Log.e(AdManager.LOG, \"Unhandled exception placing AdContainer into AdView.\", e);\n } finally {\n // Done requesting a new ad.\n requestingFreshAd = false;\n }\n }\n });\n }\n }\n } else // Did not get an ad back\n {\n // Notify the client event listener.\n if (listener != null) {\n try {\n listener.onFailedToReceiveAd(AdView.this);\n } catch (Exception e) {\n Log.w(AdManager.LOG, \"Unhandled exception raised in your AdListener.onFailedToReceiveAd.\", e);\n }\n }\n\n requestingFreshAd = false;\n }\n } catch (Exception e) {\n Log.e(AdManager.LOG, \"Unhandled exception requesting a fresh ad.\", e);\n requestingFreshAd = false;\n }\n }\n }.start();\n }\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n mInterstitialAd = interstitialAd;\n Log.i(\"TAG\", \"onAdLoaded\");\n }", "@Override\n public void onAdClosed() {\n vInterstitialAdEntertainingFactActivity.loadAd(new AdRequest.Builder().build());\n }", "@Override\n public void onAdClicked(BannerAd ad) {\n Log.d(TAG, \"User clicked on banner\");\n }", "@Override\n public void onReceiveAd(Ad ad) {\n ArrayList<NativeAdDetails> nativeAdsList = startAppNativeAd.getNativeAds();\n if (nativeAdsList.size() > 0){\n nativeAd = nativeAdsList.get(0);\n }\n\n // Verify that an ad was retrieved\n if (nativeAd != null){\n\n // When ad is received and displayed - we MUST send impression\n nativeAd.sendImpression(ActHome.this);\n }\n }", "@Override\n public void onAdReady(final String target) {\n // The SDK has successfully downloaded an ad, and is ready to show\n this.cordova.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String event = \"javascript:cordova.fireDocumentEvent('onAdReady', {'zone':'\"+target+\"'})\";\n webView.loadUrl(event);\n }\n });\n\n }", "@Override\r\n\t\t\tpublic void onAdClick() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void adClicked(Ad arg0) {\n\n }", "@Override\n public void adClicked(Ad arg0) {\n\n }" ]
[ "0.68647414", "0.68647414", "0.68647414", "0.68647414", "0.68647414", "0.68647414", "0.68647414", "0.68647414", "0.6857893", "0.6833576", "0.67969733", "0.67968816", "0.6749417", "0.674301", "0.67343247", "0.67273706", "0.6727043", "0.6669089", "0.6648786", "0.6600452", "0.6519181", "0.65151024", "0.651121", "0.6506324", "0.6503172", "0.6460389", "0.6431466", "0.64288944", "0.6384183", "0.6384183", "0.6384183", "0.6373322", "0.6355201", "0.63522476", "0.63522476", "0.63522476", "0.63522476", "0.63522476", "0.63522476", "0.63522476", "0.63522476", "0.63522476", "0.63522476", "0.63522476", "0.63522476", "0.6329845", "0.63226587", "0.6316699", "0.6273903", "0.6273903", "0.62710625", "0.6269177", "0.6266577", "0.6261975", "0.625569", "0.625569", "0.625569", "0.625569", "0.625569", "0.625569", "0.625569", "0.625569", "0.6250338", "0.6250162", "0.62477535", "0.6240765", "0.6240765", "0.623746", "0.6203288", "0.6197422", "0.61965865", "0.6185905", "0.6174192", "0.61626726", "0.6161162", "0.61471456", "0.61418927", "0.6136772", "0.6136772", "0.61243355", "0.6101159", "0.6091234", "0.6091234", "0.608988", "0.6089527", "0.6065668", "0.60452396", "0.60434496", "0.60372186", "0.6022711", "0.60138625", "0.6007716", "0.600763", "0.5983792", "0.59802526", "0.5964611", "0.5962319", "0.5960675", "0.59336615", "0.59336615" ]
0.6787796
12
Ad request was not filled
@Override public void onRequestNotFilled(AdColonyZone zone) { notifyFailed("no_fill"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAdError(BannerAd ad, String error) {\n Log.d(TAG, \"Something went wrong with the request: \" + error);\n }", "@Override\n public void onRequestFilled(AdColonyInterstitial ad) {\n mAd = ad;\n notifyLoaded();\n }", "private void requestNewBanner(){\n AdView mAdView = (AdView) findViewById(R.id.adView);\n AdRequest adRequest = new AdRequest.Builder().build();\n mAdView.loadAd(adRequest);\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.d(\"TAG\",\"Ad failed to load\");\n }", "@Override\n public void onAdNotAvailable(AdFormat adFormat) {\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: No ad available \");\n Toast.makeText(MainActivity.this, \"RV: No ad available \", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdNotAvailable(AdFormat adFormat) {\n offerwallIntent = null;\n Log.d(TAG, \"OW: No ad available\");\n Toast.makeText(MainActivity.this, \"OW: No ad available\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onAdLoaded(Ad ad) {\n }", "@Override\r\n public void onAdLoaded() {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n }", "@Override\n public void onAdClosed() {\n mAdView.loadAd(adRequest);\n }", "@Override\n public void onAdLoaded(BannerAd ad) {\n Log.d(TAG, \"Banner successfully loaded\");\n\n }", "@Override\r\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"onAdFailedToLoad\");\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdNotAvailable(AdFormat adFormat) {\n interstitialIntent = null;\n Log.d(TAG, \"IS: No ad available\");\n Toast.makeText(MainActivity.this, \"IS: No ad available\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onAdLoaded() {\n Log.d(\"TAG\",\"Ad loaded\");\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n //pd.cancel();\n interstitialAd.show();\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"onAdFailedToLoad\");\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"onAdFailedToLoad\");\n }", "@Override\n public void onAdFailedToLoad(int i) {\n Log.w(TAG, \"onAdFailedToLoad:\" + i);\n }", "@Override\n public void onRequestError(RequestError requestError) {\n interstitialIntent = null;\n Log.d(TAG, \"IS: Something went wrong with the request: \" + requestError.getDescription());\n Toast.makeText(MainActivity.this, \"IS: Something went wrong with the request: \", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onRewardedAdFailedToLoad(LoadAdError adError) {\n }", "@Override\n public void onRewardedAdFailedToLoad(LoadAdError adError) {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n interstitialAd.show();\n enableButton();\n }", "@Override\n public void adNotDisplayed(Ad arg0) {\n\n }", "@Override\n public void adNotDisplayed(Ad arg0) {\n\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"xxx WelcomeAd onAdFailedToLoad: \" + errorCode);\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n\n }", "@Override\n\tpublic void onAdError(String arg0) {\n\t\t\n\t}", "@Override\n public void onRewardedAdFailedToShow(AdError adError) {\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "@Override\n public void onAdOpened() {\n }", "@Override\r\n\tpublic void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {\n\t\tLog.d(\"AdMob\", \"失敗\");\r\n\t arg0.stopLoading();\r\n\t arg0.loadAd(new AdRequest());\r\n\t}", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"xxx Banner onAdFailedToLoad: \" + errorCode);\n }", "public boolean hasAd() {\n return ad != null;\n }", "@Override\n public void onAdFailedToLoad(LoadAdError adError) {\n adContainerView.setVisibility(View.GONE);\n }", "@Override\n public void run() {\n interstitial.setAdUnitId(AdmodData.Admod.interstial_ap_id);\n // Request for Ads\n AdRequest adRequest = new AdRequest.Builder().addTestDevice(\"E4195931F1BE473915004D979ED94A8E\").build();\n //AdRequest adRequest = new AdRequest.Builder().build();\n interstitial.loadAd(adRequest);\n\n\n // Prepare an Interstitial Ad Listener\n\n interstitial.setAdListener(new AdListener() {\n public void onAdLoaded() {\n\n displayInterstitial();\n }\n\n @Override\n public void onAdFailedToLoad(int errorCode) {\n Log.e(\"Full\", \"Full ADS Error\" + errorCode);\n super.onAdFailedToLoad(errorCode);\n\n }\n\n });\n\n\n }", "public void requestFreshAd() {\n // Get a message from AdMob to the developer here. Only run once and only run on the emulator.\n Context context = getContext();\n if (AdManager.getUserId(context) == null && !checkedForMessages) // null means this is emulator.\n {\n // go get the developer messages.\n checkedForMessages = true;\n retrieveDeveloperMessage(context);\n }\n\n // Only get an ad when this view is visible and not already getting an ad.\n if (super.getVisibility() != View.VISIBLE) {\n // Getting an ad when the view is hidden means it might not be shown to the user.\n // This greatly impairs AdMob's ability to optimize ads.\n Log.w(AdManager.LOG, \"Cannot requestFreshAd() when the AdView is not visible. Call AdView.setVisibility(View.VISIBLE) first.\");\n } else if (requestingFreshAd) {\n if (Log.isLoggable(AdManager.LOG, Log.DEBUG)) {\n Log.d(AdManager.LOG, \"Ignoring requestFreshAd() because we are already getting a fresh ad.\");\n }\n } else {\n requestingFreshAd = true;\n\n // get a uithreadHandler for post callbacks.\n if (uiThreadHandler == null) {\n uiThreadHandler = new Handler();\n }\n\n // Get the new ad on a background thread so the UI thread isn't blocked.\n new Thread() {\n public void run() {\n try {\n // Get a new Ad from AdMob.\n Context context = getContext();\n Ad newAd = AdRequester.requestAd(context, keywords, searchQuery);\n\n if (newAd != null) // we got an ad back\n {\n synchronized (this) {\n // Did we get a different ad than we're already showing?\n // always rotate if in test mode.\n if ((ad != null) && newAd.equals(ad.getAd()) && !AdManager.isInTestMode()) {\n if (Log.isLoggable(AdManager.LOG, Log.DEBUG)) {\n Log.d(AdManager.LOG, \"Received the same ad we already had. Discarding it.\");\n }\n\n requestingFreshAd = false;\n } else // let's show our brand new ad!\n {\n // Create a view for the ad.\n final boolean firstAd = (ad == null);\n final int visibility = AdView.super.getVisibility();\n\n final AdContainer newAdContainer = new AdContainer(newAd, context);\n newAdContainer.setBackgroundColor(getBackgroundColor());\n newAdContainer.setTextColor(getTextColor());\n newAdContainer.setVisibility(visibility);\n LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, HEIGHT);\n newAdContainer.setLayoutParams(params);\n\n // Notify the client event listener.\n if (listener != null) {\n try {\n listener.onNewAd();\n listener.onReceiveAd(AdView.this);\n } catch (Exception e) {\n Log.w(AdManager.LOG, \"Unhandled exception raised in your AdListener.onReceiveAd.\", e);\n }\n }\n\n // Force this view to show the newAdContainer view.\n uiThreadHandler.post(new Runnable() {\n public void run() {\n try {\n // Place the ad container into this view group.\n addView(newAdContainer);\n\n // Perform an animation to swap the new ad for the old.\n if (visibility == View.VISIBLE) {\n if (firstAd) {\n applyFadeIn(newAdContainer);\n } else {\n applyRotation(newAdContainer);\n }\n } else {\n // Just record the new ad for when this becomes visible.\n ad = newAdContainer;\n }\n } catch (Exception e) {\n Log.e(AdManager.LOG, \"Unhandled exception placing AdContainer into AdView.\", e);\n } finally {\n // Done requesting a new ad.\n requestingFreshAd = false;\n }\n }\n });\n }\n }\n } else // Did not get an ad back\n {\n // Notify the client event listener.\n if (listener != null) {\n try {\n listener.onFailedToReceiveAd(AdView.this);\n } catch (Exception e) {\n Log.w(AdManager.LOG, \"Unhandled exception raised in your AdListener.onFailedToReceiveAd.\", e);\n }\n }\n\n requestingFreshAd = false;\n }\n } catch (Exception e) {\n Log.e(AdManager.LOG, \"Unhandled exception requesting a fresh ad.\", e);\n requestingFreshAd = false;\n }\n }\n }.start();\n }\n }", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n Log.e(TAG, \"Interstitial ad displayed.\");\n // pd.cancel();\n // showDialog(\"Success!\", \"Adfly earning has been activated successfully. You will see Adfly ads when you click links in articles.\");\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdLoaded() {\n mButton.setEnabled(true);\n if (mAd.isLoaded()){\n mAd.show();\n }\n\n }", "@Override\n public void onAdAvailable(Intent intent) {\n interstitialIntent = intent;\n Log.d(TAG, \"IS: Offers are available\");\n Toast.makeText(MainActivity.this, \"IS: Offers are available\", Toast.LENGTH_SHORT).show();\n showOW.setEnabled(false);\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n// interstitialAd.show();\n }", "boolean hasAdParameter();", "@Override\n\tpublic void getDisplayAdResponseFailed(String arg0) {\n\t\t\n\t}", "@Override\n public void onAdFailedToLoad(int errorCode) {\n sponsoredLinearLayout.setVisibility(View.GONE);\n adView.setVisibility(View.GONE);\n adProgressBar.setVisibility(View.GONE);\n adFailedLinearLayout.setVisibility(View.VISIBLE);\n }", "@Override\n\tpublic void onAdFailed(String arg0) {\n\t\tLog.i(\"AdBannerActivity\", \"onAdFailed\");\n\t}", "@Override\n public void onExpiring(AdColonyInterstitial ad) {\n }", "@Override\n public void onAdAvailable(Intent intent) {\n rewardedVideoIntent = intent;\n Log.d(TAG, \"RV: Offers are available\");\n showRV.setEnabled(true);\n Toast.makeText(MainActivity.this, \"RV: Offers are available \", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onError(Ad ad, AdError adError) {\n Log.e(TAG, \"Native ad failed to load: \" + adError.getErrorMessage());\n }", "private static AdRequest getAdRequest() {\n\tAdRequest request = new AdRequest();\n\n\t// add test devices\n\trequest.addTestDevice(AdRequest.TEST_EMULATOR);\n\trequest.addTestDevice(\"CF95DC53F383F9A836FD749F3EF439CD\");\n\n\tLog.d(AbstractSmsActivity.OLD_SCHOOL_SMS, \"New AdRequest: Location=[\"\n\t\t+ request.getLocation() + \"] Gender=[\" + request.getGender()\n\t\t+ \"] Birthday=[\" + request.getBirthday() + \"] Keywords=[\"\n\t\t+ request.getKeywords() + \"]\");\n\n\treturn request;\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n logger.logError(TAG, \"ad failed to load: error code: \" + errorCode);\n }", "@Override\n public void onAdFailedToLoad(LoadAdError adError) {\n Log.d(\"ADMOB_ERROR_CODE\", \"admob error code: \" + adError);\n }", "private void LoadAdd() {\n\t\tAdRequest adRequest = new AdRequest.Builder().build();\n\t\tmInterstitialAd.loadAd(adRequest);\n\t\t// Toast.makeText(MainActivity.this, \"loading\",\n\t\t// Toast.LENGTH_SHORT).show();\n\t}", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"xxx WelcomeAd onAdLoaded\");\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.e(\"MainActivity\", \"The previous ad failed to load. Attempting to\"\n + \" load the next ad in the items list at position \" + index);\n loadNativeExpressAd(index + ITEMS_PER_AD);\n }", "@Override\n\t\t\tpublic void onAdClosed() {\n\t\t\t\tmInterstitialAd.loadAd(adRequest);\n\t\t\t}", "public void onFailedToReceiveAd(AdView adView);", "private void loadInterstitial(AdRequest adRequest) {\n mInterstitialAd.loadAd(adRequest);\n }", "@Override\r\n public void onAdOpened() {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n if (nativeAdfb == null || nativeAdfb != ad) {\n return;\n }\n // Inflate Native Ad into Container\n }" ]
[ "0.69066715", "0.68409884", "0.6650235", "0.6438838", "0.6415855", "0.6398263", "0.6343347", "0.6343347", "0.6343347", "0.6343347", "0.6343347", "0.6343347", "0.6343347", "0.6343347", "0.6330501", "0.63276595", "0.6309113", "0.6275098", "0.6275098", "0.62681484", "0.6244699", "0.61892265", "0.6188685", "0.6174215", "0.6158711", "0.61578137", "0.61578137", "0.61578137", "0.61578137", "0.61578137", "0.61578137", "0.61578137", "0.61578137", "0.61578137", "0.61578137", "0.61578137", "0.61517084", "0.6145413", "0.6091487", "0.60720986", "0.6055467", "0.6055467", "0.60438347", "0.60345376", "0.59912074", "0.59912074", "0.599013", "0.5957265", "0.5957265", "0.59281945", "0.59015405", "0.5895057", "0.58942586", "0.5883895", "0.5881966", "0.5881966", "0.5877291", "0.586375", "0.5848343", "0.58348346", "0.5818195", "0.58165586", "0.5815314", "0.5813709", "0.57966316", "0.57966316", "0.57966316", "0.57856", "0.5782292", "0.57779855", "0.5770258", "0.57636434", "0.5748649", "0.5743352", "0.5741767", "0.57378584", "0.57365894", "0.5727799", "0.5725194", "0.5716163", "0.57096124", "0.5705485", "0.56964064", "0.56964064", "0.56964064", "0.56964064", "0.56964064", "0.56964064", "0.56964064", "0.56964064", "0.56964064", "0.56964064", "0.56964064", "0.56964064", "0.5675837", "0.5671856", "0.56699497", "0.5665452", "0.56574273", "0.56561697" ]
0.63213456
16
Ad opened, reset UI to reflect state change
@Override public void onOpened(AdColonyInterstitial ad) { notifyShown(); notifyStarted(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAdOpened() {\n mAdView.setVisibility(View.VISIBLE);\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n interstitialAd.show();\n enableButton();\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdLoaded() {\n mButton.setEnabled(true);\n if (mAd.isLoaded()){\n mAd.show();\n }\n\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\r\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdLoaded() {\n mAdView.setVisibility(View.VISIBLE);\n }", "@Override\n public void onAdOpened() {\n Log.d(\"TAG\",\"Ad opened\");\n }", "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"onAdOpened\");\n }", "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"onAdOpened\");\n }", "@Override\n public void onAdClosed() {\n vInterstitialAdEntertainingFactActivity.loadAd(new AdRequest.Builder().build());\n }", "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"onAdOpened\");\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n //pd.cancel();\n interstitialAd.show();\n }", "@Override\n public void onAdLoaded() {\n adContainerView.setVisibility(View.VISIBLE);\n }", "private void showAd() {\n if (mInterstitialAd.isLoaded()) {\n mInterstitialAd.show();\n } else {\n moveToReviewActivity();\n }\n }", "@Override\n public void onAdClosed() {\n mAdView.loadAd(adRequest);\n }", "@Override\n public void onAdClosed() {\n startActivity(new Intent(MainActivity.this,new InterstitialActivity().getClass()));\n mInterstitialAd.loadAd(new AdRequest.Builder().build());\n }", "@Override\n public void onAdClosed() {\n Toast.makeText(Apply3Activity.this,\"Ad closed\",Toast.LENGTH_SHORT).show();\n Log.d(\"TAG\",\"Ad Closed\");\n }", "@Override\n public void onAdClosed() {\n Intent intent1 = new Intent(Home.this, RoomIdPassActivity.class);\n startActivity(intent1);\n mInterstitialAd1.loadAd(new AdRequest.Builder().build());\n }", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n Log.e(TAG, \"Interstitial ad displayed.\");\n // pd.cancel();\n // showDialog(\"Success!\", \"Adfly earning has been activated successfully. You will see Adfly ads when you click links in articles.\");\n }", "@Override\r\n public void onAdLoaded()//When interstitial is ready to be shoved\r\n {\r\n mInterstitial.showAd();\r\n }", "@Override\n public void onAdShowedFullScreenContent() {\n mInterstitialAd = null;\n Log.d(\"TAG\", \"The ad was shown.\");\n }", "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"xxx Banner onAdOpened\");\n }", "public void onAdClosed() {\n\t\t\t}", "@Kroll.method\n public void show(){\n if (isShowingAd) {\n Log.w(TAG, \"The App Open Ad is already showing.\");\n return;\n }\n\n // If the app open ad is still loading, you can not show the ad.\n if (isLoadingAd){\n Log.w(TAG, \"The App Open Ad is still loading. Hang on!\");\n return;\n }\n\n // If the app open ad is not available yet, invoke the callback then load the ad.\n if (!isAdAvailable()) {\n Log.w(TAG, \"The App Open Ad is not available. Did you call load() method?\");\n if (hasListeners(AdmobModule.AD_NOT_READY)) {\n KrollDict rewardedError = new KrollDict();\n rewardedError.put(\"message\", \"Ad not ready yet! You should run the method load() first and wait for the callbacks\");\n fireEvent(AdmobModule.AD_NOT_READY, rewardedError);\n }\n // load();\n return;\n }\n\n if(isAdAvailable()){\n isShowingAd = true;\n appOpenAd.show(TiApplication.getAppCurrentActivity());\n }\n }", "@Override\n public void onAdClosed() {\n mInterstitialAd.loadAd(new AdRequest.Builder().build());\n }", "@Override\n public void onAdLoaded() {\n sponsoredLinearLayout.setVisibility(View.VISIBLE);\n adView.setVisibility(View.VISIBLE);\n adProgressBar.setVisibility(View.GONE);\n adFailedLinearLayout.setVisibility(View.GONE);\n }", "public void open() {\n this.isClosed = false;\n }", "@Override\r\n\t\t\tpublic void onAdReceive() {\n\t\t\t\tad.showAd();\r\n\t\t\t}", "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"xxx WelcomeAd onAdOpened\");\n }", "@Override\n public void onAdClosed() {\n }", "public void open() {\n isOpen = true;\n }", "@Override\n public void onAdClosed() {\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"xxx Banner onAdLoaded; isShow==\" + view.isShown());\n }", "@Override\n public void onAdClosed() {\n mInterstitialAd.loadAd(new AdRequest.Builder().build());\n }", "@Override\n public void onAdClosed() {\n mInterstitialAd.loadAd(new AdRequest.Builder().build());\n }", "@Override\n public void adDisplayed(Ad ad) {\n numberOfPageSelected = 0;\n// pageThresHold *= 2;\n }", "@Override\n public void onAdClosed() {\n mInterstitialAd.loadAd(new AdRequest.Builder().build());\n }", "private void startGame() {\n if (!interstitialAd.isLoading() && !interstitialAd.isLoaded()) {\n AdRequest adRequest = new AdRequest.Builder().build();\n interstitialAd.loadAd(adRequest);\n }\n\n // retryButton.setVisibility(View.INVISIBLE);\n\n }", "@Override\n public void onAdClosed() {\n }", "@Override\n public void onAdClosed() {\n }", "@Override\n public void onAdClosed() {\n }", "@Override\n public void onAdClosed() {\n }", "@Override\n public void onAdClosed() {\n }", "@Override\n public void onAdClosed() {\n }", "@Override\n public void onAdClosed() {\n }", "@Override\n public void onAdClosed() {\n }", "@Override\n public void onAdClosed() {\n }", "@Override\n public void onAdClosed() {\n }", "public void onShow() {\n this.controller.notifyAdEvent(\"adsWillShow\");\n }", "@Override\n public void onAdClosed() {\n Intent intent=new Intent(UpdateActivity.this,PurchaseActivity.class);\n startActivity(intent);\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n// interstitialAd.show();\n }", "@Override\n public void onClick(View view) {\n if (mInterstitialAd.isLoaded()) {\n mInterstitialAd.show();\n } else {\n goToNextActivity();\n }\n }", "@Override\r\n public void onAdClosed() {\n super.onAdClosed();\r\n finish();\r\n }", "private void showIntAdd() {\n if (mInterstitialAd != null && mInterstitialAd.isLoaded()) {\n mInterstitialAd.show();\n } else {\n finish();\n }\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdClicked() {\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n interstitialAd.show(context);\n\n }", "public void onChangedAdBtnPressed() {\n String uniqueID = advertisement.getUniqueID();\n view.showEditView(uniqueID);\n }", "@Override\n public void onAdClicked() {\n }", "@Override\r\n public void onAdClicked() {\n }", "@Override\n\t\t\tpublic void onAdClosed() {\n\t\t\t\tmInterstitialAd.loadAd(adRequest);\n\t\t\t}", "@Override\n public void onAdClicked(Ad ad) {\n }", "public void setOpened(boolean opened) {\r\n\t\tthis.opened = opened;\r\n\t}", "private void goalsConfigButton(){\n if(!goalsOpened){\n goalsUI = new GoalsUI(this, false);\n goalsOpened = true;\n }\n }", "@Override\r\n\t\t\tpublic void onAdClose() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAdClick() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onOpened() {\n menu.callOnResumeForUpdate();\n menu.showData();\n isMenuShowing = true;\n }", "public void open() {\n\n\t\tresize();\n\t\tgenerateLinks();\n\t\tshowing = true;\n\n\t}", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n\n }", "@Override\n public void onAdLoaded() {\n if (mInterstitialAd.isLoaded()) {\n mInterstitialAd.show();\n } else {\n Log.d(\"TAG\", \"The interstitial wasn't loaded yet.\");\n }\n }", "@Override\n public void onAdClosed() {\n finish();\n }", "private void displayAd() {\n\t\tif (mInterstitialAd != null && mInterstitialAd.isLoaded()) {\n\t\t\tmInterstitialAd.show();\n\t\t} else {\n\t\t\t// Toast.makeText(MainActivity.this, \"Ad did not load\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t// LoadAdd();\n\t\t\t/*\n\t\t\t * if (!mInterstitialAd.isLoaded()) { Toast.makeText(mcq.this,\n\t\t\t * \"not load\", Toast.LENGTH_SHORT).show(); } else {\n\t\t\t * Toast.makeText(mcq.this, \" not \", Toast.LENGTH_SHORT) .show(); }\n\t\t\t */\n\t\t}\n\t}", "public void open(){\n \ttriggerTimer.reset();\n \tisClosed = false;\n \tClawAct.set(false);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "@Override\n public void onAdAvailable(Intent intent) {\n interstitialIntent = intent;\n Log.d(TAG, \"IS: Offers are available\");\n Toast.makeText(MainActivity.this, \"IS: Offers are available\", Toast.LENGTH_SHORT).show();\n showOW.setEnabled(false);\n }", "@Override\n public void adHidden(Ad ad) {\n\n }", "@Override\n public void onAdClosed() {\n Log.i(\"Ads\", \"xxx WelcomeAd onAdClosed\");\n }", "@Override\n public void onAdClicked(BannerAd ad) {\n Log.d(TAG, \"User clicked on banner\");\n }" ]
[ "0.7469309", "0.6760063", "0.66967946", "0.66471606", "0.66471606", "0.66471606", "0.66471606", "0.66471606", "0.66471606", "0.66471606", "0.66471606", "0.66471606", "0.66471606", "0.66471606", "0.66471606", "0.6635884", "0.66133744", "0.66133744", "0.66133744", "0.65572286", "0.65174776", "0.6407035", "0.6178298", "0.61609596", "0.61609596", "0.6144747", "0.61379343", "0.6135904", "0.6135083", "0.6080057", "0.6002699", "0.5996378", "0.5982315", "0.59754694", "0.5948497", "0.5934359", "0.59204125", "0.59200835", "0.5892669", "0.5891225", "0.58890444", "0.5866688", "0.5853846", "0.5848576", "0.5834375", "0.58282965", "0.58257693", "0.5824912", "0.5823487", "0.5812846", "0.5812846", "0.5809846", "0.5808452", "0.5806716", "0.57818884", "0.57818884", "0.57818884", "0.57818884", "0.57818884", "0.57818884", "0.57818884", "0.57818884", "0.57818884", "0.57818884", "0.5777718", "0.5774717", "0.5764872", "0.57546735", "0.5750024", "0.5741786", "0.5733853", "0.5728225", "0.5728225", "0.5728225", "0.5728225", "0.5728225", "0.5728225", "0.5728225", "0.5728225", "0.57277733", "0.571561", "0.57004", "0.56782967", "0.5674652", "0.56746143", "0.56719023", "0.5665327", "0.56333596", "0.5633276", "0.55970216", "0.5587389", "0.5585545", "0.55824804", "0.558045", "0.5577923", "0.5573642", "0.55509555", "0.552079", "0.5498674", "0.54939175" ]
0.7082112
1
Request a new ad if ad is expiring
@Override public void onExpiring(AdColonyInterstitial ad) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void requestNewBanner(){\n AdView mAdView = (AdView) findViewById(R.id.adView);\n AdRequest adRequest = new AdRequest.Builder().build();\n mAdView.loadAd(adRequest);\n }", "public void requestFreshAd() {\n // Get a message from AdMob to the developer here. Only run once and only run on the emulator.\n Context context = getContext();\n if (AdManager.getUserId(context) == null && !checkedForMessages) // null means this is emulator.\n {\n // go get the developer messages.\n checkedForMessages = true;\n retrieveDeveloperMessage(context);\n }\n\n // Only get an ad when this view is visible and not already getting an ad.\n if (super.getVisibility() != View.VISIBLE) {\n // Getting an ad when the view is hidden means it might not be shown to the user.\n // This greatly impairs AdMob's ability to optimize ads.\n Log.w(AdManager.LOG, \"Cannot requestFreshAd() when the AdView is not visible. Call AdView.setVisibility(View.VISIBLE) first.\");\n } else if (requestingFreshAd) {\n if (Log.isLoggable(AdManager.LOG, Log.DEBUG)) {\n Log.d(AdManager.LOG, \"Ignoring requestFreshAd() because we are already getting a fresh ad.\");\n }\n } else {\n requestingFreshAd = true;\n\n // get a uithreadHandler for post callbacks.\n if (uiThreadHandler == null) {\n uiThreadHandler = new Handler();\n }\n\n // Get the new ad on a background thread so the UI thread isn't blocked.\n new Thread() {\n public void run() {\n try {\n // Get a new Ad from AdMob.\n Context context = getContext();\n Ad newAd = AdRequester.requestAd(context, keywords, searchQuery);\n\n if (newAd != null) // we got an ad back\n {\n synchronized (this) {\n // Did we get a different ad than we're already showing?\n // always rotate if in test mode.\n if ((ad != null) && newAd.equals(ad.getAd()) && !AdManager.isInTestMode()) {\n if (Log.isLoggable(AdManager.LOG, Log.DEBUG)) {\n Log.d(AdManager.LOG, \"Received the same ad we already had. Discarding it.\");\n }\n\n requestingFreshAd = false;\n } else // let's show our brand new ad!\n {\n // Create a view for the ad.\n final boolean firstAd = (ad == null);\n final int visibility = AdView.super.getVisibility();\n\n final AdContainer newAdContainer = new AdContainer(newAd, context);\n newAdContainer.setBackgroundColor(getBackgroundColor());\n newAdContainer.setTextColor(getTextColor());\n newAdContainer.setVisibility(visibility);\n LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, HEIGHT);\n newAdContainer.setLayoutParams(params);\n\n // Notify the client event listener.\n if (listener != null) {\n try {\n listener.onNewAd();\n listener.onReceiveAd(AdView.this);\n } catch (Exception e) {\n Log.w(AdManager.LOG, \"Unhandled exception raised in your AdListener.onReceiveAd.\", e);\n }\n }\n\n // Force this view to show the newAdContainer view.\n uiThreadHandler.post(new Runnable() {\n public void run() {\n try {\n // Place the ad container into this view group.\n addView(newAdContainer);\n\n // Perform an animation to swap the new ad for the old.\n if (visibility == View.VISIBLE) {\n if (firstAd) {\n applyFadeIn(newAdContainer);\n } else {\n applyRotation(newAdContainer);\n }\n } else {\n // Just record the new ad for when this becomes visible.\n ad = newAdContainer;\n }\n } catch (Exception e) {\n Log.e(AdManager.LOG, \"Unhandled exception placing AdContainer into AdView.\", e);\n } finally {\n // Done requesting a new ad.\n requestingFreshAd = false;\n }\n }\n });\n }\n }\n } else // Did not get an ad back\n {\n // Notify the client event listener.\n if (listener != null) {\n try {\n listener.onFailedToReceiveAd(AdView.this);\n } catch (Exception e) {\n Log.w(AdManager.LOG, \"Unhandled exception raised in your AdListener.onFailedToReceiveAd.\", e);\n }\n }\n\n requestingFreshAd = false;\n }\n } catch (Exception e) {\n Log.e(AdManager.LOG, \"Unhandled exception requesting a fresh ad.\", e);\n requestingFreshAd = false;\n }\n }\n }.start();\n }\n }", "org.hl7.fhir.Instant addNewIssued();", "private void requestNewInterstitial() {\n mInterstitialAd = new InterstitialAd(this);\n mInterstitialAd.setAdUnitId(getString(R.string.interstitial_ad_unit_id));\n mInterstitialAd.setAdListener(new AdListener() {\n @Override\n public void onAdClosed() {\n requestNewInterstitial();\n Toast.makeText(getApplicationContext(),\"Ad Closed\",Toast.LENGTH_LONG).show();\n goToNextActivity();\n }\n\n @Override\n public void onAdLoaded() {\n super.onAdLoaded();\n Toast.makeText(getApplicationContext(),\"Ad Loaded\",Toast.LENGTH_LONG).show();\n }\n });\n AdRequest adRequest = new AdRequest.Builder().build();\n mInterstitialAd.loadAd(adRequest);\n }", "public void requestNewInterstitial() {\n AdRequest adRequest = new AdRequest.Builder().build();\n\n mInterstitialAd.loadAd(adRequest);\n }", "private void manageRequestIntervalTimer(boolean start) {\n synchronized (this) {\n if (start && (requestInterval > 0)) {\n // Start the timer.\n if (requestIntervalTimer == null) // otherwise the timer is already running\n {\n requestIntervalTimer = new Timer();\n requestIntervalTimer.schedule(new TimerTask() {\n public void run() {\n if (Log.isLoggable(AdManager.LOG, Log.DEBUG)) {\n int secs = requestInterval / 1000;\n\n if (Log.isLoggable(AdManager.LOG, Log.DEBUG)) {\n Log.d(AdManager.LOG, \"Requesting a fresh ad because a request interval passed (\" + secs + \" seconds).\");\n }\n }\n\n requestFreshAd();\n }\n },\n requestInterval, requestInterval);\n }\n } else if ((start == false) || (requestInterval == 0)) {\n // Stop the currently running timer.\n if (requestIntervalTimer != null) {\n requestIntervalTimer.cancel();\n requestIntervalTimer = null;\n }\n }\n }\n }", "boolean isExpired();", "boolean expired();", "boolean hasExpired();", "long getExpiration();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.PaymentDelay addNewPaymentDelay();", "boolean hasExpirationDate();", "@SuppressWarnings(\"unused\")\n void expire();", "@Override\n\tpublic boolean isExpired();", "void setExpired(boolean expired);", "long getExpirationDate();", "@Override\n public void setExpiration( Date arg0)\n {\n \n }", "@Scheduled(fixedRate = checkRate)\n public void CheckExpired() {\n log.info(\"Checking if links expired\");\n try {\n for(ShortURL s : urlList) {\n // Si la fecha guardada es antes que este momento\n Date then1 = s.getExpirationDate();\n java.util.Date then2= new java.util.Date(then1.getTime());\n Instant then = then2.toInstant();\n Instant now = ZonedDateTime.now().toInstant();\n if(then.isBefore(now)){\n log.info(\"URL {} expired.\", s.getUri().toString());\n s.setMode(HttpStatus.GONE.value());\n }\n }\n } catch( NullPointerException e) {\n //No se ha inicializado aun\n }\n\n }", "Duration getTokenExpiredIn();", "public boolean expired(){\n return !Period.between(dateOfPurchase.plusYears(1), LocalDate.now()).isNegative();\n }", "public Boolean hasCardExpired(Date currentDate);", "boolean isAutoRedeem();", "private void rewardedAds() {\n Log.d(TAG, \"rewardedAds invoked\");\n final RequestCallback requestCallback = new RequestCallback() {\n\n @Override\n public void onAdAvailable(Intent intent) {\n // Store the intent that will be used later to show the video\n rewardedVideoIntent = intent;\n Log.d(TAG, \"RV: Offers are available\");\n showRV.setEnabled(true);\n Toast.makeText(MainActivity.this, \"RV: Offers are available \", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onAdNotAvailable(AdFormat adFormat) {\n // Since we don't have an ad, it's best to reset the video intent\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: No ad available \");\n Toast.makeText(MainActivity.this, \"RV: No ad available \", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onRequestError(RequestError requestError) {\n // Since we don't have an ad, it's best to reset the video intent\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: Something went wrong with the request: \" + requestError.getDescription());\n Toast.makeText(MainActivity.this, \"RV: Something went wrong with the request: \", Toast.LENGTH_SHORT).show();\n }\n };\n\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n RewardedVideoRequester.create(requestCallback)\n .request(MainActivity.this);\n Log.d(TAG, \"RV request: added delay of 5 secs\");\n Toast.makeText(MainActivity.this, \"RV Request: delay of 5 secs\", Toast.LENGTH_SHORT).show();\n }\n }, 5000);\n }", "boolean isExpire(long currentTime);", "@Override\r\n public boolean isAccountNonExpired() {\r\n return true;\r\n }", "public boolean isExpired() {\n return getExpiration() <= System.currentTimeMillis() / 1000L;\n }", "boolean hasExpires();", "Date getExpiredDate();", "boolean isCardApiTicketExpired(String appId);", "boolean hasExpiry();", "@Override\n public void onAdClosed() {\n mInterstitialAd.loadAd(new AdRequest.Builder().build());\n //Set the timer Again\n timer = new AdCountDownTimer(6000,1000);\n timer.start();\n }", "public abstract void expire();", "public boolean isExpired() {\n return ((System.currentTimeMillis() - this.createdTime) >= expiryTime);\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "public boolean isExpired()\n\t{\n\t\tif (TimeRemaining == 0) \n\t\t\treturn true;\n\t\telse return false;\n\t}", "private void interstitialAds() {\n Log.d(TAG, \"interstitialAds invoked\");\n final RequestCallback requestCallback = new RequestCallback() {\n @Override\n public void onAdAvailable(Intent intent) {\n // Store the intent that will be used later to show the interstitial\n interstitialIntent = intent;\n Log.d(TAG, \"IS: Offers are available\");\n Toast.makeText(MainActivity.this, \"IS: Offers are available\", Toast.LENGTH_SHORT).show();\n showOW.setEnabled(false);\n }\n\n @Override\n public void onAdNotAvailable(AdFormat adFormat) {\n // Since we don't have an ad, it's best to reset the interstitial intent\n interstitialIntent = null;\n Log.d(TAG, \"IS: No ad available\");\n Toast.makeText(MainActivity.this, \"IS: No ad available\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onRequestError(RequestError requestError) {\n // Since we don't have an ad, it's best to reset the interstitial intent\n interstitialIntent = null;\n Log.d(TAG, \"IS: Something went wrong with the request: \" + requestError.getDescription());\n Toast.makeText(MainActivity.this, \"IS: Something went wrong with the request: \", Toast.LENGTH_SHORT).show();\n }\n };\n\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n InterstitialRequester.create(requestCallback)\n .request(MainActivity.this);\n Log.d(TAG, \"Interst Request: added delay of 5 secs\");\n }\n }, 5000);\n }", "org.hl7.fhir.Instant getIssued();", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n Log.e(TAG, \"Interstitial ad displayed.\");\n // pd.cancel();\n // showDialog(\"Success!\", \"Adfly earning has been activated successfully. You will see Adfly ads when you click links in articles.\");\n }", "@Override\n public Date getExpiration()\n {\n return null;\n }", "boolean hasExpireDate();", "public void updateAds() {\n }", "boolean withAdvanceInCampaign();", "@Override\npublic boolean isAccountNonExpired() {\n\treturn true;\n}", "boolean checkForExpiration() {\n boolean expired = false;\n\n // check if lease exists and lease expire is not MAX_VALUE\n if (leaseId > -1 && leaseExpireTime < Long.MAX_VALUE) {\n\n long currentTime = getCurrentTime();\n if (currentTime > leaseExpireTime) {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[checkForExpiration] Expiring token at {}: {}\",\n currentTime, this);\n }\n noteExpiredLease();\n basicReleaseLock();\n expired = true;\n }\n }\n\n return expired;\n }", "@Override\n public boolean isAccountNonExpired () {\n return true;\n }", "public boolean isExpired() {\n return System.currentTimeMillis() > this.expiry;\n }", "public boolean canBeUsed() {\r\n\t\tLocalDate today = LocalDate.now();\r\n\r\n\t\tlong daysDifference = ChronoUnit.DAYS.between(today, expirationDate);\r\n\t\tif (daysDifference >= 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);", "public boolean hasExpired(){\n Date now = new Date();\n return now.after(getExpireTime());\n }", "public abstract Date getExpirationDate();", "@Override\n\tpublic void onAdCached(AdType arg0) {\n\t\t\n\t}", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n //pd.cancel();\n interstitialAd.show();\n }", "public boolean hasExpired() {\n return (System.currentTimeMillis() - lastUpdate) > IMAGE_CACHE_EXPIRE;\n }", "void setExpiredDate(Date expiredDate);", "void sessionInactivityTimerExpired(DefaultSession session, long now);", "@Override\n public void onAdAvailable(Intent intent) {\n interstitialIntent = intent;\n Log.d(TAG, \"IS: Offers are available\");\n Toast.makeText(MainActivity.this, \"IS: Offers are available\", Toast.LENGTH_SHORT).show();\n showOW.setEnabled(false);\n }", "@Override\n public void onRequestFilled(AdColonyInterstitial ad) {\n mAd = ad;\n notifyLoaded();\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "public void autoPay() {}", "protected void updateNextLifeSign() {\n nextLifeSignToSend = System.currentTimeMillis() + NotEOFConstants.LIFE_TIME_INTERVAL_CLIENT;\n }", "@Override\n public void onAdClosed() {\n mAdView.loadAd(adRequest);\n }", "@Override\n public void onAdClosed() {\n vInterstitialAdEntertainingFactActivity.loadAd(new AdRequest.Builder().build());\n }", "long getExpires();", "@Override\r\n\tpublic void onRefreshAd() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONREFRESH);\r\n\t}", "@Override\r\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\n public void onAdNotAvailable(AdFormat adFormat) {\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: No ad available \");\n Toast.makeText(MainActivity.this, \"RV: No ad available \", Toast.LENGTH_SHORT).show();\n }", "public synchronized void checkTokenExpiry() {\n if (this.mExpiryDate != null && this.mExpiryDate.getTime() <= System.currentTimeMillis() + REFRESH_THRESHOLD) {\n acquireTokenAsync();\n }\n }", "public int getExpiry();", "public boolean isExpired() {\n\t\treturn this.maturityDt.before(Calendar.getInstance().getTime());\n\t}", "@Override\n public void onAdLoaded(Ad ad) {\n interstitialAd.show();\n enableButton();\n }", "public Boolean isExpired() {\n\t\tCalendar today = Calendar.getInstance();\n\t\treturn today.get(Calendar.DAY_OF_YEAR) != date.get(Calendar.DAY_OF_YEAR);\n\t}", "@Override\n\t\t\tpublic void onAdClosed() {\n\t\t\t\tmInterstitialAd.loadAd(adRequest);\n\t\t\t}", "public boolean isExpired() {\n return age() > this.timeout;\n }", "@Override\n public void onRewardedAdFailedToLoad(LoadAdError adError) {\n }", "@Override\n public void onRewardedAdFailedToLoad(LoadAdError adError) {\n }", "@Override\npublic boolean isAccountNonExpired() {\n\treturn false;\n}", "@Override\n public void onAdNotAvailable(AdFormat adFormat) {\n interstitialIntent = null;\n Log.d(TAG, \"IS: No ad available\");\n Toast.makeText(MainActivity.this, \"IS: No ad available\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onAdNotAvailable(AdFormat adFormat) {\n offerwallIntent = null;\n Log.d(TAG, \"OW: No ad available\");\n Toast.makeText(MainActivity.this, \"OW: No ad available\", Toast.LENGTH_SHORT).show();\n }", "boolean isJsapiTicketExpired(String appId);", "public int getSessionExpireRate();", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "Boolean isAllowingNewAuctions();" ]
[ "0.60802615", "0.605365", "0.6011017", "0.5946901", "0.58731085", "0.5748228", "0.5609359", "0.5605023", "0.5573597", "0.55482215", "0.55308086", "0.54603344", "0.5455689", "0.5431944", "0.5320895", "0.52931935", "0.52749014", "0.52733445", "0.5262129", "0.52275574", "0.52263933", "0.5216881", "0.52120256", "0.52118975", "0.51831037", "0.51799655", "0.513787", "0.51357704", "0.5126597", "0.5115404", "0.51142514", "0.5109963", "0.5105888", "0.5097876", "0.5097876", "0.5097876", "0.50974995", "0.50897807", "0.50897783", "0.5087362", "0.5075608", "0.50665736", "0.50607187", "0.50464356", "0.5044431", "0.50434816", "0.50401795", "0.50368446", "0.50048757", "0.5000742", "0.4999579", "0.49981886", "0.4987355", "0.4980929", "0.49794343", "0.4966692", "0.4955714", "0.4951729", "0.49470788", "0.49396226", "0.49396226", "0.49396226", "0.49261498", "0.49178407", "0.49113512", "0.4908729", "0.49083406", "0.4903607", "0.49028814", "0.49028814", "0.4902585", "0.49011642", "0.48887673", "0.48808092", "0.48780653", "0.48730776", "0.48665252", "0.4865062", "0.4861904", "0.4861904", "0.48549858", "0.48538056", "0.48523477", "0.48512658", "0.48486292", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48451063", "0.48431927" ]
0.6777066
0
// P U B L I C M E T H O D S // // Stops the current drawing and stop listening for location updates.
public void stopDrawing() { LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, this); isDrawing = false; currentDrawing.endLine(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onStop() {\n super.onStop();\n currentLocation.stopLocationUpdates();\n }", "public void onStop(){mainActivity.locationManager.removeUpdates(mainActivity.locationListener);}", "@Override\n public void stop() {\n\n if (mapView != null) {\n mapView.dispose();\n }\n }", "void stopListener()\n {\n\n locationManager.removeUpdates(RetriveLocation.this);\n isListening = false;\n }", "private void onstop() {\n\t\tnearby_baidumap.setMyLocationEnabled(false);// 关闭定位\n\t\tN_locationclient.stop();// 结束定位请求\n\t\tmyOrientationListener.stop();\n\t\tsuper.onStop();\n\n\t}", "public void endDrawing();", "@Override\n public void onStop() {\n super.onStop();\n if(locationEngine != null){\n locationEngine.removeLocationUpdates();\n }\n if(locationLayerPlugin != null){\n locationLayerPlugin.onStop();\n }\n\n mapView.onStop();\n }", "@Override\n public void stop() {\n animatorThread = null;\n\n //Get rid of the objects necessary for double buffering.\n offGraphics = null;\n offImage = null;\n }", "private void stopPeriodicUpdates() {\n\t\tmLocationClient.removeLocationUpdates(this);\n\t\tmConnectionState.setText(R.string.location_updates_stopped);\n\t}", "public void stop() {\n\tanimator = null;\n\toffImage = null;\n\toffGraphics = null;\n }", "@Override protected void onStop() {\n\tsuper.onStop();\n\tm_locManager.removeUpdates(this);\n }", "@Override\n\tpublic void onStop(Context context) {\n\t\tmLocationManager.removeUpdates(listener);\n\t}", "public void stop() {\n\t\tResources.getmScene().unregisterUpdateHandler(time);\n\t\trunning = false;\n\t}", "public void stopTracking()\n {\n pixyThread.interrupt();\n leds.setMode(LEDController.Mode.OFF);\n }", "public void stopUpdatesButtonHandler() {\n if (mRequestingLocationUpdates) {\n mRequestingLocationUpdates = false;\n stopLocationUpdates();\n }\n }", "private void stopLocationUpdates() {\n if (!mRequestingLocationUpdates) {\n Log.e(TAG, \"stopLocationUpdates: updates never requested, no-op.\");\n return;\n }\n\n // It is a good practice to remove location requests when the activity is in a paused or\n // stopped state. Doing so helps battery performance and is especially\n // recommended in applications that request frequent location updates.\n mFusedLocationClient.removeLocationUpdates(mLocationCallback).addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n SunshinePreferences.setRequestUpdates(MainActivity.this, false);\n mRequestingLocationUpdates = false;\n }\n });\n }", "@Override\n\tprotected void onStop() {\n\t\tString log_msg = \"onStop()\";\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\t\n\t\tlocationObtained = false;\n\t\t\n\t\tsuper.onStop();\n\t}", "@Override\n public void stop() throws Exception {\n mapView.dispose();\n map.dispose();\n System.exit(0);\n\n }", "@Override\r\n protected void onStop() {\n super.onStop();\r\n mapview.onStop();\r\n }", "public final void stopListening() {\n if (mIsListening) {\n Log.i(TAG, \"LocationTracked has stopped listening for location updates\");\n mLocationManagerService.removeUpdates(this);\n mIsListening = false;\n } else {\n Log.i(TAG, \"LocationTracked wasn't listening for location updates anyway\");\n }\n }", "public boolean stopLocationService();", "public void stop() {\n setDest(location);\n }", "public void stop()\n\t{\n\t\tindex = 0;\n\t\tlastUpdate = -1;\n\t\tpause();\n\t}", "private void stop() {\r\n\t\tif (!running)\r\n\t\t\treturn;\r\n\t\trunning = false;\r\n\t\ttry {\r\n\t\t\tthread.join();//ends thread to close program correctly\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);//closes canvas\r\n\t\t}\r\n\t}", "public void stopUsingGPS() {\r\n if (locationManager != null) {\r\n // locationManager.removeUpdates(GPSTracker.this);\r\n }\r\n }", "public synchronized void stop() {\n mBTManager = null;\n if(mLocationManager != null) {\n mLocationManager.removeUpdates(mLocationListener);\n mLocationManager.removeNmeaListener(mNmeaMessageListener);\n }\n }", "@Override\n public void deactivate() {\n mListener = null;\n if (mLocationClient != null) {\n mLocationClient.stopLocation();\n mLocationClient.onDestroy();\n }\n mLocationClient = null;\n mLocationOption = null;\n }", "private void endDrawing() {\n\t\tp_view.getHolder().unlockCanvasAndPost(p_canvas);\n\t}", "@Override\n protected void onStop() {\n if (mLocationClient.isConnected()) {\n /*\n * Remove location updates for a listener.\n * The current Activity is the listener, so\n * the argument is \"this\".\n */\n \tmLocationClient.removeLocationUpdates(mDataManager);\n \t\n }\n /*\n * After disconnect() is called, the client is\n * considered \"dead\".\n */\n mLocationClient.disconnect();\n super.onStop();\n }", "public void stopMoving()\n {\n mouthPosition = 0;\n }", "@Override\n protected void onStop() {\n super.onStop();\n mMapView.onStop();\n }", "@Override\n\tpublic void stop() {\n\t\tsetAccelerate(false);\n\t}", "public void stop() {\n this.setCurrentCell(0);\n this.setPicX(0);\n slowDownX();\n slowDownY();\n setMoving(false);\n if (moveDown) {\n this.setPicY(0);\n } else if (moveUp) {\n this.setPicY(211);\n } else if (moveLeft) {\n this.setPicY(141);\n } else if (moveRight) {\n this.setPicY(74);\n }\n }", "@Override\n public void onPause() {\n lm.removeUpdates(locationListener);\n super.onPause();\n }", "public synchronized void stop()\n {\n if (open) {\n //stop = true;\n notifyAll();\n started = false;\n line.stop();\n timeTracker.pause();\n }\n }", "@Override\r\n public void stop() {\n WorldWind.shutDown();\r\n }", "public void stopUsingGPS() {\r\n if (locationManager != null) {\r\n try {\r\n locationManager.removeUpdates(GPSTracker.this);\r\n } catch (SecurityException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "public void stopUpdates();", "void stopUpdateTimer();", "@Override\n public void onReceiveLocation(BDLocation location) {\n if (location == null) {\n return;\n }\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n\n setListData();\n /*if (task != null) {\n task.cancel();\n task = null;\n }\n timer.cancel();*/\n locationClient.unRegisterLocationListener(myListener);\n locationClient.stop();\n }", "@Override\n\tprotected void onStop() {\n\t\t// Disconnecting the client invalidates it.\n\t\tmLocationClient.disconnect();\n\t\tsuper.onStop();\n\t}", "public void stopRinging();", "private void onGPSOff(Location defaultLocation) {\n currentLocation = defaultLocation;\n gpsLocationFound = false;\n requestForValidationOfQibla();\n }", "@Invalidate\n\tpublic synchronized void stop() {\n\t\tSystem.out.println(\"Component is stopping...\");\n\t\tfor (PresenceSensor sensor : presenceSensors) {\n\t\t\tsensor.removeListener(this);\n\t\t}\n\t\tfor (BinaryLight binaryLight : binaryLights) {\n\t\t\tbinaryLight.removeListener(this);\n\t\t}\n\t}", "@Override\r\n protected void onStop() {\r\n // Disconnecting the client invalidates it.\r\n mLocationClient.disconnect();\r\n super.onStop();\r\n }", "public void shutdown() {\n locationManager.removeUpdates(this);\n Log.i(TAG, \"GPS provider closed.\");\n }", "public void stop()\r\n {\r\n breakoutAnimator = null;\r\n }", "@Override\n public void onStop() {\n if (mLocationClient.isConnected()) {\n stopPeriodicUpdates();\n }\n \n\n // After disconnect() is called, the client is considered \"dead\".\n mLocationClient.disconnect();\n\n super.onStop();\n }", "public void stopUsingGPS() {\n if (locationManager != null) {\n locationManager.removeUpdates(GPSTracker.this);\n }\n }", "public static void stopMoving()\n {\n //System.out.println(\"player stopped moving\");\n runSound.stop();\n walkSound.stop();\n }", "public void stop(BundleContext context)\n {\n m_shapetracker.close();\n m_frame.setVisible(false);\n m_frame.dispose();\n }", "public synchronized void stop(){\n\t\tif (tickHandle != null){\n\t\t\ttickHandle.cancel(false);\n\t\t\ttickHandle = null;\n\t\t}\n\t}", "@Override\n public void onPause() {\n super.onPause();\n mMapView.onPause();\n if (mLocationClient != null) {\n mLocationClient.stopLocation();\n }\n// deactivate();\n }", "protected void stopLocationUpdates() {\n // It is a good practice to remove location requests when the activity is in a paused or\n // stopped state. Doing so helps battery performance and is especially\n // recommended in applications that request frequent location updates.\n\n // The final argument to {@code requestLocationUpdates()} is a LocationListener\n // (http://developer.android.com/reference/com/google/android/gms/location/LocationListener.html).\n LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, this);\n }", "protected void stopLocationUpdates() {\n // It is a good practice to remove location requests when the activity is in a paused or\n // stopped state. Doing so helps battery performance and is especially\n // recommended in applications that request frequent location updates.\n\n // The final argument to {@code requestLocationUpdates()} is a LocationListener\n // (http://developer.android.com/reference/com/google/android/gms/location/LocationListener.html).\n LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, this);\n }", "@Override\n\tpublic void onStop() {\n\n\t\t// If the client is connected\n\t\tif (mLocationClient.isConnected()) {\n\t\t\tstopPeriodicUpdates();\n\t\t}\n\n\t\t// After disconnect() is called, the client is considered \"dead\".\n\t\tmLocationClient.disconnect();\n\n\t\tsuper.onStop();\n\t}", "public void stop() {\r\n\t\tisRecording = false;\r\n\t}", "public void stopUsingGPS(){\n if(locationManager != null){\n locationManager.removeUpdates(GPSManager.this);\n }\n }", "public void stopOnClick() {\r\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\r\n // TODO: Consider calling\r\n // ActivityCompat#requestPermissions\r\n // here to request the missing permissions, and then overriding\r\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\r\n // int[] grantResults)\r\n // to handle the case where the user grants the permission. See the documentation\r\n // for ActivityCompat#requestPermissions for more details.\r\n return;\r\n }\r\n locationManager.removeUpdates(this);\r\n }", "@Override\n public void doStop() {\n loc = null;\n sensors().set(SERVICE_STATE, Lifecycle.STOPPING);\n sensors().set(SERVICE_UP, false);\n sensors().set(SERVICE_STATE, Lifecycle.STOPPED);\n }", "protected void stopLocationUpdates()\n {\n if (googleApiClient != null && googleApiClient.isConnected())\n {\n LocationServices.FusedLocationApi.removeLocationUpdates(googleApiClient, this);\n isRequestingLocationUpdates = false;\n }\n }", "public void stopTrackingGeoPushes()\n\t{\n\t\tmContext.stopService(new Intent(mContext, GeoLocationService.class));\n\t}", "@Override\n public void onLocationUnavailableArea(NMapLocationManager locationManager, NGeoPoint myLocation) {\n\n stopMyLocation();\n }", "public void stop() {\r\n\t\t//If the program has an error this will stop the program\r\n\t\ttry {\r\n\t\t\trunning = false;\r\n\t\t\tg.dispose();\r\n\t\t\tthread.join();\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void Stop()\r\n {\r\n super.Stop();\r\n\r\n if (getIsLocal())\r\n {\r\n // stop listening to PropertyChanged events\r\n RemoveEvents();\r\n }\r\n }", "@Override\n protected void onStop() {\n super.onStop();\n if(mvTencentMapView != null) {\n mvTencentMapView.onStop();\n }\n }", "public void stopListening();", "public void onStop () {\t\t\n\t\t\n\t}", "@Override\n\tpublic void stop(){\n\t\tif(this.keyboardListenerIsActive){\n\t\t\tthis.keyboardListener.unregisterNativeHook();\n\t\t\tthis.keyboardListenerIsActive = false;\n\t\t}\n\t\t//If the mouse listener is active\n\t\tif(this.mouseListenerIsActive){\n\t\t\tthis.mouseListener.unregisterNativeHook();\n\t\t\tthis.mouseListenerIsActive = false;\n\t\t}\n\t\t//If the mouse motion listener is active\n\t\tif(this.mouseMotionListenerIsActive){\n\t\t\tthis.mouseMotionListener.unregisterNativeHook();\n\t\t\tthis.mouseMotionListenerIsActive = false;\n\t\t}\n\t\t//If the mouse wheel listener is active\n\t\tif(this.mouseWheelListenerIsActive){\n\t\t\tthis.mouseWheelListener.unregisterNativeHook();\n\t\t\tthis.mouseWheelListenerIsActive = false;\n\t\t}\n\t}", "public void stop(){\n\t\t\n\t}", "@Override\r\n public void stop() {\r\n }", "@Override\r\n public void stop() {\r\n }", "public void removeUpdates(LocationListener listener){\n\t\tlocationListeners.remove(listener);\n\t\tif(locationListeners.size() == 0){\n\t\t\tlocyNavigatorThread.interrupt();\n\t\t\tlocyNavigator.stop();\n\t\t}\n\t}", "private void stop() {\r\n\t\t\tstopped = true;\r\n\t\t}", "public void stop()\r\n\t{\r\n\t\tdoStop = true;\r\n\t}", "public void stopUsingGPS() {\n if (mLocationManager != null) {\n mLocationManager.removeUpdates(GpsLocationListener.this);\n }\n }", "public void stop() {}", "public void stop() {\n\t\tthis.stopper = true;\n\t}", "public void stop() {\n\t\t\n\t}", "private void stopDragging() {\n setDragging(false);\n mouseX = mouseY = prevX = prevY = 0;\n }", "public void stop() {\n enemyTimeline.stop();\n }", "public void stopListening()\n {\n if (listening) {\n sensorManager.cancelTriggerSensor(listener, motion);\n listening = false;\n }\n }", "public void stop(float delta) {\n\t\t\n\t}", "@Override\r\n public void stop() {\r\n\r\n }", "public void stopUpdatesButtonHandler(View view) {\n if (mRequestingLocationUpdates) {\n mRequestingLocationUpdates = false;\n stopLocationUpdates();\n }\n }", "@Override\n public void stop() {}", "@Override\n public void stop() {\n f.setVisible(false);\n }", "public void stop() {\n\t}", "@JavascriptInterface\n public void STOP() {\n sensorManager.unregisterListener(this);\n }", "public void stopUpdatesButtonHandler(View view) {\n if (mRequestingLocationUpdates) {\n mRequestingLocationUpdates = false;\n setButtonsEnabledState();\n stopLocationUpdates();\n }\n }", "public void stop() {\n System.out.println(\"STOP!\");\n xp.stop();\n }", "@Override\r\n\tpublic void stop() {\n\t\t\r\n\t}", "public synchronized void stop() {\n\t\tif (!running)\n\t\t\treturn;\n\t\ttry {\n\t\t\toptions.save();\n\t\t\twindow.dispose();\n\t\t\trunning = false;\n\t\t\tthread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tSystem.exit(1);\n\t}", "public void stop()\n {\n mover.stop();\n }", "public void stopAnimation()\n {\n animationTimer.stop();\n }", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tlocationManager.removeUpdates(this);\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tlocationManager.removeUpdates(this);\n\t}", "public void stop() {\n\t\tthis.flag = false;\n\t\t\n\t\t\n\t}", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }" ]
[ "0.68505925", "0.65016574", "0.64983064", "0.63995", "0.63868237", "0.6382637", "0.637699", "0.6342784", "0.6333819", "0.6268988", "0.622597", "0.6207005", "0.6184872", "0.61659455", "0.6163041", "0.61191064", "0.6113971", "0.6093456", "0.6087361", "0.60842717", "0.6081077", "0.60628456", "0.6051508", "0.60507834", "0.60468096", "0.6026848", "0.6022773", "0.5968254", "0.594359", "0.5940462", "0.5933312", "0.5922474", "0.59192365", "0.58928627", "0.58862907", "0.58759695", "0.5845471", "0.5838221", "0.58226395", "0.5820998", "0.5815296", "0.57987976", "0.5796839", "0.57966965", "0.57867473", "0.57801944", "0.5778463", "0.5773701", "0.5766832", "0.57641965", "0.57601374", "0.5731043", "0.57296586", "0.5725605", "0.5725605", "0.57231975", "0.572278", "0.5709881", "0.5707739", "0.5683209", "0.5682586", "0.5681306", "0.5670772", "0.566912", "0.56459814", "0.56459767", "0.5631366", "0.5627269", "0.5626999", "0.56201744", "0.5613021", "0.5613021", "0.5603905", "0.55976856", "0.5591382", "0.5591063", "0.55908966", "0.5587796", "0.5586357", "0.5581556", "0.5580626", "0.55749786", "0.5572077", "0.5571792", "0.55612403", "0.55579114", "0.5554435", "0.5552786", "0.55505896", "0.5544402", "0.5542968", "0.5542167", "0.55392575", "0.5538726", "0.5529206", "0.5526682", "0.5526682", "0.5524856", "0.5522544", "0.5522544" ]
0.7788851
0
Starts drawing by firing a recurring location request.
public void startDrawing() { try { LocationRequest locationRequest = LocationRequest.create() .setInterval(10 * 1000) .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY); LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, locationRequest, this); isDrawing = true; } catch (SecurityException e) { Log.e(TAG, "Failed to start location updates " + e.getLocalizedMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw(Point location) {\n\t}", "private void drawMarker(Location location){\n LatLng currentPosition = new LatLng(location.getLatitude(),location.getLongitude());\r\n runlist.add(currentPosition);\r\n\r\n\r\n for(int i = 0; i<runlist.size();i++){\r\n\r\n\r\n\r\n Marker marker = mGoogleMap.addMarker(new MarkerOptions()\r\n .position(runlist.get(i))\r\n .title(\"TRACKING\")\r\n .snippet(\"Real Time Locations\"));\r\n\r\n\r\n\r\n }\r\n\r\n AddLines();\r\n //mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0),13));\r\n mGoogleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0), 13.9f));\r\n\r\n\r\n }", "private void startPeriodicUpdates() {\n\n\t\tmLocationClient.requestLocationUpdates(mLocationRequest, this);\n\t\tmConnectionState.setText(R.string.location_requested);\n\t}", "public void draw(WorldLocation coord){\n \n }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgetLocation();\r\n\t\t\t\t\tstartLooping();\r\n\t\t\t\t}", "public void startDraw(Vector2 point){\n path.add(point);\n }", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "@Override\n public void run() {\n Map<String, Object> m = new HashMap<>();\n m.put(\"mAMapLocation\", \"mAMapLocation\");\n Graphic graphic = new Graphic(tapPoint, m, pinDestinationSymbol);\n\n finalMarkerOverlay.getGraphics().add(graphic);\n }", "public void startTracking()\n\t{\n\t\tthisRoute.timeStart = System.currentTimeMillis();\n\t\t\n\t\tlocationManager.requestLocationUpdates(provider, gpsTimeFreq, 0, locListener);\n\t}", "public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}", "private void startTouch(float x, float y) {\n// try {\n// socket.emit(\"drawing\", getJsonObject(x,y));\n//\n// } catch (JSONException e) {\n// e.printStackTrace();\n// }\n path.moveTo(x, y);\n mX = x;\n mY = y;\n emitToServer(x, y);\n\n }", "private void routeDrawing(Location location) {\n\n // validity check in case the first point does not have a previous point\n if (previousLocation == null) {\n // copy the current location to the previous point\n previousLocation = location;\n }\n double lat = location.getLatitude();\n double lon = location.getLongitude();\n\n latitude = lat;\n longitude = lon;\n latList.add(latitude);\n lonList.add(longitude);\n\n // previous coordinates\n //System.out.println(\"previous Location: \" + previousLocation.getLatitude() + \" \" + previousLocation.getLongitude());\n // current coordinates\n //System.out.println(\"Current Location: \" + location.getLatitude() + \" \" + location.getLongitude());\n\n // Polyline Options differ from\n PolylineOptions lineOptions = new PolylineOptions();\n // set the option of each part of polyline\n // 0.03 is the location update interval also the drawing interval\n vdraw = (GetDistance(previousLocation.getLatitude(), previousLocation.getLongitude(), location.getLatitude(), location.getLongitude()))/0.3;\n System.out.println(\"vdraw: \"+vdraw);\n if (vdraw<0.01){\n\n lineOptions.add(new LatLng(previousLocation.getLatitude(), previousLocation.getLongitude()))\n .add(new LatLng(location.getLatitude(), location.getLongitude()))\n // This needs to be beautified\n .color(getResources().getColor(R.color.slow))\n .width(30);\n System.out.print(\"I am running slow\");\n }\n if (vdraw>=0.008 && vdraw<=0.03){\n lineOptions.add(new LatLng(previousLocation.getLatitude(), previousLocation.getLongitude()))\n .add(new LatLng(location.getLatitude(), location.getLongitude()))\n // This needs to be beautified\n .color(getResources().getColor(R.color.commen))\n .width(30);\n System.out.print(\"I am running normally\");\n }\n if (vdraw>0.03){\n lineOptions.add(new LatLng(previousLocation.getLatitude(), previousLocation.getLongitude()))\n .add(new LatLng(location.getLatitude(), location.getLongitude()))\n // This needs to be beautified\n .color(getResources().getColor(R.color.fast))\n .width(30);\n System.out.print(\"I am running fast\");\n }\n\n // add the polyline to the map\n Polyline partOfRunningRoute = mMap.addPolyline(lineOptions);\n // set the zindex so that the poly line stays on top of my tile overlays\n partOfRunningRoute.setZIndex(1000);\n // add the poly line to the array so they can all be removed if necessary\n runningRoute.add(partOfRunningRoute);\n // add the latlng from this point to the array\n points.add(location);\n // store current location as previous location in the end\n previousLocation = location;\n }", "public void run() {\n if (topic.equals(Topic.CURSOR_LOCATION) && _plot != null && _plot.getCursorReception()) {\n CursorLocation cursorLoc = (CursorLocation) data;\n // Check that the cursor location event did not come\n // from this viewer.\n if (!cursorLoc.isSender(\"\" + hashCode())) {\n // Unpack the x,y coordinates and pass them along to\n // the cursor updated method.\n final Point3d p = cursorLoc.getLocation().getPoint();\n double x = p.getX();\n double y = p.getY();\n _plot.cursorTracked(x, y);\n cursorUpdated(x, y, false);\n }\n }\n }", "public void draw()\r\n {\r\n drawn = true;\r\n }", "public void paint()\n {\n try { Thread.sleep(SPEED); } \n catch (Exception e) { }\n \n this.printMap();\n }", "public void paint()\n {\n try { Thread.sleep(SPEED); } \n catch (Exception e) { }\n \n this.printMap();\n }", "public void draw() {\n \n // TODO\n }", "public void run() {\n Timeline timeline = new Timeline(new KeyFrame(Duration.millis(17),\n t -> this.draw()));\n\n timeline.setCycleCount(Timeline.INDEFINITE);\n timeline.play();\n }", "public void draw() {\n\t\tSystem.out.println(getMessageSource().getMessage(\"greeting2\", null, null));\r\n\r\n\t\tSystem.out.println(getMessageSource().getMessage(\"drawing.circle\", null, null));\r\n\t\tSystem.out.println(\"Center's Coordinates: (\" + getCenter().getX() + \", \" + getCenter().getY() + \")\");\r\n\t\tSystem.out.println(getMessageSource().getMessage(\"drawing.center\",\r\n\t\t\t\tnew Object[] { getCenter().getX(), getCenter().getY() }, \"Default point coordinates msg\", null));\r\n\t}", "public void startLocationDiscovery() {\n\t\t/*CountDownTimer gpsDelay = new CountDownTimer(\n\t\t\t\tcalculateNextInteraction(failedInteractions) * 60 * 1000, 1000) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTick(long arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFinish() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t};*/\n\t\tregisterLocationListener(locationListener);\n\t}", "public void run(){\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"LocyNavigatorThread has started\");\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(locyNavigator.getLocation()!=null){\n\t\t\t\t\t\t\tfor(LocationListener listener: locationListeners){\n\t\t\t\t\t\t\t\tlistener.onLocationChanged(locyNavigator.getLocation());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tThread.sleep(REQUEST_TIME);\n\t\t\t\t\t}\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tSystem.out.println(\"LocyNavigatorThread has stopped\");\n\t\t\t\t}\n\t }", "public void draw (Graphics g,Location loc){\n System.err.println(\"This method not yet implemented\");\n }", "private void draw()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(this, color, new Ellipse2D.Double(xPosition, yPosition, \n diameter, diameter));\n canvas.wait(10);\n }", "public void overDraw() {\r\n\t\t\r\n\t\tisDrawCalled = false;\r\n\t\t\r\n\t\tLog.d(\"core\", \"Scheduler: All step done in \" + \r\n\t\t\t\t(System.currentTimeMillis() - logTimerMark) + \" ms;\");\r\n\t\t\r\n\t\tint delay = 3;\r\n\t\tstartWork(delay);\r\n\t}", "public void startLocationUpdates() {\n startLocationUpdatesFromInside();\n showForegroundNotification();\n }", "private void startLocationUpdates() {\r\n try {\r\n TimeUnit.SECONDS.sleep(3);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n mFusedLocationClient.requestLocationUpdates(getLocationRequest(), mLocationCallback, Looper.getMainLooper());\r\n mMap.setMyLocationEnabled(true);\r\n }", "public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }", "private void startLocationUpdates() {\n Log.d(LOG_TAG, \"startLocationUpdates() called\");\n fusedLocationClient.requestLocationUpdates(locationRequest, locationCallback, Looper.getMainLooper());\n }", "public void beginDrawing();", "public void draw(Canvas canvas, RectF location) {\n nativeDraw(canvas.mNativeCanvas, location,\n mBitmap.ni(), mChunk,\n mPaint != null ? mPaint.mNativePaint : 0);\n }", "public void draw(){\n\t\tSystem.out.println(\"You are drawing a CIRCLE\");\n\t}", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "@Override\n public void draw() {\n drawAPI.drawCircle(radius, x, y); \n }", "@Override\n public void run() {\n List<LatLng> trailPoints = new ArrayList<>();\n\n // Get a reference of the LatLng that will be used to mark the start of the trail\n LatLng start = null;\n\n try {\n // Create an InputStream from gpxFile\n FileInputStream inStream = new FileInputStream(gpxFile);\n\n // Parse a Gpx from the FileInputStream\n Gpx parsedGpx = new GPXParser().parse(inStream);\n\n // Close the InputStream\n inStream.close();\n\n\n\n if (parsedGpx != null) {\n // Get the individual points from the Gpx\n List<TrackPoint> points = parsedGpx.getTracks().get(0).getTrackSegments().get(0).getTrackPoints();\n\n // Iterate through and convert the point coordinates to a LatLng\n for (TrackPoint point : points) {\n LatLng trailPoint = new LatLng(point.getLatitude(), point.getLongitude(), point.getElevation());\n\n // Add the LatLng to the List\n trailPoints.add(trailPoint);\n\n if (start == null) {\n // Set the LatLng to be used for the starting coordinate\n start = new LatLng(point.getLatitude(), point.getLongitude());\n }\n }\n }\n } catch (XmlPullParserException | IOException e) {\n e.printStackTrace();\n }\n\n // Create a MarkerOptions for marking the beginning of the trail\n MarkerOptions markerOptions = new MarkerOptions().position(start);\n\n // Create a PolylineOptions from the List\n PolylineOptions polylineOptions = new PolylineOptions().addAll(trailPoints);\n\n listener.onOptionReady(markerOptions, polylineOptions);\n }", "public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }", "public void draw(Canvas canvas, Rect location) {\n nativeDraw(canvas.mNativeCanvas, location,\n mBitmap.ni(), mChunk,\n mPaint != null ? mPaint.mNativePaint : 0);\n }", "protected void startLocationUpdates() {\n\t\tcontected();\n\t\tLocationServices.FusedLocationApi.requestLocationUpdates(\n\t\t\t\tmGoogleApiClient, mLocationRequest, (LocationListener)context);\n\t}", "@Override\n void start(Collection<? extends Location> locations);", "public void redraw()\r\n\t{\r\n\t\tif (needsCompleteRedraw)\r\n\t\t{\r\n\t\t\tcompleteRedraw();\r\n\t\t\tneedsCompleteRedraw = false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpartialRedraw();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void run() {\n\t\twhile (runing) {\n\t\t\tdraw(canvas, paint);\n\t\t\ttry {\n\t\t\t\tThread.sleep(15);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "private void draw() {\n frames++;\n MainFrame.singleton().draw();\n }", "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }", "public void startLocationButtonClick() {\n Dexter.withActivity(this)\r\n .withPermission(Manifest.permission.ACCESS_FINE_LOCATION)\r\n .withListener(new PermissionListener() {\r\n @Override\r\n public void onPermissionGranted(PermissionGrantedResponse response) {\r\n mRequestingLocationUpdates = true;\r\n startLocationUpdates();\r\n }\r\n\r\n @Override\r\n public void onPermissionDenied(PermissionDeniedResponse response) {\r\n if (response.isPermanentlyDenied()) {\r\n // open device settings when the permission is\r\n // denied permanently\r\n openSettings();\r\n }\r\n }\r\n\r\n @Override\r\n public void onPermissionRationaleShouldBeShown(PermissionRequest permission, PermissionToken token) {\r\n token.continuePermissionRequest();\r\n }\r\n }).check();\r\n }", "public void draw() {\n for (Point2D p: mPoints) {\n StdDraw.filledCircle(p.x(), p.y(), 0.002);\n }\n }", "public void run()\n {\n m_frame = new DrawingFrame();\n \n m_frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n m_frame.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent evt)\n {\n try\n {\n m_context.getBundle(0).stop();\n }\n catch (BundleException ex)\n {\n ex.printStackTrace();\n }\n }\n });\n \n m_frame.setVisible(true);\n \n m_shapetracker = new ShapeTracker(m_context, m_frame);\n m_shapetracker.open();\n }", "public void draw(){\n textAlign(CENTER);\n route.update(pp, qq);\n SoundSys();\n fill(0xff31F0FF, 127);\n noStroke();\n ellipse(mouseX, mouseY, 30, 30);\n}", "static void InitiateDraw() {\n\t\tshape = new GeneralPath();\n\t\ti1.setOverlay(null);\n\t\tOL = new Overlay();\n\t}", "void draw() {\n\t\tSystem.out.println(\"Drawing the Rectange...\");\n\t\t}", "private void draw() {\n gsm.draw(g);\n }", "public void draw()\n {\n super.draw();\n k = 0;\n traceOK = true;\n\n // Initialize n, x0, and xn in the control panel.\n nText.setText(\" \");\n x0Text.setText(\" \");\n xnText.setText(\" \");\n\n PlotFunction plotFunction = getSelectedPlotFunction();\n\n // Create the fixed-point iteration root finder.\n finder = new FixedPointRootFinder((Function) plotFunction.getFunction());\n }", "public void draw() {\n draw(clientController.getUser().getShows());\n }", "public void ratCrewStart() {\n printStatus();\n ratCrewGo();\n madeTheRun = true;\n printStatus();\n }", "private void draw() {\n\t\tCanvas c = null;\n\t\ttry {\n\t\t\t// NOTE: in the LunarLander they don't have any synchronization here,\n\t\t\t// so I guess this is OK. It will return null if the holder is not ready\n\t\t\tc = mHolder.lockCanvas();\n\t\t\t\n\t\t\t// TODO this needs to synchronize on something\n\t\t\tif (c != null) {\n\t\t\t\tdoDraw(c);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tmHolder.unlockCanvasAndPost(c);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true){\r\n\t\t\t\t\tdraw();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "public void requestRepaint() {\n\t\tJWLC.nativeHandler().wlc_output_schedule_render(this.to());\n\t}", "public void draw() {\n //Grey background, which removes the tails of the moving elements\n background(0, 0, 0);\n //Running the update function in the environment class, updating the positions of stuff in environment\n //update function is a collection of the methods needing to be updated\n if(stateOfProgram == 0) { startTheProgram.update(); }\n if(stateOfProgram == 1) {\n theEnvironment.update();\n //update function is a collection of the methods needing to be updated\n //Running the update function in the Population class, updating the positions and states of the rabbits.\n entitiesOfRabbits.update();\n entitiesOfGrass.update();\n entitiesOfFoxes.update();\n\n entitiesOfRabbits.display();\n entitiesOfGrass.display();\n entitiesOfFoxes.display();\n openGraph.update();\n }\n }", "void requestLocClick() {\n isRequest = true;\n mHasLocationData = false;\n if (mLocationClient != null && mLocationClient.isStarted()) {\n mLocationClient.requestLocation();\n Toast.makeText(getActivity(), \"Locating...\", Toast.LENGTH_SHORT).show();\n } else {\n Log.d(TAG, \"Location Client is not started...\");\n }\n }", "public void start() {\r\n view.addListener(this);\r\n view.makeVisible();\r\n view.display();\r\n }", "public void draw()\n {\n drawLine(x1, y1, x2, y2);\n }", "@Override\n public void run() {\n drawComponents();\n // Ve lai sau 1p\n drawComponentsHandler.postDelayed(drawComponentsRunnable, 60000);\n }", "public void run() {\n editLocationRequest(row);\n }", "public void startLocationUpdate() {\n if (locationCallback != null) {\n try {\n locationCallback = new LocationCallback() {//khoi tao dinh nghia (extent)\n\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n Log.d(TAG, \"onLocationResult: \");\n if (locationResult != null) {\n Log.d(TAG, \"onLocationResult: loaction!==null\");\n myLocation = locationResult.getLastLocation();\n showMarker();//de show hinh len\n }\n }\n };\n fusedLocationProviderClient.requestLocationUpdates(locationRequest, locationCallback, null);//dang ky voi he thong app lang nghe su thay doi cua location\n\n } catch (SecurityException e) {\n e.getMessage();\n\n }\n }\n }", "public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }", "public void locate()\n\t{\n\t\tlocationClient = new LocationClient(Main.activity.getApplicationContext()); // 实例化LocationClient类\n\t\t\t\t\n\t\tlocationClient.registerLocationListener(myListener); // 注册监听函数\n\t\tthis.setLocationOption();\t//设置定位参数\n\t\tlocationClient.start(); // 开始定位\n\t\tlocationClient.requestLocation();\n\t}", "public void draw() {\n GraphicsContext gc = getGraphicsContext2D();\n /*gc.clearRect(0, 0, getWidth(), getHeight());\n\n if (squareMap != null) {\n squareMap.draw(gc);\n }\n if (hexMap != null) {\n hexMap.draw(gc);\n }*/\n\n // Draw animations\n for (SpriteAnimationInstance anim : animationList) {\n anim.draw(gc);\n }\n\n // Lastly draw the dialogue window, no matter which canvas\n // we are on, all the same.\n DfSim.dialogueWindow.draw(gc);\n\n /*if (landMap != null) {\n landMap.draw(gc);\n }*/\n\n // Draw a border around the canvas\n //drawBorder(gc);\n\n // And now just draw everything directly from the simulator\n /*for (Raindrop item : sim.getDrops()) {\n drawMovableCircle(gc, item);\n }\n for (Earthpatch item : sim.getPatches()) {\n drawMovableCircle(gc, item);\n }\n for (SysShape item : sim.getShapes()) {\n drawSysShape(gc, item);\n }\n for (Spike item : sim.getSpikes()) {\n drawMovablePolygon(gc, item);\n }\n for (GravityWell item : sim.getGravityWells()) {\n drawGravityWell(gc, item);\n }*/\n }", "public void drawRoad(int player, int location, Graphics g){\n\t}", "private void drawFlights(){\n if(counter%180 == 0){ //To not execute the SQL request every frame.\n internCounter = 0;\n origins.clear();\n destinations.clear();\n internCounter = 0 ;\n ArrayList<String> answer = GameScreen.database.readDatas(\"SELECT Origin, Destination FROM Flights\");\n for(String s : answer){\n internCounter++;\n String[] parts = s.split(\" \");\n String xyOrigin, xyDestination;\n try{\n xyOrigin = GameScreen.database.readDatas(\"SELECT SystemX, SystemY FROM Systems WHERE SystemName = '\"+parts[0]+\"' ;\").get(0);\n } catch (IndexOutOfBoundsException e){\n String systemId = GameScreen.database.getOneData(\"SELECT SystemId FROM Planet WHERE PlanetName = '\"+parts[0]+\"' ;\");\n xyOrigin = GameScreen.database.readDatas(\"SELECT SystemX, SystemY FROM Systems WHERE id = '\"+systemId+\"' ;\").get(0);\n }\n origins.add(new Vector2(Float.parseFloat(xyOrigin.split(\" \")[0]), Float.parseFloat(xyOrigin.split(\" \")[1])));\n\n try{\n xyDestination = GameScreen.database.readDatas(\"SELECT SystemX, SystemY FROM Systems WHERE SystemName = '\"+parts[1]+\"' ;\").get(0);\n }catch (IndexOutOfBoundsException e){\n String systemId = GameScreen.database.getOneData(\"SELECT SystemId FROM Planet WHERE PlanetName = '\"+parts[1]+\"' ;\");\n xyDestination = GameScreen.database.readDatas(\"SELECT SystemX, SystemY FROM Systems WHERE id = '\"+systemId+\"' ;\").get(0);\n }\n destinations.add(new Vector2(Float.parseFloat(xyDestination.split(\" \")[0]), Float.parseFloat(xyDestination.split(\" \")[1])));\n }\n }\n renderer.begin();\n renderer.set(ShapeRenderer.ShapeType.Filled);\n renderer.setColor(Color.WHITE);\n renderer.circle(600, 380, 4);\n for(int i = 0; i<internCounter; i++){\n renderer.line(origins.get(i), destinations.get(i));\n renderer.setColor(Color.RED);\n renderer.circle(origins.get(i).x, origins.get(i).y, 3);\n renderer.setColor(Color.GREEN);\n renderer.circle(destinations.get(i).x, destinations.get(i).y, 3);\n }\n renderer.end();\n }", "private void touchStart(float x,float y){\n redoList.clear();\n path = new Path();\n FingerPath fingerPath = new FingerPath(currentColor,strokeWidth,path);\n pathsList.add(fingerPath);\n path.reset();\n path.moveTo(x,y);\n pointX=x;\n pointY=y;\n }", "void touch_move_draw(float event_x, float event_y) {\n path.lineTo(event_x,event_y);\n cur_x = event_x;\n cur_y = event_y;\n\n // Add point to list\n addPoint();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tmv.getController().animateTo(myLocationOverlay.getMyLocation());\n\t\t\t}", "public void recordLocation(){\n\t\tg2d.setColor(Color.blue);\n\t\n int x = (int)(sd.getLocationX() * scale) + width/2;\n int y = (int)(sd.getLocationY() * scale) + height/2;\n g2d.fillRect(x,y,8,8);\n\t\n\t}", "public void draw() {\n if (r.isVisible()) {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(r, new java.awt.Rectangle(r.getX(), r.getY(), \n width, height));\n canvas.wait(10);\n }\n }", "@Override\n public void run() {\n LatLng myLoc = new LatLng(myLatitude, myLongitude);\n myMarker.setPosition(myLoc);\n }", "public void updateLocation();", "public void start() {\n\t\tint pixelNum = 0;\n\n\t\tfor (int y = 0; y < camera.height(); y++) {\n\t\t\tfor (int x = 0; x < camera.width(); x++) {\n\t\t\t\tcamera.setPixel(pixelNum++, trace(camera.shootRay(x, y)));\n\t\t\t}\n\t\t}\n\n\t\tcamera.writePPM();\n\t}", "public void startNew(){\n action = true;\n started = false;\n drawCanvas.drawColor(0, PorterDuff.Mode.CLEAR);\n invalidate();\n }", "public void draw() {\n \n }", "private void touch_start(float x, float y) {\n\t\tmPath.reset();\n\t\t\n\t\t// posiciona o primeiro ponto no canvas\n\t\tmPath.moveTo(x, y);\n\t\tmX = x;\n\t\tmY = y;\n\t\t\n\t\t// desenha um ponto simples no ecr‹\n\t\tmPath.quadTo(mX, mY, ((x + 0.1f) + mX) / 2, ((y + 0.1f) + mY) / 2);\n\t\t\n\t\t// guarda os dados necess‡rios para o replay\n\t\tif (toReplay) {\n\t\t\txs.add(mX);\n\t\t\tys.add(mY);\n\t\t\tcolors.add(mPaint.getColor());\n\t\t}\n\t}", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void paintOn(Point start, Screen screen) {\n\t\tpaintOn(start.x, start.y, screen);\n\t}", "public void startTracking() {\n reset();\n trackingTask = scheduler.scheduleAtFixedRate(this, 0, 10, TimeUnit.MILLISECONDS);\n }", "private void doDraw() {\n\t\tIntent intent = new Intent(this, ActivityDraw.class);\r\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\tmLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\r\n\t\t\t\tConstants.GPS_MIN_TIME_MIL_SEC,\r\n\t\t\t\tConstants.GPS_MIN_DISTANCE_METER, myLocationListener);\r\n\t}", "@SuppressLint(\"MissingPermission\")\n private void requestNewLocationData() {\n LocationRequest mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequest.setInterval(5);\n mLocationRequest.setFastestInterval(0);\n mLocationRequest.setNumUpdates(1);\n\n // setting LocationRequest\n // on FusedLocationClient\n mFusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n }", "@SuppressLint(\"MissingPermission\")\n private void requestNewLocationData() {\n LocationRequest mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequest.setInterval(5);\n mLocationRequest.setFastestInterval(0);\n mLocationRequest.setNumUpdates(1);\n\n // setting LocationRequest\n // on FusedLocationClient\n mFusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n }", "@SuppressLint(\"MissingPermission\")\n private void requestNewLocationData() {\n LocationRequest mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequest.setInterval(5);\n mLocationRequest.setFastestInterval(0);\n mLocationRequest.setNumUpdates(1);\n\n // setting LocationRequest\n // on FusedLocationClient\n FusedLocationProviderClient mFusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n }", "@Override\n public void requestLocationUpdates() {\n handler = new Handler();\n handler.postDelayed(new LocationUpdateRunnable(), UPDATE_INTERVAL_MS);\n }", "public void startTracking()\n {\n if(!pixyThread.isAlive())\n {\n pixyThread = new Thread(this);\n pixyThread.start();\n leds.setMode(LEDController.Mode.ON);\n }\n }", "public void startReceivingLocationUpdates() {\n Dexter.withActivity(this)\n .withPermission(Manifest.permission.ACCESS_FINE_LOCATION)\n .withListener(new PermissionListener() {\n @Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n mRequestingLocationUpdates = true;\n startLocationUpdates();\n }\n\n @Override\n public void onPermissionDenied(PermissionDeniedResponse response) {\n if (response.isPermanentlyDenied()) {\n // open device settings when the permission is\n // denied permanently\n openSettings();\n }\n }\n\n @Override\n public void onPermissionRationaleShouldBeShown(com.karumi.dexter.listener.PermissionRequest permission, PermissionToken token) {\n token.continuePermissionRequest();\n }\n\n }).check();\n }", "public void refresh() {\n\t\tdrawingPanel.repaint();\n\t}", "protected void startLocationUpdates() {\n mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequest.setInterval(UPDATE_INTERVAL);\n //mLocationRequest.setFastestInterval(FASTEST_INTERVAL);\n\n // Create LocationSettingsRequest object using location request\n LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder();\n builder.addLocationRequest(mLocationRequest);\n LocationSettingsRequest locationSettingsRequest = builder.build();\n\n // Check whether location settings are satisfied\n // https://developers.google.com/android/reference/com/google/android/gms/location/SettingsClient\n SettingsClient settingsClient = LocationServices.getSettingsClient(this);\n settingsClient.checkLocationSettings(locationSettingsRequest);\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n try{\n getFusedLocationProviderClient(this).requestLocationUpdates(mLocationRequest, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n onLocationChanged(locationResult.getLastLocation(),false);\n }\n },\n Looper.myLooper());\n }\n catch(SecurityException e){\n e.printStackTrace();\n }\n\n }", "@Override\n public void onLocationChanged(Location location) {\n //Log.i(TAG, \"New Location: \" + location.getLatitude() + \" \" + location.getLongitude());\n if (isDrawing) {\n //We are drawing so add a point and move the camera accordingly\n currentDrawing.addPoint(new LatLng(location.getLatitude(), location.getLongitude()), currentColor);\n LatLng userLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(userLocation, 20));\n }\n }", "public void draw(){\n\t\t int startRX = 100;\r\n\t\t int startRY = 100;\r\n\t\t int widthR = 300;\r\n\t\t int hightR = 300;\r\n\t\t \r\n\t\t \r\n\t\t // start points on Rectangle, from the startRX and startRY\r\n\t\t int x1 = 0;\r\n\t\t int y1 = 100;\r\n\t\t int x2 = 200;\r\n\t\t int y2 = hightR;\r\n\t\t \r\n //direction L - false or R - true\r\n\t\t \r\n\t\t boolean direction = true;\r\n\t\t \t\r\n\t\t\r\n\t\t //size of shape\r\n\t\t int dotD = 15;\r\n\t\t //distance between shapes\r\n\t int distance = 30;\r\n\t\t \r\n\t rect(startRX, startRY, widthR, hightR);\r\n\t \r\n\t drawStripesInRectangle ( startRX, startRY, widthR, hightR,\r\n\t \t\t x1, y1, x2, y2, dotD, distance, direction) ;\r\n\t\t \r\n\t\t super.draw();\r\n\t\t}", "public static void beginTrip() {\n Trip currentTrip = App.getModel().getSessionTrip();\n currentTrip.setStatus(Trip.STATUS.EN_ROUTE);\n ApplicationService.beginTrip(currentTrip.getRiderID(), currentTrip, ((resultData, err) -> {\n if (err != null) {\n List<Observer> mapObservers = App.getModel().getObserversMatchingClass(MapActivity.class);\n for (Observer map : mapObservers) {\n ((UIErrorHandler) map).onError(err);\n }\n } else {\n App.getModel().setSessionTrip(currentTrip);\n }\n }));\n }", "private void startLocationUpdate()\r\n {\r\n try \r\n {\r\n _locationProvider = LocationProvider.getInstance(null);\r\n \r\n if ( _locationProvider == null ) \r\n {\r\n // We would like to display a dialog box indicating that GPS isn't supported, but because\r\n // the event-dispatcher thread hasn't been started yet, modal screens cannot be pushed onto\r\n // the display stack. So delay this operation until the event-dispatcher thread is running\r\n // by asking it to invoke the following Runnable object as soon as it can.\r\n Runnable showGpsUnsupportedDialog = new Runnable() \r\n {\r\n public void run() \r\n {\r\n Dialog.alert(\"GPS is not supported on this platform, exiting...\");\r\n System.exit( 1 );\r\n }\r\n };\r\n invokeLater( showGpsUnsupportedDialog ); // ask event-dispatcher thread to display dialog ASAP\r\n } \r\n else \r\n {\r\n // only a single listener can be associated with a provider, and unsetting it involves the same\r\n // call but with null, therefore, no need to cache the listener instance\r\n _locationProvider.setLocationListener(new LocationListenerImpl(), _interval, 1, 1);\r\n }\r\n } catch (LocationException le) {\r\n System.err.println(\"Failed to instantiate the LocationProvider object, exiting...\");\r\n System.err.println(le); \r\n System.exit(0);\r\n } \r\n }", "@Override\n public void onLocationChanged(Location location) {\n drawUserMarker(location);\n }", "void startTracking();" ]
[ "0.6507659", "0.5932017", "0.5756851", "0.57412565", "0.5712325", "0.5703726", "0.5661308", "0.56588346", "0.5645791", "0.5635242", "0.560195", "0.56013674", "0.5549109", "0.5533147", "0.5528568", "0.5515494", "0.549237", "0.5487931", "0.54862076", "0.5480886", "0.54774076", "0.5463513", "0.54575264", "0.54556304", "0.54532015", "0.540344", "0.5402257", "0.5399627", "0.53765833", "0.53696877", "0.53633225", "0.53258115", "0.53258115", "0.53258115", "0.53258115", "0.53252065", "0.5322725", "0.53047085", "0.53039306", "0.52988863", "0.5298416", "0.5289514", "0.5286645", "0.5276213", "0.5275029", "0.5272477", "0.5259397", "0.5258412", "0.5255319", "0.5232378", "0.521328", "0.51903224", "0.51874214", "0.518724", "0.51823175", "0.5176518", "0.5162947", "0.51537764", "0.5150026", "0.51467866", "0.5137265", "0.5132376", "0.51096493", "0.5099662", "0.5094788", "0.50876707", "0.5079326", "0.5074963", "0.5071265", "0.50580806", "0.50525945", "0.504097", "0.50358516", "0.5032838", "0.50326705", "0.5027218", "0.50212723", "0.5017587", "0.50148004", "0.50129634", "0.501157", "0.50064135", "0.50030625", "0.49965143", "0.4995569", "0.49925628", "0.49923927", "0.49923927", "0.4968598", "0.4965223", "0.49586833", "0.4955774", "0.49556026", "0.49459335", "0.49440202", "0.49390888", "0.49351403", "0.49303114", "0.49297318", "0.49277407" ]
0.7653291
0
Saves the current drawing
public File saveDrawing() { stopDrawing(); GeoJsonConverter converter = new GeoJsonConverter(); String string = converter.convertToGeoJson(currentDrawing.getAllLines()); File file = new File(context.getExternalFilesDir(null), "drawing.geojson"); try { FileOutputStream outputStream = new FileOutputStream(file); outputStream.write(string.getBytes()); //write the string to the file outputStream.close(); //close the stream //Log.d(TAG, string); } catch (FileNotFoundException e) { Log.e(TAG, "FileNotFoundException"); } catch (IOException e) { Log.e(TAG, "IOException"); } return file; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void save() {\n graphicsEnvironmentImpl.save(canvas);\n }", "public void saveChangedDrawings() {\n for (Drawing drawing : _changedDrawings) {\n boolean success = DrawingFileHelper.saveDrawing(drawing,\n drawing.getFilename(),\n GuiPlugin.getCurrent()\n .getGui());\n logger.debug(\"Saving drawing: \" + drawing.getFilename()\n + \", success: \" + success);\n\n }\n }", "protected abstract void saveGraphicsState();", "public void saveState() {\n savedPen.setValues(pm.pen);\n }", "public void SaveActionPerformed(java.awt.event.ActionEvent evt) {\n if (jfcSave.showSaveDialog(this) == JFileChooser.APPROVE_OPTION){\r\n //get selected file name\r\n File fileSave = jfcSave.getSelectedFile();\r\n String fileSaveName = fileSave.toString();\r\n\r\n try {\r\n SaveScreenShot(drawingPanel,fileSaveName);\r\n } catch (Exception e){\r\n System.out.println(\"image failed to save!\");\r\n }\r\n }\r\n }", "public void save() {\r\n IniReader.write(FILE_NAME, \"x\", x, \"y\", y, \"fullscreen\", fullscreen, \"controlType\", controlType, \"vol\", volMul,\r\n \"keyUpMouse\", getKeyUpMouseName(), \"keyDownMouse\", getKeyDownMouseName(), \"keyUp\", getKeyUpName(), \"keyDown\", keyDownName,\r\n \"keyLeft\", keyLeftName, \"keyRight\", keyRightName, \"keyShoot\", keyShootName, \"keyShoot2\", getKeyShoot2Name(),\r\n \"keyAbility\", getKeyAbilityName(), \"keyEscape\", getKeyEscapeName(), \"keyMap\", keyMapName, \"keyInventory\", keyInventoryName,\r\n \"keyTalk\", getKeyTalkName(), \"keyPause\", getKeyPauseName(), \"keyDrop\", getKeyDropName(), \"keySellMenu\", getKeySellMenuName(),\r\n \"keyBuyMenu\", getKeyBuyMenuName(), \"keyChangeShipMenu\", getKeyChangeShipMenuName(), \"keyHireShipMenu\", getKeyHireShipMenuName());\r\n }", "public static void save(){\n\t\tif(GUIReferences.currentFile != null) {\n\t\t\txml.XMLSaver.saveSensorList(GUIReferences.currentFile);\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t} else {\n\t\t\tsaveAs();\n\t\t}\n\t}", "public void save() {\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n fileChooser.setSelectedFile(new File(\"save.ser\"));\n int saveFile = fileChooser.showSaveDialog(GameFrame.this);\n\n if (saveFile == JFileChooser.APPROVE_OPTION) {\n File saveGame = fileChooser.getSelectedFile();\n FileOutputStream fileOut = new FileOutputStream(saveGame);\n ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n objOut.writeObject(world);\n objOut.close();\n fileOut.close();\n System.out.println(\"Game saved.\");\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n }", "private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void SaveCurrentGame(){\n if(gameStarted == false){ return; }\n recordGame.write(board, timeRuunableThread, level);\n timeRuunableThread.setDrawNumber(false);\n canLoadGame = true;\n // update infoCanvas\n CleanInfoCanvas();\n }", "public void save() {\t\n\t\n\t\n\t}", "private void saveGraph() {\n try(FileOutputStream fileOut = new FileOutputStream(graphPath + OVERLAY_GRAPH);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut))\n {\n objectOut.writeObject(graph);\n System.out.println(\"The overlay graph was successfully written to a file\");\n } catch (Exception ex) {\n System.out.println(\"Error writing the overlay graph\");\n ex.printStackTrace();\n }\n }", "public void savePolygon()\n {\n if (canSavePolygon())\n {\n SaveDialog dialog = new SaveDialog(createPolygonActivity, this, model);\n dialog.show();\n }\n }", "public void drawSaveMenu() {\n implementation.devDrawSaveMenu();\n }", "private void completeSave() {\n colorBar.updateRevertToCurrent();\n colorBar.revertColorBar();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n cmapParams.setColorMapName(seldCmapName);\n saveBtn.setEnabled(true);\n }", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "void save();", "void save();", "void save();", "public void saveColorAndFont()\r\n\t{\r\n\t\tsaveColor();\r\n\t\tsaveFont();\r\n\t}", "private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {\n rom.save(obstacle, frog);\n isSaved = true;\n }", "public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }", "void saveAs() {\n writeFile.Export();\n }", "@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}", "public void saveWorkflow() {\n\t\tsaveWorkflow(engine.getGUI().getGraphCanvas());\n }", "public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }", "private void save() {\n prefs.saveCardBackground(selectedBackground);\n prefs.saveCardBackgroundColor(selectedBackgroundColor);\n\n updateSummary();\n }", "private void saveCurrentObject() {\n\t}", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tdrawView.setDrawingCacheEnabled(true);\n\t\t\t\t\tString imgSaved = MediaStore.Images.Media.insertImage(\n\t\t\t\t\t\t\tgetContentResolver(), drawView.getDrawingCache(),\n\t\t\t\t\t\t\tUUID.randomUUID().toString() + \".png\", \"drawing\");\n\t\t\t\t\tSystem.out.println(\"the string uri:\" + imgSaved);\n\n\t\t\t\t\tif (imgSaved != null) {\n\t\t\t\t\t\tToast savedToast = Toast\n\t\t\t\t\t\t\t\t.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\"Drawing saved to Gallery!\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\t\t// savedToast.show();\n\t\t\t\t\t\tdrawView.destroyDrawingCache();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast unsavedToast = Toast.makeText(\n\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\"Oops! Image could not be saved.\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\t\t// unsavedToast.show();\n\t\t\t\t\t}\n\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "void saveSet() {\n if( file==null ) {\n int returnVal = fc.showSaveDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n }\n System.out.println(\"Saving to: \" + file.getName());\n try {\n int count = tabbedPane.getTabCount();\n ArrayList l = new ArrayList();\n for(int i=0; i< count; i++) {\n rrpanel= (RoombaRecorderPanel)tabbedPane.getComponentAt(i);\n l.add(rrpanel.copy());\n }\n FileOutputStream fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //oos.writeObject(loopButton);\n //oos.writeObject(\n oos.writeObject(l);\n oos.close();\n } catch( Exception e ) {\n System.out.println(\"Save error \"+e);\n }\n }", "@FXML public void saveToFile()throws java.io.IOException {\n Highgui.imwrite( this.originalImagePath, this.image );\n System.out.println(\"Saving\");\n }", "void save_to_file() {\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a save directory\", FileDialog.SAVE);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"save path: \" + file_withpath);\n\t\t\t \n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file_withpath));\n\n\t\t\tout.writeObject(Key_Lists);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\tinfo_label.setForeground(green);\n\t\t\tinfo_label.setText(\"file saved :D\");\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\t\n\t}", "void saveGame();", "private void saveGame(){\n\t\t\n\t}", "private void saveJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveJMenuItemActionPerformed\n //save the current points\n myWriter.saveToFile(FILE_PATH, namesArray, tempArray);\n }", "@FXML\r\n void btnSave(ActionEvent event) throws IOException {\r\n \tdos.writeInt(server.ServerConstants.DRAW_SAVE);\r\n \tString fileName = \"D://image/snapshot\" + new Date().getTime() + \".png\";\r\n \tFile file = new File(fileName);\r\n \tWritableImage writableImage = new WritableImage(768, 431);\r\n canvas.snapshot(null, writableImage);\r\n RenderedImage renderedImage = SwingFXUtils.fromFXImage(writableImage, null);\r\n ImageIO.write(renderedImage, \"png\", file);\r\n \r\n OutputStream outputStream = client.getOutputStream();\r\n FileInputStream fileInputStream = new FileInputStream(file);\r\n byte[] buf = new byte[1024];\r\n int length = 0;\r\n while((length = fileInputStream.read(buf))!=-1){\r\n \toutputStream.write(buf);\r\n }\r\n fileInputStream.close();\r\n }", "void save(final Widget widget);", "public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}", "public void saveGame(){\n \tsaveOriginator.writeMap(this.map, this.getObjectives(), this.gameState);\n \tsaveGame.saveGame(saveOriginator);\n }", "public void save(){\r\n\t\ttry {\r\n\t\t\tgame.suspendLoop();\r\n\t\t\tGameStockage.getInstance().save(game);\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (GameNotSaveException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t}\r\n\t}", "public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }", "public void saveScreenshot() {\n if (ensureSDCardAccess()) {\n Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n doDraw(1, canvas);\n File file = new File(mScreenshotPath + \"/\" + System.currentTimeMillis() + \".jpg\");\n FileOutputStream fos;\n try {\n fos = new FileOutputStream(file);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);\n fos.close();\n } catch (FileNotFoundException e) {\n Log.e(\"Panel\", \"FileNotFoundException\", e);\n } catch (IOException e) {\n Log.e(\"Panel\", \"IOEception\", e);\n }\n }\n }", "public void requestSavePose() \r\n {\r\n \r\n \t// DON'T ASK, JUST SAVE\r\n boolean savedSuccessfully = poseIO.savePose(currentFile, false);\r\n if (savedSuccessfully)\r\n {\r\n \tposeIO.savePoseImage(currentPoseName, poseID);\r\n // MARK IT AS SAVED\r\n saved = true;\r\n \r\n // AND REFRESH THE GUI\r\n AnimatedSpriteEditor singleton = AnimatedSpriteEditor.getEditor(); \r\n \r\n PoseurStateManager poseurStateManager = singleton.getStateManager().getPoseurStateManager();\r\n poseurStateManager.clearSelectShape();\r\n poseurStateManager.setState(PoseurState.SELECT_SHAPE_STATE);\r\n \r\n }\r\n }", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "void takeSnapShot(File fileToSave) {\n try {\n /*Construct a new BufferedImage*/\n BufferedImage exportImage = new BufferedImage(this.getSize().width,\n this.getSize().height,\n BufferedImage.TYPE_INT_RGB);\n\n \n /*Get the graphics from JPanel, use paint()*/\n this.paint(exportImage.createGraphics());\n \n fileToSave.createNewFile();\n ImageIO.write(exportImage, \"PNG\", fileToSave);\n } catch(Exception exe){\n System.out.println(\"DrawCanvas.java - Exception\");\n }//catch\n}", "public void saveAs() {\n MimsJFileChooser fileChooser = new MimsJFileChooser(ui);\n fileChooser.setSelectedFile(new File(ui.getLastFolder(), ui.getImageFilePrefix() + \".png\"));\n ResourceBundle localizationResources = ResourceBundleWrapper.getBundle(\"org.jfree.chart.LocalizationBundle\");\n ExtensionFileFilter filter = new ExtensionFileFilter(\n localizationResources.getString(\"PNG_Image_Files\"), \".png\");\n fileChooser.addChoosableFileFilter(filter);\n fileChooser.setFileFilter(filter);\n int option = fileChooser.showSaveDialog(chartpanel);\n if (option == MimsJFileChooser.APPROVE_OPTION) {\n String filename = fileChooser.getSelectedFile().getPath();\n if (!filename.endsWith(\".png\")) {\n filename = filename + \".png\";\n }\n try {\n ChartUtils.saveChartAsPNG(new File(filename), chartpanel.getChart(), getWidth(), getHeight());\n } catch (IOException ioe) {\n IJ.error(\"Unable to save file.\\n\\n\" + ioe.toString());\n }\n }\n }", "public void saveFrame() {\n\n final boolean SAVE_POSTSCRIPT = false;\n final String POSTSCRIPT_OUTPUT_DIR = \"frames\";\n int FRAME_NUMBER = 0;\n\n if(!SAVE_POSTSCRIPT) {\n return;\n }\n Util.makeDirectory(POSTSCRIPT_OUTPUT_DIR);\n final StringBuilder name = new StringBuilder();\n name.append(POSTSCRIPT_OUTPUT_DIR).append(File.separator).append(\"frame_\");\n name.append(String.format(\"%010d\", FRAME_NUMBER)).append(\".ps\");\n FRAME_NUMBER += 1;\n writePostscript(name.toString()); // writes the current canvas\n }", "public void save() {\n savePrefs();\n }", "void saveCurrentStation();", "@Override\n public void saveCurrent()\n {\n MazeInfo mi = (MazeInfo) mOpenMazes.getList().getSelectedValue();\n if (mi != null)\n {\n mi = mi.saveMaze();\n mOpenMazes.getList().setSelectedValue(mi, true);\n }\n }", "public static void saveAs(){\n\t\tFile saveFile;\n\t\tJFileChooser saveChooser = new JFileChooser();\n\t\tFileNameExtensionFilter saveFilter = new FileNameExtensionFilter(\"Sensormap Files (.stuff)\", \"stuff\");\n\t\tFileNameExtensionFilter saveFilter2 = new FileNameExtensionFilter(\"Gzipped Sensormap Files (.stuff.gz)\", \"stuff.gz\");\n\t\tsaveChooser.setFileFilter(saveFilter);\n\t\tsaveChooser.setFileFilter(saveFilter2);\n\t\tint saveReturnVal = saveChooser.showSaveDialog(ControlPanelFrame.getFrame());\n\t\tif(saveReturnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tif(saveChooser.getFileFilter() == saveFilter && saveChooser.getSelectedFile().getName().endsWith(\".stuff\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff\");\n\t\t\t} else if(saveChooser.getFileFilter() == saveFilter2 && saveChooser.getSelectedFile().getName().endsWith(\".stuff.gz\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff.gz\");\n\t\t\t} else {\n\t\t\t\tsaveFile = saveChooser.getSelectedFile();\n\t\t\t}\n\t\t\tXMLSaver.saveSensorList(saveFile);\n\t\t\tGUIReferences.viewPort.halfTitle = saveFile.getName();\n\t\t\tGUIReferences.viewPort.setTitle(saveFile.getName());\n\t\t\tGUIReferences.currentFile = saveFile;\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t}\n\t}", "public void saving() {\n\t\tSystem.out.println(\"7\");\n\n\t}", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "public boolean save() {\n\t\treturn save(_file);\n\t}", "public void saveAsImage(){\n\t\tif(currentView == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open before an image can be saved\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcurrentView.saveAsImage();\r\n\t}", "void save(String filename);", "public void saveGame();", "private void saveGame() throws FileNotFoundException {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showSaveDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\t\tif (file != null) {\r\n\t\t\tFileWriter fileWriter = new FileWriter(convertToStringArrayList(), file);\r\n\t\t\tfileWriter.writeFile();\r\n\t\t}\r\n\r\n\t}", "public void save(){\n try {\n FileOutputStream outputStream = getContext().openFileOutput(\"com_petros_cmsc434doodler_imageFile\", Context.MODE_PRIVATE);\n for(int i = 0; i<pathStack.size(); i++){\n outputStream.write((int)paintStack.get(i).getStrokeWidth()); //One byte is enough, max if 50\n outputStream.write(paintStack.get(i).getAlpha());\n //Red, Green, Blue\n outputStream.write((paintStack.get(i).getColor() & 0xFF0000) >> (4*4));\n outputStream.write((paintStack.get(i).getColor() & 0xFF00) >> (2*4));\n outputStream.write(paintStack.get(i).getColor() & 0xFF);\n\n outputStream.write(NEXT_LINE);\n for(int j = 0; j < pathPointsStack.get(i).size(); j+=2){\n //First point - have to save points byte at a time.\n outputStream.write(pathPointsStack.get(i).get(j) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j));\n //Second point\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j+1));\n if(j+2 == pathPointsStack.get(i).size()){\n outputStream.write(NEXT_PATH);\n }\n else{\n outputStream.write(NEXT_LINE);\n }\n }\n }\n outputStream.write(END_OF_PATHS);\n outputStream.close();\n } catch (Exception e) {\n Toast.makeText(getContext(), \"Error saving the file\", Toast.LENGTH_SHORT).show();\n }\n }", "public void doSave() {\n WaveformLoader.doSave(waveform, WaveformLoader.scalingForSavingFile);\n }", "public void saveColor()\r\n\t{\r\n\t\tsavedColor = g.getColor();\r\n\t}", "public void saveObject(ObjectOutputStream out) throws IOException {\n out.defaultWriteObject();\n out.writeObject(otherColor);\n out.writeObject(mode);\n out.writeObject(tod);\n out.writeObject(prune);\n out.writeObject(currBoard);\n }", "void save(String fileName);", "private void jButton_SaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_SaveActionPerformed\n // TODO add your handling code here:\n saveToFile();\n //new FittingCriteria(this.digPopGUIInformation, this.currentMarkovChainId).setVisible(true);\n new StepThree(this.digPopGUIInformation).setVisible(true);\n dispose();\n }", "void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }", "public void saveLayout(boolean selected_only, File save_file) {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n if (save_file != null || file_chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {\n try {\n Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n\tif (selected_only && (sel == null || sel.size() == 0)) {\n\t} else {\n\t int entities_written = 0;\n\t System.out.println(\"Saving Layout (Selected Only = \" + selected_only + \")...\");\n if (save_file == null) save_file = file_chooser.getSelectedFile();\n PrintStream out = new PrintStream(new FileOutputStream(save_file));\n\t Iterator<String> it = (selected_only) ? (sel.iterator()) : (entity_to_wxy.keySet().iterator());\n\t while (it.hasNext()) {\n\t String entity = it.next();\n out.println(Utils.encToURL(entity) + \",\" + Utils.encToURL(\"\"+entity_to_wxy.get(entity).getX()) + \",\" + Utils.encToURL(\"\"+entity_to_wxy.get(entity).getY()));\n\t entities_written++;\n\t }\n\t out.close();\n System.out.println(\" Done Saving Layout! (\" + entities_written + \" Entities Written)\");\n }\n } catch (IOException ioe) {\n JOptionPane.showInternalMessageDialog(this, \"Save Layout Error\", \"IOException : \" + ioe, JOptionPane.ERROR_MESSAGE);\n\tSystem.err.println(\"IOException : \" + ioe); ioe.printStackTrace(System.err);\n }\n }\n }", "void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void quickSave() {\n try {\n if (selectedImage != null && selectedName == null) {\n String tempName = \"未命名_\" + DateFormatUtils.format(new Date(), \"yyyy-MM-dd_HH-mm-ss\");\n String name = JOptionPane.showInputDialog(MainWindow.getInstance().getMainPanel(), \"名称\", tempName);\n if (StringUtils.isNotBlank(name)) {\n name = name.replace(\".png\", \"\");\n\n File imageFile = FileUtil.touch(new File(IMAGE_PATH_PRE_FIX + name + \".png\"));\n ImageIO.write(toBufferedImage(selectedImage), \"png\", imageFile);\n ImageForm.initListTable();\n selectedName = name;\n }\n }\n } catch (Exception ex) {\n log.error(ExceptionUtils.getStackTrace(ex));\n }\n }", "public void autoSave(){\n\t\ttry {\n\t\t\t//read in file\n\t\t\tFile file = new File(System.getProperty(\"user.dir\")+\"/Default.scalcsave\");\n\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\toutput.close();\n\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void save() {\n\t\tpreferences().flush();\n\t}", "synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }", "public boolean SavePoint() {\n\t\tcmds.clear();\n\t\treturn true;\n\t}", "public void saveAs() {\n editorManager.currentFileManager().saveAs();\n mimaUI.fileChanged();\n }", "public void save() {\n\t\tthis.setState(Constants.CWorld.STATE_SAVING);\n\t\tthis.getWorld().saveAll();\n\t\tthis.setState(Constants.CWorld.STATE_ONLINE);\n\t}", "private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }", "private void save()\n {\n String saveFile = FileBrowser.chooseFile( false );\n try{\n PrintWriter output = new PrintWriter( new File( saveFile ) );\n \n output.println( numRows + \" \" + numCols );\n\n for( int r=0; r<numRows; r++ )\n output.println( rowLabels[r] );\n\n for( int c=0; c<numCols; c++ )\n output.println( colLabels[c] );\n\n for( int r=0; r<numRows; r++ )\n {\n for( int c=0; c<numCols; c++ )\n output.print( a[r][c] + \" \" );\n output.println();\n }\n output.close();\n }\n catch(Exception e)\n {\n System.out.println(\"Uh-oh, save failed for some reason\");\n e.printStackTrace();\n }\n }", "private void saveFitex(){\n Element pds = getPDS() ;\n JFileChooser aFileChooser = new JFileChooser();\n aFileChooser.setFileFilter(new MyFileFilterXML());\n if (lastUsedFile != null){\n aFileChooser.setCurrentDirectory(lastUsedFile.getParentFile());\n aFileChooser.setSelectedFile(lastUsedFile);\n }else{\n File file = new File(aFileChooser.getCurrentDirectory(), dataset.getName()+\".xml\");\n aFileChooser.setSelectedFile(file);\n }\n int r = aFileChooser.showSaveDialog(this);\n if (r == JFileChooser.APPROVE_OPTION){\n setCursor(new Cursor(Cursor.WAIT_CURSOR));\n File file = aFileChooser.getSelectedFile();\n if(!MyUtilities.isXMLFile(file)){\n file = MyUtilities.getXMLFile(file);\n }\n lastUsedFile = file;\n OutputStreamWriter fileWriter = null;\n try{\n fileWriter = new OutputStreamWriter(new FileOutputStream(file), \"utf-8\");\n\t\txmlOutputter.output(pds, fileWriter);\n datasetModif = false;\n dataProcessToolPanel.logSaveDataset(dataset);\n }catch (IOException e){\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_SAVE\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }finally{\n if (fileWriter != null){\n try{\n fileWriter.close();\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }catch (IOException e){\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_SAVE\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }\n }\n }\n }\n }", "public static void save()\n\t{\n writeMap();\n\t}", "public void save(OutputStream os) throws IOException;", "public void save() {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSave();\n\t\t\t}", "public void saveGame(File fileLocation);", "public void onSaveButtonClick(ActionEvent e){\n\t\tsaveFile(false);\n\t}", "public void save(){\n\tif(currentFile == null){\n\t // TODO: add popup to select where to save file and file name\n\t // currentFile = new TextFile(os, title, null);\n\t}else{\n\t currentFile.setBody(textArea.getText());\n\t}\n }", "private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void saveFile() {\r\n File savedFile = new File(fileName);\r\n\r\n try (FileWriter fw = new FileWriter(savedFile)) {\r\n fw.write(workSpace.getText());\r\n\r\n fw.close();\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"There was an error saving the file\");\r\n }\r\n }", "public void onSaveClicked(View v) {\n\n\t\tString mValue = (String) ((EditText) findViewById(R.id.editName))\n\t\t\t\t.getText().toString();\n\n\t\tif (mValue.equals(\"\")) {\n\t\t\tToast.makeText(getApplicationContext(), \"Please enter your name\",\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t} else {\n\t\t\tGlobals.USER_COLOR = CalendarUtils.generateRandomColor();\n\t\t\tsaveUserData();\n\t\t\t// Make a Toast informing the user their information is saved.\n\t\t\tToast.makeText(getApplicationContext(), \"Saved\", Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t\t\n\t\t\tint size = Globals.drawingMatrix.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tGlobals.drawingMatrix.get(i).clear();\n\t\t\t}\n\t\t\tGlobals.drawingMatrix.clear();\n\t\t\t\n\t\t\tfinish();\n\t\t}\n\n\t}", "private void saveFile() {\r\n\t\tFile file = new File(this.picture.getFileName());\r\n\r\n\t\ttry {\r\n\t\t\tImageIO.write(this.picture.getBufferedImage(),\r\n\t\t\t\t\tthis.picture.getExtension(), file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(this.pictureFrame,\r\n\t\t\t\t \"Could not save file.\",\r\n\t\t\t\t \"Save Error\",\r\n\t\t\t\t JOptionPane.WARNING_MESSAGE);\r\n\t\t}\r\n\r\n\t}", "@Override\n public void Save() {\n\t \n }", "public void save() {\n\t\tlog.log(\"Attempting to save...\");\n\t\tPath spath = Paths.get(getFullSavePath());\n\t\tPath cpath = Paths.get(getFullSavePath() + \"units/\");\n\t\ttry {\n\t\t\tif(!Files.exists(spath))\n\t\t\t\tFiles.createDirectory(spath);\n\t\t\tif(!Files.exists(cpath))\n\t\t\t\tFiles.createDirectory(cpath);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\n\t\tFile[] files = new File(cpath.toString()).listFiles();\n\t\tfor(File f : files) {\n\t\t\tf.delete();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tBufferedWriter mfestWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"progress.txt\"));\n\t\t\tmfestWriter.write(name);\n\t\t\tmfestWriter.close();\n\t\t\tfor(MapCharacter mc : getFriendlies()) {\n\t\t\t\tBufferedWriter charWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"units/\"\n\t\t\t\t\t\t+ mc.getEnclosed().getDirName()));\n\t\t\t\tcharWriter.write(mc.getEnclosed().save());\n\t\t\t\tcharWriter.close();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\t\tlog.log(\"Game saved.\");\n\t}", "private void saveOutputFile() {\n FileChooser fileChooser = new FileChooser();\n if (textMergeScript.hasCurrentDirectory()) {\n fileChooser.setInitialDirectory (textMergeScript.getCurrentDirectory());\n }\n chosenOutputFile = fileChooser.showSaveDialog (ownerWindow);\n if (fileChooser != null) {\n writeOutput();\n openOutputDataName.setText (tabNameOutput);\n }\n }", "public void save(PrintWriter pw) {\n\t\tpw.println(color);\n\t\tpw.println(name);\n\t\tpw.println(diceValue);\n\t\tpw.println(diceTossed);\n\t\tfor(int i = 1; i<=4; i++)\n\t\t\tif(hasPawn(i))\n\t\t\t\tpw.println(pawns[i-1].getPosition());\n\t\t\telse\n\t\t\t\tpw.println(0);\n\t}", "void saveFile() {\n\t\tJFileChooser fileChooser = new JFileChooser(desktopPath);\n\t\tint returnVal = fileChooser.showSaveDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile filePath = fileChooser.getSelectedFile();\n\t\t\ttry {\n\t\t\t\tPrintWriter writer = new PrintWriter(filePath);\n\t\t\t\tScanner out = new Scanner(textEditor.getText());\n\t\t\t\twhile(out.hasNextLine()) {\n\t\t\t\t\twriter.println(out.nextLine());\n\t\t\t\t}\n\t\t\t\tout.close();\n\t\t\t\twriter.close();\n\t\t\t\ttextAreaChanged =false;\n\t\t\t\tsavedFilePath = filePath.getPath();\n\t\t\t\terrorTextArea.setText(\"\");\n\t\t\t} catch (Exception ex) {\n\t\t\t\terrorTextArea.setForeground(Color.RED);\n\t\t\t\terrorTextArea.setText(\"Error saving file\");\n\t\t\t}\n\t\t}\n\t}", "void onSaveClicked();", "public String save(){\n this.setDrawingCacheEnabled(true);\n this.buildDrawingCache();\n //mBitmap = Bitmap.createBitmap(this.getWidth(),this.getHeight(),Bitmap.Config.ARGB_8888);\n Bitmap bmp = Bitmap.createBitmap(this.getDrawingCache());\n this.setDrawingCacheEnabled(false);\n\n ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.PNG,100,byteArrayOutputStream);\n byte[] imgBytes=byteArrayOutputStream.toByteArray();\n\n return Base64.encodeToString(imgBytes,Base64.DEFAULT);\n\n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "public void doSave() {\n if (isSceneNameChanged()) {\n scene_.setName(nameInput_.getValue());\n }\n scene_.setText(sceneText_.getText());\n }", "void doSaveAs() {\r\n\t\tMapOpenSaveDialog dlg = new MapOpenSaveDialog(true, labels, saveSettings);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.saveSettings != null) {\r\n\t\t\tsaveSettings = dlg.saveSettings;\r\n\t\t\tfinal String fn = dlg.saveSettings.fileName.getPath();\r\n\t\t\taddRecentEntry(fn);\r\n\t\t\tdoSave();\r\n\t\t}\r\n\t}", "public void save()\r\n {\r\n \tfc=new JFileChooser();\r\n\t fc.setCurrentDirectory(new File(\"\"));\r\n\t if(fc.showSaveDialog(this)==JFileChooser.APPROVE_OPTION)\r\n\t \t//Try-Catch Block\r\n\t try\r\n\t {\r\n\t pw=new PrintWriter(new FileWriter(fc.getSelectedFile()+\".txt\")); //Print to the user-selected file\r\n\t\t \tfor(Organism o: e.getTree()) //IN PROGESS\r\n\t\t \t{\r\n\t\t\t\t\tint[] genes=o.getGenes(); //Getting genes from \r\n\t\t\t\t\tfor(int i=0; i<genes.length; i++)\r\n\t\t\t\t\t\tpw.print(genes[i]+\" \"); //Print each gene value in a line\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tpw.println(); //Starts printing on a new line\r\n\t\t\t\t}\r\n\t\t\t\tpw.close(); //Closes the File\r\n\t }\r\n\t catch (Exception ex) //Catch Any Exception\r\n\t {\r\n\t ex.printStackTrace();\r\n\t }\r\n }" ]
[ "0.81234807", "0.73198324", "0.72943777", "0.7261387", "0.70646393", "0.6948476", "0.6836602", "0.68240225", "0.6730616", "0.67269135", "0.67232054", "0.66940635", "0.66684836", "0.6624689", "0.66237193", "0.66110283", "0.6599455", "0.6599455", "0.6599455", "0.6595439", "0.65857667", "0.6572316", "0.6566398", "0.65659475", "0.6548211", "0.6532342", "0.6500509", "0.649544", "0.6490176", "0.64899427", "0.64663535", "0.6446242", "0.6434572", "0.63841355", "0.638185", "0.6377228", "0.6373187", "0.63726765", "0.63700545", "0.63637775", "0.6343854", "0.63398015", "0.6302304", "0.6300362", "0.62757516", "0.62734145", "0.62717474", "0.6258186", "0.6256264", "0.62484455", "0.6236686", "0.62296176", "0.62241054", "0.6221286", "0.6218295", "0.62127745", "0.6209318", "0.6197927", "0.6195108", "0.6186468", "0.61851513", "0.6178682", "0.61769414", "0.617634", "0.61745507", "0.6166928", "0.6163247", "0.61626303", "0.61511666", "0.6144992", "0.61316127", "0.61269605", "0.61229724", "0.61214083", "0.61106676", "0.61092484", "0.6108045", "0.610448", "0.61010987", "0.60763603", "0.60741717", "0.6070974", "0.6065345", "0.6061389", "0.60611826", "0.6053251", "0.6049372", "0.6046807", "0.60467666", "0.6042452", "0.6038747", "0.6026615", "0.6018468", "0.60151947", "0.60118085", "0.60091966", "0.60091966", "0.6005568", "0.60004413", "0.6000276" ]
0.65738124
21
Shares the current drawing by first ending and saving the drawing.
public void shareDrawing(ShareActionProvider shareActionProvider) { File savedFile = saveDrawing(); Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_STREAM, savedFile.toURI()); shareActionProvider.setShareIntent(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void endDrawing() {\n\t\tp_view.getHolder().unlockCanvasAndPost(p_canvas);\n\t}", "public void endDrawing();", "public void endDrawing() {\r\n SelectionResult res = SelectionResult.getInstance();\r\n\r\n res.selection = selection;\r\n res.referenceY = selectedY;\r\n\r\n res.previewWidth = getWidth();\r\n res.previewHeight = getHeight();\r\n\r\n selectedY = -1;\r\n }", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tdrawView.setDrawingCacheEnabled(true);\n\t\t\t\t\tString imgSaved = MediaStore.Images.Media.insertImage(\n\t\t\t\t\t\t\tgetContentResolver(), drawView.getDrawingCache(),\n\t\t\t\t\t\t\tUUID.randomUUID().toString() + \".png\", \"drawing\");\n\t\t\t\t\tSystem.out.println(\"the string uri:\" + imgSaved);\n\n\t\t\t\t\tif (imgSaved != null) {\n\t\t\t\t\t\tToast savedToast = Toast\n\t\t\t\t\t\t\t\t.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\"Drawing saved to Gallery!\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\t\t// savedToast.show();\n\t\t\t\t\t\tdrawView.destroyDrawingCache();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast unsavedToast = Toast.makeText(\n\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\"Oops! Image could not be saved.\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\t\t// unsavedToast.show();\n\t\t\t\t\t}\n\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "void reDraw();", "public void newDrawing()\n {\n //clear the current canvas\n canvas.drawColor(0, PorterDuff.Mode.CLEAR);\n //reprint the screen\n invalidate();\n }", "@Override\n public void save() {\n graphicsEnvironmentImpl.save(canvas);\n }", "public void endDraw()\r\n\t{\r\n\t\t// Set back to defaults in case someone set these.\r\n\t\tgl.glEnd();\r\n\t\tgl.glFlush();\r\n\t\tgl.glDisable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_SMOOTH);\r\n\t}", "public void saveChangedDrawings() {\n for (Drawing drawing : _changedDrawings) {\n boolean success = DrawingFileHelper.saveDrawing(drawing,\n drawing.getFilename(),\n GuiPlugin.getCurrent()\n .getGui());\n logger.debug(\"Saving drawing: \" + drawing.getFilename()\n + \", success: \" + success);\n\n }\n }", "protected abstract void saveGraphicsState();", "public void withdraw() {\n\t\t}", "public void draw()\r\n {\r\n drawn = true;\r\n }", "void flushDraw() {\n dirtyD = true;\n modelRoot.incrementNumberOfDirtyDNodes();\n }", "public void completeRedraw()\r\n\t{\r\n\t\tg = (Graphics2D) s.getDrawGraphics();\r\n\t}", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "@Override\n public void stroke() {\n graphicsEnvironmentImpl.stroke(canvas);\n }", "private void backupStyle() {\n if(!this.backedup) {\n this.backedup = true;\n this.lastFillColor = this.currentFillColor;\n this.lastFillOpacity = this.fillOpacity.getValue();\n this.lastStrokeColor = this.currentStrokeColor;\n this.lastStrokeOpacity = this.strokeOpacity.getValue();\n this.lastStrokeSize = this.currentStrokeSize.getValue();\n }\n }", "public void withdraw() {\n\t\t\t\n\t\t}", "public void saveState() {\n savedPen.setValues(pm.pen);\n }", "public void renewImage() {\r\n\t\t//myHistoryManager.clearHistory();\r\n\t\tindexes.clear();\r\n\t\tcache.clear();\r\n\t\tcolorCache.clear();\r\n\t\tstrokeSizes.clear();\r\n\t\t\r\n//\t\tfor (AbstractHistory tempHistory : newHistorys) {\r\n//\t\t\tmyHistoryManager.addHistory(tempHistory);\r\n//\t\t}\r\n\r\n\t\tsurface.clear();\r\n\t\tint start = 0;\r\n\t\tfor (start = 0; start < myHistoryManager.historys.size(); start++) {\r\n\r\n\t\t\tAbstractHistory history = myHistoryManager.historys.get(start);\r\n\t\t\tif (history.getType() == \"AddHistory\") {\r\n\r\n\t\t\t\tPoint endPos = ((AddHistory) history).endPos;\r\n\t\t\t\tMyColor pathColor = ((AddHistory) history).pathColor;\r\n\t\t\t\tstrokeSize = ((AddHistory) history).strokeSize;\r\n\t\t\t\tdouble x = endPos.getVector2().getX();\r\n\t\t\t\tdouble y = endPos.getVector2().getY();\r\n\r\n\t\t\t\tif (strokePointCount == 2) {\r\n\t\t\t\t\tcanvas_context.setStrokeStyle(pathColor.getColorCode());\r\n\t\t\t\t\tcanvas_context.setFillStyle(pathColor.getColorCode());\r\n\t\t\t\t\tcanvas_context.setLineWidth(((double) strokeSize) * 0.5);\r\n\t\t\t\t\tcanvas_context.setLineCap(LineCap.ROUND);\r\n\t\t\t\t\tcanvas_context.setLineJoin(LineJoin.ROUND);\r\n\t\t\t\t\tcanvas_context.setShadowBlur(((double) strokeSize) * 0.3);\r\n\t\t\t\t\tcanvas_context.setShadowColor(pathColor.getColorCode());\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* get the x, y */\r\n\t\t\t\t\tp3.x = x;\r\n\t\t\t\t\tp3.y = y;\r\n\t\t\t\t\tp0.x = p1.x + (p1.x - p2.x);\r\n\t\t\t\t\tp0.y = p1.y + (p1.y - p2.y);\r\n\t\t\t\t\tstrokePointCount++;\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tget_buffer(p0, p1, p2, p3, bufferCount);\r\n\t\t\t\t\tbufferCount = buffList.size();\r\n\t\t\t\t\toldx = (int) buffList.get(0).x;\r\n\t\t\t\t\toldy = (int) buffList.get(0).y;\r\n\t\t\t\t\tcanvas_context.beginPath();\r\n\t\t\t\t\tcanvas_context.moveTo(oldx, oldy);\r\n\t\t\t\t\tcache.add(new Vector2(oldx, oldy));\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * draw all interpolated points found through Hermite\r\n\t\t\t\t\t * interpolation\r\n\t\t\t\t\t */\r\n\t\t\t\t\tint i = 1;\r\n\t\t\t\t\tfor (i = 1; i < bufferCount - 2; i++) {\r\n\t\t\t\t\t\tx = buffList.get(i).x;\r\n\t\t\t\t\t\ty = buffList.get(i).y;\r\n\t\t\t\t\t\tcache.add(new Vector2(x, y));\r\n\t\t\t\t\t\tdouble nextx = buffList.get(i + 1).x;\r\n\t\t\t\t\t\tdouble nexty = buffList.get(i + 1).y;\r\n\t\t\t\t\t\tdouble c = (x + nextx) / 2;\r\n\t\t\t\t\t\tdouble d = (y + nexty) / 2;\r\n\t\t\t\t\t\tcanvas_context.quadraticCurveTo(x, y, c, d);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tx = buffList.get(i).x;\r\n\t\t\t\t\ty = buffList.get(i).y;\r\n\t\t\t\t\tcache.add(new Vector2(x, y));\r\n\t\t\t\t\tdouble nextx = buffList.get(i + 1).x;\r\n\t\t\t\t\tdouble nexty = buffList.get(i + 1).y;\r\n\t\t\t\t\tcache.add(new Vector2(nextx, nexty));\r\n\t\t\t\t\t\r\n\t\t\t\t\tcanvas_context.quadraticCurveTo(x, y, nextx, nexty);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* adaptive buffering using Hermite interpolation */\r\n\t\t\t\t\tint distance = (int) Math.sqrt(Math.pow(x - p2.x, 2)\r\n\t\t\t\t\t\t\t+ Math.pow(y - p2.y, 2));\r\n\t\t\t\t\tbufferCount = ((int) distance / 10) > 6 ? 6 : 3;\r\n\t\t\t\t\tbufferCount = bufferCount < 10 ? bufferCount : 10;\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tcolorCache.remove(colorCache.size()-1);\r\n\t\t\t\t\tcolorCache.add(pathColor);\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\t/* update the touch point list */\r\n\t\t\t\t\tp0.x = p1.x;\r\n\t\t\t\t\tp0.y = p1.y;\r\n\t\t\t\t\tp1.x = p2.x;\r\n\t\t\t\t\tp1.y = p2.y;\r\n\t\t\t\t\tp2.x = p3.x;\r\n\t\t\t\t\tp2.y = p3.y;\r\n\t\t\t\t\tp3.x = x;\r\n\t\t\t\t\tp3.y = y;\r\n\r\n\t\t\t\t\tget_buffer(p0, p1, p2, p3, bufferCount);\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * draw all interpolated points found through Hermite\r\n\t\t\t\t\t * interpolation\r\n\t\t\t\t\t */\r\n\t\t\t\t\tbufferCount = buffList.size();\r\n\t\t\t\t\tint i = 1;\r\n\t\t\t\t\tfor (i = 1; i < bufferCount - 2; i++) {\r\n\t\t\t\t\t\tx = buffList.get(i).x;\r\n\t\t\t\t\t\ty = buffList.get(i).y;\r\n\t\t\t\t\t\tcache.add(new Vector2(x, y));\r\n\t\t\t\t\t\tdouble nextx = buffList.get(i + 1).x;\r\n\t\t\t\t\t\tdouble nexty = buffList.get(i + 1).y;\r\n\t\t\t\t\t\tdouble c = (x + nextx) / 2;\r\n\t\t\t\t\t\tdouble d = (y + nexty) / 2;\r\n\t\t\t\t\t\tcanvas_context.quadraticCurveTo(x, y, c, d);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tx = buffList.get(i).x;\r\n\t\t\t\t\ty = buffList.get(i).y;\r\n\t\t\t\t\tcache.add(new Vector2(x, y));\r\n\t\t\t\t\t\r\n\t\t\t\t\tdouble nextx = buffList.get(i + 1).x;\r\n\t\t\t\t\tdouble nexty = buffList.get(i + 1).y;\r\n\t\t\t\t\tcache.add(new Vector2(nextx, nexty));\r\n\t\t\t\t\t\r\n\t\t\t\t\tcanvas_context.quadraticCurveTo(x, y, nextx, nexty);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* adaptive buffering using Hermite interpolation */\r\n\t\t\t\t\tint distance = (int) Math.sqrt(Math.pow(x - p2.x, 2)\r\n\t\t\t\t\t\t\t+ Math.pow(y - p2.y, 2));\r\n\t\t\t\t\tbufferCount = ((int) distance / 10) > 6 ? 6 : 3;\r\n\t\t\t\t\tbufferCount = bufferCount < 10 ? bufferCount : 10;\r\n\t\t\t\t\t// logger.log(Level.SEVERE, \"bufferCount \"+\r\n\t\t\t\t\t// bufferCount);\r\n\t\t\t\t}\r\n\r\n\t\t\t} else if (history.getType() == \"PathHeadHistory\") {\r\n\t\t\t\t\r\n\t\t\t\tMyColor pathColor = ((PathHeadHistory) history).pathColor;\r\n\t\t\t\tstrokeSize = ((PathHeadHistory) history).strokeSize;\r\n\t\t\t\t\r\n\t\t\t\tPoint position = ((PathHeadHistory) history).position;\r\n\t\t\t\tdouble x = position.getVector2().getX();\r\n\t\t\t\tdouble y = position.getVector2().getY();\r\n\t\t\t\tstrokePointCount = 0;\r\n\r\n\t\t\t\t/* initialize the points */\r\n\t\t\t\tp1.x = x;\r\n\t\t\t\tp1.y = y;\r\n\t\t\t\tp2.x = x;\r\n\t\t\t\tp2.y = y;\r\n\t\t\t\tstrokePointCount++;\r\n\t\t\t\tstrokePointCount++;\r\n\t\t\t\tcanvas_context.stroke();\r\n\t\t\t\t\r\n\t\t\t\t/* add index to indexes list */\r\n\t\t\t\tindexes.add(cache.size());\r\n\t\t\t\tcache.add(new Vector2(x, y));\r\n\t\t\t\tstrokeSizes.add(strokeSize);\r\n\t\t\t\tcolorCache.add(pathColor);\r\n\t\t\t\t\r\n\t\t\t\t/* set stroke color, size, and shadow */\r\n\t\t\t\tcanvas_context.setStrokeStyle(pathColor.getColorCode());\r\n\t\t\t\tcanvas_context.setFillStyle(pathColor.getColorCode());\r\n\t\t\t\tcanvas_context.setLineWidth(((double) strokeSize) * 0.4);\r\n\t\t\t\tcanvas_context.beginPath();\r\n\t\t\t\tcanvas_context.arc(x, y, ((double) strokeSize) * 0.4, 0,\r\n\t\t\t\t\t\t2 * Math.PI);\r\n\t\t\t\tcanvas_context.fill();\r\n\t\t\t\t\r\n\t\t\t\tbufferCount = 3;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tcanvas_context.stroke();\r\n\t\tstrokePointCount = 0;\r\n\t}", "void withDraw() {\n if (this.pointer != 0) {\n this.pointer--;\n }\n }", "@Override\n public void finish()\n {\n synchronized (this.strokeVec)\n {\n this.strokeVec.clear();\n }\n }", "public void erase() {\n g2.setPaint(Color.white);\r\n }", "static void ClearDraw() {\n\t\tshape = new GeneralPath();\n\t\ti1.setOverlay(null);\n\t\tOL = new Overlay();\n\n\t}", "private void draw() {\n\t\tCanvas c = null;\n\t\ttry {\n\t\t\t// NOTE: in the LunarLander they don't have any synchronization here,\n\t\t\t// so I guess this is OK. It will return null if the holder is not ready\n\t\t\tc = mHolder.lockCanvas();\n\t\t\t\n\t\t\t// TODO this needs to synchronize on something\n\t\t\tif (c != null) {\n\t\t\t\tdoDraw(c);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tmHolder.unlockCanvasAndPost(c);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n if (currentDrawing == null) {\n return;\n }\n currentDrawing = null;\n canvas.repaint();\n }\n\n// start drawing\n if (currentDrawing == null) {\n currentDrawing = new Line(e.getPoint(), e.getPoint(), outlineColorProvider.getCurrentColor());\n canvas.repaint();\n return;\n }\n\n// finish drawing\n currentDrawing.setEnd(e.getPoint());\n drawingModel.add(currentDrawing);\n currentDrawing = null;\n }", "private void erase()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.erase(this);\n }", "void Undo() {\n if (shapes.size() > 0) {\n shapes.remove(shapes.size() - 1);\n lineColours.remove(lineColours.size() - 1);\n currentPenColour = lineColours.get(lineColours.size() - 1);\n fillColours.remove(fillColours.size() - 1);\n currentFillColour = fillColours.get(fillColours.size() - 1);\n writeFile.undoWrite();\n repaint();\n }\n }", "public void showDraw(){\n\t\tdraw = new Document( drawFilePath);\n\t}", "private void draw() {\n gsm.draw(g);\n }", "private void restoreStyle() {\n if(this.backedup) {\n this.backedup = false;\n\n this.currentFillColor = this.lastFillColor;\n DOM.setStyleAttribute(fill.getElement(), \"backgroundColor\",currentFillColor.toCss(false));\n this.fillOpacity.setValue(this.lastFillOpacity);\n this.currentFillColor.setAlpha(this.fillOpacity.getValue());\n\n this.currentStrokeColor = this.lastStrokeColor;\n DOM.setStyleAttribute(stroke.getElement(), \"backgroundColor\",currentStrokeColor.toCss(false));\n this.strokeOpacity.setValue(this.lastStrokeOpacity);\n this.currentStrokeColor.setAlpha(this.strokeOpacity.getValue());\n\n this.currentStrokeSize.setValue(this.lastStrokeSize);\n }\n }", "public void paintFinalScreen() {\n\t\tapp.image(end, 0, 0);\n\t}", "public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }", "public void endDraw(Object theVal)\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tif (_writeToTmpFile)\r\n\t\t\t{\r\n\t\t\t\t_outputFileName = java.io.File.createTempFile(\"debrief_plot_\", \".wmf\")\r\n\t\t\t\t\t\t.getCanonicalPath();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t_outputFileName = getFileName();\r\n\r\n\t\t\t\tif (_directory != null)\r\n\t\t\t\t\t_outputFileName = _directory + File.separator + _outputFileName;\r\n\t\t\t}\r\n\r\n\t\t\tFileOutputStream fo = new FileOutputStream(_outputFileName);\r\n\r\n\t\t\twmf.writeWMF(fo);\r\n\t\t\t// wmf.writePlaceableWMF(fo, 5, 5, 200, 200, 200);\r\n\t\t\tfo.close();\r\n\t\t}\r\n\t\tcatch (FileNotFoundException f)\r\n\t\t{\r\n\t\t\tMWC.GUI.Dialogs.DialogFactory.showMessage(\"Write WMF\",\r\n\t\t\t\t\t\"Sorry, directory name may be invalid, please check properties\");\r\n\t\t\tif (DEBUG_OUTPUT)\r\n\t\t\t\tMWC.Utilities.Errors.Trace.trace(f, \"Directory not found\");\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\r\n\t\t\tif (DEBUG_OUTPUT)\r\n\t\t\t\tMWC.Utilities.Errors.Trace.trace(e);\r\n\t\t}\r\n\t}", "public void undo(){\n if(!isFreeDraw) { //in waypoint mode delete the last point\n int size = mMapInterface.getPathFrame().size();\n if (size >= 1) {\n isPathReady=false;\n mMapInterface.getPathFrame().remove(size - 1);\n pointsCounter--;\n googleMap.clear();\n drawLine();\n }\n }\n else{ //in continu mode delete all path\n deletePath();\n drawFree();\n }\n }", "@Override\n public void restore() {\n graphicsEnvironmentImpl.restore(canvas);\n }", "public void stroke() throws IOException\n {\n\tif (_closedPath == true) {\n\t Paint strokingPaint = getGraphicsState().getStrokingColor().getJavaColor();\n\t if ( strokingPaint == null ) {\n\t\tstrokingPaint = getGraphicsState().getStrokingColor().getPaint(pageSize.height);\n\t }\n\t if ( strokingPaint == null ) {\n\t\tLOG.info(\"ColorSpace \"+getGraphicsState().getStrokingColor().getColorSpace().getName() +\" doesn't provide a stroking color, using white instead!\");\n\t\tstrokingPaint = Color.WHITE;\n\t }\n\t if (strokingPaint != Color.WHITE) {\n\t\tfor(Line line : _currentPath) {\n\t\t if(line.isVertical() || line.isHorizontal()) {\n\t\t\t_path.add(line);\n\t\t }\n\t\t}\n\t }\n\t}\n\t_currentPath.clear();\n }", "@Override\n\tpublic void withdraw() {\n\t\t\n\t}", "public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void draw() {\n \n // TODO\n }", "void takeSnapShot(File fileToSave) {\n try {\n /*Construct a new BufferedImage*/\n BufferedImage exportImage = new BufferedImage(this.getSize().width,\n this.getSize().height,\n BufferedImage.TYPE_INT_RGB);\n\n \n /*Get the graphics from JPanel, use paint()*/\n this.paint(exportImage.createGraphics());\n \n fileToSave.createNewFile();\n ImageIO.write(exportImage, \"PNG\", fileToSave);\n } catch(Exception exe){\n System.out.println(\"DrawCanvas.java - Exception\");\n }//catch\n}", "public void stopDrawing() {\n LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, this);\n isDrawing = false;\n currentDrawing.endLine();\n }", "private boolean beginDrawing() {\n\t\tif (!p_view.getHolder().getSurface().isValid()) {\n\t\t\treturn false;\n\t\t}\n\t\tp_canvas = p_view.getHolder().lockCanvas();\n\t\treturn true;\n\t}", "public void beginDrawing();", "void computeDrawing() {\n if (dirtyD) {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n modelRoot.decrementNumberOfDirtyDNodes();\n dirtyD = false;\n }\n }", "public void clear() { drawData.clear(); }", "public void flush(){\r\n\t\tColor tempcol = screengraphics.getColor();\r\n\t\tscreengraphics.setColor(backgroundcolor);\r\n\t\tscreengraphics.fillRect(0, 0, sizex, sizey);\r\n\t\tscreengraphics.dispose();\r\n\t\tstrategy.show();\r\n\t\tscreengraphics =(Graphics2D) strategy.getDrawGraphics();\r\n\t\tscreengraphics.setColor(backgroundcolor);\r\n\t\tscreengraphics.fillRect(0, 0, sizex, sizey);\r\n\t\tscreengraphics.dispose();\r\n\t\tstrategy.show();\r\n\t\tscreengraphics =(Graphics2D) strategy.getDrawGraphics();\r\n\t\tscreengraphics.setColor(tempcol);\r\n\t\t\r\n\t}", "private void setupDrawing(){\n brushSize = 1;\n lastBrushSize = brushSize;\n drawPath = new Path();\n drawPaint = new Paint();\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(brushSize);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Paint.Cap.ROUND);\n canvasPaint = new Paint(Paint.DITHER_FLAG);\n }", "public void SaveCurrentGame(){\n if(gameStarted == false){ return; }\n recordGame.write(board, timeRuunableThread, level);\n timeRuunableThread.setDrawNumber(false);\n canLoadGame = true;\n // update infoCanvas\n CleanInfoCanvas();\n }", "public void restoreGraphics() {\n\n if ( g2 instanceof AimxcelGraphics2D ) {\n AimxcelGraphics2D aimxcelGraphics2D = (AimxcelGraphics2D) g2;\n aimxcelGraphics2D.popState();\n }\n else {\n if ( g2.getRenderingHints() != renderingHints ) {\n g2.setRenderingHints( renderingHints );\n }\n if ( g2.getPaint() != paint ) {\n g2.setPaint( paint );\n }\n if ( g2.getColor() != color ) {\n g2.setColor( color );\n }\n if ( g2.getStroke() != stroke ) {\n g2.setStroke( stroke );\n }\n if ( g2.getComposite() != composite ) {\n g2.setComposite( composite );\n }\n if ( g2.getTransform() != transform ) {\n g2.setTransform( transform );\n }\n if ( g2.getFont() != font ) {\n g2.setFont( font );\n }\n if ( g2.getClip() != clip ) {\n g2.setClip( clip );\n }\n if ( g2.getBackground() != background ) {\n g2.setBackground( background );\n }\n }\n }", "private void completeSave() {\n colorBar.updateRevertToCurrent();\n colorBar.revertColorBar();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n cmapParams.setColorMapName(seldCmapName);\n saveBtn.setEnabled(true);\n }", "private void selfClone() {\n stroke = stroke.clone();\n }", "public void changeLastDrawn(Point point){\n\t\tif(lastDrawn != null && selectedTool != Tool.DELETE){\n\t\t\tlastDrawn.setCoords(lastDrawn.x1, lastDrawn.y1, point.x, point.y);\n\t\t\trepaint();\n\t\t}\n\t}", "private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSelection() != null) {\n\t\t\tdrawShape(getSelection(), true);\n\t\t}\n\t}", "private void draw() {\n\tSurfaceHolder holder = getSurfaceHolder();\n\tCanvas canvas = null;\n\ttry {\n\t\tcanvas = holder.lockCanvas();\n\t\tif (canvas != null) {\n\t\t\tif (bitmap == null) {\n\t\t\t\tbitmap = iniBitmap(canvas.getWidth(), canvas.getHeight());\n\t\t\t}\n\t\t\tcanvas.drawBitmap(bitmap.getBitmap(), 0, 0, paint);\n\t\t}\n\t} finally {\n\t\tif (canvas != null) holder.unlockCanvasAndPost(canvas);\n\t}\n}", "void draw() {\n scsw.draw();\n \n}", "@Override\r\n public void drawExit()\r\n {\r\n\tdraw();\r\n\tif (_transition != null)\r\n\t _transition.draw();\r\n }", "public void redraw() {\n\t\tif(this.getGraphics() != null){\n\t\t\tthis.getGraphics().drawImage(imageBuffer, 0, 0, this); // Swap\n\t\t}\n\t}", "private void sendDrawEndEvent() {\n\t\tint type = this.drawType;\n\t\tthis.deactivate();\n\t\tthis.activate(type);\n\t}", "private void renewPreview() {\r\n\t\tint start = 0;\r\n\t\tsurface.clear();\r\n\t\tfor (start = 0; start < myHistoryManager.historys.size(); start++) {\r\n\t\t\tAbstractHistory history = myHistoryManager.historys.get(start);\r\n\t\t\tif (history.getType() == \"AddHistory\") {\r\n\t\t\t\tPoint endPos = ((AddHistory) history).endPos;\r\n\t\t\t\tMyColor pathColor = ((AddHistory) history).pathColor;\r\n\t\t\t\tstrokeSize = ((AddHistory) history).strokeSize;\r\n\t\t\t\tdouble x = endPos.getVector2().getX();\r\n\t\t\t\tdouble y = endPos.getVector2().getY();\r\n\r\n\t\t\t\tif (strokePointCount == 1) {\r\n\t\t\t\t\t/* set stroke color, size, and shadow */\r\n\t\t\t\t\tcanvas_context.setStrokeStyle(pathColor.getColorCode());\r\n\t\t\t\t\tcanvas_context.setFillStyle(pathColor.getColorCode());\r\n\t\t\t\t\tcanvas_context.setLineWidth(strokeSize);\r\n\t\t\t\t\tcanvas_context.setLineCap(LineCap.ROUND);\r\n\t\t\t\t\tcanvas_context.setLineJoin(LineJoin.ROUND);\r\n\t\t\t\t\tcanvas_context.stroke();\r\n\t\t\t\t\tcanvas_context.beginPath();\r\n\t\t\t\t\tcanvas_context.moveTo(x, y);\r\n\t\t\t\t}\r\n\t\t\t\tcanvas_context.lineTo(x, y);\r\n\t\t\t\tstrokePointCount++;\r\n\t\t\t\t\r\n\t\t\t} else if (history.getType() == \"PathHeadHistory\") {\r\n\t\t\t\tstrokePointCount = 0; \r\n\t\t\t\tstrokePointCount++;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcanvas_context.stroke();\r\n\t\t\r\n\t}", "public void makeWithdraw() {\n withDraw();\n }", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}", "private void saveCurrentObject() {\n\t}", "public void takeScreenShot() {\r\n \t\tgraph.clearSelection();\r\n \t\tgraph.showScreenShotDialog();\r\n \t}", "public void SaveActionPerformed(java.awt.event.ActionEvent evt) {\n if (jfcSave.showSaveDialog(this) == JFileChooser.APPROVE_OPTION){\r\n //get selected file name\r\n File fileSave = jfcSave.getSelectedFile();\r\n String fileSaveName = fileSave.toString();\r\n\r\n try {\r\n SaveScreenShot(drawingPanel,fileSaveName);\r\n } catch (Exception e){\r\n System.out.println(\"image failed to save!\");\r\n }\r\n }\r\n }", "public Drawing drawing() {\n return fDrawing;\n }", "private void draw() {\n frames++;\n MainFrame.singleton().draw();\n }", "private void resetStroke(Graphics2D graphic) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"reseting the graphics\");\n }\n \n graphic.setStroke(DEFAULT_STROKE);\n }", "public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btnClear:\n if (null != mCanvas) {\n mCanvas.drawColor(Color.WHITE);\n ivGraffit.setImageBitmap(mBitmap);\n }\n break;\n case R.id.btnSave:\n\n // AT_MOST:我们可以指定一个上限,要保存的图片的大小不会超过它。\n // EXACTLY:我们指定了一个明确的大小,要求图片保存时满足这个条件。\n // UNSPECIFIED:图片多大,我们就保存多大。\n\n ivGraffit.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));\n ivGraffit.layout(0, 0, ivGraffit.getMeasuredWidth(), ivGraffit.getMeasuredHeight());\n ivGraffit.buildDrawingCache();\n Bitmap drawingCache = ivGraffit.getDrawingCache();\n if (null == drawingCache) {\n UIUtils.toastShow(\"null == drawingCache\");\n return;\n }\n // FileOutputStream fos =\n // new\n // FileOutputStream(file)\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try {\n\n drawingCache.compress(CompressFormat.JPEG, 100, baos);\n baos.writeTo(new FileOutputStream(FileUtils.getImgFile()));\n } catch (Exception e) {\n // TODO Auto-generated\n // catch block\n e.printStackTrace();\n } finally {\n\n try {\n baos.flush();\n baos.close();\n } catch (IOException e) {\n // TODO\n // Auto-generated\n // catch block\n e.printStackTrace();\n }\n }\n break;\n\n default:\n break;\n }\n }", "public void cleanCanvas() {\n\t\tclean = true;\n\t\tthis.invalidate();\n\t\t\n\t\t// adiciona ponto fict’cio para informar que o canvas foi limpo num dado momento\n\t\tif (toReplay) {\n\t\t\txs.add(-2.0f);\n\t\t\tys.add(-2.0f);\n\t\t\tcolors.add(mPaint.getColor());\n\t\t}\n\t}", "public void drawSaveMenu() {\n implementation.devDrawSaveMenu();\n }", "private void finishErasing() {\n synchronized (lastEraseTrace) {\n if (lastEraseTrace.size() > 0) {\n ArrayList<Shape> t = new ArrayList<Shape>();\n t.add(new EraseTrace(lastEraseTrace, sheet.toSheet(eraserRadius)));\n sheet.doAction(new AddShapes(t));\n lastEraseTrace.clear();\n }\n }\n }", "public void reDraw() {\n if(entityManager.getPlayerVaccines() != 0){\n vaccine[entityManager.getPlayerVaccines()-1].draw();\n }\n lifeCount[entityManager.getHealth()].draw();\n\n if(entityManager.getHealth() != prevPlayerLife)\n lifeCount[prevPlayerLife].delete();\n prevPlayerLife = entityManager.getHealth();\n\n if(prevPlayerLife == 0){\n heart.draw();\n }\n\n if(entityManager.playerWithMask()){\n mask.draw();\n } else {\n mask.delete();\n }\n }", "public void draw() {\n \n }", "@Override\n protected void onDraw(Canvas canvas){\n super.onDraw(canvas);\n canvas.drawPath(path_draw, paint_brush);\n }", "public void partialRedraw()\r\n\t{\r\n\t\tg.clearRect(0,0,NumerateGame.WINDOW_X,NumerateGame.WINDOW_Y);\r\n\t}", "protected void setDrawing(boolean drawing) {\n\tmDrawing = drawing;\n}", "public void draw()\n {\n myPencil.up();\n myPencil.backward(100);\n myPencil.down();\n myPencil.turnRight(90);\n myPencil.forward(200);\n myPencil.turnLeft(90);\n myPencil.forward(200);\n myPencil.turnLeft(90);\n myPencil.forward(400);\n myPencil.turnLeft(90);\n myPencil.forward(200);\n myPencil.turnLeft(90);\n myPencil.forward(200);\n // Roof\n myPencil.up();\n myPencil.move(0,200);\n myPencil.down();\n myPencil.setDirection(333.435);\n myPencil.forward(223.607);\n myPencil.setColor(new Color(2, 0, 0));\n myPencil.up();\n myPencil.move(0,200);\n myPencil.setDirection(206.565);\n myPencil.down();\n myPencil.forward(223.607);\n // Windows\n myPencil.up();\n myPencil.move(-150,0);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(75,0);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(-50,-100);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(100);\n myPencil.turnLeft(90);\n myPencil.forward(50);\n myPencil.turnLeft(90);\n myPencil.forward(100);\n myPencil.up();\n myPencil.move(-50,-100);\n myPencil.setDirection(60);\n myPencil.down();\n myPencil.backward(150);\n myPencil.up();\n myPencil.move(50,-100);\n myPencil.setDirection(120);\n myPencil.down();\n myPencil.backward(150);\n myPencil.up();\n myPencil.move(150,-150);\n myPencil.down();\n myPencil.drawCircle(25);\n myPencil.up();\n myPencil.move(-150,-150);\n myPencil.down();\n myPencil.drawCircle(25);\n myPencil.up();\n myPencil.move(-150,-175);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.backward(20);\n myPencil.up();\n myPencil.move(150,-175);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.backward(20);\n myPencil.up();\n myPencil.move(-150,37.5);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(75,37.5);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(-112.5,0);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(112.5,0);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.forward(75);\n // House Sidewalk\n myPencil.up();\n myPencil.move(-250,-112.5);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(192.5);\n myPencil.up();\n myPencil.move(250,-112.5);\n myPencil.setDirection(180);\n myPencil.down();\n myPencil.forward(192.5);\n myPencil.up();\n myPencil.move(-250,-100);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(90);\n myPencil.forward(193);\n myPencil.up();\n myPencil.move(250,-100);\n myPencil.setDirection(180);\n myPencil.down();\n myPencil.forward(90);\n myPencil.up();\n myPencil.move(-75,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-100,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-125,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-150,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-175,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-200,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-225,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-250,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(75,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(100,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(125,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(150,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(175,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(200,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(225,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(250,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n // Chimney\n myPencil.up();\n myPencil.move(125,190);\n myPencil.setDirection(270);\n myPencil.down();\n myPencil.forward(52);\n myPencil.up();\n myPencil.move(100,190);\n myPencil.setDirection(270);\n myPencil.down();\n myPencil.forward(40);\n myPencil.up();\n myPencil.move(100,190);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(25);\n // Door window\n myPencil.up();\n myPencil.move(0,-25);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.drawCircle(8);\n myPencil.up();\n myPencil.move(-8,-25);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(16);\n myPencil.up();\n myPencil.move(0,-17);\n myPencil.setDirection(270);\n myPencil.down();\n myPencil.forward(16);\n // Door knob\n myPencil.up();\n myPencil.move(14,-55);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.drawCircle(2);\n }", "protected abstract void restoreGraphicsState();", "public JVDraw() {\r\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\tsetLocation(250, 250);\r\n\t\tsetSize(500, 500);\r\n\t\tsetTitle(\"JVDraw\");\r\n\r\n\t\tsetLayout(new BorderLayout());\r\n\r\n\t\tJPanel toolbar = new JPanel(new FlowLayout(FlowLayout.LEFT));\r\n\r\n\t\tJColorArea jca = new JColorArea(Color.BLACK);\r\n\t\tJColorArea jca2 = new JColorArea(Color.WHITE);\r\n\r\n\t\ttoolbar.add(jca);\r\n\t\ttoolbar.add(jca2);\r\n\t\tShapeButtons sbg = new ShapeButtons(Shape.LINE);\r\n\t\ttoolbar.add(sbg);\r\n\t\tadd(toolbar, BorderLayout.NORTH);\r\n\r\n\t\tdrawingModel = new DrawingModelImpl();\r\n\t\tdrawingCanvas = new JDrawingCanvas(drawingModel);\r\n\r\n\t\tadd(drawingCanvas, BorderLayout.CENTER);\r\n\r\n\t\tdrawingModel.addDrawingModelListener(drawingCanvas);\r\n\t\tmouseCreator = new MouseCreator(drawingModel, jca, jca2, sbg);\r\n\t\tdrawingCanvas.addMouseListener(mouseCreator);\r\n\t\tdrawingCanvas.addMouseMotionListener(mouseCreator);\r\n\r\n\t\tlistModel = new DrawingObjectListModel(drawingModel);\r\n\t\tdrawingModel.addDrawingModelListener(listModel);\r\n\r\n\t\tadd(new DrawingObjectList(listModel), BorderLayout.EAST);\r\n\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tsetJMenuBar(menuBar);\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tmenuBar.add(fileMenu);\r\n\t\tfileMenu.add(new OpenAction(this));\r\n\t\tfileMenu.add(new SaveAction(this));\r\n\t\tfileMenu.add(new SaveAsAction(this));\r\n\t\tfileMenu.add(new ExportAction(this));\r\n\t\tfileMenu.add(new ExitAction(this));\r\n\r\n\t\tdrawingModel.addDrawingModelListener(new DrawingModelListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void objectsRemoved(DrawingModel source, int index0, int index1) {\r\n\t\t\t\tmodified = true;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void objectsChanged(DrawingModel source, int index0, int index1) {\r\n\t\t\t\tmodified = true;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void objectsAdded(DrawingModel source, int index0, int index1) {\r\n\t\t\t\tmodified = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tadd(new StatusBar(jca, jca2), BorderLayout.SOUTH);\r\n\t}", "public void onClickShare(MenuItem mi) {\n mCanvas.getSurfaceView().queueEvent(new Runnable() {public void run() {\n mCanvas.save(mSavePath, PaintPaint.AUTOSAVE);\n File file = new File(mSavePath+PaintPaint.AUTOSAVE);\n Intent intent = new Intent(android.content.Intent.ACTION_SEND);\n intent.setType(\"image/png\");\n intent.putExtra(Intent.EXTRA_STREAM,Uri.fromFile(file));\n startActivity(Intent.createChooser(intent, \"Share image\"));\n }});\n }", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "private void drawWithGraphicStroke(Graphics2D graphic, Shape path, Graphic gFill,\n Feature feature) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"drawing a graphicalStroke\");\n }\n \n int trueImageHeight = 0;\n int trueImageWidth = 0;\n \n // get the image to draw\n BufferedImage image = getExternalGraphic(gFill);\n \n if (image != null) {\n trueImageWidth = image.getWidth();\n trueImageHeight = image.getHeight();\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"got an image in graphic fill\");\n }\n } else {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"going for the mark from graphic fill\");\n }\n \n Mark mark = getMark(gFill, feature);\n int size = 200;\n trueImageWidth = size;\n trueImageHeight = size;\n \n image = new BufferedImage(size, size, BufferedImage.TYPE_INT_ARGB);\n \n Graphics2D g1 = image.createGraphics();\n double rotation = 0.0;\n rotation = ((Number) gFill.getRotation().getValue(feature)).doubleValue();\n fillDrawMark(g1, markCentrePoint, mark, (int) (size * .9), rotation, feature);\n \n MediaTracker track = new MediaTracker(obs);\n track.addImage(image, 1);\n \n try {\n track.waitForID(1);\n } catch (InterruptedException e) {\n LOGGER.warning(e.toString());\n }\n }\n \n int size = 6;\n \n size = ((Number) gFill.getSize().getValue(feature)).intValue();\n \n int imageWidth = size; //image.getWidth();\n int imageHeight = size; //image.getHeight();\n \n PathIterator pi = path.getPathIterator(null, 10.0);\n double[] coords = new double[6];\n int type;\n \n double[] first = new double[2];\n double[] previous = new double[2];\n type = pi.currentSegment(coords);\n first[0] = coords[0];\n first[1] = coords[1];\n previous[0] = coords[0];\n previous[1] = coords[1];\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"starting at \" + first[0] + \",\" + first[1]);\n }\n \n pi.next();\n \n while (!pi.isDone()) {\n type = pi.currentSegment(coords);\n \n switch (type) {\n case PathIterator.SEG_MOVETO:\n \n // nothing to do?\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"moving to \" + coords[0] + \",\" + coords[1]);\n }\n \n break;\n \n case PathIterator.SEG_CLOSE:\n \n // draw back to first from previous\n coords[0] = first[0];\n coords[1] = first[1];\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"closing from \" + previous[0] + \",\" + previous[1] + \" to \"\n + coords[0] + \",\" + coords[1]);\n }\n \n // no break here - fall through to next section\n case PathIterator.SEG_LINETO:\n \n // draw from previous to coords\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"drawing from \" + previous[0] + \",\" + previous[1] + \" to \"\n + coords[0] + \",\" + coords[1]);\n }\n \n double dx = coords[0] - previous[0];\n double dy = coords[1] - previous[1];\n double len = Math.sqrt((dx * dx) + (dy * dy)); // - imageWidth;\n \n double theta = Math.atan2(dx, dy);\n dx = (Math.sin(theta) * imageWidth);\n dy = (Math.cos(theta) * imageHeight);\n \n //int dx2 = (int)Math.round(dy/2d);\n //int dy2 = (int)Math.round(dx/2d);\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"dx = \" + dx + \" dy \" + dy + \" step = \"\n + Math.sqrt((dx * dx) + (dy * dy)));\n }\n \n double rotation = theta - (Math.PI / 2d);\n double x = previous[0] + (dx / 2.0);\n double y = previous[1] + (dy / 2.0);\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"len =\" + len + \" imageWidth \" + imageWidth);\n }\n \n double dist = 0;\n \n for (dist = 0; dist < (len - imageWidth); dist += imageWidth) {\n /*graphic.drawImage(image2,(int)x-midx,(int)y-midy,null); */\n renderImage(x, y, image, size, rotation);\n \n x += dx;\n y += dy;\n }\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"loop end dist \" + dist + \" len \" + len + \" \" + (len - dist));\n }\n \n if ((len - dist) > 0.0) {\n double remainder = len - dist;\n \n //clip and render image\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"about to use clipped image \" + remainder);\n }\n \n BufferedImage img = new BufferedImage(trueImageHeight, trueImageWidth,\n BufferedImage.TYPE_INT_ARGB);\n Graphics2D ig = img.createGraphics();\n ig.setClip(0, 0, (int) (((double) trueImageWidth * remainder) / (double) size),\n trueImageHeight);\n \n ig.drawImage(image, 0, 0, trueImageWidth, trueImageHeight, obs);\n \n renderImage(x, y, img, size, rotation);\n }\n \n break;\n \n default:\n LOGGER.warning(\"default branch reached in drawWithGraphicStroke\");\n }\n \n previous[0] = coords[0];\n previous[1] = coords[1];\n pi.next();\n }\n }", "public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }", "private void save() {\n prefs.saveCardBackground(selectedBackground);\n prefs.saveCardBackgroundColor(selectedBackgroundColor);\n\n updateSummary();\n }", "public void draw(){\n\t\tStdDraw.picture(this.xxPos,this.yyPos,\"images/\"+this.imgFileName);\n\t}", "public void megarepaintImmediately() {\n paintDirtyRectanglesImmediately();\n }", "public void refresh() {\n\t\tdrawingPanel.repaint();\n\t}", "@Override\n\tpublic void paint(Graphics g) {\n\t\tif (bufferWidth != getSize().width || bufferHeight != getSize().height\n\t\t\t\t|| bufferImage == null || bufferGraphics == null)\n\t\t\tresetBuffer();\n\t\tif (bufferGraphics != null) {\n\t\t\t// leert das offscreen image damit ein neues gezeichnet werden kann\n\t\t\tbufferGraphics.clearRect(0, 0, bufferWidth, bufferHeight);\n\n\t\t\t// we finaly paint the offscreen image onto the onscreen image\n\t\t\tpaintBuffer(bufferGraphics);\n\t\t\tg.drawImage(bufferImage, 0, 0, this);\n\t\t}\n\t}", "public void paintImmediately() {\n apparatusPanel2.paintDirtyRectanglesImmediately();\n }", "public void draw() {\n }", "public void draw()\n {\n drawLine(x1, y1, x2, y2);\n }", "private void drawLastEraseTrace(OpenGLRenderer renderer) {\n EraseTrace eraseTrace = null;\n synchronized (lastEraseTrace) {\n if (lastEraseTrace.size() > 0)\n // TODO - build incrementaly!\n eraseTrace = new EraseTrace(lastEraseTrace, sheet.toSheet(eraserRadius));\n }\n if (eraseTrace != null) {\n eraseTrace.draw(renderer, sheet.getViewZoom());\n }\n }", "protected abstract void draw();", "public void saveColorAndFont()\r\n\t{\r\n\t\tsaveColor();\r\n\t\tsaveFont();\r\n\t}", "public void clearCanvas() {\n\n path_draw.reset();\n\n invalidate();\n\n }", "public void draw(){\n StdDraw.picture(this.xCoordinate,this.yCoordinate,this.img);\n }", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tdrawView.startNew();\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}" ]
[ "0.706325", "0.6551853", "0.6412317", "0.60550684", "0.6034179", "0.60210717", "0.5992373", "0.5963785", "0.59598124", "0.5921167", "0.5890936", "0.58782434", "0.5844372", "0.5843928", "0.58270913", "0.5821435", "0.5812461", "0.5797132", "0.57606393", "0.56873256", "0.56766003", "0.56507033", "0.56182665", "0.56150484", "0.5605555", "0.5590993", "0.55633754", "0.55628014", "0.5548052", "0.5537946", "0.5535813", "0.548727", "0.5472718", "0.5464134", "0.5463245", "0.54538333", "0.5447637", "0.5447474", "0.54463845", "0.5439707", "0.54337776", "0.54203093", "0.5420124", "0.54176676", "0.54149884", "0.5393109", "0.5375062", "0.53734064", "0.5362434", "0.5359167", "0.5355176", "0.53496706", "0.5325715", "0.5298151", "0.52831817", "0.5277313", "0.5276152", "0.5273476", "0.5247916", "0.52425116", "0.52361995", "0.5230494", "0.5228917", "0.5226194", "0.52146184", "0.52064407", "0.52030694", "0.51996696", "0.5199406", "0.51984626", "0.51958984", "0.51881516", "0.5179175", "0.5174998", "0.51696295", "0.51646245", "0.51634455", "0.5155969", "0.5155535", "0.51519054", "0.5142801", "0.5141201", "0.51398623", "0.5134443", "0.5126806", "0.51173294", "0.5112193", "0.51045185", "0.5101731", "0.5099535", "0.5096009", "0.5092067", "0.5088149", "0.50872934", "0.5085391", "0.5084601", "0.5083416", "0.5077895", "0.5076472", "0.50664157" ]
0.5529612
31
// O V E R R I D E S // // OnMapReadyCallback
@Override public void onMapReady(GoogleMap googleMap) { Log.v(TAG, "onMapReady"); mMap = googleMap; //Sets zoom and compass controls googleMap.getUiSettings().setZoomControlsEnabled(true); googleMap.getUiSettings().setCompassEnabled(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMapReady(GoogleMap googleMap) {\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n mapLoaded = true;\n waitForMapPlease();\n }\n });\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n\n }", "public interface MapReadyListener {\n\n void mapIsReady();\n}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n }", "@Override\r\n\t\t\tpublic void onMapLoadFinish() {\n\t\t\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap){\n mMap = googleMap;\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n }", "public static void onMapReady() {\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n // For zooming automatically to the Dropped PIN Location\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude,\n longitude), 12.0f));\n }", "@SuppressLint(\"MissingPermission\")\n @Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(\"MAP_FRAG\", \"MapCallback\");\n\n mMap = googleMap;\n\n Log.d(\"MAP\", mMap.toString());\n\n mMap.setPadding(0, 0, 0, 300);\n\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mMap.getUiSettings().setMapToolbarEnabled(false);\n\n mMap.addMarker(new MarkerOptions().position(new LatLng(Common.latitude, Common.longitude))\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_mark_red)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Common.latitude, Common.longitude), 15.0f));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n map = googleMap;\n GetLastKnownLocation();\n }", "private void initMap(){\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n /* mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n //mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n LatLng ifto = new LatLng(-10.199202218157746, -48.31158433109522);\n mMap = googleMap;\n mMap.setOnCameraIdleListener(this);\n mMap.addMarker(new MarkerOptions().position(ifto).title(\"IFTO Campus Palmas\"));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n updateLocationUI();\n getDeviceLocation();\n // Add a marker in Sydney and move the camera\n //float zoom = 15;\n //LatLng gbc = new LatLng(43.676209, -79.410703);\n //mMap.addMarker(new MarkerOptions().position(gbc).title(\"Marker in GBC\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(gbc, zoom));\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Toast.makeText(this, \"Map is Ready\", Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"onMapReady: map is ready\");\n mMap = googleMap;\n\n if (mLocationPermissionsGranted) {\n getDeviceLocation();\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n init();\n }\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n getCodes(googleMap);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n MapStyleOptions style = MapStyleOptions.loadRawResourceStyle(getContext(), R.raw.mapstyle_day);\n mMap.setMapStyle(style);\n\n if (locationProvider != null) {\n enableLocationBullet();\n if (lastpos != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(lastpos));\n }\n }\n // Start clustermanager and add markers\n setUpClusterManager();\n\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n mapReady = true;\n if (searchedRestaurants != null) {\n addRestaurants(searchedRestaurants, false);\n }\n\n Location loc = locationProvider.getLastLocation();\n if (!init) {\n zoomMapToPosition(loc, MY_LOCATION_ZOOM);\n init = true;\n }\n\n }\n });\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n /*To find map coordinates for database\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n Log.i(\"MAP\", latLng.latitude + \", \" + latLng.longitude);\n }\n });\n */\n\n\n styleMap();\n populateMap();\n setUpDirectionIntegration();\n\n Intent intent = getIntent();\n String location = intent.getStringExtra(\"Location\");\n if (location != null) {\n showSelectedLocation(location);\n } else {\n //showCurrentLocation();\n showCurrentLocation();\n }\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mapReady = true;\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng Bangalore = new LatLng(12.972442, 77.580643);\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(Bangalore)\n .zoom(17)\n .bearing(90)\n .tilt(30)\n .build();\n mMap.addMarker(new MarkerOptions().position(Bangalore).title(\"Marker in Bangalore\"));\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng CSN = new LatLng(51.87, -8.481);\n mMap.setMapType(MAP_TYPE_HYBRID);\n mMap.addMarker(new MarkerOptions().position(CSN).title(\"Marker at CSN college\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(CSN, 15F));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng hn = new LatLng(14.079526, -87.180662);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(hn));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(hn,7));\n helperFacturacion = new FacturacionHelper(MapListClientesActivity.this);\n\n\n addMarkers();\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n VisibleRegion region = mMap.getProjection().getVisibleRegion();\r\n\r\n Handler mainHandler = new Handler(this.getMainLooper());\r\n\r\n Runnable myRunnable = new Runnable() {\r\n @Override\r\n public void run() {\r\n while (true) {\r\n // Add a marker in Sydney and move the camera\r\n final LatLng position = new LatLng(Math.random()*150, Math.random()*150);\r\n\r\n final BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.cast_album_art_placeholder);\r\n\r\n // Get a handler that can be used to post to the main thread\r\n Handler mainHandler = new Handler(MapsActivity.this.getMainLooper());\r\n\r\n Runnable updateRunnable = new Runnable() {\r\n @Override\r\n public void run() {\r\n addMarker(position, \"Marker test\", \"Description test\", icon);\r\n }\r\n };\r\n\r\n mainHandler.post(updateRunnable);\r\n\r\n try {\r\n Thread.sleep(1500);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n }\r\n };\r\n\r\n new Thread(myRunnable).start();\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap)\n {\n //Enable interactions with the google map\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n if(!partnerLocs) {\n Log.d(\"GO TO INTI :\", \"!!!!\");\n init(); //initialize components\n mMap.setOnMapLongClickListener(this);\n mMap.setOnMarkerDragListener(this);\n\n }\n mMap.setOnMarkerClickListener(this);\n\n if(showMyLoc || partnerLocs){\n loadMarkers();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n markerClicked.showInfoWindow();\n }\n else{\n loadMarkers(); //change to loadPartnerMarkers() later\n// mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n// markerClicked.showInfoWindow();\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng wroclaw = new LatLng(51.110, 17.034);\n mMap.addMarker(new MarkerOptions().position(wroclaw));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(wroclaw, 12));\n mMap.clear();\n // Setting a click event handler for the map\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng latLng) {\n bSelect.setEnabled(true);\n // Creating a marker\n MarkerOptions markerOptions = new MarkerOptions();\n\n // Setting the position for the marker\n markerOptions.position(latLng);\n\n // Setting the title for the marker.\n // This will be displayed on taping the marker\n markerOptions.title(\"NOWY: \" + latLng.latitude + \" : \" + latLng.longitude);\n\n markerOptions.alpha(0.6f);\n // Clears the previously touched position\n mMap.clear();\n\n // Animating to the touched position\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n\n location = latLng.latitude + \" \" + latLng.longitude;\n\n setupMarker();\n }\n });\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n// updateMap(new LocationModel(41.806363, 44.768531, \"Agmasheneblis Xeivani\"));\n if (shoppingList.getLocationReminder() != null) {\n updateMap(shoppingList.getLocationReminder());\n } else {\n updateMap(null);\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n map = googleMap;\n\n\n if(event == null){\n\n //TODO Handle the situation where we don't have address\n\n } else {\n Geocoder geocoder = new Geocoder(this);\n List<Address> addresses = null;\n\n try {\n addresses = geocoder.getFromLocationName(event.getEventLoc(), 1);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if (addresses.size() > 0) {\n double latitude = addresses.get(0).getLatitude();\n double longitude = addresses.get(0).getLongitude();\n\n map.addMarker(new MarkerOptions()\n .position(new LatLng(latitude, longitude))\n .title(\"Event location\"));\n\n map.moveCamera( CameraUpdateFactory.newLatLngZoom(new LatLng(latitude,longitude) , 14.0f) );\n }\n\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng israelLatLng = new LatLng(31.2175427,34.6095679);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(israelLatLng));\n init();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n initGoogleApi(googleMap);\n initWindow();\n }", "@Override\n public void onMapLoaded() {\n mMap.animateCamera(cu);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(TAG, \"startMap\");\n locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n mMap = googleMap;\n requestLocationPermision();\n requestMarkers();\n Log.d(TAG, \"Map listo\");\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n getMarkers();\n\n // Add a marker in Sydney and move the camera\n LatLng penn = new LatLng(39.952290, -75.197060);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(penn, 15));\n mMap.setMyLocationEnabled(true);\n UiSettings uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(true);\n uiSettings.setCompassEnabled(true);\n }", "@Override\n public void onMapReady(GoogleMap mMap) {\n mMap.setOnMarkerClickListener(this);\n mapready = true;\n googleMap = mMap;\n googleMap.animateCamera(CameraUpdateFactory.zoomTo(11));\n draw();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(TAG, \"onMapReady()\");\n map = googleMap;\n map.setOnMapClickListener(this);\n }", "public void notifyMapLoaded();", "@Override\n public void onMapLoaded() {\n mMapStatus = new MapStatus.Builder().zoom(9).build();\n mBaiduMap.animateMapStatus(MapStatusUpdateFactory.newMapStatus(mMapStatus));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Set the long click listener as a way to exit the map.\n mMap.setOnMapLongClickListener(this);\n\n if (mapType == MapType.MOTOR_FOUR_POINT) {\n if (listLeg.size() == 1) {\n MotorMapUtils.drawMapWithTwoPoint(mMap, listLeg);\n } else if (listLeg.size() > 1) {\n MotorMapUtils.drawMapWithFourPoint(mMap, listLeg);\n }\n } else if (mapType == MapType.BUS_TWO_POINT) {\n mMap.clear();\n BusMapUtils.drawMapWithTwoPoint(mMap, result);\n } else if (mapType == MapType.BUS_FOUR_POINT) {\n mMap.clear();\n BusMapUtils.drawMapWithFourPoint(mMap, journey);\n }\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n //enableMyLocation();\n if(checkPermission())\n mMap.setMyLocationEnabled(true);\n else askPermission();\n displayMarker();\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n if (mIsText2SpeechReady)\n {\n mText2Speech.speak(mUserContact.getAddress(),\n TextToSpeech.QUEUE_FLUSH, null);\n Toast.makeText(getApplicationContext(),\n mUserContact.getAddress(),\n Toast.LENGTH_SHORT\n ).show();\n }\n return false;\n }\n });\n }", "private void initilizeMap() {\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n drawGokongweiBuilding();\n getContinuousLocationUpdates();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setOnCameraIdleListener(this);\n mMap.setOnCameraMoveListener(this);\n mMap.setOnMarkerClickListener(this);\n\n SharedPreferences sharedPref = this.getSharedPreferences(this.getString(R.string.app_name), (Context.MODE_PRIVATE));\n Double latitude = Double.valueOf(sharedPref.getString(this.getString(R.string.latitude), \"0\"));\n Double longitude = Double.valueOf(sharedPref.getString(this.getString(R.string.longitude), \"0\"));\n\n if(latitude != 0 && longitude != 0){\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 12.0f));\n }\n odradiDohvatSadrzaja();\n\n itemView.setVisibility(View.GONE);\n mRefreshMarkers.setVisibility(View.GONE);\n }", "@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n\n // Use a custom info window adapter to handle multiple lines of text in the\n // info window contents.\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n TextView title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n TextView snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (servicesOK() /*&& initMap()*/) {\n try {\n\n /*MarkerOptions options = new MarkerOptions()\n .title(getString(R.string.landon_hotel) + \", \" + city)\n .position(new LatLng(lat, lng));\n mMap.addMarker(options);*/\n //onMapReady(mMap);\n\n\n LatLng zoom = new LatLng(-2.982996, 104.732918);\n\n// mMap.addMarker(new MarkerOptions().position(zoom).title(\"Marker in Palembang\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n mMap.getUiSettings().setAllGesturesEnabled(true);\n mMap.getUiSettings().setRotateGesturesEnabled(false);\n mMap.getUiSettings().setTiltGesturesEnabled(false);\n mMap.getUiSettings().setCompassEnabled(true);\n//\n mMap.setTrafficEnabled(true);\n\n Log.i(\"CEKDATA\",\"BEGINNING\");\n mMap.moveCamera(CameraUpdateFactory.newLatLng(zoom));\n mMap.animateCamera(CameraUpdateFactory.zoomTo(14), 2000, null);\n Log.i(\"CEKDATA\",\"Finishing\");\n\n } /*catch (IOException e) {\n Toast.makeText(this, getString(R.string.error_finding_hotel), Toast.LENGTH_SHORT).show();\n }*/ catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();\n Log.d(\"Check this->\", e.getMessage());\n }\n\n\n api.bukan_parkir(googleMap, this);\n\n }\n }", "@Override\n public void onMapLoaded() {\n mGoogleMap.animateCamera(cu);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(logTag,\"4\");\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST);\n return;\n }\n mMap.setOnMapLongClickListener(this);\n mMap.setOnInfoWindowClickListener( this );\n mMap.setOnMapClickListener(this);\n mMap.setMyLocationEnabled(true);\n ll=new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude());\n MarkerOptions options = new MarkerOptions().position(ll);\n options.title(getAddressFromLatLng(ll));\n\n Log.d(logTag,\"5\");\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.i(\"MapWorks\", \"The map works\");\n mMap = googleMap;\n //center camera at her stuff\n //add pins\n // Add a marker in Sydney and move the camera\n LatLng currentLoc = new LatLng(myLat, myLong);\n mMap.addMarker(new MarkerOptions().position(currentLoc).title(\"Your Location\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currentLoc));\n// locs[1] = new LatLng(34, 119);\n// locs[2] = new LatLng(20, 130);\n if(null != locs) {\n Log.i(\"size of message: \", \" \"+ size);\n for (int i = 0; i < size; i++) {\n LatLng l = locs[i];\n mMap.addMarker(new MarkerOptions().position(l).title(names[i] + \" is a meteor of mass \" +\n masses[i] + \" that landed here in \" + years[i]));\n }\n }\n\n }", "@Override\n public void onMapReady(GoogleMap map) {\n mGoogleMap = map;\n mGoogleMap.setMyLocationEnabled(true);\n Log.d(TAG, \"Map Ready\");\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n Log.i(TAG, \"map is ready\");\r\n mMap = googleMap;\r\n\r\n mMap.setMyLocationEnabled(true);\r\n mMap.setOnMyLocationButtonClickListener(this);\r\n mMap.setOnMyLocationClickListener(this);\r\n\r\n startLocationUpdates();\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setOnMarkerClickListener(this);\n\n\n // Add a marker in Sydney and move the camera\n\n getData(All_urls.values.mapData);\n\n\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n //Agafar la localitzacio actual per mostrar-ho al mapa\n LocationManager locationManager = (LocationManager)\n getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n LatLng actual = new LatLng((location.getLatitude()),location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(actual,13));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng current = new LatLng(10.762887, 106.681835);\n mMap.addMarker(new MarkerOptions().position(current).title(\"Current Location\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(current));\n text5 = \"Current Location\";\n toSpeech.speak(text5, TextToSpeech.QUEUE_FLUSH, null);\n }", "private void initMap() {\n Log.wtf(TAG, \"initMap() has been instantiated\");\n\n Log.d(TAG, \"initMap: initializing the map...\");\n try {\n MapsInitializer.initialize(getActivity().getApplicationContext());\n } catch (Exception e) {\n e.printStackTrace();\n }\n mMapView.getMapAsync(this);\n }", "@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n mUiSettings = mMap.getUiSettings();\n mUiSettings.setCompassEnabled(false);\n mUiSettings.setMapToolbarEnabled(false);\n mUiSettings.setZoomControlsEnabled(false);\n mUiSettings.setScrollGesturesEnabled(false);\n mUiSettings.setTiltGesturesEnabled(false);\n mUiSettings.setRotateGesturesEnabled(false);\n\n // Add a marker in Sydney and move the camera\n final LatLng airport = new LatLng(listAirport.get(index).getLatitude(), listAirport.get(index).getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLng(airport));\n mMap.setMinZoomPreference(10.0f);\n mMap.setMaxZoomPreference(10.0f);\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\n map.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n onClick(index, MapsActivity.class);\n }\n });\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n googleMap.getUiSettings().setMapToolbarEnabled(false);\n googleMap.getUiSettings().setZoomControlsEnabled(false);\n googleMap.getUiSettings().setCompassEnabled(false);\n googleMap.setPadding(0, 0, 0, ImageCreator.dpToPx(92));\n\n mapController = new GoogleMapController(\n googleMap,\n DependencyInjection.provideSettingsStorageService());\n mapController.addListener(this);\n presenter.onViewReady();\n Log.d(TAG, \"onMapReady: \");\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng position = new LatLng(latitude, longitude);\n\n // centre the map around the specified location\n mMap.animateCamera(CameraUpdateFactory.newLatLng(position));\n\n // add a marker at the specified location\n MarkerOptions options = new MarkerOptions();\n mMap.addMarker(options.position(position).title(locationName));\n\n // configure the map settings\n mMap.setTrafficEnabled(true);\n mMap.setBuildingsEnabled(true);\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\n // enable the zoom controls\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setZoomGesturesEnabled(true);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n googleMap.setOnMapClickListener(new OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng arg0) {\n\n\n // TODO Auto-generated method stub\n try {\n Geocoder geo = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> add = geo.getFromLocation(arg0.latitude, arg0.longitude, 1);\n String selectedCountry;\n if (add.size() > 0) {\n selectedCountry = add.get(0).getCountryName();\n selectedStateOrCountry = selectedCountry;\n\n //Log.d(\"country\", selectedCountry);\n //For usa go with states . All other countries - it gives the capital\n if (selectedCountry.equalsIgnoreCase(\"United States\") ||\n selectedCountry.equalsIgnoreCase(\"US\")) {\n selectedStateOrCountry = add.get(0).getAdminArea();\n }\n //Log.d(\"state\", selectedStateOrCountry);\n ConvertTextToSpeech();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"Failed to initialize map\", e);\n }\n }\n });\n mMap = googleMap;\n\n // Add a marker in California and move the camera\n LatLng californiaMarker = new LatLng(37, -122);\n mMap.addMarker(new MarkerOptions().position(californiaMarker).title(\"Click anywhere to get more info\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(californiaMarker));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n getLocationInfo();\n setUpMap(mMap);\n //drawPath(googleMap, pathString);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"you are in sydney\").draggable(true));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.setOnMarkerDragListener(this);\n mMap.setOnMapLongClickListener(this);\n\n }", "public void getMapAsync(org.xms.g.maps.OnMapReadyCallback param0) {\n if (wrapper) {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.MapView) this.getHInstance()).getMapAsync(((param0) == null ? null : (param0.getHInstanceOnMapReadyCallback())))\");\n ((com.huawei.hms.maps.MapView) this.getHInstance()).getMapAsync(((param0) == null ? null : (param0.getHInstanceOnMapReadyCallback())));\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.MapView) this.getGInstance()).getMapAsync(((param0) == null ? null : (param0.getGInstanceOnMapReadyCallback())))\");\n ((com.google.android.gms.maps.MapView) this.getGInstance()).getMapAsync(((param0) == null ? null : (param0.getGInstanceOnMapReadyCallback())));\n }\n } else {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((HImpl) ((com.huawei.hms.maps.MapView) this.getHInstance())).getMapAsyncCallSuper(((param0) == null ? null : (param0.getHInstanceOnMapReadyCallback())))\");\n ((HImpl) ((com.huawei.hms.maps.MapView) this.getHInstance())).getMapAsyncCallSuper(((param0) == null ? null : (param0.getHInstanceOnMapReadyCallback())));\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((GImpl) ((com.google.android.gms.maps.MapView) this.getGInstance())).getMapAsyncCallSuper(((param0) == null ? null : (param0.getGInstanceOnMapReadyCallback())))\");\n ((GImpl) ((com.google.android.gms.maps.MapView) this.getGInstance())).getMapAsyncCallSuper(((param0) == null ? null : (param0.getGInstanceOnMapReadyCallback())));\n }\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n miUbicacion();\n\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-12.125108, -77.024879);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Isil Miraflores\"));\n\n // Add a marker in Sydney and move the camera\n LatLng Hamnegra = new LatLng(-12.1712825, -76.9307592);\n mMap.addMarker(new MarkerOptions().position(Hamnegra).title(\"La Hamburguesa Negra\"));\n\n //Marcador de prueba\n LatLng prueba = new LatLng(-13.125108, -70.024879);\n markerPrueba = googleMap.addMarker(new MarkerOptions().position(prueba).title(\"Prueba Random\"));\n\n //CAMARA\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n //CLICK EN EL MARCADOR\n googleMap.setOnMarkerClickListener(this);\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(LOG_TAG, \"called onMapReady()\");\n mMap = googleMap;\n\n // Set up UI for map\n mMap.setMyLocationEnabled(true);\n mMap.setBuildingsEnabled(true);\n mUiSettings = mMap.getUiSettings(); // https://developers.google.com/maps/documentation/android-sdk/controls\n mUiSettings.setMyLocationButtonEnabled(false);\n mUiSettings.setCompassEnabled(true);\n mUiSettings.setTiltGesturesEnabled(true);\n mUiSettings.setRotateGesturesEnabled(true);\n mUiSettings.setScrollGesturesEnabled(true);\n mUiSettings.setZoomGesturesEnabled(true);\n\n\n // Move the camera to last known user location\n fusedLocationClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<Location>() { // this -> getActivity()??\n @Override\n public void onSuccess(Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n LatLng startingLocation = new LatLng(latitude, longitude);\n\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(startingLocation) // Sets the center of the map\n .zoom(16) // Sets the zoom\n .build(); // Creates a CameraPosition from the builder\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition), 250, null);\n Log.d(LOG_TAG, \" > moved map to last known location\");\n }\n }\n });\n addZoneHolesToMap(shiftZones);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n enableMyLocation();\n buildGoogleApiClient();\n\n }", "private void intializeMap() {\n\n if (googleMap == null) {\n\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n\n // getPlacesMarkers();\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(17.2231, 78.2827);\n marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Hyderbbad\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n initializeMap();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (mPresenter.isReady()) {\n mPresenter.displayMarkers();\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mGeocoder = new Geocoder(this, Locale.getDefault());\n\n updateScreenLoc(movement[0]);\n\n loadCrimes(movement[0]);\n //Start MockLocationManager and inject first point\n turnOnLocationManager();\n updateLocation(movement[0]);\n updateRadiusCircle();\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(\"TEST\", \"MAP READY\");\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n\n LatLng curLocation = new LatLng(latitude,longitude);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(curLocation,15.0f);\n setPin(latitude,longitude, null);\n mMap.moveCamera(cameraUpdate);\n for(int i = 0; i < restaurantList.size(); i++){\n double lat = restaurantList.get(i).getLatitude();\n double lng = restaurantList.get(i).getLongitude();\n setPin(lat, lng, restaurantList.get(i));\n }\n //Check we have the users permission to access their location\n // if we dont have it, we have to request it\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n mMap.setMyLocationEnabled(true);\n\n } else {\n //we dont have permission, so we have to ask for it\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_LOCATION_REQUEST_CODE);\n //run asychronously.. show an alert dialog\n //user can choose allow or deny\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if(permission_granted){\n try {\n mMap.setMyLocationEnabled(true);\n }catch (SecurityException e){\n e.printStackTrace();\n }\n }\n\n //googleMap.clear();\n //new FetchTweets().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n\n if(mLastLocation!=null) {\n\n launchTimerTask();\n LatLng latLng = new LatLng(mLastLocation.getLatitude(), mLastLocation.getLongitude());\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"You are here\"));\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(latLng, 14);\n googleMap.animateCamera(update);\n mMap.setInfoWindowAdapter(new MyInfoWindowAdapter());\n\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n firebaseLoadData(googleMap);\n\n //get user input data\n Intent intent = getIntent();\n Double latitude = intent.getDoubleExtra(\"LATITUDE\", 0);\n Double longitude = intent.getDoubleExtra(\"LONGITUDE\", 0);\n String location = intent.getStringExtra(\"LOCATION\");\n String description = intent.getStringExtra(\"DESCRIPTION\");\n\n createCustomMapMarkers(googleMap, new LatLng(latitude, longitude), location, description);\n\n\n //set map listeners to handle events.\n useMapClickListener(googleMap);\n useMarkerClickListener(googleMap);\n useMarkerDragListener(googleMap);\n useMapOnLongClickListener(googleMap);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap=googleMap;\n Toast.makeText(this,\"Map is Ready\", Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"onMapReady: map is ready\");\n getLocationPermission();\ngetDeviceLocation();\nupdateLocationUI();\n\n addressButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n passAddress( );\n }\n });\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n myMap = googleMap;\n setMap();\n try{\n myMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lastKnown.getLatitude(), lastKnown.getLongitude()), 18.0f));\n }catch (NullPointerException e){\n\n }\n }", "MapIsReadyCallback( HomeActivity master ) {\n mMaster = master;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n\n mMap = googleMap;\n\n attachLocationListener();\n\n\n mMap.setOnMarkerDragListener(this);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n googleMap.clear();\n mMap = googleMap;\n\n //create markers using database\n Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int dayofweek = c.get(Calendar.DAY_OF_WEEK);\n\n SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n String userPermitType = settings.getString(\"uvaParkingPermitType\", \"\");\n Log.d(\"onMapReady\",\"Permit type: \" + userPermitType);\n\n if (parkingMarkers != null) {\n for (Marker m : parkingMarkers)\n m.remove();\n parkingMarkers.clear();\n } else {\n parkingMarkers = new ArrayList<Marker>();\n }\n ArrayList<MarkerOptions> parkingMarkerOptions = mDbHelper.getParkSpotLists(hour, dayofweek, userPermitType, theMonitor.isRaining());\n for (MarkerOptions m : parkingMarkerOptions ){\n parkingMarkers.add(googleMap.addMarker(m));\n }\n\n // add home address marker\n if (homeAddressLat != 0 && homeAddressLong != 0) {\n if (homeMarker != null) homeMarker.remove();\n homeMarker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(homeAddressLat, homeAddressLong))\n .title(\"Home\")\n .draggable(false)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));\n }\n\n //center on UVa\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(38.03639, -78.50754), 14));\n\n // enable MyLocationLayer\n enableMyLocation();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n String info = sTitle;\n // Add a marker in Sydney and move the camera\n LatLng pos = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(pos).title(info));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(pos));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(pos, 8));\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n for (int i = 0; i < virtualLoc.size(); i++) {\n mMap.addMarker(new MarkerOptions().position(virtualLoc.get(i)).title(names.get(i)));\n mMap.animateCamera(CameraUpdateFactory.zoomTo(20.0f));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(virtualLoc.get(i)));\n }\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(virtualLoc.get(0),15));\n\n /*for (int i = 0; i < names.size(); i++) {\n //LatLng location = new LatLng(locations.get(i).latitude, locations.get(i).longitude);\n googleMap.addMarker(new MarkerOptions()\n .position(locations.get(i))\n .title(names.get(i)));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(locations.get(i)));\n }*/\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public void onMapReady(GoogleMap googleMap) {\n MapsInitializer.initialize(getContext());\n mMap = googleMap;\n mMap.setMinZoomPreference(13.0f);\n mMap.setMaxZoomPreference(20.0f);\n mMap.setOnMapClickListener(this);\n mMap.setInfoWindowAdapter(this);\n mMap.setOnInfoWindowClickListener(MyOnInfoWindowClickListener);\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.\n ACCESS_FINE_LOCATION}, 1);\n } else {\n mMap.setMyLocationEnabled(true);\n }\n }\n\n mMap.setMyLocationEnabled(true);\n\n buildGoogleApiClient();\n mGoogleApiClient.connect();\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(TAG, \"onMapReady: map is ready\");\n mMap = googleMap;\n\n if (mLocationPermissionsGranted) {\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n\n mMap.getUiSettings().setCompassEnabled(true);\n// mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setIndoorLevelPickerEnabled(true);\n mMap.getUiSettings().setMapToolbarEnabled(true);\n\n mMap.getUiSettings().setAllGesturesEnabled(true);\n getDeviceLocation();\n mMap.setOnMarkerDragListener(this);\n\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n // Add a marker in Sydney, Australia,\n // and move the map's camera to the same location.\n LatLng singapore = new LatLng(1.338709, 103.819519);\n googleMap.addMarker(new MarkerOptions().position(singapore)\n .title(\"Marker in Singapore\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(singapore));\n googleMap.animateCamera(CameraUpdateFactory.zoomTo(11),3000,null);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(\"TAG\", \"onMapReady: map is ready\");\n mMap = googleMap;\n getDeviceLocation();\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng point) {\n if (currentMarker != null) {\n currentMarker.remove();\n }\n latitude = point.latitude;\n longitude = point.longitude;\n currentMarker = mMap.addMarker(new MarkerOptions().position(point));\n latLng = new com.google.maps.model.LatLng(latitude, longitude);\n\n\n }\n });\n select.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n progressDialog.setMessage(\"Please wait...\");\n progressDialog.setCanceledOnTouchOutside(false);\n progressDialog.show();\n\n GetBackgroundInfo backgroundInfo = new GetBackgroundInfo();\n backgroundInfo.execute();\n\n }\n });\n hideSoftKeyboard();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng livraria = new LatLng(maps.getLatitude(), maps.getLongitude());\n if(this.maps.getId() == 1){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Saraiva - Praia de Belas\"));\n } else if(this.maps.getId() == 2){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Cultura - Bourbon Country\"));\n } else if(this.maps.getId() == 3){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Cameron\"));\n } else if(this.maps.getId() == 4){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Siciliano\"));\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(livraria, 15f));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setMaxZoomPreference(15);\n //code added on 24/10/18 12:33 am\n try {\n boolean isSuccess = googleMap.setMapStyle(\n MapStyleOptions.loadRawResourceStyle(this, R.raw.uber_style_map)\n );\n if (!isSuccess)\n Log.e(\"ERROR\", \"Map style Load failed\");\n } catch (Resources.NotFoundException ex) {\n ex.printStackTrace();\n }\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n fb();\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n listener.onMapSuccess(mMap);\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n System.out.println(\"Perm Loc\" + mLocationPermissionGranted);\n createLocationRequest();\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n getCurrentPlace();\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n bulidGoogleApiClient();\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n }\n\n mMap.setInfoWindowAdapter(this);\n\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n loadImageFlag = false;\n return false;\n }\n });\n }", "@Override\n public void onConnected(Bundle arg0) {\n setupMap();\n\n\n }", "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n\n setUpMap();\n\n }\n });\n }\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng loc = new LatLng(v, v1);\n mMap.addMarker(new\n MarkerOptions().position(loc).title(\"0000000000\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n // Home Mark\n LatLng home = new LatLng(41.374736, 2.168308);\n float zoom = 13;\n\n // Inicialitzem mapa\n mMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN); //Tipus de mapa\n mMap.addMarker(new MarkerOptions().position(home).title(\"IOC\")); //Marcador inicial\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(home, zoom)); //Centrem mapa en el marcador inicial\n\n this.setMapLongClick(mMap);\n this.enableMyLocation();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n getLat g = new getLat();\n g.execute(tid);\n\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n\n mMap.getUiSettings().setCompassEnabled(true); //Compass\n mMap.getUiSettings().setIndoorLevelPickerEnabled(true); //Indoor\n mMap.getUiSettings().setMapToolbarEnabled(true); //Map toolsbar\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n for (int i= 0; i < this.lista.size(); i++) {\n if ( i == 0) {\n LatLng micentro = new LatLng(lista.get(i).getLatitud(), lista.get(i).getLongitud());\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(micentro).zoom(16).build();\n mMap.animateCamera(CameraUpdateFactory\n .newCameraPosition(cameraPosition));\n }\n MarkerOptions markerend = new MarkerOptions().position(\n new LatLng(lista.get(i).getLatitud(), lista.get(i).getLongitud())).title(lista.get(i).getTitle()).snippet(lista.get(i).getDescription());\n markerend.icon(BitmapDescriptorFactory\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n // adding marker\n mMap.addMarker(markerend);\n }\n\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\")\n //below line is use to add custom marker on our map.\n .icon(BitmapFromVector(getApplicationContext(), R.drawable.ic_flag)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng latLng) {\n mMap.addMarker(new MarkerOptions()\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_cast_dark))\n .anchor(0.0f, 1.0f)\n .position(latLng));\n\n }\n });\n\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n Toast.makeText(getApplicationContext(), \"Has pulsado una marca\", Toast.LENGTH_LONG).show();\n return false;\n }\n });\n\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in city and move the camera\n LatLng cityCoord = new LatLng(lat, lng);\n float zoom = (float) 9.0;\n mMap.addMarker(new MarkerOptions().position(cityCoord).title(cityAddr));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(cityCoord, zoom));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng oregon = new LatLng(45.3, -122);\n mMap.addMarker(new MarkerOptions().position(oregon).title(\"Marker in Oregon\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(oregon));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.setOnMyLocationChangeListener(this);\n markerIconBitmapDescriptor = BitmapDescriptorFactory.fromResource(R.mipmap.ic_driver_check_in);\n\n mFillColor = Color.HSVToColor(50, new float[]{0, 1, 1});\n mStrokeColor = Color.BLACK;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n if(checkmarker.isChecked()){\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n }\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.setOnMapClickListener((GoogleMap.OnMapClickListener)this);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setCompassEnabled(true);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n lat = addresses.get(0).getLatitude();\n lng = addresses.get(0).getLongitude();\n } catch (Exception e) {\n lat = -34;\n lng = 151;\n }\n\n LatLng sydney = new LatLng(lat, lng);\n googleMap.addMarker(new MarkerOptions().position(sydney).title(\"WSU Paramatta\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n googleMap.setMyLocationEnabled(true);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n client = new GoogleApiClient.Builder(this)\n .addApi(LocationServices.API).addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n client.connect();\n }" ]
[ "0.81774795", "0.79241747", "0.7747101", "0.75269824", "0.7507386", "0.7460945", "0.73819906", "0.7374647", "0.7355169", "0.73031086", "0.72758335", "0.7273501", "0.720639", "0.71822155", "0.71132326", "0.70686895", "0.70506954", "0.7050247", "0.7049796", "0.70420474", "0.70402056", "0.702812", "0.7025708", "0.7020123", "0.7014132", "0.7010845", "0.701009", "0.6995505", "0.69755435", "0.69747746", "0.6972388", "0.6966665", "0.69599", "0.69547457", "0.69508857", "0.6949532", "0.6947895", "0.694636", "0.69438976", "0.6940836", "0.6937332", "0.69329834", "0.69257915", "0.69250524", "0.6917971", "0.6917299", "0.69167095", "0.69144803", "0.69063884", "0.69018245", "0.69005865", "0.6895952", "0.6889234", "0.6886428", "0.68831056", "0.68756205", "0.6874273", "0.6856726", "0.6839456", "0.68291575", "0.6825853", "0.6822067", "0.68157524", "0.6815651", "0.681503", "0.680905", "0.680895", "0.68035305", "0.67975646", "0.67942655", "0.67869824", "0.6784802", "0.67745054", "0.6760378", "0.67596793", "0.67586833", "0.67575485", "0.67569995", "0.6749519", "0.6745846", "0.6738637", "0.67364126", "0.6735102", "0.6733094", "0.67324173", "0.6729419", "0.6718396", "0.6715224", "0.67141604", "0.6710076", "0.6709879", "0.67002046", "0.6696635", "0.66901165", "0.6682095", "0.66806144", "0.6669918", "0.6664405", "0.6654202", "0.6650168", "0.6641435" ]
0.0
-1
// O V E R R I D E S // // GoogleApiClient.ConnectionCallbacks
@Override public void onConnected(@Nullable Bundle bundle) { Log.d(TAG, "onConnected"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void requestConnection() {\n getGoogleApiClient().connect();\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Toast.makeText(getBaseContext(), R.string.google_api_client_connection_failed, Toast.LENGTH_LONG).show();\n googleApiClient.connect();\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.e(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.i(\"Feelknit\", \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.i(DEBUG_TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnectionSuspended(int cause) {\n\n Log.i(TAG, \"GoogleApiClient connection suspended\");\n }", "@Override\n public void onStart() {\n mGoogleApiClient.connect();\n super.onStart();\n }", "private void connectWithCallbacks(GoogleApiClient.ConnectionCallbacks callbacks) {\n googleApiClient = new GoogleApiClient.Builder(context)\n .addApi(LocationServices.API)\n .addConnectionCallbacks(callbacks) // callbacks specific to the service\n .addOnConnectionFailedListener(connectionFailedListener) // callbacks when cannot connect to the client\n .build();\n Log.d(TAG,googleApiClient.toString());\n googleApiClient.connect();\n }", "public void connectApiClient()\n {\n googleApiClient.connect();\n }", "@Override\n public void onCreate() {\n googleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n\n /*conectar al servicio*/\n Log.w(TAG, \"onCreate: Conectando el google client\");\n googleApiClient.connect();\n\n\n //NOTIFICACION\n mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n stateService = Constants.STATE_SERVICE.NOT_CONNECTED;\n\n }", "@Override\r\n protected void onStart() {\n super.onStart();\r\n mGoogleApiClient.connect();\r\n }", "@Override\n public void onStart() {\n super.onStart();\n googleApiClient.connect();\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.i(TAG, \"In onStart() - connecting...\");\n googleApiClient.connect();\n }", "@Override\n protected ConnectionResult doInBackground(Void... params) {\n ConnectionResult connectionResult = googleApiClient.blockingConnect(\n Constants.GOOGLE_API_CLIENT_TIMEOUT_S, TimeUnit.SECONDS);\n\n return connectionResult;\n }", "@Override\n public void onStart() {\n super.onStart();\n try {\n if (mGoogleApiClient != null) {\n mGoogleApiClient.connect();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n protected void onStart() {\n super.onStart();\n if (!mGoogleApiClient.isConnected()) {\n mGoogleApiClient.connect();\n }\n }", "@Override\n public void onConnected(Bundle connectionHint) {\n Log.i(TAG, \"Connected to GoogleApiClient\");\n\n if (mCurrentLocation == null) {\n mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n }\n\n if (mRequestingLocationUpdates) {\n startLocationUpdates();\n }\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Toast.makeText(this,\n \"Could not connect to Google API Client: Error \" + connectionResult.getErrorCode(),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnected(Bundle connectionHint) {\n //LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, REQUEST, this); // LocationListener\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"MainActivity\", \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "private void initializeGoogleApiClient() {\n\n if (mGoogleApiClient == null) {\n mGoogleApiClient = new GoogleApiClient.Builder(getContext())\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n\n }", "private void connectGoogleApiAgain(){\n if (!mGoogleApiClient.isConnected()) {\n ConnectionResult connectionResult =\n mGoogleApiClient.blockingConnect(30, TimeUnit.SECONDS);\n\n if (!connectionResult.isSuccess()) {\n Log.e(TAG, \"DataLayerListenerService failed to connect to GoogleApiClient, \"\n + \"error code: \" + connectionResult.getErrorCode());\n }\n }\n }", "@Override\n public void onConnected(Bundle connectionHint) {\n\n Toast.makeText(getApplicationContext(), \"Connected\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onConnectionSuspended(int i) {\n if (i == GoogleApiClient.ConnectionCallbacks.CAUSE_NETWORK_LOST) {\n com.google.android.gms.fit.samples.common.logger.Log.i(TAG, \"Connection lost. Cause: Network Lost.\");\n } else if (i == GoogleApiClient.ConnectionCallbacks.CAUSE_SERVICE_DISCONNECTED) {\n com.google.android.gms.fit.samples.common.logger.Log.i(TAG, \"Connection lost. Reason: Service Disconnected\");\n }\n }", "@Override\n public void onConnected(Bundle connectionHint) {\n Log.i(TAG, \"Connected to GoogleApiClient\");\n\n // If the initial location was never previously requested, we use\n // FusedLocationApi.getLastLocation() to get it. If it was previously requested, we store\n // its value in the Bundle and check for it in onCreate(). We\n // do not request it again unless the user specifically requests location updates by pressing\n // the Start Updates button.\n //\n // Because we cache the value of the initial location in the Bundle, it means that if the\n // user launches the activity,\n // moves to a new location, and then changes the device orientation, the original location\n // is displayed as the activity is re-created.\n if (mCurrentLocation == null) {\n mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n }\n\n // If the user presses the Start Updates button before GoogleApiClient connects, we set\n // mRequestingLocationUpdates to true (see startUpdatesButtonHandler()). Here, we check\n // the value of mRequestingLocationUpdates and if it is true, we start location updates.\n if (mRequestingLocationUpdates) {\n startLocationUpdates();\n }\n }", "@Override\npublic void onConnectionFailed(ConnectionResult arg0) {\n\t\n}", "public GoogleApiClient getGoogleApiClient(){\n return googleApiClient;\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.e(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override protected void onResume() {\n super.onResume();\n locationClient.connect();\n }", "private GoogleApiClient getGoogleApiClient() {\n \n \tif (mGoogleApiClient == null) {\n\n //create location service so that we can interact with Geofence\n mGoogleApiClient = new GoogleApiClient.Builder(mContext)\n .addApi(LocationServices.API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n }\n return mGoogleApiClient;\n\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"LoginActivity\", \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\r\n protected void onConnected() {\n \r\n }", "@Override\n protected void onStart() {\n super.onStart();\n\n\n GoogleApiAvailability GMS_Availability = GoogleApiAvailability.getInstance();\n int GMS_CheckResult = GMS_Availability.isGooglePlayServicesAvailable(this);\n\n if (GMS_CheckResult != ConnectionResult.SUCCESS) {\n\n // Would show a dialog to suggest user download GMS through Google Play\n GMS_Availability.getErrorDialog(this, GMS_CheckResult, 1).show();\n }else{\n mGoogleApiClient.connect();\n }\n }", "public void onServiceConnected();", "@Override\n public void onConnected(Bundle connectionHint) {\n // Gets the best and most recent location currently available, which may be null\n // in rare cases when a location is not available.\n mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n if (mLastLocation != null) {\n if (!Geocoder.isPresent()) {\n Toast.makeText(rootView.getContext(), R.string.no_geocoder_available, Toast.LENGTH_LONG).show();\n return;\n }\n startIntentService();\n }\n }", "@Override\n public void onConnectionSuspended(int i) {\n Log.d(TAG, \"Play services connection suspended\");\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n // An unresolvable error has occurred and a connection to Google APIs\n // could not be established. Display an error message, or handle\n // the failure silently\n }", "@Override\n public void onConnected(Bundle bundle) {\n Wearable.DataApi.addListener(googleApiClient, this);\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n\n Log.e(TAG, \"onConnectionFailed: ConnectionResult.getErrorCode() = \"\n + connectionResult.getErrorCode());\n\n Toast.makeText(this,\n \"Could not connect to Google API Client: Error \" + connectionResult.getErrorCode(),\n Toast.LENGTH_SHORT).show();\n }", "private void initializeAndConnectGoogleApi() {\n if (googleApiClient != null) {\n googleApiClient.stopAutoManage(this);\n googleApiClient.disconnect();\n }\n googleApiClient = new GoogleApiClient\n .Builder(this)\n .enableAutoManage(this, 0, this)\n .addApi(Places.GEO_DATA_API)\n .addApi(Places.PLACE_DETECTION_API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n // Connect if it's not\n if (!googleApiClient.isConnected()) {\n googleApiClient.connect();\n }\n }", "@Override\n protected void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }", "@Override\n protected void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }", "public void OnConnectSuccess();", "@Override\n protected void onStop() {\n if (mGoogleApiClient.isConnected()) {\n mGoogleApiClient.disconnect();\n }\n\n super.onStop();\n }", "protected synchronized void buildGoogleApiClient() {\n// mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(this).addApi(LocationServices.API).build();\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n //.addApi(Places.GEO_DATA_API)\n //.addApi(Places.PLACE_DETECTION_API)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_maps);\n\n // Obtain the SupportMapFragment and get notified when the map is ready to be used.\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n\n }", "@Override\n public void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }", "public void buildGoogleApiClient() {\n googleApiClient = new GoogleApiClient.Builder(getActivity())\n .addConnectionCallbacks(this).addOnConnectionFailedListener(this).\n addApi(LocationServices.API).build();\n googleApiClient.connect();\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n\n }", "private void buildGoogleApiClient() {\n this.mGoogleApiClient = new GoogleApiClient.Builder(context)\n //.enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)\n .addApi(LocationServices.API)\n .build();\n }", "@Override\r\n public void onConnectionSuspended(int cause) {\n mGoogleApiClient.connect();\r\n map.clear();\r\n markerCount = 0;\r\n }", "@Override\n public void onConnectionFailed(ConnectionResult arg0) {\n\n }", "@Override\n public void onConnected(@Nullable Bundle bundle) {\n readPreviousStoredDataAPI();\n Wearable.DataApi.addListener(mGoogleApiClient, this);\n }", "@Override\n public void onConnected(Bundle bundle) {\n Log.i(TAG, \"location service connected\");\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.d(TAG, \"Play services connection suspended\");\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.d(TAG, \"Play services connection suspended\");\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n\n }", "@Override\n public void onStop() {\n if(null!=mGoogleApiClient)\n mGoogleApiClient.disconnect();\n super.onStop();\n }", "protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(getActivity())\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }", "protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this) //En este caso, necesitamos la api de google para recoger nuestra ubicacion\n .addOnConnectionFailedListener(this) // junto con la api FusedLocationProviderApi.\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnected(Bundle connectionHint) {\n LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest,\n this);\n }", "public void onConnection();", "@Override\r\n public void onConnectionFailed(ConnectionResult result) {\n mGoogleApiClient.reconnect();\r\n map.clear();\r\n markerCount = 0;\r\n }", "private synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(ActivityRecognition.API)\n .build();\n }", "@Override\n\tpublic void onConnected(Bundle arg0) {\n\t\t Toast.makeText(context, \"Connected\", Toast.LENGTH_SHORT).show();\n\t\t mLocationClient.requestLocationUpdates(mLocationRequest,this);\n\t}", "@Override\n public void onConnected(Bundle bundle) {\n LocationRequest locationRequest = LocationRequest.create()\n .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)\n .setInterval(UPDATE_INTERVAL_MS)\n .setFastestInterval(FASTEST_INTERVAL_MS);\n\n\n // Send request for location updates\n LocationServices.FusedLocationApi\n .requestLocationUpdates(mGoogleApiClient, locationRequest, this)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n if (status.getStatus().isSuccess()) {\n Log.d(\"YAY\", \"Successfully requested\");\n } else {\n Log.e(\"OH NOOOO\", status.getStatusMessage());\n }\n }\n });\n\n\n Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n onLocationChanged(location);\n }", "public void onConnectionFailed(ConnectionResult connectionResult) {\r\n /*\r\n * Google Play services can resolve some errors it detects.\r\n * If the error has a resolution, try sending an Intent to\r\n * start a Google Play services activity that can resolve\r\n * error.\r\n */\r\n if (connectionResult.hasResolution()) {\r\n try {\r\n // Start an Activity that tries to resolve the error\r\n connectionResult.startResolutionForResult(\r\n this,\r\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\r\n /*\r\n * Thrown if Google Play services canceled the original\r\n * PendingIntent\r\n */\r\n } catch (IntentSender.SendIntentException e) {\r\n // Log the error\r\n e.printStackTrace();\r\n }\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Sorry. Location services not available to you\", Toast.LENGTH_LONG).show();\r\n }\r\n }", "private void onConnected() {\n \tmMeshHandler.removeCallbacks(connectTimeout);\n hideProgress();\n\n mConnectTime = SystemClock.elapsedRealtime();\n mConnected = true;\n\n mNavListener = new SimpleNavigationListener(stActivity.getFragmentManager(), stActivity);\n if (mDeviceStore.getSetting() == null || mDeviceStore.getSetting().getNetworkKey() == null) {\n Log.d(\"TEST\", \"TEST\");\n }\n startPeriodicColorTransmit();\n }", "@Override public void onConnectionFailed(ConnectionResult connectionResult) {\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\tLog.e(TAG, \"onConnectionFailed: ConnectionResult.getErrorCode() = \"\n\t\t\t\t+ connectionResult.getErrorCode());\n\t\t// TODO(Developer): Check error code and notify the user of error state and resolution.\n\t\tToast.makeText(this,\n\t\t\t\t\"Could not connect to Google API Client: Error \" + connectionResult.getErrorCode(),\n\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t}", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.e(TAG, \"location service connection lost\");\n Toast.makeText(this, R.string.conn_failed, Toast.LENGTH_LONG).show();\n }", "protected synchronized void buildGoogleApiClient() {\r\n googleApiClient = new GoogleApiClient.Builder(this)\r\n .addConnectionCallbacks(this)\r\n .addOnConnectionFailedListener(this)\r\n .addApi(LocationServices.API)\r\n .build();\r\n }", "private void buildGoogleApiClient() {\n Log.d(TAG, \"buildGoogleApiClient\");\n mGoogleApiClient = new GoogleApiClient.Builder(getContext())\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }", "@Override\r\n protected void onStop() {\n super.onStop();\r\n if (mGoogleApiClient.isConnected()) {\r\n mGoogleApiClient.disconnect();\r\n }\r\n }", "@Override\n protected void onStop() {\n super.onStop();\n if (googleApiClient != null) {\n Log.i(TAG, \"In onStop() - disConnecting...\");\n googleApiClient.disconnect();\n }\n }", "protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }", "protected GoogleApiClient getGoogleApiClient() {\n return mClient;\n }", "void onConnectionLost();", "@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n // Decide what to do based on the original request code\n switch (requestCode) {\n case CONNECTION_FAILURE_RESOLUTION_REQUEST:\n // If the result code is OK, try to connect again\n log(\"Resolution result code is: \" + resultCode);\n switch (resultCode) {\n case Activity.RESULT_OK:\n // Try to connect again here\n mGoogleApiClient.connect();\n break;\n }\n break;\n }\n }", "public interface OnConnectListener {\n void onStatusConnection(AndroidDevice androidDevice, boolean connected);\n void onConnected(AndroidDevice androidDevice);\n void onDisconnected(AndroidDevice androidDevice);\n void onTryConnect(AndroidDevice androidDevice);\n}", "protected synchronized void buildGoogleApiClient() {\n\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }", "protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API).build();\n if (mGoogleApiClient != null) {\n mGoogleApiClient.connect();\n customProgressDialog = CustomProgressDialog.show(LocationChooser.this);\n }\n }", "public synchronized void buildGoogleApiClient() {\r\n mGoogleApiClient = new GoogleApiClient.Builder(this)\r\n .addConnectionCallbacks(this)\r\n .addOnConnectionFailedListener(this)\r\n .addApi(LocationServices.API)\r\n .build();\r\n }", "@Override\n public void onConnected(Bundle arg0) {\n\n Toast.makeText(getContext(),\"Connected\",Toast.LENGTH_LONG);\n }", "@Override\n protected void onResume() {\n Log.d(TAG, \"MyTracks.onResume\");\n serviceConnection.bindIfRunning();\n super.onResume();\n }", "protected synchronized void buildGoogleApiClient() {\n GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(getActivity()).addApi(LocationServices.API).build();\n mGoogleApiClient.connect();\n\n LocationRequest locationRequest = LocationRequest.create();\n mGoogleApiClient = new GoogleApiClient.Builder(getActivity())\n .addConnectionCallbacks(new GoogleApiClient.ConnectionCallbacks() {\n @Override\n public void onConnected(@Nullable Bundle bundle) {\n if (ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n mFusedLocationClient.getLastLocation().addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location!=null){\n LatLng loc = new LatLng(location.getLatitude(), location.getLongitude());\n strLatitude = String.valueOf(location.getLatitude());\n strLongitude = String.valueOf(location.getLongitude());\n //mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(loc, 16.0f));\n }\n }\n });\n }\n }\n\n @Override\n public void onConnectionSuspended(int i) {\n //LOG\n }\n })\n .addApi(LocationServices.API)\n .build();\n }", "@Override\n protected void onPause() {\n super.onPause();\n if (googleApiClient != null) {\n googleApiClient.stopAutoManage(this);\n googleApiClient.disconnect();\n }\n }", "@Override\n public int onStartCommand(Intent intent, int flags, int startId){\n // If the google API Client is not connected then connect it\n if(!googleApiClient.isConnected()){\n googleApiClient.connect();\n }\n\n // This will make the service stop when application is terminated\n return START_NOT_STICKY;\n }" ]
[ "0.75434", "0.74924314", "0.7459524", "0.74551344", "0.74551344", "0.7420129", "0.7386695", "0.72920537", "0.7267825", "0.72076005", "0.7194066", "0.71619654", "0.7126597", "0.7018289", "0.6996751", "0.6973274", "0.6892749", "0.68924993", "0.68757445", "0.68574", "0.68114215", "0.68088514", "0.6759196", "0.6675304", "0.6657534", "0.6629408", "0.6566519", "0.6542308", "0.6504589", "0.6499705", "0.6466184", "0.6466184", "0.6466184", "0.6466184", "0.6466184", "0.6466184", "0.6466184", "0.6463326", "0.64531", "0.6409893", "0.6406365", "0.6405876", "0.6403935", "0.63563836", "0.6346315", "0.6343547", "0.6331032", "0.6324039", "0.6310175", "0.6306378", "0.62950456", "0.62950456", "0.6290012", "0.6277683", "0.62756735", "0.62715244", "0.62594986", "0.62559724", "0.6238769", "0.6237741", "0.6234008", "0.6231619", "0.62266064", "0.62171984", "0.6214803", "0.6214803", "0.6209619", "0.6209619", "0.62040424", "0.6202575", "0.6201237", "0.6185373", "0.61817646", "0.6179921", "0.6177177", "0.61689425", "0.61680764", "0.6167564", "0.6164256", "0.61583877", "0.61565304", "0.6153639", "0.6145651", "0.6144096", "0.61414605", "0.61308265", "0.6129779", "0.6105987", "0.61039054", "0.6076841", "0.6067789", "0.606583", "0.60645944", "0.60611254", "0.6053958", "0.6046233", "0.60394955", "0.603883", "0.60339797", "0.60313535" ]
0.6076289
90
// O V E R R I D E S // // GoogleApiClient.OnConnectionFailedListener
@Override public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Toast.makeText(getBaseContext(), R.string.google_api_client_connection_failed, Toast.LENGTH_LONG).show();\n googleApiClient.connect();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"MainActivity\", \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Toast.makeText(this,\n \"Could not connect to Google API Client: Error \" + connectionResult.getErrorCode(),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n\n Log.e(TAG, \"onConnectionFailed: ConnectionResult.getErrorCode() = \"\n + connectionResult.getErrorCode());\n\n Toast.makeText(this,\n \"Could not connect to Google API Client: Error \" + connectionResult.getErrorCode(),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.e(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"LoginActivity\", \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n // An unresolvable error has occurred and a connection to Google APIs\n // could not be established. Display an error message, or handle\n // the failure silently\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\tLog.e(TAG, \"onConnectionFailed: ConnectionResult.getErrorCode() = \"\n\t\t\t\t+ connectionResult.getErrorCode());\n\t\t// TODO(Developer): Check error code and notify the user of error state and resolution.\n\t\tToast.makeText(this,\n\t\t\t\t\"Could not connect to Google API Client: Error \" + connectionResult.getErrorCode(),\n\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t}", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult result) {\n // Refer to the reference doc for ConnectionResult to see what error codes might\n // be returned in onConnectionFailed.\n Log.d(TAG, \"Play services connection failed: ConnectionResult.getErrorCode() = \"\n + result.getErrorCode());\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult result) {\n // Refer to the reference doc for ConnectionResult to see what error codes might\n // be returned in onConnectionFailed.\n Log.d(TAG, \"Play services connection failed: ConnectionResult.getErrorCode() = \"\n + result.getErrorCode());\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n // Refer to the reference doc for ConnectionResult to see what error codes might\n // be returned in onConnectionFailed.\n Log.d(TAG, \"Play services connection failed: ConnectionResult.getErrorCode() = \"\n + connectionResult.getErrorCode());\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.e(TAG, \"location service connection lost\");\n Toast.makeText(this, R.string.conn_failed, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult result) {\n\t\tLog.d(\"ANDROID\", \"faild contected\");\n\t}", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult result) {\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\t\tToast.makeText(context, \"Connection Failed\", Toast.LENGTH_SHORT).show();\n\t}", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"mainActivity\", \"onConnectionFailed:\" + connectionResult);\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed. Error: \" + result.getErrorCode());\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }", "public void onConnectionFailed(ConnectionResult connectionResult) {\r\n /*\r\n * Google Play services can resolve some errors it detects.\r\n * If the error has a resolution, try sending an Intent to\r\n * start a Google Play services activity that can resolve\r\n * error.\r\n */\r\n if (connectionResult.hasResolution()) {\r\n try {\r\n // Start an Activity that tries to resolve the error\r\n connectionResult.startResolutionForResult(\r\n this,\r\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\r\n /*\r\n * Thrown if Google Play services canceled the original\r\n * PendingIntent\r\n */\r\n } catch (IntentSender.SendIntentException e) {\r\n // Log the error\r\n e.printStackTrace();\r\n }\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Sorry. Location services not available to you\", Toast.LENGTH_LONG).show();\r\n }\r\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(\"Feelknit\", \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }", "@Override\r\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(\"onConnectionFailed \", \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\r\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult)\n {\n swipeRefreshLayout.setVisibility(View.GONE);\n showError(R.drawable.ic_location_disabled_black,\n R.string.error_message_update_google_play_services,\n R.string.fix_error_no_fix);\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n\n /*\n * Google Play services can resolve some errors it detects.\n * If the error has a resolution, try sending an Intent to\n * start a Google Play services activity that can resolve\n * error.\n */\n if (connectionResult.hasResolution()) {\n\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(activity,\n \t\tLocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n\n /*\n * If no resolution is available, put the error code in\n * an error Intent and broadcast it back to the main Activity.\n * The Activity then displays an error dialog.\n * is out of date.\n */\n } else {\n\n Intent errorBroadcastIntent = new Intent(LocationUtils.ACTION_CONNECTION_ERROR);\n errorBroadcastIntent.addCategory(LocationUtils.CATEGORY_LOCATION_SERVICES)\n .putExtra(LocationUtils.EXTRA_CONNECTION_ERROR_CODE,\n connectionResult.getErrorCode());\n LocalBroadcastManager.getInstance(activity).sendBroadcast(errorBroadcastIntent);\n }\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \"\n + result.getErrorCode());\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult result) {\n Fog.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \"\n + result.getErrorCode());\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Log.e(TAG, \"onConnectionFailed: ConnectionResult.getErrorCode() = \" + connectionResult.getErrorCode());\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.e(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(\"Connection failed:\", \" ConnectionResult.getErrorCode() = \"\n + result.getErrorCode());\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\n\t}", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\t\t\n\t}", "@Override\n public void onConnectionFailed(ConnectionResult conRes) {}", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Log.d(LCAT, \"onConnectionFailed:\" + connectionResult);\n }", "@Override public void onConnectionFailed(ConnectionResult connectionResult) {\n }", "private void connectGoogleApiAgain(){\n if (!mGoogleApiClient.isConnected()) {\n ConnectionResult connectionResult =\n mGoogleApiClient.blockingConnect(30, TimeUnit.SECONDS);\n\n if (!connectionResult.isSuccess()) {\n Log.e(TAG, \"DataLayerListenerService failed to connect to GoogleApiClient, \"\n + \"error code: \" + connectionResult.getErrorCode());\n }\n }\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n }", "@Override\n public void onConnectionFailed(ConnectionResult arg0) {\n }", "@Override\n public void onConnectionFailed(ConnectionResult arg0) {\n\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.d(\"SCXTT\", \" onConnectionFailed \" + result.toString());\n\n }", "@Override\npublic void onConnectionFailed(ConnectionResult arg0) {\n\t\n}", "@Override\n public void onConnectionSuspended(int cause) {\n Log.i(\"Feelknit\", \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(getActivity(), CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n return;\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\t/*\n\t\t * Google Play services can resolve some errors it detects. If the error\n\t\t * has a resolution, try sending an Intent to start a Google Play\n\t\t * services activity that can resolve error.\n\t\t */\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(this,\n\t\t\t\t\t\tCONNECTION_FAILURE_RESOLUTION_REQUEST);\n\t\t\t\t/*\n\t\t\t\t * Thrown if Google Play services canceled the original\n\t\t\t\t * PendingIntent\n\t\t\t\t */\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\"Sorry. Location services not available to you\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(Constants.GOOGLE_MAP_ERROR_TAG, Constants.GOOGLE_MAP_ERROR);\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\n\t\t/*\n\t\t * Google Play services can resolve some errors it detects.\n\t\t * If the error has a resolution, try sending an Intent to\n\t\t * start a Google Play services activity that can resolve\n\t\t * error.\n\t\t */\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\tLocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t\t\t\t/*\n\t\t\t\t * Thrown if Google Play services canceled the original\n\t\t\t\t * PendingIntent\n\t\t\t\t */\n\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\n\t\t\t// If no resolution is available, display a dialog to the user with the error.\n\t\t\tshowErrorDialog(connectionResult.getErrorCode());\n\t\t}\n\t}", "@Override\n public void onConnectionSuspended(int cause) {\n Log.e(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnectionSuspended(int i) {\n if (i == GoogleApiClient.ConnectionCallbacks.CAUSE_NETWORK_LOST) {\n com.google.android.gms.fit.samples.common.logger.Log.i(TAG, \"Connection lost. Cause: Network Lost.\");\n } else if (i == GoogleApiClient.ConnectionCallbacks.CAUSE_SERVICE_DISCONNECTED) {\n com.google.android.gms.fit.samples.common.logger.Log.i(TAG, \"Connection lost. Reason: Service Disconnected\");\n }\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(\n this,\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n //Do nothing, no location available so use default default in server spinner\n }\n }", "@Override\n public void onConnectionSuspended(int cause) {\n Log.i(DEBUG_TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }", "@Override\n public void onConnectionSuspended(int cause) {\n\n Log.i(TAG, \"GoogleApiClient connection suspended\");\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(this, 9000);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n\t\t\tLog.i(\"LOCATION\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n\t\t}\n\t}", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n hideProgressDialog();\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n }", "protected void onConnectionError() {\n\t}", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n // Thrown if Google Play services canceled the original PendingIntent\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /* If no resolution is available, display a dialog to the\n * user with the error. */\n Log.i(LOG_TAG, \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }", "@Override public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\",\n \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(getActivity(), LocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t\t\t\t/*\n\t\t\t\t * Thrown if Google Play services canceled the original PendingIntent\n\t\t\t\t */\n\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\n\t\t\t// If no resolution is available, display a dialog to the user with the error.\n\t\t\tshowErrorDialog(connectionResult.getErrorCode());\n\t\t}\n\n\t}", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(\n this,\n LocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n\n } catch (IntentSender.SendIntentException e) {\n\n // Log the error\n e.printStackTrace();\n }\n } else {\n\n // If no resolution is available, display a dialog to the user with the error.\n showErrorDialog(connectionResult.getErrorCode());\n }\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(getActivity(), CONNECTION_FAILURE_RESOLUTION_REQUEST);\n }\n catch (IntentSender.SendIntentException e) {\n e.printStackTrace();\n }\n }\n else {\n Log.i(TAG, \"Connection Failed: Error Code = \" + connectionResult.getErrorCode());\n }\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n if (connectionResult.hasResolution() && mContext instanceof Activity) {\n try {\n Activity activity = (Activity) mContext;\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(activity, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n BBVAMapsLog.e(TAG, e.getMessage());\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n BBVAMapsLog.e(TAG, \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }", "public void onConnectionError()\n\t\t{\n\t\t}", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed\");\n if (!result.hasResolution()) {\n GooglePlayServicesUtil.getErrorDialog(result.getErrorCode(), this, 0).show();\n return;\n }\n try {\n Log.i(TAG, \"trying to resolve the Connection failed error...\");\n result.startResolutionForResult(this, REQUEST_CODE);\n } catch (IntentSender.SendIntentException e) {\n Log.e(TAG, \"Exception while starting resolution activity\", e);\n }\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Discoverer.this.eventListener.trigger(EVENT_LOG, \"Fail to request connection: \" + e.getMessage());\n }", "@Override\r\n public void onConnectionFailed(ConnectionResult result) {\n mGoogleApiClient.reconnect();\r\n map.clear();\r\n markerCount = 0;\r\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"GoogleApiClient connection failed: \" + result.toString());\n\n if (!result.hasResolution()) {\n\n // show the localized error dialog.\n GoogleApiAvailability.getInstance().getErrorDialog(this, result.getErrorCode(), 0).show();\n return;\n }\n\n /**\n * The failure has a resolution. Resolve it.\n * Called typically when the app is not yet authorized, and an authorization\n * dialog is displayed to the user.\n */\n\n try {\n\n result.startResolutionForResult(this, REQUEST_CODE_RESOLUTION);\n\n } catch (IntentSender.SendIntentException e) {\n\n Log.e(TAG, \"Exception while starting resolution activity\", e);\n }\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult result) {\n\t\tLog.i(\"onConnectionFailed\", result.toString());\n\t\tif (result.hasResolution()) {\n\t\t\ttry {\n\t\t\t\tresult.startResolutionForResult(this, REQUEST_CODE_RESOLVE_ERR);\n\t\t\t} catch (SendIntentException e) {\n\t\t\t\tmPlusClient.connect();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public void onConnectFailed()\n {\n Log.e(\"Dudu_SDK\",\n \"获取NS 业务服务器失败...onConnectFailed ... reconnect()...5 seconds later ...\");\n reconnect();\n if (connectCallBack != null)\n connectCallBack.onConnectFailed();\n }", "public abstract void mo27384b(OnConnectionFailedListener onConnectionFailedListener);", "private void connectionFailed() {\n // Send a failure message back to the Activity\n Message msg = handler.obtainMessage(SdlRouterService.MESSAGE_LOG);\n Bundle bundle = new Bundle();\n bundle.putString(LOG, \"Unable to connect device\");\n msg.setData(bundle);\n handler.sendMessage(msg);\n\n // Start the service over to restart listening mode\n // BluetoothSerialServer.this.start();\n }", "public void OnConnectionError();", "@Override\n\t\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t if (connectionResult.hasResolution()) {\n\t try {\n\t // Start an Activity that tries to resolve the error\n\t connectionResult.startResolutionForResult(activity, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\t } catch (IntentSender.SendIntentException e) {\n\t // Log the error\n\t e.printStackTrace();\n\t }\n\t } else {\n\t /*\n\t * If no resolution is available, display a dialog to the\n\t * user with the error.\n\t */\n\n\t }\n\t\t\t\n\t\t}", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n mCurrentLocation = new Location( \"\" );\n mCurrentLocation.setLatitude( 37.422535 );\n mCurrentLocation.setLongitude( -122.084804 );\n initCamera(mCurrentLocation);\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n if (dialog != null)\n dialog.dismiss();\n\n //Display appropriate toast message depending upon internet connectivity was a reason for failure or something else..\n if(ConstantsDefined.isOnline(ForgotPassword.this)){\n Toast.makeText(ForgotPassword.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(ForgotPassword.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n // Can it be resolved, for example by installing a new version?\n log(\"Connection failed\");\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n log(\"Trying to resolve the error...\");\n connectionResult.startResolutionForResult(\n this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n } catch (IntentSender.SendIntentException e) {\n log(\"Exception during resolution: \" + e.toString());\n }\n } else {\n // No resolution is available\n showErrorDialog(connectionResult.getErrorCode());\n }\n }" ]
[ "0.8522695", "0.8200105", "0.8149074", "0.8043065", "0.8043065", "0.8043065", "0.8043065", "0.8043065", "0.8043065", "0.8043065", "0.8032225", "0.8019235", "0.7971078", "0.79073477", "0.79019636", "0.77212095", "0.77212095", "0.7665088", "0.75367326", "0.75092906", "0.75092906", "0.74802876", "0.7432831", "0.7391134", "0.7391134", "0.7391134", "0.7371414", "0.7366397", "0.7350606", "0.73444575", "0.7311619", "0.7311239", "0.72935563", "0.728895", "0.7272449", "0.7272449", "0.7272449", "0.727014", "0.726804", "0.7256669", "0.72318685", "0.7223142", "0.72216976", "0.7207843", "0.7183541", "0.7181232", "0.7181232", "0.71712756", "0.71664447", "0.7162811", "0.71624905", "0.71435297", "0.71367013", "0.7134344", "0.71337986", "0.71105736", "0.7095052", "0.7092045", "0.70662075", "0.70458144", "0.7043143", "0.702856", "0.70215166", "0.70189476", "0.7015593", "0.70079124", "0.69946665", "0.6991258", "0.6991258", "0.6990859", "0.69563204", "0.6901389", "0.6873337", "0.68712896", "0.6859628", "0.685171", "0.685171", "0.6848859", "0.6847635", "0.68360233", "0.68173075", "0.680721", "0.6772068", "0.6761457", "0.6756455", "0.67460865", "0.6743461", "0.6729109", "0.67284435", "0.6711502", "0.6702121", "0.67020565", "0.6668347", "0.6660631", "0.6648397", "0.65790415", "0.65704864", "0.654659", "0.6546129", "0.6539737" ]
0.7479924
22
// O V E R R I D E S // // LocationServices
@Override public void onLocationChanged(Location location) { //Log.i(TAG, "New Location: " + location.getLatitude() + " " + location.getLongitude()); if (isDrawing) { //We are drawing so add a point and move the camera accordingly currentDrawing.addPoint(new LatLng(location.getLatitude(), location.getLongitude()), currentColor); LatLng userLocation = new LatLng(location.getLatitude(), location.getLongitude()); mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(userLocation, 20)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getLocationInfo() {\n startLocationService();\n }", "public interface LocationServiceManager {\n\t/**\n\t * Starts the location service.\n\t * \n\t * @return <code>true</code> if the service has been correctly started\n\t */\n\tpublic boolean startLocationService();\n\n\t/**\n\t * Stops the location service.\n\t * \n\t * @return always <code>false</code>\n\t */\n\tpublic boolean stopLocationService();\n\n\t/**\n\t * Checks whether the service is running or is stopped\n\t * \n\t * @return <code>true</code> if the service is running <code>false</code>\n\t * otherwise\n\t */\n\tpublic boolean isServiceRunning();\n\n}", "public boolean startLocationService();", "public LocationService(String name) {\n super(name);\n }", "private LocationService() {\n }", "public LocationService() {\r\n\t\tSettings settings = Settings.getInstance();\r\n\t\tthis.location = settings.getLocation();\r\n\t\tthis.ebAddress = settings.getEbAddress();\r\n\t\tthis.ebPort = settings.getEbPort();\r\n\t\tloggedIn = false;\r\n\t\tobservers = new ArrayList<IObserver>();\r\n\t\tdbAdapter = InformationStorageFactory.getStorageAdapter();\r\n\t}", "LocationsClient getLocations();", "private void getLocation() {\n\n }", "private void startLocationService() {\n\t\tmLocationMngr = (LocationManager) this\r\n\t\t\t\t.getSystemService(Context.LOCATION_SERVICE);\r\n\r\n\t\tmGpsListener = new GPSListener();\r\n\t\tlong minTime = 10000;\r\n\t\tfloat minDistance = 0;\r\n\r\n\t\tmLocationMngr.requestLocationUpdates(LocationManager.GPS_PROVIDER,\r\n\t\t\t\tminTime, minDistance, mGpsListener);\r\n\t\tmLocationMngr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,\r\n\t\t\t\tminTime, minDistance, mGpsListener);\r\n\r\n\t\ttry {\r\n\t\t\tLocation lastLocation = mLocationMngr\r\n\t\t\t\t\t.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n\t\t\tif (lastLocation != null) {\r\n\t\t\t\tDouble latitude = lastLocation.getLatitude();\r\n\t\t\t\tDouble longitude = lastLocation.getLongitude();\r\n\t\t\t\tString msg = \"Your Current Location \\nLatitude: \" + latitude\r\n\t\t\t\t\t\t+ \", Longitude: \" + longitude;\r\n\t\t\t\tLog.i(TAG, msg);\r\n\t\t\t\t// this.showToastMsg(msg);\r\n\t\t\t\tshowCurrentLocation(latitude, longitude);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tString msg = \"Failed to get current location. Please try later.\";\r\n\t\t\tLog.e(TAG, msg);\r\n\t\t\tshowToastMsg(msg);\r\n\t\t}\r\n\r\n\t}", "@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}", "public interface LocationServicesListener {\r\n\r\n /**\r\n * Callback on device location turned ON\r\n */\r\n void onSuccess();\r\n }", "public interface LocationProvider {\r\n\t\r\n\t/**\r\n\t * Returns the current location.\r\n\t * \r\n\t * @return the current location\r\n\t */\r\n\tpublic Location getCurrentLocation();\r\n\t\r\n\t/**\r\n\t * Returns the previous locations, not including the current location.\r\n\t * \r\n\t * @return the previous locations\r\n\t */\r\n\tpublic List<Location> getPreviousLocations();\r\n\t\r\n\t/**\r\n\t * Tells if this location manager is prepared for the first speed checks, i.e., if it has received at\r\n\t * least two location updates.\r\n\t * \r\n\t * @return true if sufficient locations are available\r\n\t */\r\n\tpublic boolean isReady();\r\n\r\n}", "public static LocationServices getInstance() {\n\t\tif (instance == null) {\t\n\t\t\tinstance = new LocationServices();\n\t\t}\n\t\treturn instance;\n\t}", "@SuppressLint(\"MissingPermission\")\n private void Locate(){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 2000, 0, (LocationListener) this);\n\n // Obtain the SupportMapFragment and get notified when the map is ready to be used.\n mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n\n //Initialize fused location\n client = LocationServices.getFusedLocationProviderClient(this);\n }", "Location getLocation();", "Location getLocation();", "Location getLocation();", "Location getLocation();", "private void getLocation() {\n //if you don't have permission for location services yet, ask\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n //have the app ask for location permission\n } else {\n fusedLocationClient.requestLocationUpdates\n (getLocationRequest(), mLocationCallback,\n null /* Looper */);\n //uses the type of request and the location callback to update the location\n /**fusedLocationClient.getLastLocation().addOnSuccessListener(\n new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n TextView error = findViewById(R.id.errorMsg);\n error.setVisibility(View.VISIBLE);\n\n if (location != null) {\n lastLocation = location;\n error.setText(\"location: \" + lastLocation.getLatitude());\n } else {\n error.setText(\"location not available\");\n }\n }\n });**/\n }\n }", "public ArrayList<LocationDetail> getLocations() throws LocationException;", "com.google.ads.googleads.v14.common.LocationInfo getLocation();", "public void getLocation(){\n }", "private void locationManager()\n\t{\n mMap.setMyLocationEnabled(true);\n\n // Getting LocationManager object from System Service LOCATION_SERVICE\n LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n\n // Creating a criteria object to retrieve provider\n Criteria criteria = new Criteria();\n\n // Getting the name of the best provider\n String provider = locationManager.getBestProvider(criteria, true);\n\n // Getting Current Location\n Location location = locationManager.getLastKnownLocation(provider);\n\n if(location!=null){\n onLocationChanged(location);\n }\n locationManager.requestLocationUpdates(provider, 20000, 0, this);\n\t\t\n\t}", "Location getLocationById(long id);", "@Override\n public void onSuccess(Location location) {\n\n if (location != null) {\n // Logic to handle location object\n\n Geocoder gcd = new Geocoder(MainActivity.this, Locale.getDefault());\n List<Address> addresses = null;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (addresses.size() > 0) {\n System.out.println(addresses.get(0).getLocality());\n sp.set(SPConstants.location,addresses.get(0).getLocality()+\", \"+addresses.get(0).getCountryName());\n }\n else {\n sp.set(SPConstants.location,\"\");\n\n // do your stuff\n }\n\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n latitude=String.valueOf(location.getLatitude());\n longitude= String.valueOf(location.getLongitude());\n\n System.out.println(\"asdfgh==\"+latitude);\n\n\n /* Geocoder geocoder;\n List<Address> addresses;\n geocoder = new Geocoder(SafetyActivity.this, Locale.getDefault());\n\n try {\n addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n String address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n String city = addresses.get(0).getLocality();\n String state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n String postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName();\n\n System.out.println(\"addresses==\"+address);\n // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n } catch (IOException e) {\n e.printStackTrace();\n }*/\n }", "public void startLocationService(Context context){\n createLocationRequest();\n mGoogleApiClient = new GoogleApiClient.Builder(context)\n .addApi(LocationServices.API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n mGoogleApiClient.connect();\n }", "private void initLocation() {\n BaiduLocationHolder.OPTION.setLocationMode(LocationClientOption.LocationMode.Hight_Accuracy);\n //可选,默认高精度,设置定位模式,高精度,低功耗,仅设备\n\n BaiduLocationHolder.OPTION.setCoorType(\"bd09ll\");\n //可选,默认gcj02,设置返回的定位结果坐标系\n\n int span = 1000;\n BaiduLocationHolder.OPTION.setScanSpan(span);\n //可选,默认0,即仅定位一次,设置发起定位请求的间隔需要大于等于1000ms才是有效的\n\n BaiduLocationHolder.OPTION.setIsNeedAddress(true);\n //可选,设置是否需要地址信息,默认不需要\n\n BaiduLocationHolder.OPTION.setOpenGps(true);\n //可选,默认false,设置是否使用gps\n\n BaiduLocationHolder.OPTION.setLocationNotify(true);\n //可选,默认false,设置是否当GPS有效时按照1S/1次频率输出GPS结果\n\n BaiduLocationHolder.OPTION.setIsNeedLocationDescribe(true);\n //可选,默认false,设置是否需要位置语义化结果,可以在BDLocation.getLocationDescribe里得到,结果类似于“在北京天安门附近”\n\n BaiduLocationHolder.OPTION.setIsNeedLocationPoiList(true);\n //可选,默认false,设置是否需要POI结果,可以在BDLocation.getPoiList里得到\n\n BaiduLocationHolder.OPTION.setIgnoreKillProcess(false);\n //可选,默认true,定位SDK内部是一个SERVICE,并放到了独立进程,设置是否在stop的时候杀死这个进程,默认不杀死\n\n BaiduLocationHolder.OPTION.SetIgnoreCacheException(false);\n //可选,默认false,设置是否收集CRASH信息,默认收集\n\n BaiduLocationHolder.OPTION.setEnableSimulateGps(false);\n //可选,默认false,设置是否需要过滤GPS仿真结果,默认需要\n\n// BaiduLocationHolder.OPTION.setWifiValidTime(5*60*1000);\n //可选,7.2版本新增能力,如果您设置了这个接口,首次启动定位时,会先判断当前WiFi是否超出有效期,超出有效期的话,会先重新扫描WiFi,然后再定位\n\n BaiduLocationHolder.CLIENT.setLocOption(BaiduLocationHolder.OPTION);\n }", "com.google.ads.googleads.v6.resources.LocationView getLocationView();", "private void getUserCurrentLocation()\n\t {\n\t NicerLocationManager locationMgr = new NicerLocationManager(this.getApplicationContext());\n\t if (locationMgr.isAnyLocationServicesAvailble())\n\t {\n\t Log.i(\"MAIN\",\"retrieving current location...\");\n\n\t // get current location\n\t locationMgr.getBestGuessLocation(1000,\n\t new NicerLocationListener() {\n\n\t @Override\n\t public void locationLoaded(final Location location)\n\t {\n\t // parse the current site forecast for users current\n\t // location in the background\n\t //LocationForecastSetup currentForecast = new LocationForecastSetup();\n\t //currentForecast.execute(location);\n\n\t // QLog.i(\"location loaded. finding nearest location...\");\n\t //\n\t // // find nearest weather location\n\t // Site nearestLocation =\n\t // Utils.findNearestSite(mApp, location);\n\t //\n\t // // insert the new current user location site\n\t // SitesProviderHelper.addSavedSite(mApp,\n\t // Long.valueOf(nearestLocation.getmSiteId()), true);\n\t //\n\t Log.i(\"MAIN\",\"location found \"+location.getLatitude()+\" \"+location.getLongitude());\n\t dS.lat=(float) location.getLatitude();\n\t dS.lon=(float) location.getLongitude();\n\t //TextView versionText = (TextView) findViewById(R.id.info_area_string);\n\t //versionText.setText(\"lat \" + location.getLatitude()+\" lon \"+location.getLongitude());\n\t \n\t //\n\t // /*\n\t // * add blank site if user has no saved sites. a blank site\n\t // * forecast is also added in the WeatherService class\n\t // * (runWeatherService method) to display correctly in the\n\t // * view pager.this is later removed when a user adds a\n\t // site\n\t // * and added again when user removes last site.\n\t // */\n\t // SitesProviderHelper.addBlankSavedSite(mApp);\n\t //\n\t // // re-order sites so current location is first\n\t // SitesProviderHelper.setSiteOrder(mApp,\n\t // nearestLocation.getmSiteId(), \"0\");\n\t // SitesProviderHelper.setSiteOrder(mApp,\n\t // Consts.BLANK_SITE_ID, \"1\");\n\n\t }\n\n\t @Override\n\t public void error()\n\t {\n\t // give option to change location settings or select a\n\t // location manually\n\t Log.e(\"MAIN\",\"Error finding best guess location\");\n dS.lat=0;\n dS.lon=0;\n if(once)\n {\n\t //promptSetLocationService(MainActivity.this);\n }\n once=false;\n\t }\n\n\t @Override\n\t public void onFinished()\n\t {\n\t //runUpdateService(false, false);\n\t \tLog.i(\"MAIN\",\"onFinished\");\n\t }\n\t });\n\n\t }\n\t else\n\t {\n\t \n\t \tdS.lat=0;\n dS.lon=0;\n\t \n\t }\n\n\t }", "private void getLocation() {\n LocationRequest mLocationRequestHighAccuracy = new LocationRequest();\n mLocationRequestHighAccuracy.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequestHighAccuracy.setInterval(UPDATE_INTERVAL);\n mLocationRequestHighAccuracy.setFastestInterval(FASTEST_INTERVAL);\n\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"getLocation: stopping the location service.\");\n stopSelf();\n return;\n }\n Log.d(TAG, \"getLocation: getting location information.\");\n mFusedLocationClient.requestLocationUpdates(mLocationRequestHighAccuracy, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n Log.d(TAG, \"onLocationResult: got location result.\");\n Location location = locationResult.getLastLocation();\n if (location != null) {\n GeoPoint geoPoint = new GeoPoint(location.getLatitude(), location.getLongitude());\n userInfoDoc.get().addOnCompleteListener(task -> {\n Boolean av = (Boolean) task.getResult().get(\"Availability\");\n saveUserLocation(geoPoint , av);\n });\n saveDistance(geoPoint);\n\n }\n }\n },\n Looper.myLooper()); // Looper.myLooper tells this to repeat forever until thread is destroyed\n }", "private void startService() {\r\n\r\n\t\t// ---use the LocationManager class to obtain GPS locations---\r\n\t\tlm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\r\n\t\tlocationListener = new MyLocationListener();\r\n\r\n\t\tlm.requestLocationUpdates(LocationManager.GPS_PROVIDER, minTimeMillis,\r\n\t\t\t\tminDistanceMeters, locationListener);\r\n\t\tlocationListener.onLocationChanged(lm.getLastKnownLocation(LocationManager.GPS_PROVIDER));\r\n\t}", "private void getLocation() {\n LocationRequest mLocationRequestHighAccuracy = new LocationRequest();\n mLocationRequestHighAccuracy.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequestHighAccuracy.setInterval(UPDATE_INTERVAL);\n mLocationRequestHighAccuracy.setFastestInterval(FASTEST_INTERVAL);\n\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"getLocation: stopping the location service.\");\n stopSelf();\n return;\n }\n Log.d(TAG, \"getLocation: getting location information.\");\n mFusedLocationClient.requestLocationUpdates(mLocationRequestHighAccuracy, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n\n Log.d(TAG, \"onLocationResult: got location result.\");\n\n Location location = locationResult.getLastLocation();\n\n if (location != null) {\n\n saveUserLocation(new LatLng(location.getLatitude(),location.getLongitude()));\n }\n }\n },\n Looper.myLooper()); // Looper.myLooper tells this to repeat forever until thread is destroyed\n }", "private void getDeviceLocation( ) {\n\n if (searchLocationMarker != null) {\n searchLocationMarker.remove();\n }\n\n mFusedLocationProviderClient =\n LocationServices.getFusedLocationProviderClient(this);\n //Task locationResult = mFusedLocationProviderClient.getLastLocation();\n try {\n if (mLocationPermissionGranted) {\n Task locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n System.out.println(\"Current location retrieved successfully!\");\n mLastKnownLocation = (Location) task.getResult(); // location?\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n searchLocationMarker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()))\n .title(\"Current Location\")\n .icon(BitmapDescriptorFactory.fromBitmap(\n getBitmapFromVectorDrawable(\n MainActivity.this, R.drawable.ic_current_location_marker))));\n getNearbyStations(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n searchLocationMarker = mMap.addMarker(new MarkerOptions()\n .position(mDefaultLocation)\n .title(\"Current Location\")\n .icon(BitmapDescriptorFactory.fromBitmap(\n getBitmapFromVectorDrawable(\n MainActivity.this, R.drawable.ic_current_location_marker))));\n }\n }\n });\n }\n } catch(SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n\n }", "public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsResponse getOPSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsRequest getOPSLocationsRequest\n )\n ;", "public void callUpdateLocation( AppCompatActivity activity, final Context context, String collName, int recordId, LatLng newLocation ){\r\n\r\n ServiceRequest serviceRequest = new ServiceRequest( ServiceRequest.CORE_SEVICE_NAME, \"updateLocation\", context );\r\n serviceRequest.putParameterValue( \"database_name\", \"update_location\" );\r\n serviceRequest.putParameterValue( \"dataset_name\", \"gis\" );\r\n serviceRequest.putParameterValue( \"collection_name\", collName );\r\n serviceRequest.putParameterValue( \"record_id\", String.valueOf( recordId ) );\r\n serviceRequest.putParameterValue( \"location_x\", String.valueOf( newLocation.longitude ) );\r\n serviceRequest.putParameterValue( \"location_y\", String.valueOf( newLocation.latitude ) );\r\n serviceRequest.putParameterValue( \"username\", LoginAuthentificationHandlerContext.getInstance().getUsername( ) );\r\n serviceRequest.putParameterValue( \"password\", LoginAuthentificationHandlerContext.getInstance( ).getPassword( ) );\r\n L.m( serviceRequest.getServiceRequest( ) );\r\n\r\n SmallWorldServiceTask task = new SmallWorldServiceTask(\r\n serviceRequest.getServiceRequest( ),\r\n activity,\r\n \"Updating new location...\",\r\n new SetOnTaskCompleteListener< List< HashMap< String, String > > >( ){\r\n @Override\r\n public void onTaskComplete( List< HashMap< String, String > > result ) {\r\n HashMap< String, String > response = result.get( 0 );\r\n if( response.containsKey( \"login_response\" )){\r\n L.t( context, response.get( \"login_response\" ) );\r\n }else if( response.containsKey( \"result_update\" ) ){\r\n String updated = response.get( \"result_update\" );\r\n if( updated != null ){\r\n if( updated.equals( \"true\" )){\r\n MapEngine.refreshMap( MobileGatewayMapActivity.masterActivity.getMap( ), MobileGatewayMapActivity.masterActivity.getMap( ).getCameraPosition( ), context );\r\n L.t( context, \"Updated location complete\" );\r\n }else{\r\n L.t( context, \"Updated location failed!!!! \" + updated );\r\n }\r\n }\r\n }\r\n\r\n }\r\n } );\r\n task.execute( );\r\n }", "@Override\n public void onConnected(@Nullable Bundle bundle) {\n Log.i(TAG, \"Location Services Connected\");\n requestLocationUpdates();\n }", "public void getDeviceLocation() {\n try {\n if (locationPermissionGranted) {\n Task<Location> locationResult = fusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n lastKnownLocation = task.getResult();\n\n if (lastKnownLocation != null) {\n if (checkInLACounty(lastKnownLocation) != -1) {\n // geofenceHelper(getContext());\n lastKnownLocationInLA = true;\n sharedViewModel.setCountyData(\"Los Angeles County\");\n backLA.setVisibility(View.INVISIBLE);\n } else if (lastKnownLocationInLA) {\n lastKnownLocationInLA = false;\n sharedViewModel.setCountyData(\"Not in Los Angeles County\");\n\n backLA.setVisibility(View.VISIBLE);\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getContext());\n alertDialogBuilder.setTitle(\"Friendly Warning\");\n alertDialogBuilder.setMessage(\"Out of Los Angeles County \\n(Current Service Area)\");\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show(); // Show Dialog\n }\n } else {\n sharedViewModel.setCountyData(\"Los Angeles County\");\n }\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n map.moveCamera(CameraUpdateFactory\n .newLatLngZoom(defaultLocation, DEFAULT_ZOOM));\n map.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "public void locate()\n\t{\n\t\tlocationClient = new LocationClient(Main.activity.getApplicationContext()); // 实例化LocationClient类\n\t\t\t\t\n\t\tlocationClient.registerLocationListener(myListener); // 注册监听函数\n\t\tthis.setLocationOption();\t//设置定位参数\n\t\tlocationClient.start(); // 开始定位\n\t\tlocationClient.requestLocation();\n\t}", "public int getLocation()\r\n {\n }", "private void searchForLocation() {\n foundLocation = false;\n FusedLocationProviderClient mFusedLocationProviderClient = LocationServices\n .getFusedLocationProviderClient(getActivity());\n //Ignore the red line - we check for permissions before this function is called\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n Task<Location> lastLocation = mFusedLocationProviderClient.getLastLocation();\n lastLocation.addOnCompleteListener(new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n Location location = task.getResult();\n if (location != null) {\n LatLng currentLatLng = new LatLng(location.getLatitude(),\n location.getLongitude());\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(currentLatLng,\n DEFAULT_ZOOM);\n googleMap.moveCamera(update);\n foundLocation = true;\n }\n }\n }\n });\n }", "protected static void setServiceLocation(URI serviceLocation) {\n Program.serviceLocation = serviceLocation;\n }", "protected void startLocationService() {\n Intent intent = new Intent(getActivity(), LocationManager.class);\n getActivity().startService(intent);\n }", "private void setupGeoAndRetailerService() {\n final GeoLocationUtil geoLocationUtil = new GeoLocationUtil();\n final GeoLocationUtil.LocationResult geoLocationResult = new GeoLocationUtil.LocationResult() {\n @Override\n public void gotLocation(final Location location) {\n new Thread()\n {\n public void run()\n {\n mCenterActivity.runOnUiThread(new Runnable()\n {\n public void run()\n {\n //Do your UI operations like dialog opening or Toast here\n if (location != null) {\n Constants.GEO_LATITUDE = String.valueOf(location.getLatitude());\n Constants.GEO_LONGITUDE = String.valueOf(location.getLongitude());\n setupServiceReceiver();\n mServiceIntent = new Intent(getActivity(), GettingRetailerListService.class);\n mServiceIntent.putExtra(\"gettingStatus\", true);\n mServiceIntent.putExtra(\"receiver\", mReceiverForRetailer);\n getActivity().startService(mServiceIntent);\n } else {\n// new Handler(Looper.getMainLooper()).post(new Runnable() {\n// @Override\n// public void run() {\n Toast.makeText(getActivity(), \"Geo service is not working\", Toast.LENGTH_SHORT).show();\n\n// }\n// });\n\n }\n }\n });\n }\n }.start();\n }\n };\n\n if (!geoLocationUtil.getLocation(getActivity(), geoLocationResult)) {\n Toast.makeText(getActivity(), \"Geo service is not working\", Toast.LENGTH_SHORT).show();\n }\n\n\n }", "public interface GeocodeService {\n\n /**\n * Gets a list of possible {@link org.gbif.geocode.api.model.Location}s for coordinates.\n *\n * @return a list of Locations that fit the provided coordinates in no particular order\n */\n public List<Location> get(Double latitude, Double longitude, Double uncertaintyDegrees, Double uncertaintyMeters);\n\n /**\n * Gets a list of possible {@link org.gbif.geocode.api.model.Location}s for coordinates.\n *\n * @return a list of Locations that fit the provided coordinates in no particular order\n */\n public List<Location> get(Double latitude, Double longitude, Double uncertaintyDegrees, Double uncertaintyMeters, List<String> layers);\n\n /**\n * Gets a PNG bitmap suitable for using as a client-side cache/lookup table.\n */\n public byte[] bitmap();\n}", "@Override\n public void onConnected(Bundle bundle) {\n mLastLocation=LocationServices.FusedLocationApi.getLastLocation(mLocationClient);\n if(mLastLocation!=null){\n double latitude=mLastLocation.getLatitude();\n double longitude=mLastLocation.getLongitude();\n\n Geocoder geocoder=new Geocoder(this, Locale.ENGLISH);\n try{\n List<Address> addresses=geocoder.getFromLocation(latitude,longitude,1);\n if(addresses!=null){\n Address fetchedAddresses=addresses.get(0);\n label=\"Location: \"+fetchedAddresses.getFeatureName()+\", \"+fetchedAddresses.getSubLocality()+\", \"+fetchedAddresses.getLocality()+\", \"+fetchedAddresses.getPostalCode()+\", \"+fetchedAddresses.getAdminArea()+\", \"+fetchedAddresses.getCountryName();\n }\n else{\n tvLocationLabel.setText(\"Location Not Found\");\n Snackbar.make(findViewById(android.R.id.content),\"Location Not Found\",Snackbar.LENGTH_LONG).show();\n }\n }catch (Exception e){\n Snackbar.make(findViewById(android.R.id.content),\"Unable to Get Location\",Snackbar.LENGTH_SHORT).show();\n tvLocationLabel.setText(\"Location Not Found\");\n e.printStackTrace();\n }\n }\n }", "public abstract Location[] retrieveLocation();", "private void getDeviceLocation(){\n Log.d(TAG,\"get device location currently\");\n mFusedLocationProviderClient= LocationServices.getFusedLocationProviderClient(this);\n try{\n if(mLocationPermissionGranted){\n @SuppressLint(\"MissingPermission\") final Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if(task.isSuccessful()){\n Log.d(TAG,\"onComplete: found Location\");\n mLastKnownLocation= (Location) task.getResult();\n moveCamera(new LatLng(mLastKnownLocation.getLatitude(),mLastKnownLocation.getLongitude()),DEFAULT_ZOOM);\n\n Geocoder geocoder;\n List<Address> addresses;\n geocoder = new Geocoder(MapsActivity.this, Locale.getDefault());\n\n try {\n addresses = geocoder.getFromLocation(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude(), 1); // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n LatLng latLng = new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n\n address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n city = addresses.get(0).getLocality();\n state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName(); // Only\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n markerOptions.title(address);\n mMap.clear();//Not sure\n mMap.addMarker(markerOptions);\n Marker here = mMap.addMarker(markerOptions.title(address + \", \" + city + \", \" + state + \", \" + country\n + \", \" + postalCode + \", \" + knownName));\n here.showInfoWindow();\n } catch (IOException e) {\n e.printStackTrace();\n } }else {\n Log.d(TAG, \"onComplete: current location is null\");\n Toast.makeText(MapsActivity.this, \"unable to get current location\",Toast.LENGTH_SHORT).show();\n getLocationPermission();\n }\n }\n });\n\n }\n }catch (SecurityException e){\n Log.e(TAG,\"getDeviceLocation: SecurityException: \" + e.getMessage() );\n }\n\n\n\n }", "private void Location() {\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_ACCESS_FINE_LOCATION);\n }\n\n //Google Play Location stored in loc variable\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n\n\n @Override\n public void onSuccess(Location location) {\n\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n loc = location;\n getAddressFromLocation(loc.getLatitude(), loc.getLongitude());\n\n }\n }\n });\n }", "@RemoteServiceRelativePath(\"location\")\r\npublic interface LocationService extends RemoteService {\r\n\t/**\r\n\t * Utility class for simplifying access to the instance of async service.\r\n\t */\r\n\tpublic static class Util {\r\n\t\tprivate static LocationServiceAsync instance;\r\n\t\tpublic static LocationServiceAsync getInstance(){\r\n\t\t\tif (instance == null) {\r\n\t\t\t\tinstance = GWT.create(LocationService.class);\r\n\t\t\t}\r\n\t\t\treturn instance;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\tpublic ResponseLocationDTO location();\r\n\t\r\n\t//Obtain location/s\r\n\tpublic List<LocationDTO> getLocations(String id);\r\n\tpublic List<LocationDTO> getLocations(LocationDTO initialLocation);\r\n\t\r\n\t//Set the the current location from geoLocalization\r\n\tpublic void setLat(String id, String lat);\r\n\tpublic void setLng(String id, String Lng);\r\n\t\r\n\t\r\n\t//Delete a location from MyPlaces\r\n\tpublic void deleteLocation(String idUser, List<LocationDTO> loc);\r\n\t\r\n\t//Add a new location\r\n\tpublic LocationDTO addLocation(String city, String userId);\r\n\t\r\n\t\r\n}", "@Service\r\npublic interface LocationService {\r\n\r\n String locationSet(Location location);\r\n\r\n String locationGet(String belong_stu_id);\r\n}", "LocationTracker getTracker();", "Location createLocation();", "Location createLocation();", "Location createLocation();", "private void startAddressLookupService() {\n Intent intent = new Intent(mContext, AddressLookupService.class);\n intent.putExtra(AddressLookupService.CURRENT_LOCATION, mLastLocation);\n mContext.startService(intent);\n }", "@Override\n protected Void doInBackground(Void... voids) {\n\n\n Geocoder gc = new Geocoder(MainActivity.this);\n\n Log.d(\"florianBurel\", \"gc - isPresent : \" + (gc.isPresent() ? \"YES\" : \"NO\"));\n\n try {\n List<Address> addresses = gc.getFromLocation(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude(), 1);\n\n Log.d(\"florianBurel\", addresses.size() + \" addresses found\");\n\n //city.setName(addresses.get(0).getLocality());\n\n } catch (IOException e) {\n city.setName(\"Unknown Location\");\n }\n\n\n\n\n return null;\n }", "public abstract String getLocation();", "@Override\n public void onLocationResult(LocationResult locationResult) {\n Log.d(TAG, \"onSuccess: Location : \" + locationResult);\n if (locationResult == null) {\n return;\n }\n for (Location location : locationResult.getLocations()) {\n // Update UI with location data\n Toast.makeText(MainActivity.this, \"Location : \" + location, Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onConnected(Bundle bundle) {\n Log.i(TAG, \"location service connected\");\n }", "public Location getLocation() {\n /* if ( Build.VERSION.SDK_INT >= 23 &&\n ContextCompat.checkSelfPermission( mContext, android.Manifest.permission.ACCESS_FINE_LOCATION ) != PackageManager.PERMISSION_GRANTED ) {\n Toast.makeText(mContext,\"Permission is not granted so returning back \",Toast.LENGTH_LONG).show();\n// showSettingsAlert();\n return null ;\n }*/\n\n try {\n\n locationManager = (LocationManager) mContext.getSystemService(LOCATION_SERVICE);\n\n Criteria criteria = new Criteria();\n provider = locationManager.getBestProvider(criteria, false);\n if(provider != null) {\n Location location = locationManager.getLastKnownLocation(provider);\n\n // Initialize the location fields\n if (location != null) {\n System.out.println(\"Provider \" + provider + \" has been selected.\");\n onLocationChanged(location);\n resumeGpsService();\n }\n }else {\n// ISSUtils.checkPermission(mContext);\n }\n\n\n }catch (SecurityException secx) {\n secx.printStackTrace();\n// ISSUtils.checkPermission(mContext);\n showSettingsAlert();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n return location;\n }", "String getLocation();", "String getLocation();", "String getLocation();", "private void locationRequests(){\n mFusedClient = LocationServices.getFusedLocationProviderClient(this);\n mLocationCallback = new LocationCallback(){\n @Override\n public void onLocationResult(LocationResult locationResult){\n List<Location> locationList = locationResult.getLocations();\n if(locationList.size() > 0){\n Location location = locationList.get(locationList.size() - 1);\n Log.i(TAG, \"Location: \" + location.getLatitude() + \" \" + location.getLongitude());\n mLatitude = String.valueOf(location.getLatitude());\n mLongitude = String.valueOf(location.getLongitude());\n }\n }\n };\n mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(UPDATE_INTERVAL_IN_MILLISECONDS);\n mLocationRequest.setFastestInterval(FASTEST_UPDATE_INTERVAL_IN_MILLISECONDS);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mFusedClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n } else {\n getLocation();\n }\n } else {\n mFusedClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n }\n }", "List<String> locations();", "@Override\n public geo_location getLocation() {\n return location;\n }", "LocService getService() {\n return LocService.this;\n }", "protected void startLocationUpdates() {\n try {\n// LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, this);\n\n /* mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(6000); // two minute interval\n mLocationRequest.setFastestInterval(6000);//120000\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);*/\n /*if (ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n }*/\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n// LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, (LocationListener) this);\n LocationServices.getFusedLocationProviderClient(this).requestLocationUpdates(mLocationRequest, null);\n// requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\n// requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n }", "protected void startLocationUpdates() {\n mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequest.setInterval(UPDATE_INTERVAL);\n //mLocationRequest.setFastestInterval(FASTEST_INTERVAL);\n\n // Create LocationSettingsRequest object using location request\n LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder();\n builder.addLocationRequest(mLocationRequest);\n LocationSettingsRequest locationSettingsRequest = builder.build();\n\n // Check whether location settings are satisfied\n // https://developers.google.com/android/reference/com/google/android/gms/location/SettingsClient\n SettingsClient settingsClient = LocationServices.getSettingsClient(this);\n settingsClient.checkLocationSettings(locationSettingsRequest);\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n try{\n getFusedLocationProviderClient(this).requestLocationUpdates(mLocationRequest, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n onLocationChanged(locationResult.getLastLocation(),false);\n }\n },\n Looper.myLooper());\n }\n catch(SecurityException e){\n e.printStackTrace();\n }\n\n }", "public void add_location() {\n if (currentLocationCheckbox.isChecked()) {\n try {\n CurrentLocation locationListener = new CurrentLocation();\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null) {\n int latitude = (int) (location.getLatitude() * 1E6);\n int longitude = (int) (location.getLongitude() * 1E6);\n currentLocation = new GeoPoint(latitude, longitude);\n }\n } catch (SecurityException e) {\n e.printStackTrace();\n }\n } else {\n currentLocation = null;\n }\n\n }", "@SuppressLint(\"MissingPermission\")\n private void requestLocationUpdate() {\n }", "@Override\n public void onLocationChanged(Location location) {\n\n }", "@Override\n public void onLocationChanged(Location location) {\n\n }", "public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationsResponse getESLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationRequest getESLocationsRequest\n )\n ;", "private void comenzarLocalizacion()\n {\n \tlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n \t\n \t//Obtiene Ultima Ubicacion\n \t//Location loc = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n \t \t\n \t//Nos registramos para recibir actualizaciones de la posici�n\n \tlocListener = new LocationListener() {\n\t \tpublic void onLocationChanged(Location location) {\n\t \t\t\n\t \t}\n\t \tpublic void onProviderDisabled(String provider){\n\t \t\t\n\t \t}\n\t \tpublic void onProviderEnabled(String provider){\n\t \t\n\t \t}\n\t \tpublic void onStatusChanged(String provider, int status, Bundle extras){\n\t \t\n\t \t\t\n\t \t}\n \t};\n \t\n \tlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 30000, 0, locListener);\n }", "private void getLastKnownLocation() {\n\n loc=LocationServices.FusedLocationApi.getLastLocation(client);\n\n if (loc != null) {\n Log.i(\"LOCATION: \",loc.toString());\n\n myCurrentLocationMarker= gMap.addMarker(new MarkerOptions()\n .position(new LatLng(loc.getLatitude(),loc.getLongitude()))\n .title(\"My Current Location\"));\n\n currentLocCircle= gMap.addCircle(new CircleOptions()\n .center(new LatLng(loc.getLatitude(),loc.getLongitude()))\n .radius(1000)\n .strokeColor(Color.GREEN)\n .fillColor(Color.LTGRAY));\n\n\n }\n else {\n\n AlertDialog.Builder builder= new AlertDialog.Builder(this);\n builder.setTitle(\"Location Service not Active\");\n builder.setMessage(\"Please enable location service (GPS)\");\n builder.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n }\n });\n Dialog dialog=builder.create();\n dialog.setCancelable(false);\n dialog.show();\n }\n }", "public void handleStationary (Location location) {\n locationService.handleStationary(new BackgroundLocation(PROVIDER_ID, location));\n }", "public void updateLocation();", "public abstract void updateLocations();", "private void getLocation() { \n LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); \n Criteria criteria = new Criteria(); \n criteria.setAccuracy(Criteria.ACCURACY_FINE); \n criteria.setAltitudeRequired(false); \n criteria.setBearingRequired(false); \n criteria.setCostAllowed(true);\n criteria.setPowerRequirement(Criteria.POWER_LOW); \n String provider = locationManager.getBestProvider(criteria,true); \n \n //In order to make sure the device is getting location, request updates. locationManager.requestLocationUpdates(provider, 1, 0, this); \n mostRecentLocation = locationManager.getLastKnownLocation(provider); \n }", "@Test\n public void getLocationById() throws Exception {\n }", "public interface LocativeService {\n public List<Locative> getAll();\n public Locative add(Locative locative);\n public Locative update(Locative locative);\n public Locative findById(int id);\n public void delete(int id);\n /*public List<Locative> findByProperty(Property property);\n public List<Locative> findByCity(City city);*/\n public double garanty(int id);\n // public List<Locative> getLocativeNotInContrat();\n public int countLocative();\n public List<Locative> export(int cpt, HttpServletRequest request);\n}", "@Override\n public void onLocationChanged(Location location) {\n if(!firstLocCheck){\n drive = new Drive(location.getLatitude(),location.getLongitude(),Car.carList.get(carIndex),startTime);\n firstLocCheck = true;\n } else {\n Drive.curLat = location.getLatitude();\n Drive.curLong = location.getLongitude();\n }\n System.out.println(\"Location has changed\");\n System.out.println(location.getLatitude() + \" | \" + location.getLongitude());\n\n //updateLoc(location);\n //locProvider = location.getProvider();\n }", "public LocationService getService()\n {\n return LocationService.this;\n }", "private void startLoggerService() {\n\n // ---use the LocationManager class to obtain GPS locations---\n lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n GPSLoggerService.setLocationManager(lm);\n\n locationListener = new MyLocationListener();\n\n lm.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n minTimeMillis,\n minDistanceMeters,\n locationListener);\n lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,\n minTimeMillis,\n minDistanceMeters,\n locationListener);\n\n }", "@SuppressLint(\"MissingPermission\")\n private void configureLocation() {\n\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000, 1, (android.location.LocationListener) locationListener);\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n Toast.makeText(getApplicationContext(), \"net acquired\", Toast.LENGTH_LONG).show();\n }", "private void findPosition() throws Exception {\n \tLocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n \t// Define a listener that responds to location updates\n \tLocationListener locationListener = new LocationListener() {\n \t public void onLocationChanged(Location location) {\n \t // Called when a new location is found by the network location provider.\n \t \n \t }\n\n \t public void onStatusChanged(String provider, int status, Bundle extras) {}\n\n \t public void onProviderEnabled(String provider) {}\n\n \t public void onProviderDisabled(String provider) {}\n \t };\n\n \t// Register the listener with the Location Manager to receive location updates\n \ttry {\n \t\tlocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n \tLocation loc = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n \tlatitude = (int)(loc.getLatitude()*1E6);\n \tlongitude = (int)(loc.getLongitude()*1E6);\n\t\t} catch (Exception e) {\n\t\t\tlocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, locationListener);\n\t \tLocation loc = locationManager.getLastKnownLocation(LocationManager.PASSIVE_PROVIDER);\n\t \tlatitude = (int)(loc.getLatitude()*1E6);\n\t \tlongitude = (int)(loc.getLongitude()*1E6);\n\t\t}\n \t//locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n \t//Location loc = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n \t\n \t\n \t\n\t\t\n\t}", "@GetMapping(\"/locations\")\n public List<Location> getLocations(){\n return service.getAll();\n }", "boolean hasLocation();", "boolean hasLocation();", "private void createLocationCallback() {\n mLocationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n\n mLastLocation = locationResult.getLastLocation();\n mRequestingLocationUpdate = false;\n\n startAddressLookupService();\n }\n };\n }", "public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetServiceLocationResponse setServiceLocation\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetServiceLocationRequest setServiceLocationRequest\n )\n ;", "@Override\n public void onLocationChanged(Location location) {\n }", "public void onLocationChanged(Location location){\n\n }", "private GuidoLocationListener() {}", "void getMyCurrentLocation() { \r\n\t\t \r\n\t\t \r\n\t \t // map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat, lon), 16));\r\n\t\t \r\n\t LocationManager locManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\r\n\t try{\r\n\t \t\tgps_enabled=locManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\r\n\t }catch(Exception ex){\r\n\t \t\r\n\t }\r\n\t try{\r\n\t \tnetwork_enabled=locManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\r\n\t }catch(Exception ex){\r\n\t \t\r\n\t }\r\n\r\n\t if(gps_enabled){\r\n\t location=locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n\r\n\t } \r\n\r\n\t \r\n\t if(network_enabled && location==null) {\r\n\t location=locManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\r\n\r\n\t }\r\n\r\n\t\t if (location != null) { \r\n\t\t \t//accLoc=location.getAccuracy();\r\n\t\t lat = location.getLatitude();\r\n\t\t\t lon= location.getLongitude();\r\n\t\t } \r\n\t \r\n\t try\r\n\t {\r\n\t \t //Getting address based on coordinates.\r\n\t Geocoder geocoder; \r\n\t List<Address> addresses;\r\n\t geocoder = new Geocoder(this, Locale.getDefault());\r\n\t addresses = geocoder.getFromLocation(lat, lon, 1);\r\n\t \r\n\t Address = addresses.get(0).getAddressLine(0);\r\n\t City = addresses.get(0).getAddressLine(1);\r\n\t }\r\n\t catch (Exception e)\r\n\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\r\n\t if (Address != null && !Address.isEmpty()) {\r\n\t\t \t try\r\n\t\t \t {\r\n\t\t \t \t //Getting address based on coordinates.\r\n\t\t \t Geocoder geocoder; \r\n\t\t \t List<Address> addresses;\r\n\t\t \t geocoder = new Geocoder(this, Locale.getDefault());\r\n\t\t \t addresses = geocoder.getFromLocation(lat, lon, 1);\r\n\t\t \t\r\n\t\t \t Address = addresses.get(0).getAddressLine(0);\r\n\t\t \t City = addresses.get(0).getAddressLine(1);\r\n\t\t \t }\r\n\t\t \t catch (Exception e)\r\n\t\t \t {\r\n\t\t \t e.printStackTrace();\r\n\t\t \t }\r\n\t\t \t //mp.position(new LatLng(location.getLatitude(), location.getLongitude()));\r\n\t\t \t //mp.title(\"You are here\");\t\t \t \r\n\t\t \t //map.addMarker(mp).showInfoWindow();\t\r\n\t\t \t //map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(1.3667, 103.8), 10));\r\n\t }\r\n\t else{ \r\n\t /* AlertDialog.Builder builder1 = new AlertDialog.Builder(ArticleLatestMoreDetailActivity.this);\r\n\t builder1.setTitle(\"Service Unavailable\");\r\n\t \t\t builder1.setMessage(\"Unable to get your location, check if your GPS and Network are turned on.\");\r\n\t \t\t builder1.setCancelable(true);\r\n\t builder1.setNegativeButton(\"OK\",new DialogInterface.OnClickListener() {\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t dialog.cancel();\r\n\t }\r\n\t });\r\n\t AlertDialog alert11 = builder1.create();\r\n\t alert11.show();\r\n\t \r\n\t lat=1.3667;\r\n\t lon=103.8; */ \r\n\t // mp.position(new LatLng(1.3667, 103.8));\r\n\t\t // mp.draggable(true);\r\n\t\t \t // map.addMarker(mp).showInfoWindow();\r\n\t\t \t \r\n\t\t \t //map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(1.3667, 103.8), 10));\r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t Bundle extras = this.getIntent().getExtras();\r\n\t\t double dbLat = extras.getDouble(\"dbLat\");\r\n\t\t double dbLon = extras.getDouble(\"dbLon\");\r\n\t\t artLoc.position(new LatLng(dbLat, dbLon));\r\n\t\t artLoc.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n\t\t artLoc.title(\"Place of occurrence\");\r\n\t\t map.addMarker(artLoc).showInfoWindow();\r\n\t\t map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(dbLat, dbLon), 18));\r\n\t \r\n\t \r\n\t \r\n\t }", "private synchronized void initLocation() {\n if (locationManager == null) {\n LocationManager manager =\n (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);\n\n Criteria criteriaCoarse = new Criteria();\n /* \"Coarse\" accuracy means \"no need to use GPS\".\n * Typically a gShots phone would be located in a building,\n * and GPS may not be able to acquire a location.\n * We only care about the location to determine the country,\n * so we don't need a super accurate location, cell/wifi is good enough.\n */\n criteriaCoarse.setAccuracy(Criteria.ACCURACY_COARSE);\n criteriaCoarse.setPowerRequirement(Criteria.POWER_LOW);\n String providerName =\n manager.getBestProvider(criteriaCoarse, /*enabledOnly=*/true);\n \n \n List<String> providers = manager.getAllProviders();\n for (String providerNameIter : providers) {\n try {\n LocationProvider provider = manager.getProvider(providerNameIter);\n } catch (SecurityException se) {\n // Not allowed to use this provider\n Logger.w(\"Unable to use provider \" + providerNameIter);\n continue;\n }\n Logger.i(providerNameIter + \": \" +\n (manager.isProviderEnabled(providerNameIter) ? \"enabled\" : \"disabled\"));\n }\n\n /* Make sure the provider updates its location.\n * Without this, we may get a very old location, even a\n * device powercycle may not update it.\n * {@see android.location.LocationManager.getLastKnownLocation}.\n */\n manager.requestLocationUpdates(providerName,\n /*minTime=*/0,\n /*minDistance=*/0,\n new LoggingLocationListener(),\n Looper.getMainLooper());\n locationManager = manager;\n locationProviderName = providerName;\n }\n assert locationManager != null;\n assert locationProviderName != null;\n }", "public String getLocation(){\r\n return location;\r\n }", "@Override\n public void onLocationChanged(Location location) {\n }", "private void obtainCurrentLocation(boolean add_current_location_on) {\n\t\tif (add_current_location_on) {\n\t\t\t// If Google Play Services is available\n\t\t\tif (servicesConnected()) {\n\t\t\t\t// mProgressBar_location.setVisibility(View.VISIBLE);\n\t\t\t\t// Get the current location\n\t\t\t\tLocation currentLocation = mLocationClient.getLastLocation();\n\t\t\t\tlink_to_global_report.setReporter_geopoint(new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude()));\n\t\t\t\t// mProgressBar_location.setVisibility(View.GONE);\n\t\t\t\tLog.e(DEBUG, \"current_location_add:\" + currentLocation);\n\t\t\t}\n\n\t\t} else {\n\t\t\tToast.makeText(this, DEBUG + \"off ... supposed to delete loc!\", Toast.LENGTH_SHORT).show();\n\t\t\t// mProgressBar_location.setVisibility(View.GONE);\n\t\t}\n\t}" ]
[ "0.7262458", "0.72139055", "0.71428394", "0.6867715", "0.68002", "0.6781138", "0.677272", "0.67611104", "0.6672063", "0.66306657", "0.66086835", "0.6558485", "0.6553653", "0.6548573", "0.6544104", "0.6544104", "0.6544104", "0.6544104", "0.65331566", "0.6455219", "0.6450149", "0.6435893", "0.6425025", "0.64166754", "0.64142394", "0.6402143", "0.63941175", "0.6370766", "0.6364231", "0.6336243", "0.63279104", "0.627788", "0.62618506", "0.6250328", "0.6236135", "0.62330365", "0.62323135", "0.6232154", "0.62229013", "0.6206307", "0.6204152", "0.61970097", "0.6195844", "0.6189659", "0.6187538", "0.61820614", "0.61776674", "0.61770886", "0.61765665", "0.61688834", "0.6167584", "0.6164723", "0.6157968", "0.6157968", "0.6157968", "0.61527485", "0.61515677", "0.6131525", "0.6112939", "0.61103004", "0.6109287", "0.6103055", "0.6103055", "0.6103055", "0.6099866", "0.6079618", "0.60730743", "0.60529864", "0.60380876", "0.6034384", "0.60297334", "0.602612", "0.60228544", "0.60228544", "0.6013413", "0.600342", "0.59979796", "0.5995301", "0.5994906", "0.59919107", "0.5990427", "0.5983565", "0.5966351", "0.59634036", "0.5960885", "0.59555477", "0.5954576", "0.59516424", "0.5950976", "0.5947162", "0.5947162", "0.5936279", "0.59334093", "0.59319687", "0.5929419", "0.5928721", "0.59240735", "0.59157485", "0.5914911", "0.5914485", "0.59112936" ]
0.0
-1
Adds a point to the current line being drawn. If there is no line, a new line will be started.
public void addPoint(LatLng point, int color) { if (currentLine == null) { PolylineOptions options = new PolylineOptions() .add(point) .color(color); currentLine = mMap.addPolyline(options); } else { List<LatLng> allPoints = currentLine.getPoints(); allPoints.add(point); currentLine.setPoints(allPoints); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPoint(Point p) {\r\n line.add(p);\r\n }", "public void addPoint(Point point) {\n if (isValidStroke) {\n points.add(point);\n }\n }", "private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}", "public void startDraw(Vector2 point){\n path.add(point);\n }", "public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }", "private void addPointToStroke(float x, float y)\n\t{\n\t\tstrokePointCount++;\n\t\tlatestStroke.triangleStrip.addPoint(this, x, y, true);\n\t}", "public void addPoint() {\n points += 1;\n }", "public void addPoint(double x, double y)\t{\n\t\tdouble[][] pointsCopy = new double[points.length][3];\n\t\tfor (int i = 0; i < points.length; i++)\t{\n\t\t\tpointsCopy[i][0] = points[i][0];\n\t\t\tpointsCopy[i][1] = points[i][1];\n\t\t\tpointsCopy[i][2] = points[i][2];\n\t\t}\n\t\tpoints = new double[points.length+1][3];\n\t\tint stopon = 0;\n\t\tfor (int i = 0; i < pointsCopy.length; i++)\t{\n\t\t\tif (x < pointsCopy[i][0]) break;\n\t\t\tstopon = i + 1;\n\t\t\tpoints[i][0] = pointsCopy[i][0];\n\t\t\tpoints[i][1] = pointsCopy[i][1];\n\t\t\tpoints[i][2] = pointsCopy[i][2];\n\t\t}\n\t\tfor (int i = stopon; i < pointsCopy.length; i++)\t{\n\t\t\tpoints[i+1][0] = pointsCopy[i][0];\n\t\t\tpoints[i+1][1] = pointsCopy[i][1];\n\t\t\tpoints[i+1][2] = pointsCopy[i][2];\n\t\t}\n\t\tpoints[stopon][0] = x;\n\t\tpoints[stopon][1] = y;\n\t\tpoints[stopon][2] = lineon;\n\t\tif (x > maxX) maxX = x;\n\t\tif (y > maxY)\tmaxY = y;\n\t\tif (maxX > XEnd) XEnd = maxX;\n\t\tif (maxY > YEnd) YEnd = maxY;\n\t\tif (autoUpdate) repaint();\n\t}", "private static void lineTo(float x, float y) {\n setPenDown();\n mPivotX = mPenX = x;\n mPivotY = mPenY = y;\n mPath.lineTo(x * mScale, y * mScale);\n elements.add(\n new PathElement(ElementType.kCGPathElementAddLineToPoint, new Point[] {new Point(x, y)}));\n }", "void addLine(int index, Coordinate start, Coordinate end);", "public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}", "@Override\n public void lineTo(double x, double y) {\n graphicsEnvironmentImpl.lineTo(canvas, x, y);\n }", "public void lineTo(double x, double y)\n {\n\tPoint2D pos = transformedPoint(x,y);\n\tdouble tx = pos.getX();\n\tdouble ty = pos.getY();\n\t\n\tLine line = new Line(_currentx, _currenty, tx, ty);\n\n\tSystem.out.println(\"+Line: \" + line.toString());\n\t_currentPath.add(line);\n\t_currentx = tx;\n\t_currenty = ty;\n }", "private void drawLine(GraphicsContext canvas, Point start, Point end) {\n canvas.strokeLine(\n start.X, start.Y,\n end.X, end.Y\n );\n }", "private void drawLine(double x1, double y1, double x2, double y2) {\r\n\t\tGLine line = new GLine(x1,y1,x2,y2);\r\n\t\tadd(line);\r\n\t}", "public void addPoint(int x, int y) {\n\t\tshape.addPoint(x, y);\n\t}", "private void addPoint(PointF p) {\n final long t = System.currentTimeMillis();\n final int size;\n synchronized (lastSegment) {\n size = lastSegment.size();\n final PointF sheetPoint = sheet.toSheet(p);\n lastSegment.add(sheetPoint);\n lastSegmentTimes.add(t);\n lastSegmentCurve.setThickness(currentThickness);\n lastSegmentCurve.addPoint(sheetPoint);\n }\n if (size >= maxPoints - 1) {\n finishSegment();\n mode = IDLE_MODE;\n }\n }", "private void addPoint( LatLng point ) {\n \t\tthis.addMarker( point );\n \t\tthis.commitPolygon();\n \t}", "public void addPoint(Point point) {\r\n\t\t\r\n\t\tthis.listOfPoints.add(point);\r\n\t}", "public void addPoint( final Point2d point ){\n points.add(new Point2d(point));\n\n dirty = true;\n }", "public void addPoint( final double x, final double y ){\n points.add(new Point2d(x,y));\n\n dirty = true;\n }", "public void addPoints(int point){\n\t\tthis.points += point;\n\t}", "private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}", "public void drawLine(int x, int y, int x2, int y2, int color);", "public void add(Point point) {\n\t\tthis.points.add(point);\n\t}", "public void drawLine(int x1, int y1, int x2, int y2);", "public void lineTo(int x, int y){\n paint.setColor(Color.parseColor(\"#000000\"));\n //ToDo: implement line drawing here\n\n canvas.drawLine(lastX, lastY, x, y, paint);\n lastX = x;\n lastY = y;\n Log.d(\"Canvas Element\", \"drawing line from: \" + lastX + \", \" + lastY +\",\" + \" to: \" + x +\", \" + y);\n }", "public void addPoint(Point p) {\n\t\tpoints.add(p);\n\t\tnotifyListeners();\n\t}", "public Point add(Point point)\n {\n return new Point(this.x + point.x, this.y + point.y);\n }", "public synchronized void addLine(Line line)\r\n\t{\r\n\t\tlines.add(line);\r\n\t}", "public void drawTo(Point that) {\n StdDraw.line(this.x, this.y, that.x, that.y);\n }", "public final void addPoint(final int x, final int y) {\n points.add(new Position(x, y));\n }", "public void drawLine(Point2D startPoint, Point2D endPoint, double lineStroke, int EndType);", "private void updatePolyLine(LatLng latLng) {\n List<LatLng> points = polyLine.getPoints();\n points.add(latLng);\n polyLine.setPoints(points);\n }", "public void drawTo(Point that) {\n /* DO NOT MODIFY */\n StdDraw.line(this.x, this.y, that.x, that.y);\n }", "public void drawTo(Point that) {\n /* DO NOT MODIFY */\n StdDraw.line(this.x, this.y, that.x, that.y);\n }", "public void drawTo(Point that) {\n /* DO NOT MODIFY */\n StdDraw.line(this.x, this.y, that.x, that.y);\n }", "public void drawTo(Point that) {\n /* DO NOT MODIFY */\n StdDraw.line(this.x, this.y, that.x, that.y);\n }", "public void add(GPoint point) {\n\t\tpoints.add(new GPoint(point));\n\t}", "public Line(Point startingPoint, Point endingPoint) {\n this.startingPoint = startingPoint;\n this.endingPoint = endingPoint;\n }", "public void add(GPoint point) {\n\t\tif (point == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tpoints.add(point);\n\t\trepaint();\n\t}", "public void drawTo(Point that) {\r\n /* DO NOT MODIFY */\r\n StdDraw.line(this.x, this.y, that.x, that.y);\r\n }", "public void drawLine(float[] line) {\n\t\tparent.line(line[0], line[1], line[2], line[3]);\n\t}", "public void drawLine(int x0, int y0, int x1, int y1) {\n \t\tmyCanvas.drawLine(x0, y0, x1, y1, myPaint);\n \t}", "private void updatePolyLine(LatLng latLng) {\n\t\tList<LatLng> points = polyLine.getPoints();\n\t\tpoints.add(latLng);\n\t\tpolyLine.setPoints(points);\n\t}", "public GLGraphics drawLine(float x, float y, float x2, float y2) {\n\t\tstats.incLine();\n\t\tgl.glBegin(GL.GL_LINES);\n\t\tgl.glVertex3f(x, y, z);\n\t\tgl.glVertex3f(x2, y2, z);\n\t\tgl.glEnd();\n\t\treturn this;\n\t}", "public void draw()\n {\n drawLine(x1, y1, x2, y2);\n }", "public void paintLine(Point2D pt1, Point2D pt2, Graphics graphics) {\n Graphics2D g = (Graphics2D) graphics;\n g.setXORMode(java.awt.Color.lightGray);\n g.setColor(java.awt.Color.darkGray);\n if (pt1 != null && pt2 != null) {\n // the line connecting the segments\n OMLine cLine = new OMLine((float) pt1.getY(), (float) pt1.getX(), (float) pt2.getY(), (float) pt2.getX(), lineType);\n // get the map projection\n Projection proj = theMap.getProjection();\n // prepare the line for rendering\n cLine.generate(proj);\n // render the line graphic\n cLine.render(g);\n }\n }", "void touch_move_draw(float event_x, float event_y) {\n path.lineTo(event_x,event_y);\n cur_x = event_x;\n cur_y = event_y;\n\n // Add point to list\n addPoint();\n }", "public void addPoint(float x, float y) {\n Vector2 point = new Vector2(x, y);\n points.add(point);\n }", "protected abstract void lineTo(final float x, final float y);", "public void lineDraw(GraphNodeAL<MapPoint> l1, GraphNodeAL<MapPoint> l2) {\n Line l = new Line((int) l1.data.xCo, (int) l1.data.yCo, (int) l2.data.xCo, (int) l2.data.yCo);\n l.setTranslateX(mapImage.getLayoutX());\n l.setTranslateY(mapImage.getLayoutY());\n ((Pane) mapImage.getParent()).getChildren().add(l);\n }", "public void addPoint(double x, double y) {\n xList.add(x);\n yList.add(y);\n }", "public void addPoint(T p) {\n points.add(p);\n }", "public void drawLine(double startx, double starty, double endx, double endy, Color color) {\n\t\tgc.setStroke(color);\n\t\tgc.strokeLine(startx,starty,endx,endy);\n\t}", "public void addPoint( final Point2D point ){\n this.addPoint(point.getX(),point.getY());\n }", "public boolean add(PointF point)\n {\n flushCache();\n return points.add(Geometry.clone(point));\n }", "private void defineLinePoints(int x1, int y1,int x2,int y2){\n Line line1 = new Line(x1, y1, x2, y2);\n for(int i = 0; i < line1.points.size(); i++){\n super.points.add(line1.points.get(i));\n }\n }", "public void drawLine(int x1, int y1, int x2, int y2) {\n canvas.drawLine(x1, y1, x2, y2, paint);\n }", "public abstract void lineTo(double x, double y);", "public void add(float x, float y) {\n\t\tpoints.add(new GPoint(x, y));\n\t}", "public void drawLine(float[] line) {\n\t\tline(line[0], line[1], line[2], line[3]);\n\t}", "private void drawLine(int x, int y, int x1, int y1, int count, Color color) {\n\n // draw a line if count is greater than 0\n if (count > 0) {\n\n NscLine newLine = new NscLine(x+count, y, x1+count, y1);\n newLine.setForeground(color);\n add(newLine);\n \n // ensure we repaint the window\n repaint();\n\n // recursively call this method, decreasing count each time\n drawLine(x, y, x1, y1, count-1, color);\n\n }\n\n }", "public Line() {\r\n this.line = new ArrayList < Point > ();\r\n this.clickedPoint = null;\r\n this.direction = null;\r\n }", "public boolean addPoint(Point p);", "@Action\n public void addPoint() { \n Point2D pt = randomPoint();\n PrimitiveGraphic bp = JGraphics.point(pt, RandomStyles.point());\n bp.setDefaultTooltip(\"<html><b>Point</b>: <i> \" + pt + \"</i>\");\n bp.setDragEnabled(true);\n root1.addGraphic(bp);\n }", "public void drawLine(int x1, int y1, int x2, int y2){\n int a1 = new Coordinate2D(x1, y1).getPixelPointX();\n int b1 = new Coordinate2D(x1, y1).getPixelPointY();\n int a2 = new Coordinate2D(x2, y2).getPixelPointX();\n int b2 = new Coordinate2D(x2, y2).getPixelPointY();\n graphics2D.drawLine(a1, b1, a2, b2);\n }", "public void addPoint(Point pon)\n {\n poly[size] = pon;\n size++;\n }", "public void addPoint(double latitude, double longitude) {\n\n // Update the path.\n if (latitudes.isEmpty()) {\n path.moveTo(latitude, longitude);\n }\n else {\n path.lineTo(latitude, longitude);\n }\n\n latitudes.add(latitude);\n longitudes.add(longitude);\n\n\n }", "public void addLine(Line l) {\n\t\tlines.add(l);\n\t\t// vypocitaj bounding rect\n\t\tfloat x, y, w, h;\n\t\tif (l.getX1() < l.getX2()) {\n\t\t\tx = l.getX1();\n\t\t\tw = l.getX2() - l.getX1();\n\t\t} else {\n\t\t\tx = l.getX2();\n\t\t\tw = l.getX1() - l.getX2();\n\t\t}\n\t\tif (l.getY1() < l.getY2()) {\n\t\t\ty = l.getY1();\n\t\t\th = l.getY2() - l.getY1();\n\t\t} else {\n\t\t\ty = l.getY2();\n\t\t\th = l.getY1() - l.getY2();\n\t\t}\n\t\tif (boundingRect==null) {\n\t\t\tboundingRect = new Rectangle(x, y, w, h);\n\t\t} else {\n\t\t\tif (x < boundingRect.getX()) {\n\t\t\t\tboundingRect.setX(x);\n\t\t\t}\n\t\t\tif (y < boundingRect.getY()) {\n\t\t\t\tboundingRect.setY(y);\n\t\t\t}\n\t\t\tif (w > boundingRect.getW()) {\n\t\t\t\tboundingRect.setW(w);\n\t\t\t}\n\t\t\tif (h > boundingRect.getH()) {\n\t\t\t\tboundingRect.setH(h);\n\t\t\t}\n\t\t}\n\t}", "public void onOutputLineAdded(Window window, OutputLine line) {\n\t\t\t\n\t\t\tlinesLayout.addLine(line);\n\t\t}", "public void drawLine(int i, int y1, int j, int y2, Paint paint) {\n\t\t\n\t}", "public void addPointInOrder(Point2D newPoint) {\n\t\tif (pointList.size()>0 && newPoint.getX() < getMaxX())\n\t\t\tthrow new IllegalArgumentException(\"Non-increasing x value\");\n\t\tprevYSum = ySum;\n\t\tif (Double.isNaN(maxY) || newPoint.getY() > maxY)\n\t\t\tmaxY = newPoint.getY();\n\n\t\tif (Double.isNaN(minY) || newPoint.getY() < minY)\n\t\t\tminY = newPoint.getY();\n\n\t\t//System.out.println(\"Adding point \" + newPoint.getY() + \" to series\");\n\t\tdouble y = newPoint.getY();\n\t\tySum += y;\n\t\tif (pointList.size()>1)\n\t\t\tm2n += (y-ySum/(pointList.size()+1.0))*(y-prevYSum/(pointList.size()));\n\t\tpointList.add(newPoint);\n\t}", "public void addPoints(int addP){\n this.points += addP;\n }", "private void drawLine( Graphics2D g2, Point2D.Double p1, Point2D.Double p2, Color colour )\r\n {\r\n drawLine( g2, p1, p2, colour, DEFAULT_STROKE );\r\n }", "public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);", "public void computeLine ()\r\n {\r\n line = new BasicLine();\r\n\r\n for (GlyphSection section : glyph.getMembers()) {\r\n StickSection ss = (StickSection) section;\r\n line.includeLine(ss.getLine());\r\n }\r\n\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\r\n line + \" pointNb=\" + line.getNumberOfPoints() +\r\n \" meanDistance=\" + (float) line.getMeanDistance());\r\n }\r\n }", "public void drawOneLine(float x1, float y1,float x2,float y2){\n \tGL11.glBegin(GL11.GL_LINES);\n \tGL11.glVertex2f(x1,y1);\n \tGL11.glVertex2f(x2,y2);\n \tGL11.glEnd();\n }", "public void draw(Graphics g) {\r\n g.drawLine(line.get(0).getX() + 4, line.get(0).getY() + 4, line.get(4).getX() + 4, line.get(4).getY() + 4);\r\n }", "public void drawLine(float x, float y, float x2, float y2, float width) {\n throw new NotImplementedException(); // TODO Implement\n }", "public void addPoint(final DataPoint point) {\n logger.debug(\"addPoint called\");\n\n checkDimension(point);\n\n _addPoint(point);\n }", "private void drawLine(Vector3 point1, Vector3 point2, Node n) {\n\n Node nodeForLine= new Node();\n nodeForLine.setName(LINE_STRING);\n //First, find the vector extending between the two points and define a look rotation\n //in terms of this Vector.\n final Vector3 difference = Vector3.subtract(point1, point2);\n final Vector3 directionFromTopToBottom = difference.normalized();\n final Quaternion rotationFromAToB =\n Quaternion.lookRotation(directionFromTopToBottom, Vector3.up());\n MaterialFactory.makeTransparentWithColor(getApplicationContext(), new Color(this.colorLine.x, this.colorLine.y, this.colorLine.z,this.alphaColor))\n .thenAccept(\n material -> {\n /* Then, create a rectangular prism, using ShapeFactory.makeCube() and use the difference vector\n to extend to the necessary length. */\n ModelRenderable model = ShapeFactory.makeCube(\n new Vector3(this.sizeLine, this.sizeLine, difference.length()),\n Vector3.zero(), material);\n /* Last, set the world rotation of the node to the rotation calculated earlier and set the world position to\n the midpoint between the given points . */\n\n nodeForLine.setParent(n);\n\n\n nodeForLine.setRenderable(model);\n nodeForLine.setWorldPosition(Vector3.add(point1, point2).scaled(.5f));\n nodeForLine.setWorldRotation(rotationFromAToB);\n }\n );\n\n }", "public void drawLine(float x, float y, float x2, float y2, float width, float u, float v, float texW, float texH) {\n throw new NotImplementedException(); // TODO Implement\n }", "private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }", "private void touchStarted(float x, float y, int lineID){\n Path path;\n Point point;\n\n // if there is already a path of lineID\n if( pathMap.containsKey(lineID) ){\n path = pathMap.get(lineID); // get the Path\n path.reset(); // reset Path because new touch has started\n point = previousPointMap.get(lineID); // get Path's last point\n } else {\n path = new Path();\n pathMap.put(lineID, path); // add the Path to Map\n point = new Point(); // create a new Point\n previousPointMap.put(lineID, point); // add the Point\n }\n\n // move to coordinates of the touch\n path.moveTo(x, y);\n point.x = (int) x;\n point.y = (int) y;\n }", "public void add(double x, double y) {\n\t\tadd(new GPoint(x, y));\n\t}", "public void addPoint(Point point){\n\t\t\tclusterPointsList.add(point);\n\t\t}", "public void addItem(LineItem lineItem){\n\t\t\n\t\tlineItems.add(lineItem);\n\t}", "public final void addPoint(final Position loc) {\n points.add(new Position(loc));\n }", "protected void drawLineFromPointToPrevPoint(PointFloat[] points, int index, int thickness, Color c)\n\t{\n\t\t\tint x1 = (int) (points[index].x * drawnPlot.getScale().x + drawnPlot\n\t\t\t\t\t.getOffset().x);\n\t\t\tint y1 = (int) (-points[index].y * drawnPlot.getScale().y + drawnPlot\n\t\t\t\t\t.getOffset().y);\n\t\t\tint x2 = (int) (points[index - 1].x * drawnPlot.getScale().x + drawnPlot\n\t\t\t\t\t.getOffset().x);\n\t\t\tint y2 = (int) (-points[index - 1].y * drawnPlot.getScale().y + drawnPlot\n\t\t\t\t\t.getOffset().y);\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg.setColor(c);\n\t\t\tg2.setStroke(new BasicStroke(thickness));\n\t\t\tg.drawLine(x1, y1, x2, y2);\n\t}", "private void drawConnectLine(double[] startPoint, double[] endPoint, Color color) {\r\n\t\tdouble startX = startPoint[0];\r\n\t\tdouble startY = startPoint[1];\r\n\t\t\r\n\t\tdouble endX = endPoint[0];\r\n\t\tdouble endY = endPoint[1];\r\n\t\t\r\n\t\tGLine line = new GLine();\r\n\t\tline.setStartPoint(startX, startY);\r\n\t\tline.setEndPoint(endX, endY);\r\n\t\tline.setColor(color);\r\n\t\tadd(line);\r\n\t}", "void add(Point point) {\n\t\tpoints[posit]=point;\n\t\tposit++;\n\t\t//if method add is applied, size should also change\n\t\tsize++;\n\t}", "private void drawLine(Graphics g, int x1, int y1, int x2, int y2) {\n int d = 0;\n\n int dx = Math.abs(x2 - x1);\n int dy = Math.abs(y2 - y1);\n\n int dx2 = 2 * dx; // slope scaling factors to\n int dy2 = 2 * dy; // avoid floating point\n\n int ix = x1 < x2 ? 1 : -1; // increment direction\n int iy = y1 < y2 ? 1 : -1;\n\n int x = x1;\n int y = y1;\n\n if (dx >= dy) {\n while (true) {\n plot(g, x, y);\n if (x == x2)\n break;\n x += ix;\n d += dy2;\n if (d > dx) {\n y += iy;\n d -= dx2;\n }\n }\n } else {\n while (true) {\n plot(g, x, y);\n if (y == y2)\n break;\n y += iy;\n d += dx2;\n if (d > dy) {\n x += ix;\n d -= dy2;\n }\n }\n }\n }", "void markLine() {\n lineMark = cursor;\n }", "public void addPoint(Point3d p) {\n\n\t\t// Add the new point\n\t\tpoints.add(p);\n\n\t\tgeneratePoints();\n\t}", "public Point2D addPoint(double x, double y);", "public void add(Point p) {\n add(p.xyz.x, p.xyz.y, p.xyz.z);\n }", "public void addLineItem (LineItem lineItem){\n if (this.orderStatus != OrderStatus.Closed && !lineItem.isOrdered() && !lineItems.contains(lineItem)){\n lineItems.add(lineItem);\n total += lineItem.getPrice();\n lineItem.setOrdered(true);\n this.getAccount().setBalance(this.getAccount().getBalance() - lineItem.getPrice());\n }\n }", "public void insert(Point2D p) {\n mPoints.add(p);\n }", "Point add (double x, double y);" ]
[ "0.825258", "0.75722367", "0.72922266", "0.72675705", "0.71930903", "0.7088106", "0.7027765", "0.69834167", "0.6922987", "0.6907792", "0.6858893", "0.67814475", "0.67759424", "0.67748487", "0.6748734", "0.674028", "0.6711355", "0.6682244", "0.666978", "0.66671157", "0.66427684", "0.662817", "0.6615736", "0.6615102", "0.6611489", "0.66047287", "0.6579011", "0.6548204", "0.6545449", "0.6529408", "0.65290254", "0.64904535", "0.64676434", "0.64644015", "0.64611465", "0.64611465", "0.64611465", "0.64611465", "0.64584917", "0.6451693", "0.64496154", "0.6439993", "0.6430647", "0.6420979", "0.63890225", "0.6365265", "0.6362128", "0.63271815", "0.6320184", "0.6315873", "0.6289776", "0.62887263", "0.6287118", "0.6266877", "0.6251779", "0.62196195", "0.6212774", "0.61991143", "0.61779016", "0.61699164", "0.61630017", "0.6161074", "0.6154083", "0.6140963", "0.61278355", "0.61265665", "0.6125966", "0.6116823", "0.61126906", "0.6102621", "0.61018246", "0.60920763", "0.6065796", "0.6039146", "0.6037345", "0.60216916", "0.6018138", "0.6016934", "0.6015132", "0.6008242", "0.60010713", "0.6000775", "0.59910744", "0.5987857", "0.5986453", "0.59613645", "0.59535235", "0.59500533", "0.5939494", "0.59386927", "0.5912957", "0.5911585", "0.5905789", "0.5895909", "0.58861125", "0.5880709", "0.5876675", "0.58754426", "0.58604854", "0.5860058" ]
0.72323173
4
Ends the current line.
public void endLine() { if (currentLine != null) { lines.add(currentLine); currentLine = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void endOfLine() {\n\t}", "void endLine() {\n\t\tif (loaded != null && loaded.length() > 0) {\n\t\t\tlineContainer.set(loaded.toString());\n\t\t}\n\t\tloaded = new StringBuilder();\n\t}", "public void gotoEndOfLine()\r\n\t{\r\n\t\twhile (thisc != '\\n') {\r\n\t\t\tif (thisc == EOF) return;\r\n\t\t\tnextC();\r\n\t\t}\r\n\t}", "public String getEndLine() {\r\n return this.endLine;\r\n }", "public boolean isAtEnd()\n\t{\n\t\treturn (lineNow >= lineTime);\n\t}", "public void endBlockOut () {\n addLine (getBlockEnd());\n // writer.close();\n }", "protected void end() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" ending\");\r\n\t\t }", "public int getEndLine() {\r\n \r\n return endLine;\r\n }", "public void flushCurrentLine()\n {\n line = null;\n }", "public void setEndLine(int endLine) {\r\n this.endLine = endLine;\r\n }", "private boolean endline() {\r\n return (CHAR('\\r') || true) && CHAR('\\n');\r\n }", "@Pure\n public int getEndLine() {\n return this.endLine;\n }", "public void endpath()\n {\n\t closepath();\n\t//stroke();\n\tfor(Line line : _currentPath) {\n\t System.out.println(\"EndPath: \" + line.toString());\n\t}\n\t_currentPath.clear();\n\t_closedPath=false;\n }", "public void appendLine() {\n\t\t\tmBuilder.append(NewLineChar);\n\t\t\tlastAppendNewLine = true;\n\t\t}", "public void setEndLine(final int endLine) {\n this.endLine = endLine;\n }", "public void newLine()\n {\n rst += NEW_LINE;\n }", "public int getEndLIne() {\r\n return this.endLine;\r\n }", "protected void end() {\n \t// theres nothing to end\n }", "public void endCharacter() {\n\t\tString name = \"Tori\";\n\t\tboolean startWith = name.endsWith(\"ori\");\n\t\tif(startWith) {\n\t\t\tSystem.out.println(\"it ends with the character\");\n\t\t}\n\t}", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "@Override\n\tprotected void end() {\n\t\t//System.out.println(this.getClass().getSimpleName() + \" end\");\n\t}", "protected void end() {\n \n \n }", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected abstract boolean end();", "private void finishLine(MouseEvent e) {\n\t\txEnd = e.getX();\n\t\tyEnd = e.getY();\n\t}", "@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(22)\n boolean atEndOfLine();", "public void newLine() {\n text.append(\"\\n\");\n }", "public void end() {\n\n }", "public boolean endOfText () {\n if (index >= blockIn.length()) {\n blockEnded = true;\n textEnded = true;\n }\n return textEnded;\n }", "protected void end()\n\t{\n\t}", "public int getEndLineNumber() {\n return this.endLine;\n }", "public void elementEnd() {\n\t\t\t\t\t\tblipsText.append(\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void setEndLineNumber(int endLine) {\n this.endLine = endLine;\n }", "public void end();", "public static int getEndOfLineIndex() {\n return endOfLineIndex;\n }", "protected void end() {\n\r\n\t}", "@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}", "public void newLine()\n\t{\n\t\toutput.append(\"\\n\");\n\t}", "public abstract void end();", "boolean hasEndLineNumber();", "public int end() {\n return end;\n }", "public abstract void newLine();", "protected abstract void endTextObject();", "public void endCommand();", "public void end() {\n\t\tend = System.currentTimeMillis();\n\t\t\n\t\tLogger.d(\"[Stopwatch] \" + msg + \" finished in : \" + duration() + \" milliseconds.\");\n\t}", "public abstract void endRecord();", "private boolean isEndFound(String line) {\n\t\tif (end != null) {\n\t\t\tif (nothingAfterEnd) {\n\t\t\t\treturn line.endsWith(end);\n\t\t\t} else {\n\t\t\t\treturn line.contains(end);\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void end() {\n\t\tsigue = false;\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\t\t\n\t}", "@Override\n public void end() {\n }", "public Boolean isEnd() {\n\t\t// keep running\n\t\tif (currentNo == -1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// car production for this production line is done\n\t\telse if (currentNo >= expectedNo) {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\n\t\t\treturn true;\n\t\t} else {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\t\t\treturn false;\n\t\t}\n\n\t}", "public void finish() {\n System.out.println();\n System.out.println(\"Line processed\");\n System.out.println(\"Reseting line...\");\n try{ Thread.sleep(5000); } catch(Exception e) { System.out.println(\"Thread exception\"); }\n this.buffer.clear();\n this.buffer.add(new ArrayList<Integer>());\n this.lineT = 0;\n this.columnT = 0;\n this.inputMode = false;\n }", "protected void end() {\n \tSystem.out.println(\"end ReturnToStart\");\n }", "@Override\r\n\tprotected void end() {\r\n\t}", "private void endWord() {\n\t\tinWord = false;\n\t\tcontentsField.addEndChar(getContentPosition());\n\t\tcontentsField.addValue(currentElementText);\n\n\t\t// Reset element text for the next word.\n\t\tcurrentElementText = null;\n\t}", "private void goBack() throws IOException{\n\t\tif(\"\\n\".equals(currentChar)){\n\t\t\tline--;\n\t\t}\n\t\tpos--;\n\t\tsourceReader.reset();\n\t}", "protected void end() {\n\t\tRobot.elevator.setCurrentPosition(newPosition);\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}" ]
[ "0.7362983", "0.71960413", "0.6987103", "0.6906998", "0.67603457", "0.66917986", "0.6634737", "0.65601116", "0.6547506", "0.6525408", "0.6513794", "0.6494023", "0.64759994", "0.64632356", "0.6428428", "0.6312171", "0.62613136", "0.6230417", "0.6201641", "0.61830944", "0.61830944", "0.61830944", "0.61830944", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.6171568", "0.61670095", "0.61422807", "0.61361456", "0.61361456", "0.61361456", "0.61361456", "0.61361456", "0.61361456", "0.6120378", "0.6103781", "0.60949117", "0.60870594", "0.6082275", "0.6079882", "0.60684305", "0.60516745", "0.6042854", "0.60315466", "0.6023917", "0.60058606", "0.5992854", "0.5989548", "0.59706044", "0.59439284", "0.5938312", "0.5902631", "0.5893922", "0.58873427", "0.5879781", "0.58773655", "0.5873788", "0.58445764", "0.58371305", "0.58364445", "0.58364445", "0.58254766", "0.58177185", "0.58120906", "0.58090544", "0.5805634", "0.58000743", "0.5798315", "0.5789289", "0.5783709", "0.57813555", "0.57813555" ]
0.7985793
0
Gets all the lines for this drawing.
public List<Polyline> getAllLines() { return lines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Line> getLines() {\n return currentLocation.getLines();\n }", "@Override\n public Line[] getLines(){\n Line[] arrayOfLines = new Line[]{topLine, rightLine, bottomLine, leftLine}; //stores the array of lines that form the rectangle\n return arrayOfLines;\n }", "public static ArrayList getLines() {\n return lines;\n }", "List<Line> getLines();", "public List<Polyline> getPolylines() {\n return this.polylines.obtainAll();\n }", "public List<String> getLines()\n\t{\n\t\treturn lines;\n\t}", "public ArrayList<String> getLines() {\n\t\tif (cachedocs) {\n\t\t\tif (lines == null)\n\t\t\t\tlines = Config.DB.getLines(docid);\n\t\t\treturn lines;\n\t\t}\n\t\telse {\n\t\t\treturn Config.DB.getLines(docid);\n\t\t}\n\t}", "public ArrayList<LineItem> getLineItems(){\n\t\t\n\t\treturn lineItems;\n\t}", "public List<Line> getEdgeLines()\r\n {\r\n final List<Line> lineList = new ArrayList<Line>();\r\n lineList.add(new Line(getUpperLeft(), getLowerLeft()));\r\n lineList.add(new Line(getLowerLeft(), getLowerRight()));\r\n lineList.add(new Line(getLowerRight(), getUpperRight()));\r\n lineList.add(new Line(getUpperRight(), getUpperLeft()));\r\n return lineList;\r\n }", "public Coordinates intersectionAsLines() {\n return intersectionAsLines;\n }", "java.util.List<org.tensorflow.proto.profiler.XLine> \n getLinesList();", "private void drawLines() {\n int min = BORDER_SIZE;\n int max = PANEL_SIZE - min;\n int pos = min;\n g2.setColor(LINE_COLOR);\n for (int i = 0; i <= GUI.SIZE[1]; i++) {\n g2.setStroke(new BasicStroke(i % GUI.SIZE[0] == 0 ? 5 : 3));\n g2.drawLine(min, pos, max, pos);\n g2.drawLine(pos, min, pos, max);\n pos += CELL_SIZE;\n }\n }", "public int getLines() {\n\t\treturn this.linhas;\n\t}", "public List<Integer> getLines(){\n\t\treturn lineNumber;\n\t}", "@Override\n @XmlElement(name = \"onLine\")\n public Collection<OnlineResource> getOnLines() {\n return onLines = nonNullCollection(onLines, OnlineResource.class);\n }", "List<String> getLines();", "@Override\n public List<PurchaseOrderLine> getOrderlines() {\n return orderLines;\n }", "@GetMapping(value = \"/lines\")\n public Set<Line> lines(@RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.TIME) LocalTime timestamp, @RequestParam int x,\n @RequestParam int y) {\n LOGGER.info(\"GET lines - params: timestamp={}, x={}, y={}\", timestamp, x, y);\n return lineService.getLines(timestamp, x, y);\n }", "private Set<Line> openLines(Square[][] board) {\n Set<Line> lines = new HashSet<Line>();\n for (int row = 0; row < Util.N; row++) {\n for (int col = 0; col < Util.N; col++) {\n Set<Line> sqLines = board[row][col].openLines();\n lines.addAll(sqLines);\n }\n }\n return lines;\n }", "public static MInOutLine[] get (Ctx ctx, int C_OrderLine_ID, Trx trx)\n\t{\n\t\tArrayList<MInOutLine> list = new ArrayList<MInOutLine>();\n\t\tString sql = \"SELECT * FROM M_InOutLine WHERE C_OrderLine_ID=?\";\n\t\tPreparedStatement pstmt = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = DB.prepareStatement (sql, trx);\n\t\t\tpstmt.setInt (1, C_OrderLine_ID);\n\t\t\tResultSet rs = pstmt.executeQuery ();\n\t\t\twhile (rs.next ())\n\t\t\t\tlist.add(new MInOutLine(ctx, rs, trx));\n\t\t\trs.close ();\n\t\t\tpstmt.close ();\n\t\t\tpstmt = null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\ts_log.log(Level.SEVERE, sql, e);\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tif (pstmt != null)\n\t\t\t\tpstmt.close ();\n\t\t\tpstmt = null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tpstmt = null;\n\t\t}\n\t\tMInOutLine[] retValue = new MInOutLine[list.size ()];\n\t\tlist.toArray (retValue);\n\t\treturn retValue;\n\t}", "public HashMap<String, ArrayList<Integer>> getLines() {\r\n\t\treturn _fileLines;\r\n\t}", "@JSProperty(\"plotLines\")\n @Nullable\n Array<ZAxisPlotLinesOptions> getPlotLines();", "public Line[] getLines(double X, double Y, double D) {\n double d = D / 4; // Local var\n \n // Construct three congruent lines\n Line left = new Line(X - d, Y - d, X - d, Y + d);\n Line middle = new Line(X - d, Y, X + d, Y);\n Line right = new Line(X + d, Y - d, X + d, Y + d);\n\n // Return left, middle, and right as an array\n return new Line[]{left, middle, right};\n }", "@JsonProperty(\"lines\")\n public List<CartLine> getLines() {\n return lines;\n }", "public List<TaskOrder> getLineItems() {\n if (lineItems == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n TaskOrderDao targetDao = daoSession.getTaskOrderDao();\n List<TaskOrder> lineItemsNew = targetDao._queryTask_LineItems(uuid);\n synchronized (this) {\n if(lineItems == null) {\n lineItems = lineItemsNew;\n }\n }\n }\n return lineItems;\n }", "public LineSegment[] segments() {\n return lineSegments.clone();\n }", "public Line[] rockLines() {\n\t\treturn outLine;\n\t}", "ArrayList<String> getLines();", "public ArrayList<Circle> getLineVehicles()\r\n {\r\n return this.all_line_vehicles;\r\n }", "public List<OrderLine> getOrderLineList() {\n\t\tHttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance()\n\t\t\t\t.getExternalContext().getRequest();\n\t\tHttpSession session = ((HttpServletRequest) request).getSession(false);\n\t\t\n\t\t//recuperation du login\n\t\tlogin = (session != null) ? (LoginMB) session.getAttribute(\"loginMB\") : null;\n\t\t//recuperation du user\n\t\tSystem.out.println(\"login user from session : \"+login.getUser().getIdPerson());\n\t\torderList = orderBu.getLastOrder(login.getUser().getIdPerson());\n\t\t\n\t\tSet<OrderLine> set = new HashSet<OrderLine>();\n\t\tset = orderList.get(orderList.size()-1).getOrderLines();\n\t\torderLineList = new ArrayList<OrderLine>(set);\n\t\tsetTotal(orderList.get(orderList.size()-1).getTotalAmount());\n\t\t\n\t\t\n\t\treturn orderLineList;\n\t}", "public String[] getArray() {\n\t\treturn mLines;\n\t}", "public int[] getLineNumbers() {\n return lineNos;\n }", "public static MInOutLine[] getOfOrderLine (Ctx ctx, \n\t\tint C_OrderLine_ID, String where, Trx trx)\n\t{\n\t\tArrayList<MInOutLine> list = new ArrayList<MInOutLine>();\n\t\tString sql = \"SELECT * FROM M_InOutLine WHERE C_OrderLine_ID=?\";\n\t\tif (where != null && where.length() > 0)\n\t\t\tsql += \" AND \" + where;\n\t\tPreparedStatement pstmt = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = DB.prepareStatement (sql, trx);\n\t\t\tpstmt.setInt (1, C_OrderLine_ID);\n\t\t\tResultSet rs = pstmt.executeQuery ();\n\t\t\twhile (rs.next ())\n\t\t\t\tlist.add(new MInOutLine(ctx, rs, trx));\n\t\t\trs.close ();\n\t\t\tpstmt.close ();\n\t\t\tpstmt = null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\ts_log.log(Level.SEVERE, sql, e);\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tif (pstmt != null)\n\t\t\t\tpstmt.close ();\n\t\t\tpstmt = null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tpstmt = null;\n\t\t}\n\t\tMInOutLine[] retValue = new MInOutLine[list.size ()];\n\t\tlist.toArray (retValue);\n\t\treturn retValue;\n\t}", "static synchronized List<Drawing> getAllDrawings() {\r\n return new ArrayList(drawings.values());\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.AppCritLineOfBusiness[] getLinesOfBusiness();", "public List<OrderLine> getLignes() {\n\t\treturn _lignes;\n\t}", "public LineSymbolPainter getLinePainter() {\n return linePainter;\n }", "public Line getLine ()\r\n {\r\n if (line == null) {\r\n computeLine();\r\n }\r\n\r\n return line;\r\n }", "@GetMapping(\"/invoice-lines\")\n public List<InvoiceLinesDTO> getAllInvoiceLines() {\n log.debug(\"REST request to get all InvoiceLines\");\n return invoiceLinesService.findAll();\n }", "public Coordinates projectionAsLine() {\n return projectionAsLine;\n }", "@RequestMapping(value = \"/Productlines\", method = RequestMethod.GET)\n\tpublic List<Productlines> listProductliness() {\n\t\treturn new java.util.ArrayList<Productlines>(productlinesService.loadProductliness());\n\t}", "public UBA<Line> _toLineSegments()\n {\n UBA<Line> output = new UBA<Line>();\n\n int len = _points.size();\n for(int i = 0; i < len - 1; i++)\n {\n Line line = new Line(i, i + 1, _points);\n output.push(line);\n }\n\n // Add the last point.\n if(_isClosed)\n {\n Line line = new Line(len - 1, 0, _points);\n output.push(line);\n }\n\n return output;\n }", "org.tensorflow.proto.profiler.XLine getLines(int index);", "public static ArrayList<String> getLines() throws Exception\n {\n \tArrayList<String> lines = new ArrayList<String>();\n \twhile(reader.ready())\n \t{\n \t\tlines.add(reader.readLine());//reads the line and adds them into the arraylist\n \t}\n \treturn lines;\n }", "public Color getLineColor() {\n return lineColor;\n }", "public void addLines(){\n\t\tif (controlPoints.size() == 1) return;\n\t\t\n\t\tif (lineLists.size() < controlPoints.size()-1){\n\t\t lineLists.add(new LinkedList<Line>());\n\t\t}\n\t\t\n\t\t\n\t\tint numControlLines = controlPoints.size() - 1;\n\t\t\n\t\tfor (int i = 0; i < numControlLines; i++){\n\t\t\tLine line = new Line();\n\t\t\tif (i == 0){\n\t\t\t\tline.setStroke(Color.LIGHTGRAY);\n\t\t\t\tline.setStrokeWidth(2);\n\t\t\t\tline.setVisible(showPrimaryLines);\n\t\t\t\tpane.getChildren().add(line);\n\t\t\t\tline.toBack();\n\t\t\t} else {\n\t\t\t\tdouble hue = 360 * (((i-1)%controlPoints.size())/(double)controlPoints.size());\n\t\t\t\tdouble sat = .4;\n\t\t\t\tdouble bri = .8;\n\t\t\t\tline.setStroke(Color.hsb(hue, sat, bri));\n\t\t\t\tline.setStrokeWidth(2);\n\t\t\t\tline.setVisible(showSubLines);\n\t\t\t\tpane.getChildren().add(line);\n\t\t\t}\n\t\t\tLinkedList<Line> list = lineLists.get(i);\n\t\t\tlist.add(line);\n\t\t}\n\t}", "public String[] getLines() {// otan patas subscribe sto menu , print lista me ta lines\n int length = databaseLineIDToTitle.size();\n\n if (length == 0) {\n return null;\n } else {\n int subs = 0;\n\n for (Map.Entry<Integer, String> pair : databaseLineIDToTitle.entrySet()) { // Entryset, returns the hashmap\n if (subscribedLists.contains(pair.getKey())) {\n subs++;\n }\n }\n\n String[] array = new String[length - subs];\n\n int i = 0;\n\n for (Map.Entry<Integer, String> pair : databaseLineIDToTitle.entrySet()) { // Entryset, returns the hashmap\n if (!subscribedLists.contains(pair.getKey())) {\n array[i++] = String.format(\"%03d - %s \\n \", pair.getKey(), pair.getValue());\n }\n }\n return array;\n }\n }", "@Override\n public List<LineEntity> findAll() {\n return null;\n }", "private ListStore<Line> createLines() {\n\t\tStyleInjectorHelper.ensureInjected(CommonGanttResources.resources.css(), true);\n\n\t\tLineProperties lineProps = GWT.create(LineProperties.class);\n\t\tListStore<Line> store = new ListStore<Line>(lineProps.key());\n\t\tString customCssStyle = CommonGanttResources.resources.css().todayLineMain();\n\t\tLine line = new Line(new Date(), \"Текушая дата :\" + new Date().toString(), customCssStyle);\n\t\tstore.add(line);\n\t\treturn store;\n\t}", "public LineSegment[] segments() {\n LineSegment[] re = new LineSegment[lines.size()];\n lines.toArray(re);\n return re;\n }", "public boolean getCurvedLines() {\n return (_curvedLines);\n }", "public mxStyleSheet getLineStyle()\n\t{\n\t\treturn lineStyle;\n\t}", "public String[] readAllLines(){\n\t\tArrayList<String> lines=new ArrayList<>();\n\t\twhile (hasNestLine())\n\t\t\tlines.add(readLine());\n\t\treturn lines.toArray(new String[lines.size()]);\n\t}", "public void draw(Canvas canvas) {\n for (Line line: lines) {\n line.draw(canvas);\n }\n }", "public int getLineColor() { return mLineColor; }", "public LineSegment[] segments() {\n return lineSegments.toArray(new LineSegment[numberOfSegments()]);\n }", "public int getLineStyle() {\r\n return LineStyle;\r\n }", "public Polygon getLine() {\n float[] vertices;\n if (modo == 1) {\n\n vertices = new float[]{\n getX(), getY(),\n getX() + (getWidth()*0.2f), getY() + getHeight()-getHeight()*0.2f,\n getX() + getWidth(), getY() + getHeight()};\n } else if (modo == 2) {\n\n vertices = new float[]{\n getX() + getWidth()- getWidth()*0.2f , getY() + getHeight() - getHeight()*0.2f,\n getX() + getWidth(), getY(),\n getX() , getY() + getHeight(),\n\n };\n\n } else if (modo == 3) {\n vertices = new float[]{\n getX(), getY(),\n getX() + getWidth() *0.8f, getY() + getHeight() *0.2f,\n getX() + getWidth(), getY() + getHeight()\n };\n } else {\n vertices = new float[]{\n getX(), getY() + getHeight(),\n getX() + getWidth()*0.2f, getY() + getHeight()*0.2f,\n getX() + getWidth(), getY()\n };\n }\n\n polygon.setVertices(vertices);\n return polygon;\n }", "public final LineStyle getStyle(){\n return LineStyleUtils.getLineStyle(stroke);\n }", "public LineSegment[] segments() {\r\n LineSegment[] toReturn = new LineSegment[lineSegments.length];\r\n System.arraycopy(lineSegments, 0, toReturn, 0, lineSegments.length);\r\n return toReturn;\r\n }", "org.tensorflow.proto.profiler.XLineOrBuilder getLinesOrBuilder(\n int index);", "void updateGlobalLines() {\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tif (i != selectedLine) // do not update Line if it is being dragged\n\t\t\t\t\t\t\t\t\t// (because dragging method already updates\n\t\t\t\t\t\t\t\t\t// it\n\t\t\t{\n\t\t\t\tline[i] = new Line(myParent, point[neighborPointsFromLine(i)[1]].position,\n\t\t\t\t\t\tpoint[neighborPointsFromLine(i)[0]].position, i, this);\n\t\t\t}\n\t\t}\n\t}", "public List<ArticLine> getArticLines() {\n\n if (articLines == null) {\n articLines = new ArrayList<ArticLine>();\n\n List<Element> paragraphs = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"para\", omniPageXMLDocument.getDocumentElement());\n\n Integer lineCounter = 0;\n Boolean foundIntroOrAbstract = false;\n String previousAlignment = null;\n Element previousElement = null;\n if (paragraphs != null && !paragraphs.isEmpty()) {\n\n for (Element paragraphElement : paragraphs) {\n\n String alignment = getAlignment(paragraphElement);\n\n String paragraph = \"new\";\n\n List<Element> linesOfParagraph = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"ln\", paragraphElement);\n\n if (linesOfParagraph != null && !linesOfParagraph.isEmpty()) {\n for (Element lineElement : linesOfParagraph) {\n ArticLine articLine = new ArticLine(lineCounter, lineElement, previousElement,\n averagePageFontSize, alignment, previousAlignment, topBucketSize, leftBucketSize);\n articLines.add(articLine);\n\n String textContent = articLine.getOriginalText();\n\n if (textContent != null && Pattern.compile(\"intro|abstract\", Pattern.CASE_INSENSITIVE).\n matcher(textContent).find()) {\n foundIntroOrAbstract = true;\n }\n\n if (!foundIntroOrAbstract) { //special case for headers\n articLine.setParagraph(\"header\");\n } else {\n articLine.setParagraph(paragraph);\n }\n\n paragraph = \"same\";\n previousElement = lineElement;\n previousAlignment = alignment;\n lineCounter++;\n }\n }\n }\n }\n }\n\n return articLines;\n }", "public Line getLine()\n {\n return line;\n }", "public java.util.List<java.lang.Integer> getDependLineIDList()\n {\n final class DependLineIDList extends java.util.AbstractList<java.lang.Integer>\n {\n public java.lang.Integer get(int i)\n { return OOSOrderLineItemTypeImpl.this.getDependLineIDArray(i); }\n \n public java.lang.Integer set(int i, java.lang.Integer o)\n {\n java.lang.Integer old = OOSOrderLineItemTypeImpl.this.getDependLineIDArray(i);\n OOSOrderLineItemTypeImpl.this.setDependLineIDArray(i, o);\n return old;\n }\n \n public void add(int i, java.lang.Integer o)\n { OOSOrderLineItemTypeImpl.this.insertDependLineID(i, o); }\n \n public java.lang.Integer remove(int i)\n {\n java.lang.Integer old = OOSOrderLineItemTypeImpl.this.getDependLineIDArray(i);\n OOSOrderLineItemTypeImpl.this.removeDependLineID(i);\n return old;\n }\n \n public int size()\n { return OOSOrderLineItemTypeImpl.this.sizeOfDependLineIDArray(); }\n \n }\n \n synchronized (monitor())\n {\n check_orphaned();\n return new DependLineIDList();\n }\n }", "@Override\n public double getLineWidth() {\n return graphicsEnvironmentImpl.getLineWidth(canvas);\n }", "@Override\n protected void createLines() {\n\n Line[] lines = new GraphicalLine[(2 * columns * rows) + columns + rows];\n int lineIndex = 0;\n\n int boxCounter = 0;\n int x = settings.dotStartX() + settings.dotWidth();\n int y = settings.dotStartY() + settings.lineOffset();\n boolean isTop = true;\n boolean isFirstRow = true;\n\n /* horizontal lines */\n /* for every row + 1 */\n for (int i = 0; i < rows + 1; i++) {\n\n /* for every column */\n for (int j = 0; j < columns; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineWidth(), settings.lineHeight());\n line.addBox(boxes[boxCounter]);\n if (isTop) {\n boxes[boxCounter].setTopLine(line);\n } else {\n boxes[boxCounter].setBottomLine(line);\n /* if there is a next row */\n if (i + 1 < rows + 1) {\n line.addBox(boxes[boxCounter + columns]);\n boxes[boxCounter + columns].setTopLine(line);\n }\n }\n boxCounter++;\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n boxCounter = isTop ? boxCounter - columns : boxCounter;\n if (isFirstRow) {\n isTop = false;\n isFirstRow = false;\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.dotWidth();\n }\n\n boxCounter = 0;\n x = settings.dotStartX() + settings.lineOffset();\n y = settings.dotStartY() + settings.dotWidth();\n\n /* vertical lines */\n /* for every row */\n for (int i = 0; i < rows; i++) {\n\n /* for every column + 1 */\n for (int j = 0; j < columns + 1; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineHeight(), settings.lineWidth());\n /* if there is a previous vertical line */\n if (j > 0) {\n boxes[boxCounter - 1].setRightLine(line);\n line.addBox(boxes[boxCounter - 1]);\n }\n /* if there is a next column */\n if (j + 1 < columns + 1) {\n boxes[boxCounter].setLeftLine(line);\n line.addBox(boxes[boxCounter]);\n boxCounter++;\n }\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.lineOffset();\n }\n\n this.lines = lines;\n }", "public String getLine() {\n \treturn this.lineColor;\n }", "public int getLineWidth() {\r\n return LineWidth;\r\n }", "public LineData() {\n\t\t\tallPoints = new ArrayList<>(SIZE_OF_ORIGINAL_LIST);\n\t\t}", "public List<AnnotationVertex> getAnnotations() {\n return previousLineAnnotations.get();\n }", "public String[] readLines() {\n\t\tVector linesVector = new Vector(); ;\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\twhile (!eof) {\n\t\t\t\tString line = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\tlinesVector.add(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\tString[] lines = new String[linesVector.size()];\n\t\tfor (int i = 0; i < lines.length; i++) {\n\t\t\tlines[i] = (String) (linesVector.get(i));\n\t\t}\n\t\treturn lines;\n\t}", "public int lines() {\n return list.size();\n }", "public int getLineColor() {\r\n return LineColor;\r\n }", "public Color getLineColor()\n {\n return lineacolore;\n }", "@Override\n\tpublic List<String> getLinesToExport()\n\t{\n\n\t\tList<String> returnList = new ArrayList<>();\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(\"series\");\n\t\tsb.append(\"\\t\");\n\t\tsb.append(\"x\");\n\t\tsb.append(\"\\t\");\n\t\tsb.append(\"y\");\n\t\tsb.append(\"\\t\");\n\t\tsb.append(\"components delimited by ///\");\n\t\treturnList.add(sb.toString());\n\t\tfor (SciomeSeries<Number, Number> seriesData : getSeriesData())\n\t\t{\n\t\t\tfor (SciomeData<Number, Number> xychartData : seriesData.getData())\n\t\t\t{\n\t\t\t\tsb.setLength(0);\n\t\t\t\tDouble X = xychartData.getXValue().doubleValue();\n\t\t\t\tDouble Y = xychartData.getYValue().doubleValue();\n\t\t\t\tList extraValue = (List) xychartData.getExtraValue();\n\n\t\t\t\tStringBuilder components = new StringBuilder();\n\t\t\t\tfor (Object obj : extraValue)\n\t\t\t\t{\n\t\t\t\t\tif (components.length() > 0)\n\t\t\t\t\t\tcomponents.append(\"///\");\n\t\t\t\t\tcomponents.append(obj.toString());\n\t\t\t\t}\n\n\t\t\t\tsb.append(seriesData.getName());\n\t\t\t\tsb.append(\"\\t\");\n\t\t\t\tsb.append(X);\n\t\t\t\tsb.append(\"\\t\");\n\t\t\t\tsb.append(Y);\n\t\t\t\tsb.append(\"\\t\");\n\t\t\t\tsb.append(components.toString());\n\n\t\t\t\treturnList.add(sb.toString());\n\n\t\t\t}\n\t\t}\n\n\t\treturn returnList;\n\n\t}", "public java.util.List<ReferenceLine> getReferenceLines() {\n return referenceLines;\n }", "public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List getMethodLines() {\n return methodLines;\n }", "@XmlElement(name = \"offLine\")\n @UML(identifier=\"offLine\", obligation=OPTIONAL, specification=ISO_19115)\n public Collection<Medium> getOffLines() {\n Collection<Medium> c = offLines = nonNullCollection(offLines, Medium.class);\n if (c != null && c.size() > 1 && FilterByVersion.LEGACY_METADATA.accept()) {\n c = CollectionsExt.singletonOrEmpty(LegacyPropertyAdapter.getSingleton(c,\n Medium.class, null, DefaultDigitalTransferOptions.class, \"getOffLines\"));\n }\n return c;\n }", "public List getClassLines() {\n return classLines;\n }", "public int getLinesCount() {\n return lines.length;\n }", "public Shape getTraceLineShape()\n {\n return ScatterTraceViewShapes.getLineShape(this, false);\n }", "public List getPoLineItems() {\r\n return poLineItems;\r\n }", "public List<StackTraceElement> getStackTraceLines() {\n return this.stackTraceLines;\n }", "public Number getLineId() {\n return (Number) getAttributeInternal(LINEID);\n }", "private Line[] makeTenRandomLines() {\n Random rand = new Random(); // create a random-number generator\n Line[] lines = new Line[NUM_LINE];\n for (int i = 0; i < NUM_LINE; ++i) {\n int x1 = rand.nextInt(400) + 1; // get integer in range 1-400\n int y1 = rand.nextInt(300) + 1; // get integer in range 1-300\n int x2 = rand.nextInt(400) + 1; // get integer in range 1-400\n int y2 = rand.nextInt(300) + 1; // get integer in range 1-300\n lines[i] = new Line(x1, y1, x2, y2);\n }\n return lines;\n }", "public List<Grid> getGrids() {\n\tList<Grid> grids = new ArrayList<Grid>();\n\tList<Line> currentLines = _path;\n\twhile(currentLines.size()>1) {\n\t Grid grid = new Grid();\n\t grids.add(grid);\n\t List<Line> nonOverlappingLines = grid.overlapping(currentLines);\n\t \t \n\t Double[] xs = grid.xs();\n\t Double[] ys = grid.ys();\n\t \n\t if (xs.length>3 && ys.length>3) {\n\t\tDouble minx = xs[0];\n\t\tDouble maxx = xs[xs.length-1];\n\t\t\n\t\tDouble miny = ys[0];\n\t\tDouble maxy = ys[ys.length-1];\n\t\t\n\t\tfor(int i=0; i<xs.length; i++) {\n\t\t System.out.println(\"Line: \" + xs[i].toString() + \",\" + miny.toString() + \",\" + xs[i].toString() + \",\" + maxy.toString());\n\t\t}\n\t\tfor(int i=0; i<ys.length; i++) {\n\t\t System.out.println(\"Line: \" + minx.toString() + \",\" + ys[i].toString() + \",\" + maxx.toString() + \",\" + ys[i].toString());\n\t\t}\n\t }\n\n\t currentLines = nonOverlappingLines;\n\t}\n\treturn grids;\n }", "protected String[] parseLine() {\n ArrayList<String> lines = new ArrayList<String>();\n StringBuffer line = new StringBuffer(current);\n while (line.length() > style.lineWidth) {\n int index = split(line);\n lines.add(line.substring(0, index));\n line = new StringBuffer(line.substring(index));\n if (line.length() != 0)\n line.insert(0, continueIndentString());\n }\n if (line.length() != 0)\n lines.add(line.toString());\n return lines.toArray(new String[0]);\n }", "public List<List<LineChart>> getCCILineChartData(int iusid, int timeperiodid,\n\t\t\tint areaId);", "@Override\n public Line getLine() {\n return line;\n }", "public int getLineWidth() {\n return (int) mPaintLine.getStrokeWidth();\n }", "void getAllLines(Vector<Integer> lineIDs,Vector<Integer> lineDepIDs, Vector<String> lineCodes, String empresa);", "public ArrayList<TimeLineEvent> getTimeLineEvents() {\n\t\treturn info;\n\t}", "@Override\n public List<LineEntity> findAll(Iterable<Long> ids) {\n return null;\n }", "private void drawLines()\n {\n getBackground().setColor( Color.BLACK );\n \n for( int i = 200; i < getWidth(); i += 200 )\n {\n getBackground().drawLine(i, 0, i, getHeight() );\n getBackground().drawLine(0, i, getWidth(), i);\n }\n \n Greenfoot.start();\n }", "public Number getLineId() {\n return (Number)getAttributeInternal(LINEID);\n }", "public Number getLineId() {\n return (Number)getAttributeInternal(LINEID);\n }", "public String getLineId() {\n return lineId;\n }", "@Override\n public PurchaseOrderLine getOrderLine(int index) {\n return orderLines.get(index);\n }" ]
[ "0.7361523", "0.72751456", "0.72342175", "0.6973745", "0.68762356", "0.682404", "0.6660647", "0.6572586", "0.64806366", "0.6346652", "0.61706275", "0.5974667", "0.59616965", "0.59609604", "0.5954674", "0.5933543", "0.5895356", "0.5875328", "0.58361745", "0.581209", "0.580778", "0.5807722", "0.5786721", "0.577419", "0.57696396", "0.5766084", "0.5765877", "0.57381445", "0.57171106", "0.57158214", "0.5676008", "0.56696904", "0.56634843", "0.56493384", "0.56174445", "0.56163514", "0.56043804", "0.55974805", "0.5594409", "0.5583206", "0.5568185", "0.55661684", "0.55611545", "0.55490255", "0.55462635", "0.55202425", "0.5517546", "0.5513854", "0.55064416", "0.5499322", "0.54914623", "0.548901", "0.5472095", "0.54654115", "0.5462136", "0.54604256", "0.54596746", "0.54567975", "0.54071724", "0.5390314", "0.538963", "0.53837264", "0.5377476", "0.53753835", "0.53652453", "0.5361804", "0.53579026", "0.53577816", "0.53326946", "0.53140616", "0.5310975", "0.531082", "0.5302159", "0.529368", "0.52684647", "0.52618426", "0.52532876", "0.52460796", "0.5239155", "0.52382845", "0.52304894", "0.52173746", "0.5216294", "0.5208311", "0.52060944", "0.520328", "0.51951605", "0.5182792", "0.5179037", "0.5175192", "0.517425", "0.5172103", "0.51630515", "0.5157179", "0.51556844", "0.51499397", "0.51492566", "0.51492566", "0.51490605", "0.514705" ]
0.80240613
0
TODO Autogenerated method stub
public static void main(String[] args) { String []name = new String [10]; String []surname = new String[10]; int []score = new int[10]; Scanner sc =new Scanner(System.in); for(int i =0;i<score.length;i++){ System.out.print("Input name :"); name[i]=sc.nextLine(); System.out.print("Input surname : "); surname[i] = sc.nextLine(); System.out.println("Input score : "); score[i] =sc.nextInt(); sc.nextLine();//protect error because nextint not have to goto nextline } int max = Integer.MIN_VALUE; int max_index = -1; for(int i =0;i<score.length;i++){ if(score[i]>max){ max = score[i]; max_index = i; } } System.out.println(name[max_index] + " " + surname[max_index] + " " + score[max_index]); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Comprobamos que las propiedades no sean nulas
@Test public void testNoNulos() { assertNotNull("Error: La bici es nula", bicicleta); assertNotNull("Error: La velocidad es nula", bicicleta.getVelocidad()); assertNotNull("Error: El espacio es nulo", bicicleta.getEspacioRecorrido()); assertNotNull("Error: El piñon actual es nulo", bicicleta.getPinhonactual()); assertNotNull("Error: El plato actual es nulo", bicicleta.getPlatoactual()); assertNotNull("Error: El radio de la rueda es nulo", bicicleta.getRadiorueda()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void nonRedefinissableParEnfant(){\n\n }", "public void noPropertyies() {\n\t\tproperties.clear();\r\n\t\tfor(int i = 0; i<groups.length; i++){\r\n\t\t\tgroups[i].clear();\r\n\t\t}\r\n\t}", "public boolean tengoPropiedades(){\n return this.propiedades.size() > 0;\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public boolean isDontCare(){\n return hasDontCare;\n }", "public abstract DtPropuestaMinificado[] listarPropuestas() throws PropuestaNoExisteException;", "public void setAllMissing();", "protected void doExtraValidation(Properties props) {\n /* nothing by default */\n }", "private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "private void checkNoGettersSetters() {\n if (getters != null || setters != null)\n throw new AnalysisException(\"Unexpected getter/setter value!\");\n }", "@Test\n public void allImplementorsOfComparatorMustNotContainFields() throws Exception {\n Freud.iterateOver(Class.class).\n assertThat(no(subTypeOf(Comparator.class)).or(no(withFields()))).\n in(classOf(asList(\"examples.classobject.StatelessComparator\"))).analyse(listener);\n }", "public Propuestas() {}", "private void resetProp(){\n proposition.clear();\n for (int i = 0; i<tailleCombinaison; i++) {\n proposition.add(\"-1\");\n }\n }", "public boolean esCompuesto() {\n\t\treturn !this.atributos.isEmpty();\n\t}", "private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }", "public boolean isPropertyMissing() {\n \t\t\t\t\t\t\t\t\treturn false;\n \t\t\t\t\t\t\t\t}", "public void verifyNoMatching(AcProperty e)\n {\n }", "public CensoPSAMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }", "public void cleanProposition();", "@Override\r\n\tpublic int contarPasajeros() {\n\t\treturn 0;\r\n\t}", "public boolean hasDontEnum() {\n checkNotUnknown();\n return (flags & ATTR_DONTENUM_ANY) != 0;\n }", "@Override\n\tpublic boolean shouldSkipField(FieldAttributes classe) {\n\t\t\n\t\tfinal Expose expose = classe.getAnnotation(Expose.class);\n return expose != null && !expose.serialize();\n\t\t\n/*\t\tString className = classe.getDeclaringClass().getName();\n\t\tString fieldName = classe.getName();\n\t\t\n\t\t\t\n\t\t\n\t\treturn \n\t className.equals(Produto.class.getName())\n\t && (fieldName.equals(\"versoes\") || fieldName.equals(\"clientes\"));*/\n\t}", "@Override\n\tpublic boolean evaluarPropuesta(Oferta o) {\n\t\treturn false;\n\t}", "public String imprimirPropiedades(Properties propiedades) {\n\n String impresion = \"\";\n Iterator keys = propiedades.keySet().iterator();\n while (keys.hasNext()) {\n String key = (String) keys.next();\n String property = propiedades.getProperty(key);\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, key + \" : \" + property);\n impresion += key + \" : \" + property + \"\\n\";\n }\n return impresion;\n }", "private boolean hayCamposVacios() {\r\n\t\tif(nomTextField.getText().isEmpty()\r\n\t\t\t|| claveTextField.getText().isEmpty()\r\n\t\t\t\t|| reingresoTextField.getText().isEmpty()\r\n\t\t\t\t\t|| preguntaTextField.getText().isEmpty()\r\n\t\t\t\t\t\t|| respuestaTextField.getText().isEmpty())\r\n\t\t\treturn true;\t\t\r\n\t\treturn false;\r\n\t}", "public void ImprimirDatos(){\n\t\tSystem.out.println(\"Número de elises: \"+NoElises);\n\t\tSystem.out.println(\"Número de alas: \"+NoAlas);\n\t\tSystem.out.println(\"Número de pasajeros: \"+NoPasajeros);\n\t}", "@Test\r\n public void CriterioUnidadNoCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnaDeCadaUnidadCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0);\r\n }", "public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }", "@Test\r\n public void CriterioTipoNoCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnoDeCadaTipoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0); \r\n }", "public void genRepCheck(){\r\n if (tx_cb.getValue() == null || paModules.getValue() == null || mainExciterSW.getValue() == null\r\n || filter.getValue() == null || switchPatch.getValue() == null || testLoad.getValue() == null\r\n || mainAntFeed.getValue() == null)\r\n genRep.setDisable(true);\r\n else\r\n genRep.setDisable(false);\r\n }", "public boolean aUnPrix() {\n return false;\n }", "@Override\n\tpublic int isOrNoSet() {\n\t\treturn 0;\n\t}", "void unsetRequired();", "@Test\n public void testWithUnknownProperty() throws Exception {\n LogicalGraph socialGraph = getSocialNetworkLoader().getLogicalGraph();\n List<EPGMVertex> vertices = socialGraph\n .callForGraph(new VertexDeduplication<>(\"Person\", Collections.singletonList(\"notSet\")))\n .getVerticesByLabel(\"Person\").collect();\n assertEquals(1, vertices.size());\n }", "@Override\r\n\tpublic boolean seLanceSurServiteurProprietaire() {\n\t\treturn false;\r\n\t}", "private boolean verificaDados() {\n if (!txtNome.getText().equals(\"\") && !txtProprietario.getText().equals(\"\")) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"Falta campos a ser preenchido\", \"Informação\", 2);\n return false;\n }\n }", "public boolean checkProbleem() {\n\t\tif (object.getProbleem() != null\n\t\t\t\t&& object.getProbleem().getCommentaar() != null\n\t\t\t\t&& !object.getProbleem().getCommentaar().isEmpty()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isMappedSuperWithNoProperties(Class<?> beanClass) {\n // do not search recursive here\n MappedSuperclass annotation = AnnotationUtil.get(beanClass, MappedSuperclass.class);\n if (annotation == null) {\n return false;\n }\n Field[] fields = beanClass.getDeclaredFields();\n for (Field field : fields) {\n if (!Modifier.isStatic(field.getModifiers())\n && !Modifier.isTransient(field.getModifiers())\n && !field.isAnnotationPresent(Transient.class)) {\n return false;\n }\n }\n return true;\n }", "@Override\n\tpublic List<AposentadoriaCompulsoria> listaDeObjetos() {\n\t\treturn null;\n\t}", "public void clearProperties(){\n\t\tcbDataType.setSelectedIndex(DT_INDEX_NONE);\n\t\tchkVisible.setValue(false);\n\t\tchkEnabled.setValue(false);\n\t\tchkLocked.setValue(false);\n\t\tchkRequired.setValue(false);\n\t\ttxtDefaultValue.setText(null);\n\t\ttxtHelpText.setText(null);\n\t\ttxtText.setText(null);\n\t\ttxtBinding.setText(null);\n\t\ttxtDescTemplate.setText(null);\n\t\ttxtCalculation.setText(null);\n\t\ttxtFormKey.setText(null);\n\t}", "@Override\n\tpublic boolean datiUscitaImpegno() {\n\t\treturn false;\n\t}", "public void printInheritedValuesWithoutGetters() {\n log.info(phone);\n log.info(lastName);\n log.info(firstName);\n }", "private static void resetDescontoMenosCompras(){\n for(Apps a : apps){\n if(a.isDescontoMenosCompras()){\n a.setDescontoMenosCompras(false);\n }\n }\n }", "boolean hasUnknown();", "public boolean isNonEnzymaticPeptides() {\n return nonEnzymaticPeptides;\n }", "boolean getOnlyProceduresInAnyValuesNull();", "boolean isSetProbables();", "@Override\n\tprotected String[] ignoreFields() {\n\t\treturn null;\n\t}", "private void deshabilitarCamposCrear() {\n txtCodBockFoto.setEnabled(false);\n txtCodBockFoto.setText(\"\");\n\n txtCodPromotor.setEnabled(false);\n txtCodPromotor.setText(\"\");\n txtDNIPromotor.setText(\"\");\n\n //limpiarListaCrear();\n }", "@Override\n\tpublic void noLoadCargo() {\n\n\t}", "private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}", "@JsonIgnore\n public boolean noPhMeasure() {\n \treturn this.noMeasure(false, null);\n }", "protected List getProperties() {\n return null;\n }", "public void NopagaImpuestos(){\n\t\tif(sueldoBruto<BASE_MINIMA_IMPUESTOS){\n\t\tsueldoNeto=sueldoBruto;\n\t\ttipoImpuesto=\"En esta ocasión no paga impuestos\";\n\t\t}\n\t}", "boolean isNullOmittable();", "public boolean skipTest() {\r\n if( client != null ) {\r\n Project project = client.getProject();\r\n if( project != null ) {\r\n if( ifProp != null && project.getProperty(ifProp) == null) {\r\n // skip if \"if\" property is not set\r\n result = true;\r\n return true;\r\n }\r\n // Allow a comma separated list of properties for \"unless\"\r\n // so after using a sequence of properties, each in an \"if\",\r\n // you can include the list in an \"unless\" to implement the\r\n // default.\r\n if( unlessProp != null) {\r\n StringTokenizer st = new StringTokenizer(unlessProp,\",\");\r\n while( st.hasMoreElements() ) {\r\n String prop = (String)st.nextElement();\r\n if( project.getProperty(prop) != null ) {\r\n // skip if an \"unless\" property is set\r\n result = true;\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return false;\r\n }", "@Test\n public void getPlatformSettings_noPropertiesDefined() throws Throwable {\n clearAllPlatformSettings();\n\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n Properties platformSettings = ldapSettingsMgmtSvc\n .getPlatformSettings();\n assertTrue(\"Empty properties (not null) expected\",\n platformSettings.keySet().isEmpty());\n return null;\n }\n });\n }", "@Test\n\tpublic void basic_courses_without_students(){\n\t\t\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);\n\t\t\n\t\t//2. Define root tables which are involved into query\n\t\tRoot<Course> courseRoot = criteriaQuery.from(Course.class);\t\t\n\n\t\t//3. Define predicate using criteria builder\n\t\tPredicate isEmptyStudentPredicate = criteriaBuilder.isEmpty(courseRoot.get(\"students\"));\n\t\t\n\t\t//4. Add predictes to the criteria query\n\t\tcriteriaQuery.where(isEmptyStudentPredicate);\n\t\t\n\t\t//5. Defined Typed Query\n\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));\n\t\t\n\t\tList<Course> resultList = query.getResultList();\n\t\t\n\t\tlogger.info(\"isEMPTY STUDENT COURSES ==> {}\", resultList);\n\t\t\t\n\t\t\n\t}", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "@Test\n public void noEqualsStatus() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic\", 5, 2);\n courseType2.setId(\"ID\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", \"Pic\", 5, null);\n courseTypeNull.setId(\"ID\");\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "public boolean isNone() {\n if (var == null)\n return (flags & (PRIMITIVE | ABSENT | UNKNOWN)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n else\n return (flags & (ABSENT | PRESENT_DATA | PRESENT_ACCESSOR)) == 0;\n }", "protected HashSet getNoComponentName(){\n return tester.noComponentName;\n }", "public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }", "public boolean hasNoParents()\r\n\t{\treturn (this.strongParents.isEmpty()) && (this.weakParents.isEmpty());\t}", "public boolean getUsuarioSuscrito(){\n return !(suscribirClientBean.getUsuarioSuscrito(idOferta).length == 0);\r\n }", "@Test\n @org.junit.Ignore\n public void shouldBeAbleToCallPropertyIfThereIsASingleProperty() {\n }", "public boolean has_unprocessed_rules();", "@Pointcut(\"forDAOPackage() && !(getter() || setter())\")\n\tpublic void exceptGettersAndSetters() {}", "public boolean pobjeda() {\r\n\t\treturn !igrajPoslijePobjede && pobjeda;\t\r\n\t}", "@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}", "public void pausarDisparos() {\n\t\tpausarDisparo = !pausarDisparo;\n\t}", "public abstract DtPropuesta[] getPropuestasPopulares();", "public boolean isEmptySpecials() {\n return emptySpecials;\n }", "boolean hasOnlyProceduresInAnyValues();", "@Test\n public void noEqualsCourses() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType2.setId(\"ID\");\n courseType2.setCourses(List.of(new Course(\"C1\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", \"Pic\", 5, 1);\n courseTypeNull.setId(\"ID\");\n courseTypeNull.setCourses(null);\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "protected boolean acceptUninitializedField(Field f) {\n return false;// by default all property need to be initialized after setup.\n }", "public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }", "public boolean tienePrepaga() {\r\n\t\treturn obraSocial != null;\r\n\t}", "private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}", "@Override\n\tpublic void naoAtirou() {\n\t\tatirou=false;\n\n\t}", "boolean isIgnorable() { return false; }", "@Override\n\tpublic boolean paie() {\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n return attestationsByValidatorCount.isEmpty();\n }", "private void suppressionCartes () {\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tcartes.put(i, new JVide(carte_lg, carte_ht));\r\n\t\t}\r\n\t\tthis.formerTable();\r\n\t}", "public void testGetAllProjetos() {\n List<Projeto> lista = ProjetoDAO.getAllProjetos();\n assertTrue(lista != null && !lista.isEmpty());\n }", "@Pointcut(\"forDAOPackage() && !(forDAOPackageSetters() || forDAOPackageGetters())\")\n\tprivate void forDAOPackageNoGettesAndSetters() {}", "public void printNotfullcourses() {\n\t\tfor (int i = 0; i < CourseManager.courses.size(); i++) {\n\t\t\tif (CourseManager.courses.get(i).checkFull() == false) {\n\t\t\t\tSystem.out.println(i + 1 + \". \" + CourseManager.courses.get(i).getName());\n\t\t\t}\n\t\t}\n\t}", "private boolean noTipoPrimitivo(String tipo) {\r\n\t\tif (tipo.equals(\"arregloBoolean\")|| tipo.equals(\"arregloChar\")|| tipo.equals(\"arregloInt\")|| tipo.equals(\"boolean\")|| \r\n\t\t\t\ttipo.equals(\"char\")|| tipo.equals(\"int\")|| tipo.equals(\"string\")|| tipo.equals(\"void\"))\r\n\t\t\t\treturn false;\r\n\t\telse\r\n\t\t\t\treturn true;\t\r\n\t}", "@ModelAttribute(\"misproductos\")\n\tpublic List<Producto> misProductos() {\n\t\tString email = SecurityContextHolder.getContext().getAuthentication().getName();\n\t\tusuario = usuarioServicio.buscarPorEmail(email);\n\t\treturn productoServicio.productosDeUnPropietario(usuario);\n\t}", "public boolean perdeu() {\n\t\tif(tabuleiro.getAtiradores().length==0)\n\t\t{\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\r\n public boolean removeDerivedValues() {\n return false;\r\n }", "private void guardarEstadoObjetosUsados() {\n }", "public void preencherDisponibilidadesOferta() {\n\n //List<Disponibilidade> disponibilidades;\n List<Disp> disponibilidades;\n \n if (oferta != null) {\n //disponibilidades = new ArrayList<>(oferta.getDisponibilidades());\n disponibilidades = new ArrayList<>(oferta.getDispo());\n } else {\n disponibilidades = new ArrayList<>();\n }\n //dispDataModel = new DisponibilidadeDataModel(disponibilidades);\n dispDataModel = new DispDataModel(disponibilidades);\n }", "@Test(expected = IllegalStateException.class)\n @org.junit.Ignore\n public void shouldNotBeAbleToCallPropertyIfThereAreMultipleProperties() {\n }", "private void unsetMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(false);\r\n checkShaffer.setEnabled(false);\r\n checkBergman.setEnabled(false);\r\n\r\n }", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "@Test\n public void testAssertObjectNoGetMethodsType() {\n // setup\n final NoGetMethodsType noGetMethodsType = new NoGetMethodsType(TEST);\n final ChangedProperty<String> jokerProperty = Property.change(NoGetMethodsType.PROPERTY, TEST + TEST);\n\n // method\n assertObject(EMPTY_STRING, noGetMethodsType, jokerProperty);\n }", "public final Set<Particle> getNoCollisionElements()\n {\n return noCollisionElements;\n }", "@Override\n\tpublic List<Cours> listOfNonAssignedCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours c where c.enseignant IS EMPTY\");\n\t\treturn q.getResultList();\n\t}" ]
[ "0.6422391", "0.62390447", "0.6148829", "0.5999822", "0.59161496", "0.5874427", "0.5811832", "0.5737552", "0.56814945", "0.5615644", "0.5609205", "0.5584489", "0.55270517", "0.5519398", "0.55099785", "0.5486888", "0.54276854", "0.54220647", "0.54100096", "0.540613", "0.5373197", "0.5371952", "0.53671026", "0.5366937", "0.536274", "0.5354753", "0.5349652", "0.534822", "0.53471386", "0.5337189", "0.5329456", "0.5323394", "0.53105235", "0.52966404", "0.52958727", "0.52893484", "0.5280005", "0.52759624", "0.52739894", "0.52685606", "0.5265051", "0.524392", "0.52424246", "0.5240417", "0.5226712", "0.5226544", "0.5225813", "0.52253425", "0.52218735", "0.5220945", "0.52206755", "0.5220017", "0.52181685", "0.5216302", "0.5203696", "0.519263", "0.5186986", "0.51789844", "0.5177342", "0.51760554", "0.51728904", "0.5169679", "0.5159388", "0.51552993", "0.51546925", "0.51505876", "0.5149678", "0.514883", "0.51393145", "0.5135472", "0.513379", "0.5131625", "0.5128884", "0.5128286", "0.5125093", "0.5124315", "0.51230025", "0.51219285", "0.5119575", "0.5118843", "0.51171315", "0.5116844", "0.51146775", "0.5111791", "0.51084065", "0.51074135", "0.5106421", "0.51058507", "0.5105669", "0.5104981", "0.5103291", "0.5102851", "0.5097322", "0.50949186", "0.5089867", "0.50857043", "0.5085302", "0.5084623", "0.50786066", "0.50784945" ]
0.5391919
20
Comprobamos que los resultados son los esperados Se comprueban las variables esten correctas despues de dar una pedalada
@Test public void testResultadosEsperados() { bicicleta.darPedalada(utilidadesCiclista.getCadencia(), 75); //se comprueba que la velocidad sea la esperada double velocidadesperada = utilidadesBicicleta.velocidadDeBici(0, utilidadesCiclista.getCadencia(), 65, bicicleta.getRadiorueda(), bicicleta.getPlatos()[bicicleta.getPlatoactual()], bicicleta.getPinhones()[bicicleta.getPinhonactual()]); assertEquals("Error: La velocidad de la bicicleta no es la correcta", velocidadesperada, bicicleta.getVelocidad(), 2); //se comprueba que el espacio de la pedalada sea el esperado double espaciodelapedaladaesperado = utilidadesBicicleta.espacioDePedalada(bicicleta.getRadiorueda(), bicicleta.getPlatos()[bicicleta.getPlatoactual()], bicicleta.getPinhones()[bicicleta.getPinhonactual()]); assertEquals("Error: El espacio recorrido de la bicicleta no es el correcta", espaciodelapedaladaesperado, utilidadesBicicleta.espacioDePedalada(bicicleta.getRadiorueda(), bicicleta.getPlatos()[bicicleta.getPlatoactual()], bicicleta.getPinhones()[bicicleta.getPinhonactual()] ), 0); //se comprueba que la relacion de transmision sea la esperada double relaciondeetransmisionesperado = utilidadesBicicleta.relacionDeTransmision(bicicleta.getPlatos()[bicicleta.getPlatoactual()], bicicleta.getPinhones()[bicicleta.getPinhonactual()]); assertEquals("Error: El espacio recorrido de la bicicleta no es el correcta", relaciondeetransmisionesperado, utilidadesBicicleta.relacionDeTransmision(bicicleta.getPlatos()[bicicleta.getPlatoactual()], bicicleta.getPinhones()[bicicleta.getPinhonactual()] ), 0); //se comprueba que el recorrido lineal sea el esperado double recorridoLinealDeLaRuedaesperado = utilidadesBicicleta.recorridoLinealDeLaRueda(bicicleta.getRadiorueda()); assertEquals("Error: El espacio recorrido de la bicicleta no es el correcta", recorridoLinealDeLaRuedaesperado, utilidadesBicicleta.recorridoLinealDeLaRueda(bicicleta.getRadiorueda()), 0); //Se comprueban las variables despues de frenar bicicleta.frenar(); //se comprueba que la velocidad halla decrementado como esperamos despues de frenar double velocidadfrenado = utilidadesBicicleta.velocidadDeBici(0, 1, 65, bicicleta.getRadiorueda(), bicicleta.getPlatos()[bicicleta.getPlatoactual()], bicicleta.getPinhones()[bicicleta.getPinhonactual()]); velocidadfrenado = -(velocidadfrenado *0.2); double velocidadesperadafrenando = UtilidadesNumericas.redondear(velocidadesperada + velocidadfrenado,1); assertEquals("Error: La velocidad de frenado de la bicicleta no es la correcta", velocidadesperadafrenando, UtilidadesNumericas.redondear(bicicleta.getVelocidad(),1),2); //Se comprueban que los piñones se incremente y decrementen correctamente int incrementarpinhonesperado = bicicleta.getPinhonactual() +1; bicicleta.incrementarPinhon(); assertEquals("Error: El incremento de piñon de la bicicleta no es la correcta", incrementarpinhonesperado, bicicleta.getPinhonactual(), 0); int decrementarpinhonesperado = bicicleta.getPinhonactual() -1; bicicleta.decrementarPinhon(); assertEquals("Error: El decremento de piñon de la bicicleta no es la correcta", decrementarpinhonesperado, bicicleta.getPinhonactual(), 0); //Se comprueban que los platos se incremente y decrementen correctamente int incrementarplatoesperado = bicicleta.getPlatoactual() +1; bicicleta.incrementarPlato(); assertEquals("Error: El incremento del plato de la bicicleta no es la correcta", incrementarplatoesperado, bicicleta.getPlatoactual(), 2); int decrementarplatoesperado = bicicleta.getPlatoactual() -1; bicicleta.decrementarPlato(); assertEquals("Error: El decremento de piñon de la bicicleta no es la correcta", decrementarplatoesperado, bicicleta.getPlatoactual(), 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void colocarComentariosResultado()\r\n\t{\r\n\t\tresultadoprueba.colocarTextoComentarios(\"\");\r\n\t}", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "public String[] pedirDatosNuevoCarro(){\n String[] nuevoCarro = new String[3];\n boolean paso = false;//Pedimos los datos de un carro, con su verificacion y luego se la enviamos en una String\n while (paso == false){\n try {\n System.out.println(\"Ingrese el numero de placa\");\n nuevoCarro[0] = scan.nextLine();\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un valor correcto, por favor\");\n }\n }\n paso = false;\n while (paso == false){\n try {\n System.out.println(\"Ingrese la marca de su vehiculo\");\n nuevoCarro[1] = scan.nextLine();\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un valor correcto, por favor\");\n }\n }\n paso = false;\n while (paso == false){\n try {\n System.out.println(\"Ingrese el modelo de su auto, elija el numero antes del modelo ([1 'European|U.S. Compact'], [2 'U.S. Standard'], [3 'U.S. Standard Large'])\");\n String valorString = scan.nextLine();\n int valor = Integer.parseInt(valorString);\n if (valor == 1){\n nuevoCarro[2] = \"European|U.S. Compact\";\n }\n else if (valor == 2){\n nuevoCarro[2] = \"U.S. Standard\";\n }\n else if (valor == 3){\n nuevoCarro[2] = \"U.S. Standard Large\";\n }\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un numero de 1 a 3, por favor\");\n }\n }\n\n return nuevoCarro;\n }", "@Test\n public void testAnalisarDados() throws Exception {\n System.out.println(\"analisarDados\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n Integer[] expResult = null;\n String time = \"\";\n String tipoOrdenacao = \"\";\n Integer[] resultArray = null;\n \n int[] result = ProjetoV1.analisarDados(dadosFicheiro, linhas, time, tipoOrdenacao);\n if(result != null){\n resultArray= ArrayUtils.converterParaArrayInteger(result); \n }\n \n assertArrayEquals(expResult, resultArray);\n\n }", "public static String[][] leerPrestados() {\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM prestado\");\n while (result.next()) {\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[][] reporte = new String[cont][11];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM prestado\");\n while (result.next()) {\n //leolos registros y los guardo cada uno en un renglon de la matriz\n System.out.println(\"ResultSet: \" + result.getString(1));\n \n reporte[cont][0] = result.getString(1);\n reporte[cont][1] = result.getString(2);\n reporte[cont][2] = result.getString(3);\n reporte[cont][3] = result.getString(4);\n reporte[cont][4] = result.getString(5);\n reporte[cont][5] = result.getString(6);\n reporte[cont][6] = result.getString(7);\n reporte[cont][7] = result.getString(8);\n reporte[cont][8] = result.getString(9);\n reporte[cont][9] = result.getString(10);\n reporte[cont][10] = result.getString(11);\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return reporte;\n }", "public void imprimirResultados(){\n System.out.println(\"t (tiempo actual) \"+t);\n \n \n System.out.println(\"\\nGanancia total: $\"+R);\n System.out.println(\"Costos por mercaderia comprada: $\"+C);\n System.out.println(\"Costos por mantenimiento inventario: $\"+H);\n System.out.println(\"Ganancia promeio de la tienda por unidad de tiempo: $\"+(R-C-H)/T);\n \n }", "public static void consultaEleicoesPassadas() {\n\t\tArrayList<Eleicao> lista;\n\t\t\n\t\tint check = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tlista = rmiserver.getEleicoesPassadas();\n\t\t\t\tif(lista.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"Nao existem eleicoes para mostrar.\");\n\t\t\t\t}else {\n\t\t\t\t\tfor(Eleicao x: lista) {\n\t\t\t\t\t\tSystem.out.println(\"\\nEleicao \"+x.titulo);\n\t\t\t\t\t\tSystem.out.println(\"\\tID: \"+x.id);\n\t\t\t\t\t\tSystem.out.println(\"\\tDescricao: \"+x.descricao);\n\t\t\t\t\t\tSystem.out.println(\"\\tData Inicio: \"+x.dataInicio.toString());\n\t\t\t\t\t\tSystem.out.println(\"\\tData Fim: \"+x.dataInicio.toString());\n\t\t\t\t\t\tSystem.out.println(\"Resultados: \");\n\t\t\t\t\t\tif(x.tipo == 1) {\n\t\t\t\t\t\t\tif(x.registoVotos.size()>0) {\n\t\t\t\t\t\t\t\tfor(Lista y: x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tdouble perc = y.contagem/(double)x.registoVotos.size() * 100;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(x.registoVotos.size()>0) {\n\t\t\t\t\t\t\t\tint alunos = 0, docentes = 0, funcs = 0;\n\t\t\t\t\t\t\t\tfor(Lista y:x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tif(y.tipoLista.equals(\"1\")) {\n\t\t\t\t\t\t\t\t\t\talunos += y.contagem;\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"2\")) {\n\t\t\t\t\t\t\t\t\t\tfuncs += y.contagem;\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"3\")) {\n\t\t\t\t\t\t\t\t\t\tdocentes += y.contagem;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor(Lista y: x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tif(y.tipoLista.equals(\"1\")) {\n\t\t\t\t\t\t\t\t\t\tif(alunos>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)alunos * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"2\")) {\n\t\t\t\t\t\t\t\t\t\tif(funcs>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)funcs * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"3\")) {\n\t\t\t\t\t\t\t\t\t\tif(docentes>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)docentes * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"4\")) {\n\t\t\t\t\t\t\t\t\t\tdouble perc = y.contagem/(double)x.registoVotos.size() * 100;\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% sobre Total (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t\t\n\t\t\n\t}", "public static int BuscarPerrox(Perro BaseDeDatosPerros[], String razas[], int codPerro) {\n int cont = 0;\r\n boolean condicion = false;\r\n char generoPerro, generoPerr, generPerro = 'd';\r\n String razaPerr, tipoRaza;\r\n do {\r\n System.out.println(\"Ingrese el Genero de perro : Macho(M),Hembra (H)\");\r\n generoPerro = TecladoIn.readLineNonwhiteChar();\r\n\r\n if (ValidacionDeGenero(generoPerro)) {\r\n generPerro = generoPerro;\r\n condicion = true;\r\n } else {\r\n System.out.println(\".......................................................\");\r\n System.out.println(\"Ingrese un Genero Correcto: Macho('M') o Hembra ('H')\");\r\n System.out.println(\".......................................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n \r\n tipoRaza=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerr = BaseDeDatosPerros[i].getRaza();\r\n generoPerr = BaseDeDatosPerros[i].getGenero();\r\n\r\n if (tipoRaza.equals(razaPerr) && (generPerro == generoPerr)) {\r\n cont++;\r\n }\r\n\r\n }\r\n\r\n \r\n\r\n return cont;}", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public void getPropuestasOrdenadas(int confirm) throws ParseException{\n System.out.println(\"\\nSe imprimirán las propuestas de la Sala \"+getNombreSala()+\":\");\n if (propuestas.size() == 0){\n System.out.println(\"No hay reservas para esta Sala\");\n }\n else{\n for (Propuesta propuestaF : propuestas) {\n String nombreReservador = propuestaF.getReservador().getNombreCompleto();\n if (confirm == 0){\n if (propuestaF.isForAllSem()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else{\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n else if (confirm == 1){\n if (propuestaF.isForAllSem() && propuestaF.isConfirmada()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else if (propuestaF.isConfirmada()){\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n }\n }\n }", "public List<MovimentoPorCanalDeVendaVO> validaSelecionaEmissaoPorCanal(String movimento) {\n\n\t\tList<MovimentoPorCanalDeVendaVO> list = new ArrayList<MovimentoPorCanalDeVendaVO>(listaEmissaoPorCanal);\n\n\t\tList<MovimentoPorCanalDeVendaVO> listTotal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tString[] mesesTotaisValor = { \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\",\n\t\t\t\t\"0.0\" };\n\n\t\tString[] mesesTotaisQuantidade = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\tString anoTotal = null;\n\t\tString produtoTotal = null;\n\n\t\tint qtdQuantidade = 0;\n\t\tint qtdValor = 0;\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (!(list.get(i).getMovimento().trim().equalsIgnoreCase(movimento.trim()))) {\n\t\t\t\tlist.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (MovimentoPorCanalDeVendaVO objLista : list) {\n\t\t\tif (objLista.getTipo().equalsIgnoreCase(\"Valor\")) {\n\t\t\t\tqtdValor++;\n\t\t\t} else if (objLista.getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\t\t\t\tqtdQuantidade++;\n\t\t\t}\n\t\t}\n\t\tint indiceElementoNaoEncontrado = 0;\n\t\tif (qtdValor != qtdQuantidade) {\n\n\t\t\tif (qtdValor > qtdQuantidade) {// Valor eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"\n\t\t\t\t\t\t\t\t// + list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Quantidade\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\t\t\t} else {// Qtd eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"+\n\t\t\t\t\t\t\t\t// list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Valor\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * ===Primeiro crio os objetos com os totais=========\n\t\t */\n\t\tfor (MovimentoPorCanalDeVendaVO emi : list) {\n\n\t\t\tif (emi.getTipo().equals(\"Valor\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisValor[i] = new BigDecimal(mesesTotaisValor[i]).add(new BigDecimal(emi.getMeses()[i]))\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t}\n\n\t\t\t} else if (emi.getTipo().equals(\"Quantidade\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisQuantidade[i] = Integer.toString(\n\t\t\t\t\t\t\t(Integer.parseInt(mesesTotaisQuantidade[i]) + Integer.parseInt(emi.getMeses()[i])));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tanoTotal = emi.getAno();\n\t\t\tprodutoTotal = emi.getProduto();\n\n\t\t}\n\n\t\tMovimentoPorCanalDeVendaVO totalValor = new MovimentoPorCanalDeVendaVO();\n\t\tMovimentoPorCanalDeVendaVO totalQuantidade = new MovimentoPorCanalDeVendaVO();\n\n\t\ttotalValor.setCanalDeVenda(\"Total\");\n\t\ttotalValor.setProduto(produtoTotal);\n\t\ttotalValor.setTipo(\"Valor\");\n\t\ttotalValor.setAno(anoTotal);\n\t\ttotalValor.setMeses(mesesTotaisValor);\n\t\tlistTotal.add(totalValor);\n\n\t\ttotalQuantidade.setCanalDeVenda(\"Total\");\n\t\ttotalQuantidade.setProduto(produtoTotal);\n\t\ttotalQuantidade.setTipo(\"Quantidade\");\n\t\ttotalQuantidade.setAno(anoTotal);\n\t\ttotalQuantidade.setMeses(mesesTotaisQuantidade);\n\t\tlistTotal.add(totalQuantidade);\n\n\t\t/*\n\t\t * ===Agora calculo os percentuais=========\n\t\t */\n\n\t\tfinal int VALOR = 0;\n\t\tfinal int QUANTIDADE = 1;\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\t\tUteis uteis = new Uteis();\n\t\tList<MovimentoPorCanalDeVendaVO> listFinal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tfor (int i = 0; i < list.size() / 2; i++) {\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValor = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===VALOR==== */\n\t\t\temissaoValor.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValor.setTipo(list.get(i).getTipo());\n\t\t\temissaoValor.setMeses(list.get(i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValorPercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=VALOR==== */\n\t\t\temissaoValorPercent.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValorPercent.setTipo(\"% \" + list.get(i).getTipo());\n\n\t\t\tString[] mesesPercentValor = new String[12];\n\t\t\tfor (int k = 0; k < list.get(i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdouble total = Double.parseDouble(new BigDecimal(list.get(i).getMeses()[k])\n\t\t\t\t\t\t\t.divide(new BigDecimal(listTotal.get(VALOR).getMeses()[k]), 5, RoundingMode.HALF_DOWN)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmesesPercentValor[k] = percentForm.format(total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentValor[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoValorPercent.setMeses(mesesPercentValor);\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidade = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===QUANTIDADE==== */\n\t\t\tint j = list.size() / 2;\n\t\t\temissaoQuantidade.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidade.setTipo(list.get(j + i).getTipo());\n\t\t\temissaoQuantidade.setMeses(list.get(j + i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidadePercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=QUANTIDADE==== */\n\t\t\temissaoQuantidadePercent.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidadePercent.setTipo(\"% \" + list.get(j + i).getTipo());\n\n\t\t\tString[] mesesPercentQuantidade = new String[12];\n\t\t\tfor (int k = 0; k < list.get(j + i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdouble total = Double.parseDouble(list.get(j + i).getMeses()[k])\n\t\t\t\t\t\t\t/ Double.parseDouble(listTotal.get(QUANTIDADE).getMeses()[k]);\n\t\t\t\t\tmesesPercentQuantidade[k] = percentForm\n\t\t\t\t\t\t\t.format(Double.toString(total).equalsIgnoreCase(\"NaN\") ? 0.0 : total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentQuantidade[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoQuantidadePercent.setMeses(mesesPercentQuantidade);\n\n\t\t\tString[] valorFormatado = new String[12];\n\t\t\tfor (int k = 0; k < emissaoValor.getMeses().length; k++) {\n\t\t\t\tvalorFormatado[k] = uteis\n\t\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(Double.parseDouble(emissaoValor.getMeses()[k])));\n\n\t\t\t}\n\t\t\temissaoValor.setMeses(valorFormatado);\n\n\t\t\tString[] valorFormatado2 = new String[12];\n\t\t\tfor (int k = 0; k < emissaoQuantidade.getMeses().length; k++) {\n\t\t\t\tvalorFormatado2[k] = uteis.insereSeparadores(emissaoQuantidade.getMeses()[k]);\n\t\t\t}\n\t\t\temissaoQuantidade.setMeses(valorFormatado2);\n\n\t\t\tlistFinal.add(emissaoValor);\n\t\t\tlistFinal.add(emissaoValorPercent);\n\t\t\tlistFinal.add(emissaoQuantidade);\n\t\t\tlistFinal.add(emissaoQuantidadePercent);\n\n\t\t}\n\n\t\treturn listFinal;\n\n\t}", "public static String[][] leerPedidos() {\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM pedido\");\n while (result.next()) {\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[][] reporte = new String[cont][11];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM pedido\");\n while (result.next()) {\n //leo los registros y los guardo cada uno en un renglon de la matriz \n reporte[cont][0] = result.getString(1);\n reporte[cont][1] = result.getString(2);\n reporte[cont][2] = result.getString(3);\n reporte[cont][3] = result.getString(4);\n reporte[cont][4] = result.getString(5);\n reporte[cont][5] = result.getString(6);\n reporte[cont][6] = result.getString(7);\n reporte[cont][7] = result.getString(8);\n reporte[cont][8] = result.getString(9);\n reporte[cont][9] = result.getString(10);\n reporte[cont][10] = result.getString(11);\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return reporte;\n }", "public void resolver(){\n\t\tfor(int i = 0 ; i < tablero.getTamanio(); i++){\n\t\t\tfor(int j = 0 ; j < diccionario.getCantPalabras(); j++){\n\t\t\t\tif(tablero.getTablero()[i].contains(diccionario.getPalabra()[j].getPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tE\");\n\t\t\t\t} else if (tablero.getTablero()[i].contains(diccionario.getPalabra()[j].invertirPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tO\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Busca sentido Norte y Sur\n\t\tString aux = \"\";\n\t\tfor(int i = 0 ; i < tablero.getTamanio(); i++){\n\t\t\tfor(int j = 0 ; j < tablero.getTamanio(); j++){\n\t\t\t\taux += tablero.getTablero()[j].charAt(i);\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < diccionario.getCantPalabras() ; j++){\n\t\t\t\tif(aux.contains(diccionario.getPalabra()[j].getPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tS\");\n\t\t\t\t} else if(aux.contains(diccionario.getPalabra()[j].invertirPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tN\");\n\t\t\t\t}\n\t\t\t}\n\t\t\taux = \"\";\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tPrintWriter pw = new PrintWriter(new File(\"Rapigrama1.out\"));\n\t\t\tfor(int i = 0 ; i < respuesta.size(); i++){\n\t\t\t\tpw.println(respuesta.get(i));\n\t\t\t}\n\t\t\tpw.close();\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void calcularResultado ( View view )\n {\n \n String strPrediccion= ( (TextView) findViewById(R.id.txtPredSeg) ).getText().toString();\n if( strPrediccion.length() == 0 )\n Toast.makeText(this, \"Debe ingresar su prediccion para saber el resultado.\", Toast.LENGTH_SHORT);\n else\n {\n try {\n int numPred= Integer.parseInt(strPrediccion);\n if( numPred == segundosTranscurridos )\n Toast.makeText(this, \"!!!!! GANASTE !!!!!!!!\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(this, \"SEGUI PARTICIPANDO. LA RESPUESTA CORRECTA ERA: \"+segundosTranscurridos, Toast.LENGTH_LONG).show();\n volverValoresADefault();\n }catch ( Exception x)\n {\n Toast.makeText(this, \"TENES QUE INGRESAR UN NUMEERO ENTERO\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }", "private String[] condicionGeneral(String condicion) {\n String retorno[] = new String[2];\n try {\n String[] simbolos = {\"<=\", \">=\", \"==\", \"!=\", \"<\", \">\"};\n String simbolo = \"0\";\n\n if (condicion.length() > 3) {\n condicion = condicion.substring(1, condicion.length());\n for (int i = 0; i < simbolos.length; i++) {//selecciona el simbolo de la condicion\n if (condicion.contains(simbolos[i])) {\n simbolo = simbolos[i];\n break;\n }\n }\n if (simbolo.equals(\"0\")) {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n } else {\n String var[] = condicion.split(simbolo);\n if (var.length == 2) {\n if (esNumero(var[0])) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[1].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letas \n byte aux = 0;\n\n for (int i = 0; i < codigo.size(); i++) {\n if (var[1].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n if (var[0].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letras \n byte aux = 0;\n for (int i = 0; i < codigo.size(); i++) {\n if (var[0].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[0].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letas \n aux = 0;\n\n for (int i = 0; i < codigo.size(); i++) {\n if (var[1].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[0] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n\n\n\n } catch (Exception e) {\n System.out.println(\"Error en condicion \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\n\t\t\t\t\t\"limit 25 offset 0\");\n\n\t\t\tList<Ficha_epidemiologia_n3> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n3.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Ficha_epidemiologia_n3 ficha_epidemiologia_n3 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\tficha_epidemiologia_n3, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "public static int tirarDados(){\n //elige valores aleatorios para los dados\n int dado1 = 1 + numerosAleatorios.nextInt(6);//<primer tiro del dado\n int dado2 = 1 + numerosAleatorios.nextInt(6);//< segundo tiro del dado\n \n int suma = dado1 + dado2;//< suma de los valores de los dados\n \n //muestra los resultados de este tiro\n System.out.printf(\"El jugador tiro %d + %d = %d%n\", dado1, dado2, suma);\n return suma;\n }", "public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\n\t\t\tgetServiceLocator().getHisc_urgencia_odontologicoService()\n\t\t\t\t\t.setLimit(\"limit 25 offset 0\");\n\n\t\t\tList<Hisc_urgencia_odontologico> lista_datos = getServiceLocator()\n\t\t\t\t\t.getHisc_urgencia_odontologicoService().listar(parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Hisc_urgencia_odontologico hisc_urgencia_odontologico : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\thisc_urgencia_odontologico, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "private void actualizarCampos(){\n obtenerPreguntasConRespuestas();\n actualizarRespuestasActuales();\n \n _opcionMultiple.actualizarPregunta(obtenerPregunta());\n _opcionMultiple.actualizarOpcion1(\"<html>\"+_respuestasActuales.get(0).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion2(\"<html>\"+_respuestasActuales.get(1).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion3(\"<html>\"+_respuestasActuales.get(2).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion4(\"<html>\"+_respuestasActuales.get(3).getRespuesta()+\"</html>\");\n \n if(_respuestaUsuario.size()>_posicion){\n _opcionMultiple.limpiarSelecciones();\n int numeroRespuesta = _respuestasActuales.indexOf(_respuestaUsuario.get(_posicion));\n _opcionMultiple.selecionarOpcion(numeroRespuesta);\n }else{\n _opcionMultiple.limpiarSelecciones();\n }\n }", "public void buscarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tString codigo_empresa = empresa.getCodigo_empresa();\r\n\t\t\tString codigo_sucursal = sucursal.getCodigo_sucursal();\r\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\r\n\t\t\t\t\t.toString();\r\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n\t\t\tMap<String, Object> parameters = new HashMap();\r\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\t\tparameters.put(\"parameter\", parameter);\r\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n\t\t\tgetServiceLocator().getHis_partoService().setLimit(\r\n\t\t\t\t\t\"limit 25 offset 0\");\r\n\r\n\t\t\tList<His_parto> lista_datos = getServiceLocator()\r\n\t\t\t\t\t.getHis_partoService().listar(parameters);\r\n\t\t\trowsResultado.getChildren().clear();\r\n\r\n\t\t\tfor (His_parto his_parto : lista_datos) {\r\n\t\t\t\trowsResultado.appendChild(crearFilas(his_parto, this));\r\n\t\t\t}\r\n\r\n\t\t\tgridResultado.setVisible(true);\r\n\t\t\tgridResultado.setMold(\"paging\");\r\n\t\t\tgridResultado.setPageSize(20);\r\n\r\n\t\t\tgridResultado.applyProperties();\r\n\t\t\tgridResultado.invalidate();\r\n\t\t\tgridResultado.setVisible(true);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}", "public void buscarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tString codigo_empresa = empresa.getCodigo_empresa();\r\n\t\t\tString codigo_sucursal = sucursal.getCodigo_sucursal();\r\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\r\n\t\t\t\t\t.toString();\r\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n\t\t\tMap<String, Object> parameters = new HashMap();\r\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\t\tparameters.put(\"parameter\", parameter);\r\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n\t\t\tgetServiceLocator().getHis_atencion_embarazadaService().setLimit(\r\n\t\t\t\t\t\"limit 25 offset 0\");\r\n\r\n\t\t\tList<His_atencion_embarazada> lista_datos = getServiceLocator()\r\n\t\t\t\t\t.getHis_atencion_embarazadaService().listar(parameters);\r\n\t\t\trowsResultado.getChildren().clear();\r\n\r\n\t\t\tfor (His_atencion_embarazada his_atencion_embarazada : lista_datos) {\r\n\t\t\t\trowsResultado.appendChild(crearFilas(his_atencion_embarazada,\r\n\t\t\t\t\t\tthis));\r\n\t\t\t}\r\n\r\n\t\t\tgridResultado.setVisible(true);\r\n\t\t\tgridResultado.setMold(\"paging\");\r\n\t\t\tgridResultado.setPageSize(20);\r\n\r\n\t\t\tgridResultado.applyProperties();\r\n\t\t\tgridResultado.invalidate();\r\n\t\t\tgridResultado.setVisible(true);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}", "public void buscarDatos()throws Exception{\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue().toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\t\t\t\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\"limit 25 offset 0\");\n\t\t\t\n\t\t\tList<Ficha_epidemiologia_n13> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n13.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\t\t\t\n\t\t\tfor (Ficha_epidemiologia_n13 ficha_epidemiologia_n13 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(ficha_epidemiologia_n13, this));\n\t\t\t}\n\t\t\t\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\t\t\t\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "public void cadastrarOfertasQuad1(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q1.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine();\n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(1);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas1LazyModel = null;\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n } \n }", "public static String[][] leerTotales() {\n //saco el total de registros\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM totales\");\n while (result.next()) {\n cont++;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[][] reporte = new String[cont][12];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM totales\");\n while (result.next()) {\n //leo los registros y los guardo cada uno en un renglon de la matriz \n reporte[cont][0] = result.getString(1);\n reporte[cont][1] = result.getString(2);\n reporte[cont][2] = result.getString(3);\n reporte[cont][3] = result.getString(4);\n reporte[cont][4] = result.getString(5);\n reporte[cont][5] = result.getString(6);\n reporte[cont][6] = result.getString(7);\n reporte[cont][7] = result.getString(8);\n reporte[cont][8] = result.getString(9);\n reporte[cont][9] = result.getString(10);\n reporte[cont][10] = result.getString(11);\n reporte[cont][11] = result.getString(12);\n\n cont++;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return reporte;\n }", "@Test\n\tpublic void probandoParametrosDevuelta() {\n\n\t\tString outFolder = ArbolFileSources.userFolder + \"/Dropbox/julio_box/educacion/maestria_explotacion_datos_uba/materias/cuat_2_dm_finanzas/entregable/historia/\";\n\t\ttry {\n\n\t\t\t// String[] seed = { \"101723\", \"208403\", \"663552\", \"826668\",\n\t\t\t// \"980641\" };\n\t\t\t// Integer[] maximaProfundidadList = { 6,7 };\n\t\t\t// Integer[] minParentSizeList = {300, 400, 500 };\n\t\t\t// // cuenta que va a ser el porcentaje variable del current padre\n\t\t\t// Integer[] minChildSizeList = { 65,70,90 };\n\n\t\t\t// String[] seed = { \"101723\", \"208403\", \"663552\", \"826668\",\n\t\t\t// \"980641\" };\n\t\t\t// Integer[] maximaProfundidadList = { 6,7 };\n\t\t\t// Integer[] minParentSizeList = {300, 400 };\n\t\t\t// // cuenta que va a ser el porcentaje variable del current padre\n\t\t\t// Integer[] minChildSizeList = { 65,70 };\n\n\t\t\tString[] seed = { \"101723\", \"208403\", \"663552\", \"826668\", \"980641\" };\n\t\t\tInteger[] maximaProfundidadList = { 7 };\n\t\t\tInteger[] minParentSizeList = { 300, 350, 400 };\n\t\t\t// cuenta que va a ser el porcentaje variable del current padre\n\t\t\tInteger[] minChildSizeList = { 65, 70 };\n\n\t\t\t// para cada semilla correr los arboles\n\n\t\t\tString resultSyntax = ArbolesSQLEjecutador.generaSyntaxSpssIterativoVarsYHisto(outFolder, maximaProfundidadList, minParentSizeList, minChildSizeList, seed);\n\t\t\tString timeStampFolder = UtilidadesGenerales.getTimeStamp(null, null);\n\t\t\tUtilidadesGenerales.writeToFile(resultSyntax, \"UTF-8\", outFolder + timeStampFolder + \"_syntax.txt\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail(e.getMessage());\n\t\t}\n\t}", "public void obterDados() {\r\n\r\n\t\tidade = Integer.parseInt(JOptionPane.showInputDialog(\"Informe a idade\"));\r\n\t\taltura = Double.parseDouble(JOptionPane.showInputDialog(\"Informe a altura\"));\r\n\t\tpeso = Double.parseDouble(JOptionPane.showInputDialog(\"Informe o peso\"));\r\n\t\t\r\n\t\tjogCadastrados ++;\r\n totalaltura += altura;\r\n\r\n\t}", "@Test\n public void test01() {\n EjercicioR755 ejercici1 = new EjercicioR755();\n\n\n ArrayList<Integer> origen = new ArrayList<>(Arrays.asList(5, 8, 2, 1, 9, 7, 4));\n String resultadoEsperado = \"9, 8, 7, 5, 4, 2, 1\";\n assertEquals(resultadoEsperado, ejercici1.devolverEnOrden(origen));\n\n\n origen = new ArrayList<>(Arrays.asList(10, 4, 5, 4, 3, 9, 1));\n resultadoEsperado = \"10, 9, 5, 4, 4, 3, 1\";\n assertEquals(resultadoEsperado, ejercici1.devolverEnOrden(origen));\n\n\n origen = new ArrayList<>(Arrays.asList(6, 4, 5, 4, 3, 9, 10));\n resultadoEsperado = \"10, 9, 6, 5, 4, 4, 3\";\n assertEquals(resultadoEsperado, ejercici1.devolverEnOrden(origen));\n\n\n origen = new ArrayList<>();\n resultadoEsperado = \"\";\n assertEquals(resultadoEsperado, ejercici1.devolverEnOrden(origen));\n }", "private void enviaCorreosElectronicos(){\r\n try{\r\n for(int i=0;i<arlDocGenDat.size();i++){\r\n strMsjCorEle=\"\";\r\n strMsjCorEle+=\"<HTML> La cotizacion Numero: \"+ objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COD_COT) + \", \";\r\n strMsjCorEle+=\" del cliente: \"+objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_NOM_CLI);\r\n strMsjCorEle+=\" se ha Facturado con Numero: <b>\" + objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_NUM_FAC)+\"</b> \";\r\n strMsjCorEle+=\" </HTML> \";\r\n switch(objUti.getIntValueAt(arlDocGenDat, i,INT_ARL_COD_EMP_COT))\r\n {\r\n case 1: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" TUVAL \",strMsjCorEle ); break; \r\n case 2: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" CASTEK \",strMsjCorEle ); break;\r\n case 4: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" DIMULTI \",strMsjCorEle ); break; \r\n }\r\n }\r\n }\r\n catch (Exception Evt) {\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n \r\n }", "private void casoFor(ArrayList codigoFuente) {\n try {\n\n String texto = \"\", linea = \"\";\n String var[] = null;\n\n byte parenDerecho = 0;\n for (int i = 0; i < codigoFuente.size(); i++) {\n linea = codigoFuente.get(i).toString();\n for (int j = 0; j < linea.length(); j++) {\n if (linea.charAt(j) == ')') {\n parenDerecho++;\n\n if (j < linea.length() - 1) {\n if (linea.charAt(j + 1) == '{') {\n var = contenidoFor(texto);\n\n if (var[0].equals(\"0\")) {\n ta_output.setText(\"Línea \" + (i + 1) + \":\" + var[1]);\n break;\n } else {\n if (codigoFuente.get(codigoFuente.size() - 1).toString().charAt(codigoFuente.get(codigoFuente.size() - 1).toString().length() - 1) == '}') {\n ta_output.setText(\"Compilado Correctamente\");\n break;\n } else {\n ta_output.setText(\"Línea \" + (codigoFuente.size() - 1) + \": Sintáctico: falta llave derecha\");\n break;\n }\n }\n } else {\n ta_output.setText(\"Línea \" + (i + 1) + \": Sintáctico: falta llave izquierda\");\n break;\n }\n } else {//Evalua si la llave izquierda esta en la siguiente linea\n if (i < codigoFuente.size() - 1) {\n linea = codigoFuente.get(i + 1).toString();\n if (linea.charAt(0) == '{') {\n var = contenidoFor(texto);\n\n if (var[0].equals(\"0\")) {\n ta_output.setText(\"Línea \" + (i + 1) + \":\" + var[1]);\n break;\n } else {\n if (codigoFuente.get(codigoFuente.size() - 1).toString().charAt(codigoFuente.get(codigoFuente.size() - 1).toString().length() - 1) == '}') {\n ta_output.setText(\"Compilado Correctamente\");\n break;\n } else {\n ta_output.setText(\"Línea \" + (codigoFuente.size()) + \": Sintáctico: falta llave derecha\");\n break;\n }\n }\n } else {\n ta_output.setText(\"Línea \" + (i + 1) + \": Sintáctico: falta llave izquierda\");\n break;\n }\n } else {\n ta_output.setText(\"Línea \" + (i + 1) + \": Sintáctico: falta llave izquierda\");\n break;\n }\n }\n }\n texto += linea.charAt(j);\n if (texto.equals(\"for\")) {\n if (linea.length() > 5) {\n if (linea.charAt(j + 1) == '(') {\n texto = \"\";\n } else {\n if (linea.charAt(j + 2) == '(') {\n ta_output.setText(\"Línea \" + (i + 1) + \": Lexico: Caracter sobrante en sentencia for.\");\n parenDerecho++;\n break;\n } else {\n parenDerecho++;\n ta_output.setText(\"Línea \" + (i + 1) + \": Sintáctico: mala construcción de la sentencia.\");\n break;\n }\n }\n } else {\n parenDerecho++;\n ta_output.setText(\"Línea \" + (i + 1) + \": Sintáctico: mala construcción de la sentencia.\");\n break;\n }\n }\n }\n }\n if (parenDerecho == 0) {\n ta_output.setText(\"Sintáctico: falta paréntesis Derecho\");\n }\n\n } catch (Exception e) {\n System.out.println(\"Error en caso for \" + e.getClass());\n }\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "public static String[][] leerReportes() {\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM totales\");\n while (result.next()) {\n cont++;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[][] reporte = new String[cont][11];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM totales\");\n while (result.next()) {\n //leolos registros y los guardo cada uno en un renglon de la matriz\n reporte[cont][0] = result.getString(1);\n reporte[cont][1] = result.getString(2);\n reporte[cont][2] = result.getString(3);\n reporte[cont][3] = result.getString(4);\n reporte[cont][4] = result.getString(5);\n reporte[cont][5] = result.getString(6);\n reporte[cont][6] = result.getString(7);\n reporte[cont][7] = result.getString(8);\n reporte[cont][8] = result.getString(9);\n reporte[cont][9] = result.getString(10);\n reporte[cont][10] = result.getString(11);\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return reporte;\n }", "public static void main(String[] args) {\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tint numZonas;\r\n\t\tSystem.out.println(\"¿Cuantas zonas hay?\");\r\n\t\tnumZonas = sc.nextInt();\r\n\t\t\r\n\t\tString añadir;\r\n\t\tint añadirZona = 0;\r\n\t\tint [][] densidadArea = new int [2][numZonas];\r\n\t\tint [][] denAreaExtra = new int[2][numZonas + añadirZona];\r\n\t\tString [] lugares = new String [numZonas];\r\n\t\tString [] lugaresExtra = new String [numZonas + añadirZona];\r\n\t\t\r\n\t\tfor (int i = 0 ; i < numZonas ; i++) {\r\n\t\t\tSystem.out.println(\"Introduce el nombre de la zona: \");\r\n\t\t\tlugares [i]= sc.next();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Introduce la densidad de la zona:\");\r\n\t\t\tdensidadArea [0][i] = sc.nextInt();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Introduce el area de la zona: \");\r\n\t\t\tdensidadArea [1][i] = sc.nextInt();\t\r\n\t\t\t\r\n\t\t\tResultados(numZonas, lugares, densidadArea);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"¿Quieres añadir más zonas? (Si/No)\");\r\n\t\tañadir = sc.next();\r\n\t\t\r\n\t\tif (añadir.equals (\"Si\")) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"¿Cuantas zonas quieres añadir?\");\r\n\t\t\tañadirZona = sc.nextInt();\r\n\t\t\tlugaresExtra = new String [numZonas + añadirZona];\r\n\t\t\t\r\n\t\t\tfor (int j = numZonas ; j < (numZonas + añadirZona) ; j++) {\r\n\t\t\t\tSystem.out.println(\"Introduce el nombre de la zona: \");\r\n\t\t\t\tlugaresExtra [j]= sc.next();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Introduce la densidad de la zona:\");\r\n\t\t\t\tdenAreaExtra [0][j] = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Introduce el area de la zona: \");\r\n\t\t\t\tdenAreaExtra [1][j] = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\tResultados2(añadirZona, lugaresExtra, denAreaExtra);\r\n\t\t\t}\r\n\t\t\tnumZonas = numZonas + añadirZona;\r\n\t\t}\r\n\t\telse {\t\r\n\t\t\tSystem.out.println(\"Ya hemos terminado la consulta, gracias.\");\r\n\t\t}\r\n\t\t\r\n\t\tsc.close();\r\n\t\r\n\t\r\n\t\r\n\t}", "private ArrayList<String[]> getArrayCombinaciones(String[] parVecBusqueda) {\n String nom1 = \"\", nom2 = \"\", nom3 = \"\", nom4 = \"\";\n ArrayList<String[]> vecCombinaciones = new ArrayList<>();\n int contNombres = 0;\n for (String varString : parVecBusqueda) {\n if (varString.equals(\"\")) {\n contNombres++;\n }\n }\n switch (contNombres) {\n case 1:\n nom1 = parVecBusqueda[0].toLowerCase();\n vecCombinaciones = this.getVecCombinaciones1(nom1);\n break;\n case 2:\n nom1 = parVecBusqueda[0].toLowerCase();\n nom2 = parVecBusqueda[1].toLowerCase();\n vecCombinaciones = this.getVecCombinaciones2(nom1, nom2);\n break;\n case 3:\n nom1 = parVecBusqueda[0].toLowerCase();\n nom2 = parVecBusqueda[1].toLowerCase();\n nom3 = parVecBusqueda[2].toLowerCase();\n vecCombinaciones = this.getVecCombinaciones3(nom1, nom2, nom3);\n break;\n case 4:\n vecCombinaciones.add(parVecBusqueda);\n break;\n default:\n break;\n }\n return vecCombinaciones;\n }", "public static ArrayList<Integer> estadisticageneral() {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resesAntes = ResCRUD.select();\n\t\tArrayList<Res> resess = new ArrayList<>();\n\n\t\t\n\t\tfor (int i = 0; i < resesAntes.size(); i++) {\n\t\t\t\n\t\t\tif (resesAntes.get(i).getVivo()==1) {\n\t\t\t\t\n\t\t\t\tresess.add(resesAntes.get(i));\n\t\t\t}\n\t\t}\t\t\n\n\t\tArrayList<Potrero> potrero = PotreroCRUD.select();\n\n\t\tRes res = null;\n\n\t\tint potreros = potrero.size();\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(potreros);\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}", "public static void leerRegistros() {\n\n try { // Entrada a registros del archivo\n Scanner entrada = new Scanner(new File(\"data/tabula-FWC_2018_\"\n + \"Squadlists_4.csv\"));\n // Variables\n int cont = 0;\n double goals = 0;\n double totalG = 0;\n double height = 0;\n double totalH = 0;\n double promG = 0;\n double promH = 0;\n\n while (entrada.hasNext()) {\n String linea = entrada.nextLine();\n\n ArrayList<String> linea_partes = new ArrayList<>(\n Arrays.asList(linea.split(\"\\\\|\")));\n\n // Tomando las posiciones\n goals = Double.parseDouble(linea_partes.get(11)); \n height = Double.parseDouble(linea_partes.get(9));\n\n totalG = goals + totalG; // Cálculo de total de goles\n totalH = height + totalH; // Cálculo del total de estatura\n\n cont = cont + 1;\n }\n // Cálculo de promedios\n promG = totalG / cont; \n promH = totalH / cont;\n\n System.out.printf(\"El promedio de goles es: %.2f\\nEl promedio de \"\n + \"estatura es: %.2f\", promG, promH);\n entrada.close();\n } catch (Exception e) {\n System.err.println(\"Error al leer del archivo.\");\n System.exit(1);\n } // fin de catch\n }", "public void buscarComprobantesEntreFechas(){\n listaComprobantes = this.getEjbFacadeComprobantes().buscarEntreFechasConEstadoSinRendicionExterna(desde,hasta);\n \n System.out.println(\"listaComprobantes cantidad >> \" + listaComprobantes.size());\n }", "public Collection cargarMasivo(int codigoCiclo, String proceso, String subproceso, int periodo) {\n/* 287 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 289 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, u.Descripcion Nombre_Area, Um.Descripcion as Nombre_Unidad_Medida, to_char(m.Codigo_Objetivo,'9999999999') ||' - ' || o.Descripcion Nombre_Objetivo, to_char(m.Codigo_Meta,'9999999999') ||' - ' || m.Descripcion Nombre_Meta, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, l.Valor_Logro, case when l.Valor_Logro is not null then 'A' else 'N' end Existe from Cal_Planes p, Cal_Plan_Objetivos o, Cal_Plan_Metas m left join Cal_Logros l on( m.Codigo_Ciclo = l.Codigo_Ciclo and m.Codigo_Plan = l.Codigo_Plan and m.Codigo_Meta = l.Codigo_Meta and m.Codigo_Objetivo = l.Codigo_Objetivo and \" + periodo + \" = l.Periodo),\" + \" Unidades_Dependencia u,\" + \" Sis_Multivalores Um\" + \" where p.Ciclo = o.Codigo_Ciclo\" + \" and p.Codigo_Plan = o.Codigo_Plan\" + \" and o.Codigo_Ciclo = m.Codigo_Ciclo\" + \" and o.Codigo_Plan = m.Codigo_Plan\" + \" and o.Codigo_Objetivo = m.Codigo_Objetivo\" + \" and p.Codigo_Area = u.Codigo\" + \" and m.Unidad_Medida = Um.Valor\" + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\" + \" and o.Proceso = '\" + proceso + \"'\" + \" and o.Subproceso = '\" + subproceso + \"'\" + \" and p.Ciclo = \" + codigoCiclo + \" and m.Estado = 'A'\" + \" and o.Estado = 'A'\" + \" and o.Tipo_Objetivo in ('G', 'M')\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 333 */ if (periodo == 1) {\n/* 334 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 336 */ else if (periodo == 2) {\n/* 337 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 339 */ else if (periodo == 3) {\n/* 340 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 342 */ else if (periodo == 4) {\n/* 343 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 345 */ else if (periodo == 5) {\n/* 346 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 348 */ else if (periodo == 6) {\n/* 349 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 351 */ else if (periodo == 7) {\n/* 352 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 354 */ else if (periodo == 8) {\n/* 355 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 357 */ else if (periodo == 9) {\n/* 358 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 360 */ else if (periodo == 10) {\n/* 361 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 363 */ else if (periodo == 11) {\n/* 364 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 366 */ else if (periodo == 12) {\n/* 367 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 370 */ s = s + \" order by m.Codigo_Ciclo, m.Codigo_Objetivo, m.Codigo_Meta, u.Descripcion\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 377 */ boolean rtaDB = this.dat.parseSql(s);\n/* 378 */ if (!rtaDB) {\n/* 379 */ return resultados;\n/* */ }\n/* */ \n/* 382 */ this.rs = this.dat.getResultSet();\n/* 383 */ while (this.rs.next()) {\n/* 384 */ CalMetasDTO reg = new CalMetasDTO();\n/* 385 */ reg.setCodigoCiclo(codigoCiclo);\n/* 386 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 387 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 388 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 389 */ reg.setNombreArea(this.rs.getString(\"Nombre_Area\"));\n/* 390 */ reg.setNombreMeta(this.rs.getString(\"Nombre_meta\"));\n/* 391 */ reg.setNombreObjetivo(this.rs.getString(\"Nombre_Objetivo\"));\n/* 392 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 393 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 394 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 395 */ reg.setValorLogro(this.rs.getDouble(\"Valor_Logro\"));\n/* 396 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* 397 */ reg.setEstado(this.rs.getString(\"existe\"));\n/* 398 */ resultados.add(reg);\n/* */ }\n/* */ \n/* 401 */ } catch (Exception e) {\n/* 402 */ e.printStackTrace();\n/* 403 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 405 */ return resultados;\n/* */ }", "public void cadastrarOfertasQuad2(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q2.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine(); \n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(2);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas2LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n }\n }", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "public ReformaTributariaOutput getComporConv(boolean comportamiento, ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n int inComportamiento=0; \n int inTipoConvenio=0;\n int inEmbargo=0;\n int inPyme=0;\n String ContextoAmbienteParam = null;\n ReformaTributariaOutput reformaTributariaOut = new ReformaTributariaOutput();\n try {\n\n conn = this.getConnection();\n String beneficio = this.getBeneficio();\n \n System.out.println(\"Estoy adentro con parametro beneficio---------------------->\"+beneficio);\n \n if (beneficio.equalsIgnoreCase(\"S\")){\n\t if (reformaTributaria.getContextoAmbienteParam().endsWith(\"CNV_INTRA\")){\n\t \t ContextoAmbienteParam=\"CNV_INTRA\";\n\t }else{\n\t \t ContextoAmbienteParam=\"CNV_BENEFICIO_INTER\";\n\t }\n }else{\n \t ContextoAmbienteParam=reformaTributaria.getContextoAmbienteParam(); \n }\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n /*\n --------------------------------------------------------------\n ------- Las variables determinantes --------------------\n ------- para condiciones de convenios --------------------\n --------------------------------------------------------------\n ------- v_tipo_valor\n ------- v_tipo_convenio\n ------- v_comportamiento\n ------- v_embargo\n ------- v_canal\n --------------------------------------------------------------\n -------------------------------------------------------------- \n */\n if (comportamiento){\n \t inComportamiento=1;\n }else{\n \t inComportamiento=2;\n }\n \n //String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia()+\";\"+reformaTributaria.canal();\n String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia();\n \n //System.out.println(\"tipo reforma condonacion--->\"+reformaTributaria.getCodConvenios());\n //System.out.println(\"***************************estoy en comportamiento****************************************\");\n //System.out.println(\"reformaTributaria.garantia()--->\"+reformaTributaria.garantia());\n //System.out.println(\"param getComporConv---> \"+parametros);\n //call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?)}\");\n call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?,?,?)}\");\n call.setLong(1,inComportamiento);/*tipo comporamiento � condonaci�n */\n call.setString(2,parametros);/*tipo convenio */\n call.registerOutParameter(3, OracleTypes.INTEGER);/*max_cuotas*/\n call.registerOutParameter(4, OracleTypes.INTEGER);/*min_pie*/\n call.registerOutParameter(5, OracleTypes.INTEGER);/*por_condonacion*/ \n call.registerOutParameter(6, OracleTypes.INTEGER);/*error*/ \n /*se agrega nueva forma de servicio*/\n if (reformaTributaria.getCodConvenios()!=null){//si no es nulo quiere decir que es transitoria\n \t call.setLong(7,reformaTributaria.getCodConvenios().intValue());/*codigo condonacion si es transitoria*/\n }else{//si es null quiere decir que es convenio permanente\n \t call.setNull(7, OracleTypes.INTEGER);\n }\n //call.setString(8,reformaTributaria.getContextoAmbienteParam());/*ambiente Intranet � internet*/ \n System.out.println(\"ContextoAmbienteParam---> \"+ContextoAmbienteParam);\n call.setString(8,ContextoAmbienteParam);/*ambiente Intranet � internet*/\n call.execute();\n \n int maxCuotas = Integer.parseInt(call.getObject(3).toString());\n int minCuotaContado = Integer.parseInt(call.getObject(4).toString());\n \n\n int codError = Integer.parseInt(call.getObject(6).toString());\n \n reformaTributariaOut.setCodError(new Integer(codError));\n reformaTributariaOut.setMaxCuota(new Integer(maxCuotas));\n reformaTributariaOut.setMinCuotaContado(new Integer(minCuotaContado));\n call.close(); \n \n }catch (Exception e) {\n \te.printStackTrace();\n \t//throw new RemoteException(\"No tiene valor de comportamiento convenios:\" + e.getMessage());\n }\n finally{\n this.closeConnection();\n }\n\t\treturn reformaTributariaOut;\n }", "private String[] Condicion(String variable, String condicion) {\n String retorno[] = new String[2];\n try {\n String[] simbolos = {\"<=\", \">=\", \"==\", \"!=\", \"<\", \">\"};\n String simbolo = \"0\";\n\n for (int i = 0; i < simbolos.length; i++) {//selecciona el simbolo de la condicion\n if (condicion.contains(simbolos[i])) {\n simbolo = simbolos[i];\n break;\n }\n }\n if (simbolo.equals(\"0\")) {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n } else {\n String var[] = condicion.split(simbolo);\n if (var.length == 2) {\n if (esNumero(var[0])) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[1].equals(variable)) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n }\n } else {\n if (var[0].equals(variable)) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[0] + \".\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } catch (Exception e) {\n System.out.println(\"Error en condicion \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "public Collection cargarDeObjetivo(int codigoCiclo, int codigoPlan, int objetivo, int periodo, String estado) {\n/* 121 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 123 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion as Nombretipomedicion, Est.Descripcion as Nombreestado, Um.Descripcion as Nombre_Unidad_Medida, SUM(CASE WHEN ac.NUMERO IS NOT NULL THEN 1 ELSE 0 END) acciones from Cal_Plan_Metas m left join Am_Acciones Ac on( m.Codigo_Ciclo = Ac.Codigo_Ciclo and m.Codigo_Plan = Ac.Codigo_Plan and m.Codigo_Meta = Ac.Codigo_Meta and Ac.Asociado = 'P'), \\t\\t Sis_Multivalores Tm, \\t\\t Sis_Multivalores Est, \\t\\t Sis_Multivalores Um where m.Tipo_Medicion = Tm.Valor and Tm.Tabla = 'CAL_TIPO_MEDICION' and m.Estado = Est.Valor and Est.Tabla = 'CAL_ESTADO_META' and m.Unidad_Medida = Um.Valor and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META' and m.codigo_ciclo=\" + codigoCiclo + \" and m.codigo_plan=\" + codigoPlan + \" and m.codigo_objetivo=\" + objetivo;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 180 */ if (estado.length() > 0) {\n/* 181 */ s = s + \" and m.estado='A'\";\n/* */ }\n/* */ \n/* 184 */ if (periodo == 1) {\n/* 185 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 187 */ else if (periodo == 2) {\n/* 188 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 190 */ else if (periodo == 3) {\n/* 191 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 193 */ else if (periodo == 4) {\n/* 194 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 196 */ else if (periodo == 5) {\n/* 197 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 199 */ else if (periodo == 6) {\n/* 200 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 202 */ else if (periodo == 7) {\n/* 203 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 205 */ else if (periodo == 8) {\n/* 206 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 208 */ else if (periodo == 9) {\n/* 209 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 211 */ else if (periodo == 10) {\n/* 212 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 214 */ else if (periodo == 11) {\n/* 215 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 217 */ else if (periodo == 12) {\n/* 218 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 221 */ s = s + \" GROUP BY m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion, Est.Descripcion, Um.Descripcion order by m.descripcion\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 259 */ boolean rtaDB = this.dat.parseSql(s);\n/* 260 */ if (!rtaDB) {\n/* 261 */ return resultados;\n/* */ }\n/* */ \n/* 264 */ this.rs = this.dat.getResultSet();\n/* 265 */ while (this.rs.next()) {\n/* 266 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 269 */ catch (Exception e) {\n/* 270 */ e.printStackTrace();\n/* 271 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 273 */ return resultados;\n/* */ }", "public List<String> pot(ReportePlazaDTO reportePlazaDTO) {\n List<CustomOutputFile> lista = new ArrayList<CustomOutputFile>();\n List<String> listaString = new ArrayList<String>();\n\n String qnaCaptura = reportePlazaDTO.getQnaCaptura();\n String qnaCaptura2 = \"\";\n\n if (new Integer(qnaCaptura) % 2 == 0) {\n qnaCaptura2 = String.valueOf((new Integer(qnaCaptura) - 1));\n } else {\n qnaCaptura2 = qnaCaptura;\n }\n\n\n if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"e\")) {\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotEscenario(qnaCaptura);\n listaString.add(\"ID del Cargo,Nombre del Cargo\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"i\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotInmueble(qnaCaptura);\n listaString.add(\"Id Domicilio,Calle,Número Exterior,Número Interior,Colonia,Municipio,Estado/Entidad Fef.,País,Código Postal,Tipo de Oficina\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"a\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotAltas(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"ID del Servidor Público,Nombre,Primer Apellido,Segundo Apellido,Tipo Vacancia,Telefono Directo,Conmutador,Extensión,Fax,Email,ID Domicilio,Nivel de Puesto,Id del Cargo,ID del Cargo Superior,Nivel_Jerarquico\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"b\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotBajas(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"ID del Servidor Público\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"d\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotDirectorio(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Unidad,RFC,ID del Servidor Público,Nombre,Primer Apellido,Segundo Apellido,Tipo Vacancia,Telefono Directo,Conmutador,Extensión,Fax,Email,ID Domicilio,Nivel de Puesto,Id del Cargo,ID del Cargo Superior,Nivel_Jerarquico\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"r\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotRemuneraciones(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Id Puesto,Nombre,Tipo,SubTipo,Sueldo Base,Compensación Garantizada, Total Bruto, Total Neto,Nombre 01 Remuneracion,Monto 01 Remuneracion,Nombre 02 Remuneracion,Monto 02 Remuneracion,Nombre 03 Remuneracion,Monto 03 Remuneracion,Nombre 04 Remuneracion,Monto 04 Remuneracion,Nombre 05 Remuneracion,Monto 05 Remuneracion,Nombre 06 Remuneracion,Monto 06 Remuneracion,Nombre 07 Remuneracion,Monto 07 Remuneracion,Nombre 08 Remuneracion,Monto 08 Remuneracion,Nombre 09 Remuneracion,Monto 09 Remuneracion,Nombre 10 Remuneracion,Monto 10 Remuneracion,Nombre 11 Remuneracion,Monto 11 Remuneracion,Nombre 12 Remuneracion,Monto 12 Remuneracion,Nombre 13 Remuneracion,Monto 13 Remuneracion,Nombre 14 Remuneracion,Monto 14 Remuneracion,Nombre 15 Remuneracion,Monto 15 Remuneracion,Institucional,Colectivo de Retiro,Gastos Médicos,Separación Individualizado,Riesgos de Trabajo,Nombre Otros Seguros 1,Monto Otros Seguros 1,Nombre Otros Seguros 2,Monto Otros Seguros 2,Nombre Otros Seguros 3,Monto Otros Seguros 3,Nombre Otros Seguros 4,Monto Otros Seguros 4,Nombre Otros Seguros 5,Monto Otros Seguros 5,Nombre Otros Seguros 6,Monto Otros Seguros 6,Nombre Otros Seguros 7,Monto Otros Seguros 7,Nombre Otros Seguros 8,Monto Otros Seguros 8,Nombre Otros Seguros 9,Monto Otros Seguros 9,Nombre Otros Seguros 10,Monto Otros Seguros 10,Nombre Otros Seguros 11,Monto Otros Seguros 11,Nombre Otros Seguros 12,Monto Otros Seguros 12,Nombre Otros Seguros 13,Monto Otros Seguros 13,Nombre Otros Seguros 14,Monto Otros Seguros 14,Nombre Otros Seguros15,Monto Otros Seguros 15,Prima Vacacional,Primas de Antigüedad,Gratificación de Fin de Año,Pagas de Defunción,Ayuda para Despensa,Vacaciones,Nombre Prest. Econom 1,Monto Prest. Econom 1,Nombre Prest. Econom 2,Monto Prest. Econom 2,Nombre Prest. Econom 3,Monto Prest. Econom 3,Nombre Prest. Econom 4,Monto Prest. Econom 4,Nombre Prest. Econom 5,Monto Prest. Econom 5,Nombre Prest. Econom 6,Monto Prest. Econom 6,Nombre Prest.Econom 7,Monto Prest. Econom 7,Nombre Prest. Econom 8,Monto Prest. Econom 8,Nombre Prest. Econom 9,Monto Prest. Econom 9,Nombre Prest. Econom 10,Monto Prest. Econom 10,Nombre Prest. Econom 11,Monto Prest. Econom 11,Nombre Prest. Econom 12,Monto Prest. Econom 12,Nombre Prest. Econom 13,Monto Prest. Econom 13,Nombre Prest. Econom 14,Monto Prest. Econom 14,Nombre Prest. Econom 15,Monto Prest. Econom 15,Asistencia Legal,Asignación de Vehículo y/o Apoyo Económico ,Equipo de Telefonía Celular,Gastos de Alimentación,Nombre Prest. Inherentes al Puesto 1,Monto Prest. Inherentes al Puesto 1,Nombre Prest. Inherentes al Puesto 2,Monto Prest. Inherentes al Puesto 2,Nombre Prest. Inherentes al Puesto 3,Monto Prest. Inherentes al Puesto 3,Nombre Prest. Inherentes al Puesto 4,Monto Prest. Inherentes al Puesto 4,Nombre Prest. Inherentes al Puesto 5,Monto Prest. Inherentes al Puesto 5,Nombre Prest. Inherentes al Puesto 6,Monto Prest. Inherentes al Puesto 6,Nombre Prest. Inherentes al Puesto 7,Monto Prest. Inherentes al Puesto 7,Nombre Prest. Inherentes al Puesto 8,Monto Prest. Inherentes al Puesto 8,Nombre Prest. Inherentes al Puesto 9,Monto Prest. Inherentes al Puesto 9,Nombre Prest. Inherentes al Puesto 10,Monto Prest. Inherentes al Puesto 10,Nombre Prest. Inherentes al Puesto 11,Monto Prest. Inherentes al Puesto 11,Nombre Prest. Inherentes al Puesto 12,Monto Prest. Inherentes al Puesto 12,Nombre Prest. Inherentes al Puesto 13,Monto Prest. Inherentes al Puesto 13,Nombre Prest. Inherentes al Puesto 14,Monto Prest. Inherentes al Puesto 14,Nombre Prest. Inherentes al Puesto 15,Monto Prest. Inherentes al Puesto 15,ISSSTE / IMSS,FOVISSSTE / INFONAVIT,SAR,Nombre 01 Prest.Seg Social,Monto 01 Prest.Seg Social,Nombre 02 Prest.Seg Social,Monto 02 Prest.Seg Social,Nombre 03 Prest.Seg Social,Monto 03 Prest.Seg Social,Nombre 04 Prest.Seg Social,Monto 04 Prest.Seg Social,Nombre 05 Prest.Seg Social,Monto 05 Prest.Seg Social,Nombre 06 Prest.Seg Social,Monto 06 Prest.Seg Social,Nombre 07 Prest.Seg Social,Monto 07 Prest.Seg Social,Nombre 08 Prest.Seg Social,Monto 08 Prest.Seg Social,Nombre 09 Prest.Seg Social,Monto 09 Prest.Seg Social,Nombre 10 Prest.Seg Social,Monto 10 Prest.Seg Social,Nombre 11 Prest.Seg Social,Monto 11 Prest.Seg Social,Nombre 12 Prest.Seg Social,Monto 12 Prest.Seg Social,Nombre 13 Prest.Seg Social,Monto 13 Prest.Seg Social,Nombre 14 Prest.Seg Social,Monto 14 Prest.Seg Social,Nombre 15 Prest.Seg Social,Monto 15 Prest.Seg Social,Préstamos,Becas,Indemnizaciones,Nombre Otro Tipo Incentivo 01,Monto. Otro Tipo Incentivo 01,Nombre Otro Tipo Incentivo 02,Monto. Otro Tipo Incentivo 02,Nombre Otro Tipo Incentivo 03,Monto. Otro Tipo Incentivo 03,Nombre Otro Tipo Incentivo 04,Monto. Otro Tipo Incentivo 04,Nombre Otro Tipo Incentivo05,Monto. Otro Tipo Incentivo 05,Nombre Otro Tipo Incentivo 06,Monto. Otro Tipo Incentivo 06,Nombre Otro Tipo Incentivo 07,Monto. Otro Tipo Incentivo 07,Nombre Otro Tipo Incentivo 08,Monto. Otro Tipo Incentivo 08,Nombre Otro Tipo Incentivo 09,Monto. Otro Tipo Incentivo 09,Nombre Otro Tipo Incentivo 10,Monto. Otro Tipo Incentivo10,Nombre Otro Tipo Incentivo 11,Monto. Otro Tipo Incentivo 11,Nombre Otro Tipo Incentivo 12,Monto. Otro Tipo Incentivo12,Nombre Otro Tipo Incentivo 13,Monto. Otro Tipo Incentivo 13,Nombre Otro Tipo Incentivo 14,Monto. Otro Tipo Incentivo 14,Nombre Otro Tipo Incentivo 15,Monto. Otro Tipo Incentivo 15\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"f\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotFuncion((reportePlazaDTO.getQnaCaptura().substring(0, \n 4)));\n listaString.add(\"Identificador de la Facultad,Fundamento Legal,Documento Registrado,Unidad Administrativa,Nombre de la Unidad Administrativa\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"s\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotEstadistico(qnaCaptura);\n listaString.add(\"NIVEL,G,H,HH,I,J,K,L,M,N,O,Total\");\n }\n\n if (lista != null) {\n for (CustomOutputFile row: lista) {\n listaString.add(row.getRegistro());\n }\n } else\n listaString = null;\n return listaString;\n\n }", "public static String[][] leerPedidosUsuario(String matricula) {\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM totales where matricula = '\" + matricula + \"'\");\n \n while (result.next()) {\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[][] reporte = new String[cont][11];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM totales where matricula = '\" + matricula + \"'\");\n while (result.next()) {\n //leo los registros y los guardo cada uno en un renglon de la matriz \n reporte[cont][0] = result.getString(1);\n reporte[cont][1] = result.getString(2);\n reporte[cont][2] = result.getString(3);\n reporte[cont][3] = result.getString(4);\n reporte[cont][4] = result.getString(5);\n reporte[cont][5] = result.getString(6);\n reporte[cont][6] = result.getString(7);\n reporte[cont][7] = result.getString(8);\n reporte[cont][8] = result.getString(9);\n reporte[cont][9] = result.getString(10);\n reporte[cont][10] = result.getString(11);\n cont++;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return reporte;\n }", "public void buscarDatos() throws Exception {\r\n try {\r\n String parameter = lbxParameter.getSelectedItem().getValue()\r\n .toString();\r\n String value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n Map<String, Object> parameters = new HashMap();\r\n parameters.put(\"parameter\", parameter);\r\n parameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n getServiceLocator().getHospitalizacionService().setLimit(\r\n \"limit 25 offset 0\");\r\n\r\n List<Hospitalizacion> lista_datos = getServiceLocator()\r\n .getHospitalizacionService().listar(parameters);\r\n rowsResultado.getChildren().clear();\r\n\r\n for (Hospitalizacion hospitalizacion : lista_datos) {\r\n rowsResultado.appendChild(crearFilas(hospitalizacion, this));\r\n }\r\n\r\n gridResultado.setVisible(true);\r\n gridResultado.setMold(\"paging\");\r\n gridResultado.setPageSize(20);\r\n\r\n gridResultado.applyProperties();\r\n gridResultado.invalidate();\r\n gridResultado.setVisible(true);\r\n\r\n } catch (Exception e) {\r\n MensajesUtil.mensajeError(e, \"\", this);\r\n }\r\n }", "private void cuentaminas() {\n\t//TODO: falta por hacer que calcule lasminas en el borde exterior\n\t//Probar a hacerlo con un try catch\n\tint minas = 0;\n\n\tfor (int i = 0; i < filas; i++) {\n\t for (int j = 0; j < columnas; j++) {\n\t\t//\t1 2 3\n\t\t//\t4 X 5\n\t\t//\t6 7 8\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j - 1].getMina();//1\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j].getMina();//2\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j + 1].getMina();//3\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i][j - 1].getMina();//4\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i][j + 1].getMina();//5\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j - 1].getMina();//6 \t\t \n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j].getMina();//7\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j + 1].getMina();//8\n\t\t} catch (Exception e) {\n\t\t}\n\t\tarrayBotones[i][j].setNumeroMinasAlrededor(minas);\n\t\t//TODO: comentar la siguiente parte para que no aparezcan los numeros al iniciar\n//\t\tif (arrayBotones[i][j].getMina() == 0 && minas != 0) {\n//\t\t arrayBotones[i][j].setText(String.valueOf(minas));\n//\t\t}\n\t\tminas = 0;\n\t }\n\t}\n }", "public int cuantosParrafos() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas estrofas quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "public List<DadosDiariosVO> validaSelecionaAcumuladoDadosDiarios(String ano) {\n\n\t\tList<DadosDiariosVO> listaDadosDiarios = validaSelecionaDetalhesDadosDiarios(ano);\n\n\t\tList<DadosDiariosVO> listaFiltradaDadosDiarios = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoDiario = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoAcumulado = new ArrayList<DadosDiariosVO>();\n\n\t\t/* Ordena a lista em EMITIDOS;EMITIDOS CANCELADOS;EMITIDOS RESTITUIDOS */\n\n\t\tfor (int i = 0; i < listaDadosDiarios.size(); i++) {\n\t\t\tString dataParaComparacao = listaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\tfor (int j = 0; j < listaDadosDiarios.size(); j++) {\n\n\t\t\t\tif (dataParaComparacao.equals(listaDadosDiarios.get(j).getAnoMesDia())) {\n\t\t\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\t\t\tdados.setAnoMesDia(listaDadosDiarios.get(j).getAnoMesDia());\n\t\t\t\t\tdados.setProduto(listaDadosDiarios.get(j).getProduto());\n\t\t\t\t\tdados.setTipo(listaDadosDiarios.get(j).getTipo());\n\t\t\t\t\tdados.setValorDoDia(listaDadosDiarios.get(j).getValorDoDia());\n\n\t\t\t\t\tlistaFiltradaDadosDiarios.add(dados);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\touter: for (int i = listaFiltradaDadosDiarios.size() - 1; i >= 0; i--) {\n\t\t\tfor (int j = 0; j < listaFiltradaDadosDiarios.size(); j++) {\n\t\t\t\tif (listaFiltradaDadosDiarios.get(i).getAnoMesDia()\n\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getAnoMesDia())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getProduto()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getProduto())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getTipo()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getTipo())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getValorDoDia()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getValorDoDia())) {\n\t\t\t\t\tif (i != j) {\n\n\t\t\t\t\t\tlistaFiltradaDadosDiarios.remove(i);\n\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Ordena por data */\n\t\tCollections.sort(listaFiltradaDadosDiarios, DadosDiariosVO.anoMesDiaCoparator);\n\n\t\tString dataTemp = \"\";\n\t\tBigDecimal somaAcumulada = new BigDecimal(\"0.0\");\n\n\t\t/* abaixo a visao da faturamento de cada dia */\n\t\tDadosDiariosVO faturamentoDiario = new DadosDiariosVO();\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i <= listaFiltradaDadosDiarios.size(); i++) {\n\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\n\t\t\t\tif ((i != listaFiltradaDadosDiarios.size())\n\t\t\t\t\t\t&& dataTemp.equals(listaFiltradaDadosDiarios.get(i).getAnoMesDia())) {\n\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia()).add(somaAcumulada);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (listaFiltradaDadosDiarios.size() == i) {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t}\n\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia());\n\n\t\t\t\t\tfaturamentoDiario = new DadosDiariosVO();\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IndexOutOfBoundsException ioobe) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"VisãoExecutiva_Diaria_BO - método validaSelecionaAcumuladoDadosDiarios - adicionando dados fictícios...\");\n\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\tdados.setAnoMesDia(\"2015-10-02\");\n\t\t\tdados.setProduto(\"TESTE\");\n\t\t\tdados.setTipo(\"FATURAMENTO\");\n\t\t\tdados.setValorDoDia(\"0.0\");\n\t\t\tlistaFaturamentoDiario.add(dados);\n\t\t\tSystem.err.println(\"... dados inseridos\");\n\t\t}\n\n\t\t/* abaixo construimos a visao acumulada */\n\t\tBigDecimal somaAnterior = new BigDecimal(\"0.0\");\n\t\tint quantidadeDias = 0;\n\t\tfor (int i = 0; i < listaFaturamentoDiario.size(); i++) {\n\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(listaFaturamentoDiario.get(i).getValorDoDia());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(\n\t\t\t\t\t\tsomaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia())).toString());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\tUteis uteis = new Uteis();\n\t\tString dataAtualSistema = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date(System.currentTimeMillis()));\n\t\tString dataCut[] = dataAtualSistema.split(\"/\");\n\t\tString mes_SO;\n\t\tmes_SO = dataCut[1];\n\n\t\t/* BP */\n\t\tList<FaturamentoVO> listaBP = dadosFaturamentoDetalhado;\n\t\tint mes_SO_int = Integer.parseInt(mes_SO);\n\t\tString bpMes = listaBP.get(0).getMeses()[mes_SO_int - 1];\n\t\tint diasUteis = uteis.retornaDiasUteisMes(mes_SO_int - 1);\n\t\tBigDecimal bpPorDia = new BigDecimal(bpMes).divide(new BigDecimal(diasUteis), 6, RoundingMode.HALF_DOWN);\n\n\t\tBigDecimal somaAnteriorBp = new BigDecimal(\"0.0\");\n\t\tfor (int i = 0; i < quantidadeDias; i++) {\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(bpPorDia.toString());\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(somaAnteriorBp.toString());\n\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\treturn listaFaturamentoAcumulado;\n\t}", "public static ArrayList<Integer> estadisticasPorPotrero(String nombrePotrero) {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resess = PotreroCRUD.selectResesNormales(nombrePotrero);\n\n\t\tRes res = null;\n\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}", "public static String buscarTodosLosLibros() throws Exception{ //BUSCARtODOS no lleva argumentos\r\n //primero: nos conectamos a oracle con la clase conxion\r\n \r\n Connection con=Conexion.conectarse(\"system\",\"system\");\r\n //segundo: generamos un statemenr de sql con la conexion anterior\r\n Statement st=con.createStatement();\r\n //3: llevamos a cabo la consulta select \r\n ResultSet res=st.executeQuery(\"select * from persona\"); //reset arreglo enmutado de java estructura de datos\r\n System.out.println(\"depues del select\");\r\n int indice=0;\r\n ArrayList<persona> personas=new ArrayList<persona>();\r\n while(res.next()){ //del primero hasta el ultimo prod que vea SI PONGO SECUENCIA NO ENTRA AL WHILE\r\n Integer id= res.getInt(1); \r\n String nombre=res.getString(2);\r\n String empresa=res.getString(3);\r\n Integer edad=res.getInt(4);\r\n String telefono=res.getString(5);\r\n \r\n ///llenamos el arrayList en cada vuelta\r\n personas.add(new persona(id,nombre,empresa,edad,telefono));\r\n \r\n System.out.println(\"estoy en el array list despues del select\");\r\n }\r\n \r\n //el paso final, transformamos a objeto json con jackson\r\n ObjectMapper maper=new ObjectMapper(); //mapeo a objeto jackson\r\n \r\n st.close();\r\n con.close();\r\n System.out.println(\"convirtiendo el json\");\r\n return maper.writeValueAsString(personas);\r\n \r\n }", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "public void calcularEntropia(){\n //Verificamos si será con la misma probabilida o con probabilidad\n //especifica\n if(contadorEstados == 0){\n //Significa que será con la misma probabilidad por lo que nosotros\n //calcularemos las probabilidades individuales\n for(int i = 0; i < numEstados; i++){\n probabilidadEstados[i] = 1.0 / numEstados;\n }\n }\n for(int i = 0; i < numEstados; i++){\n double logEstado = Math.log10(probabilidadEstados[i]);\n logEstado = logEstado * (-1);\n double logDos = Math.log10(2);\n double divisionLog = logEstado / logDos;\n double entropiaTmp = probabilidadEstados[i] * divisionLog;\n resultado += entropiaTmp;\n }\n }", "public void realizaroperacionesdosvariables (ArrayList <String> funcion) {\n\n\t\tif(calculounavariable !=null) {\n\t\t\tcalculounavariable.clear();\n\t\t}\n\n\t\t//recorremos arraylist\n\t\tfor(int i=0; i<funcion.size();i++) {\n\n\t\t\t//recorremos cadena de arraylist\n\t\t//\tfor (int x =0; x<funcion.get(i).length();x++) {\n\n\t\t\t\t//recorremos cadena de arraylist otra vez, solo para evitar error al final\n\t\t\t\tfor (int x=0, z =1; z<funcion.get(i).length();z++, x++) {\n\t\t\t\t\t//validar posicion final para que no de error\n\t\t\t\t\tif (z == funcion.get(i).length()) {\n\t\t\t\t\t\tz-=1;\n\t\t\t\t\t}\n\t\t\t\t\tif (x == funcion.get(i).length()) {\n\t\t\t\t\t\tx-=1;\n\t\t\t\t\t}\n\n\t\t\t\t\t//chequear si tiene mas de dos operaciones\n\t\t\t\t\tif (String.valueOf(funcion.get(i).charAt(x)).equals(\" \")) {\n\t\t\t\t\t\tif(String.valueOf(funcion.get(i).charAt(z)).equals(\"0\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"1\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"2\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"3\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"4\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"5\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"6\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"7\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"8\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"9\") ) {\n\t\t\t\t\t\t\tcontadorespacios++;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//agregar a array de mas de dosvariables\n\t\t\t\tif (contadorespacios> 1) {\n\n\t\t\t\t\tStringTokenizer tokens = new StringTokenizer(funcion.get(i));\n\t\t\t\t\tString tokensignosoperacion = tokens.nextToken();\n\t\t\t\t\tint operando1;\n\t\t\t\t\tint operando2;\n\n\t\t\t\t\twhile (tokens.hasMoreTokens()) {\n\n\t\t\t\t\t\tString siguientetoken = tokens.nextToken();\n\n\t\t\t\t\t\t//Chequear si el siguiente token para saber si es otra operacion, si lo es empezar a realizar calculos\n\t\t\t\t\t\tif (siguientetoken.equals(\"+\")|| siguientetoken.equals(\"-\")|| siguientetoken.equals(\"*\")|| siguientetoken.equals(\"/\")) {\n\t\t\t\t\t\t\ttokensignosoperacion = siguientetoken;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//realizar operacion si es suma\n\t\t\t\t\t\tif (tokensignosoperacion.equals(\"+\")) {\n\n\t\t\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\t\t\tresultadocalculosperaciones += Double.parseDouble(siguientetoken);\n\n\t\t\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//realizar operacion si es resta\n\t\t\t\t\t\tif (tokensignosoperacion.equals(\"-\")) {\n\t\t\t\t\t\t\tint contador =0;\n\t\t\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\t\t\t\t//condicion para realizar resta y darle el primer valor que encuentre para que no reste por cero la primera vez\n\t\t\t\t\t\t\t\tif (contador<1) {\n\t\t\t\t\t\t\t\t\tresultadocalculosperaciones=Double.parseDouble(siguientetoken);\n\t\t\t\t\t\t\t\t\tcontador++;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresultadocalculosperaciones -= Double.parseDouble(siguientetoken);\n\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//realizar operacion si es multiplicacion\n\t\t\t\t\t\tif (tokensignosoperacion.equals(\"*\")) {\n\t\t\t\t\t\t\t//darle el valor de 1 para que la primera multiplicacion no sea 0\n\t\t\t\t\t\t\tresultadocalculosperaciones =1;\n\t\t\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\t\t\t\t\t\t\tresultadocalculosperaciones *= Double.parseDouble(siguientetoken);\n\n\t\t\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//realizar operacion si es division\n\t\t\t\t\t\tif (tokensignosoperacion.equals(\"/\")) {\n\t\t\t\t\t\t\tint contador=0;\n\t\t\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\t\t\t\t//condicion para realizar division y darle el primer valor que encuentre\n\t\t\t\t\t\t\t\tif (contador<1) {\n\t\t\t\t\t\t\t\t\tresultadocalculosperaciones=Double.parseDouble(siguientetoken);\n\t\t\t\t\t\t\t\t\tcontador++;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresultadocalculosperaciones /= Double.parseDouble(siguientetoken);\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//lista donde se van a almacenar los datos operados\n\t\t\t\t\tcalculounavariable.add(tokensignosoperacion + \" \"+String.valueOf(resultadocalculosperaciones));\n\t\t\t\t\tcontadorespacios=0;\n\t\t\t\t\tresultadocalculosperaciones=0;\n\n\t\t\t\t}\n\n\t\t\t\t//lista donde se van a almacenar si solo encuentra un dato para operar\n\t\t\t\telse {\n\t\t\t\t\tcalculounavariable.add(funcion.get(i));\n\t\t\t\t\tcontadorespacios=0;\n\t\t\t\t\tresultadocalculosperaciones=0;\n\n\t\t\t\t}\n\n\t\t}\n\t}", "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "public void buscarEvaluacion() {\n if (materiaSeleccionada && gradoSeleccionado && grupoSeleccionado) {\n\n cbox3Evaluacion.removeAllItems();\n cbox3Evaluacion.addItem(\"Seleccione una opción\");\n ControlEvaluacion evaluacion = new ControlEvaluacion();\n try {\n\n ResultSet consultarIdMateriadeEvaluacion = evaluacion.consultarIdMateriadeEvaluacion(cbox1Materia.getSelectedItem().toString());\n int idMateria = 0;\n while (consultarIdMateriadeEvaluacion.next()) {\n idMateria = Integer.parseInt(consultarIdMateriadeEvaluacion.getObject(1).toString());\n }\n\n ResultSet resultados = evaluacion.consultarNombre(idMateria, cbox4Grupo.getSelectedItem().toString(), Integer.parseInt(cbox2Grado.getSelectedItem().toString()));\n mostrarEvaluaciones(resultados);\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(InterfazConsultarCalificaciones.class.getName()).log(Level.SEVERE, null, ex);\n } catch (NumberFormatException | NullPointerException e) {\n }\n\n }\n\n }", "private void cargaComentarios() {\n\t\ttry{\n\t\t\t String Sjson= Utils.doHttpConnection(\"http://codigo.labplc.mx/~mikesaurio/taxi.php?act=pasajero&type=getcomentario&placa=\"+placa);\n\t\t JSONObject json= (JSONObject) new JSONTokener(Sjson).nextValue();\n\t\t JSONObject json2 = json.getJSONObject(\"message\");\n\t\t JSONObject jsonResponse = new JSONObject(json2.toString());\n\t\t JSONArray cast2 = jsonResponse.getJSONArray(\"calificacion\");\n\t\t\t ArrayList<ComentarioBean> arrayComenario= new ArrayList<ComentarioBean>();\n\t\t\t for (int i=0; i<cast2.length(); i++) {\n\t\t\t \tJSONObject oneObject = cast2.getJSONObject(i);\n\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t ComentarioBean\t comentarioBean = new ComentarioBean();\n\t\t\t\t\t\t\t comentarioBean.setComentario((String) oneObject.getString(\"comentario\"));\n\t\t\t\t\t\t\t Float calif =Float.parseFloat((String) oneObject.getString(\"calificacion\"));\n\t\t\t\t\t\t\t comentarioBean.setCalificacion(calif);\n\t\t\t\t\t\t\t comentarioBean.setId_facebook((String) oneObject.getString(\"id_face\"));\n\t\t\t\t\t\t\t comentarioBean.setFecha_comentario((String) oneObject.getString(\"hora_fin\"));\n\t\t\t\t\t\t\t arrayComenario.add(comentarioBean);\n\t\t\t\t\t\t\t sumaCalificacion+=calif;\n\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t }\n\t\t\t }\n\t\t\t autoBean.setArrayComentarioBean(arrayComenario);\n\t\t\t if(cast2.length()>0){\n\t\t\t \t float califParcial = (sumaCalificacion/cast2.length());\n\t\t\t \t PUNTOS_USUARIO =usuarioCalifica(califParcial); //(int) (califParcial * 20 /5);\n\t\t\t \t autoBean.setCalificacion_usuarios(califParcial);\n\t\t\t }else{\n\t\t\t \t autoBean.setCalificacion_usuarios(0);\n\t\t\t }\n\t\t\t}catch(JSONException e){\n\t\t\t\tDatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t}\n\t}", "private static void operacionesJugar() {\r\n\t\tjuego.actualizarJugadores(respuesta);\r\n\t\tJugadorM[] ganadores;\r\n\t\ttry {\r\n\t\t\tint before = juego.getNJugadoresActivos();\r\n\t\t\tganadores = juego.finalizarRonda();\r\n\t\t\tif (ganadores.length == 0) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == before) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == 1) {\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tFINhayGanador(ganadores[0]);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t} else {\r\n\t\t\t\tmostrarGanadoresRonda(ganadores);\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t}\r\n\t\t} catch (AllRondasCompleteException e) {\r\n\t\t\tFINtotalRondasAlcanzadas(e);\r\n\t\t}\r\n\t}", "public String darPista() {\r\n\t\tString msj = \"\";\r\n\t\tboolean fin = false;\r\n\t\tfor (int i = 0; i < casillas.length && !fin; i++) {\r\n\t\t\tfor (int j = 0; j < casillas[0].length && !fin; j++) {\t\t\r\n\t\t\t\tif(casillas[i][j].esMina() == false && casillas[i][j].darValor() > 0) {\r\n\t\t\t\t\tcasillas[i][j].destapar();\r\n\t\t\t\t\tmsj += i+\",\"+j;\r\n\t\t\t\t\tfin = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn msj;\r\n\t}", "public String[][] obtenerConsultasBusqueda(String nombre){\n //VARIABLES PARA ALMACENAR LOS DATOS DE LA BASE DE DATOS\n String[][] datos = new String[obtenerRegistrosBusqueda(nombre)][5];\n int i = 0;\n //SE INTENTA HACE LA CONEXION Y OBTENER LOS RSULTDOS\n try {\n //METODOS DE CONEXION\n Connection connect = getConnection();\n PreparedStatement ps;\n ResultSet res;\n \n //QUERY PARA OBTENER LOS VALORES\n ps = connect.prepareStatement(\"SELECT nombre, apellidos, incentivo, descuentos, total FROM personal INNER JOIN nomina ON personal.id = nomina.id WHERE nombre = ?\");\n ps.setString(1, nombre);\n res = ps.executeQuery();\n \n while (res.next()) {\n //SE ALMACENANAN LOS DATOS DE LA BASE DE DATOS EN EL ARREGLO\n datos[i][0] = res.getString(\"nombre\");\n datos[i][1] = res.getString(\"apellidos\");\n datos[i][2] = res.getString(\"incentivo\");\n datos[i][3] = res.getString(\"descuentos\");\n datos[i][4] = res.getString(\"total\");\n i++; \n }\n //SE CIERRA LA CONEXION Y SE RETORNAN LOS DATOS OBTENIDOS\n connect.close();\n return datos;\n }\n //EN CASO DE ERROR SE MUESTRA EL MENSAJE \n catch (Exception e) {\n System.out.println(\"error en resultado: \"+e);\n JOptionPane.showMessageDialog(null, \"Hubo un error:\"+e);\n return datos;\n }\n }", "public boolean excribirResultados(String nom, ArrayList<Resultado> resFinal) { \n objDate = new Date(); \n hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n String fecha = hourdateFormat.format(objDate);\n \n hourdateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH.mm.ss\");\n this.nombre = hourdateFormat.format(objDate) + \" \" +nom;\n try{\n file.abrirArchivo(nombre, true, false);\n file.escribirArchivo(fecha, true); \n file.escribirArchivo(encabezado, true);\n file.escribirArchivo(\"\", true);\n String nombreFun = resFinal.get(0).getFuncion();\n for (Resultado res : resFinal) { \n if(!nombreFun.equals(res.getFuncion())){\n file.escribirArchivo(\"\", true);\n nombreFun = res.getFuncion();\n }\n encabezado = organizarCadena(res);\n //escribir linea en el archivo\n file.escribirArchivo(encabezado, true); \n }\n file.escribirArchivo(\"\\n\", false); \n }catch(Exception e){\n System.out.println(\"error manipulando un archivo. ex = \" + e.getMessage());\n return false;\n }finally{\n // En el finally se cierra el fichero, para asegurarse que se cierra si todo va bien o si salta una excepcion.\n try{ \n if( null != file ){ \n file.cerrarArchivo();\n }\n }catch (Exception e2){ \n System.out.println(\"error cerando un archivo. ex = \" + e2.getMessage());\n return false;\n }\n }\n return true;\n }", "@Test\n public void testMediaPesada() {\n System.out.println(\"mediaPesada\");\n int[] energia = null;\n int linhas = 0;\n double nAlpha = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.mediaPesada(energia, linhas, nAlpha);\n if (result != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n\n assertArrayEquals(expResult, resultArray);\n\n }", "public void cadastrarOfertasQuad3(){\n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q3.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine();\n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(3);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas3LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n } \n }", "public String generarEstadisticasPorFacultad(String cualFacultad) {\n \n int contadorAlta = 0;\n String pAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n if(EmpleadosPrioridadAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorAlta += 1;\n pAltaEmpl += \"nombre: \" + EmpleadosPrioridadAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pAlta = \"Se encuentran \" + contadorAlta + \" Empleados en condicion Alta\\n\";\n if(EmpleadosPrioridadAlta.isEmpty() == false){\n pAlta += \"los cuales son:\\n\" + pAltaEmpl;\n }\n \n int contadorMAlta = 0;\n String pMAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n if(EmpleadosPrioridadMediaAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMAlta += 1;\n pMAltaEmpl += \"nombre: \" + EmpleadosPrioridadMediaAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMediaAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMAlta = \"Se encuentran \" + contadorMAlta + \" Empleados en condicion Media Alta\\n\";\n if(EmpleadosPrioridadMediaAlta.isEmpty() == false){\n pMAlta += \"los cuales son:\\n\" + pMAltaEmpl;\n }\n \n int contadorMedia = 0;\n String pMediaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n if(EmpleadosPrioridadMedia.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMedia += 1;\n pMediaEmpl += \"nombre: \" + EmpleadosPrioridadMedia.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMedia.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMedia = \"Se encuentran \" + contadorMedia + \" Empleados en condicion Media\\n\";\n if(EmpleadosPrioridadMedia.isEmpty() == false){\n pMedia += \"los cuales son:\\n\" + pMediaEmpl;\n }\n \n int contadorBaja = 0;\n String pBajaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n if(EmpleadosPrioridadBaja.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorBaja += 1;\n pBajaEmpl += \"nombre: \" + EmpleadosPrioridadBaja.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadBaja.get(i).getIdentificacion() + \"\\n\";\n }\n }\n String pBaja = \"Se encuentran \" + contadorBaja + \" Empleados en condicion Baja\\n\" ;\n if(EmpleadosPrioridadBaja.isEmpty() == false){\n pBaja += \"los cuales son:\\n\" + pBajaEmpl;\n }\n \n return \"En la facultad \" + cualFacultad + \" de la universidad del valle: \\n\"\n + pAlta + pMAlta + pMedia + pBaja;\n }", "private void tratarErrosIniciais(int quantidade, String[] nomes_jogadores, String[] cores_jogadores) throws Exception {\n if ((quantidade == 1) || (quantidade > 8)) {\n throw new Exception(\"Invalid number of players\");\n }\n\n\n if (this.hasNomeInvalido(nomes_jogadores)) {\n throw new Exception(\"Invalid player name\");\n }\n\n\n if (nomes_jogadores.length < quantidade) {\n throw new Exception(\"Too few player names\");\n }\n\n if (nomes_jogadores.length > quantidade) {\n throw new Exception(\"Too many player names\");\n }\n\n if (cores_jogadores.length < nomes_jogadores.length) {\n throw new Exception(\"Too few token colors\");\n }\n\n if (cores_jogadores.length > nomes_jogadores.length) {\n throw new Exception(\"Too many token colors\");\n }\n\n\n\n if (this.hasNomeRepetido(nomes_jogadores)) {\n throw new Exception(\"There mustn't be repeated player names\");\n }\n\n if (this.hasNomeRepetido(cores_jogadores)) {\n throw new Exception(\"There mustn't be repeated token colors\");\n }\n\n\n boolean cor_valida = true;\n for (int i = 0; i < cores_jogadores.length && cor_valida; i++) {\n if (!this.isCorPermitida(cores_jogadores[i])) {\n cor_valida = false;\n }\n }\n\n if (!cor_valida) {\n throw new Exception(\"Invalid token color\");\n }\n\n }", "public List<Object[]> getReporte(Reporteador reporteadorSeleccionado, Date fechaDesde, Date fechaHasta, int idSucursal)\r\n/* 266: */ throws AS2Exception, IllegalArgumentException, ArithmeticException\r\n/* 267: */ {\r\n/* 268:291 */ reporteadorSeleccionado = cargarDetalle(reporteadorSeleccionado.getId());\r\n/* 269:292 */ Map<Integer, BigDecimal> mapaValorVariables = new HashMap();\r\n/* 270: */ \r\n/* 271:294 */ List<Object[]> resultado = new ArrayList();\r\n/* 272:297 */ for (Iterator localIterator1 = reporteadorSeleccionado.getListaDetalleReporteadorVariable().iterator(); localIterator1.hasNext();)\r\n/* 273: */ {\r\n/* 274:297 */ detalle1 = (DetalleReporteadorVariable)localIterator1.next();\r\n/* 275:298 */ for (DetalleReporteadorVariable detalle2 : reporteadorSeleccionado.getListaDetalleReporteadorVariable()) {\r\n/* 276:299 */ if ((detalle2.isIndicadorFormula()) && \r\n/* 277:300 */ (detalle2.getExpresion().contains(detalle1.getCodigo()))) {\r\n/* 278:301 */ detalle2.getListaDetalleVariablesExpresion().add(detalle1);\r\n/* 279: */ }\r\n/* 280: */ }\r\n/* 281: */ }\r\n/* 282: */ DetalleReporteadorVariable detalle1;\r\n/* 283:307 */ resultado.addAll(getReporteRecursivo(reporteadorSeleccionado, null, fechaDesde, fechaHasta, idSucursal, 0, mapaValorVariables));\r\n/* 284: */ \r\n/* 285:309 */ return resultado;\r\n/* 286: */ }", "public void obtenerValorDePiezaEnPesosADolares() {\r\n\t\tdouble precio = this.pieza.getPrecioEn(Moneda.DOLAR);\r\n\t\tAssert.assertEquals(precio, 10);\r\n\t}", "public static void main(String[] args) {\n Scanner Misca = new Scanner (System.in);\r\n \r\n Integer edad; //Mayor a 0 y menos a 100\r\n Integer sueldo; //mayor a 0\r\n String sexo; //f o m\r\n String tipoAlumno; // C: Cursante - E: Egresado - L:Libre\r\n Integer temperatura; //-200 y +200\r\n String respuesta; //si o no\r\n \r\n System.out.println(\" Ingrese sueldo : \");\r\n sueldo=Misca.nextInt();\r\n \r\n while (sueldo>0){\r\n \r\n System.out.println(\" Error, reingrese sueldo : \");\r\n sueldo=Misca.nextInt();\r\n \r\n }\r\n \r\n System.out.println(\" Ingrese edad : \");\r\n edad=Misca.nextInt();\r\n \r\n while (edad<1 || edad>100 ){\r\n \r\n System.out.println(\" Error, reingrese la edad : \");\r\n edad=Misca.nextInt();\r\n \r\n }\r\n \r\n System.out.println(\" Ingrese la temperatura : \");\r\n temperatura = Misca.nextInt();\r\n \r\n while (temperatura<-200 || temperatura>200){\r\n \r\n System.out.println(\" Error, reingrese la temperatura : \");\r\n temperatura=Misca.nextInt();\r\n \r\n }\r\n \r\n System.out.println(\" Ingrese su sexo : \");\r\n sexo=Misca.next();\r\n \r\n while (!sexo.equalsIgnoreCase(\"f\") && !sexo.equalsIgnoreCase(\"m\")){\r\n \r\n System.out.println(\" Error, reingrese su sexo : \");\r\n sexo = Misca.next();\r\n sexo=sexo.toLowerCase();\r\n \r\n }\r\n \r\n System.out.println(\"Ingrese si es Cursante[C], libre [L] o egresado [E]\");\r\n tipoAlumno=Misca.next();\r\n \r\n while(!tipoAlumno.equalsIgnoreCase(\"c\") && !tipoAlumno.equalsIgnoreCase(\"l\") && !tipoAlumno.equalsIgnoreCase(\"e\"))\r\n {\r\n System.out.println(\"Error, re Ingrese si es Cursante[C], libre [L] o egresado [E]\");\r\n tipoAlumno=Misca.next();\r\n \r\n }\r\n \r\n System.out.println(\"Ingrese respuesta\");\r\n respuesta=Misca.next();\r\n \r\n while(!respuesta.equalsIgnoreCase(\"si\") && !respuesta.equalsIgnoreCase(\"no\"))\r\n {\r\n System.out.println(\"Error, re Ingrese respuesta\");\r\n respuesta=Misca.next();\r\n }\r\n }", "@Test\n public void testAnalisarMes() throws Exception {\n System.out.println(\"analisarMes\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarMes(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "public void publicarPropuestas() {\n try {\n //SISTEMA VERIFICA QUE LOS COMPROMISOS PARA EL PERIODO HAYAN SIDO INGRESADO\n if (this.listaCompromiso == null || this.listaCompromiso.isEmpty()) {\n //MUESTRA MENSAJE: 'DEBE INGRESAR LOS COMPROMISOS PARA PODER PUBLICAR ', NO ES POSIBLE PUBLICAR LOS RESULTADOS \n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_add_comprimiso_faltantes\"));\n return;\n }\n String mensajeValidacion = validarCompromisosPeriodoByPropuestaNacesidad(this.propuestaSeleccionada);\n if (mensajeValidacion != null) {\n addErrorMessage(keyPropertiesFactory.value(mensajeValidacion));\n return;\n }\n if (IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA.compareTo(this.propuestaSeleccionada.getConstantes().getIdConstantes()) != 0) {\n addErrorMessage(\"La propuesta debe estar en estado Pre-Aprobado\");\n return;\n }\n /*byte[] bitesPdf;\n //GENERAMOS EL REPORTE - CREADOR DE REPORTES\n try {\n HashMap mapa = new HashMap();\n mapa.put(\"p_id_periodo\", periodoSeleccionado.getIdPeriodo().intValue());\n bitesPdf = GeneradorReportesServicio.getInstancia().generarReporte(mapa, \"reporte15.jasper\");\n } catch (Exception e) {\n adicionaMensajeError(\"ERROR, Se presentaron errores al general el reporte JASPER\");\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, \"CU-NE-06(publicarPropuestas)\", e);\n return;\n }*/\n String iniciaCodigoVic = keyPropertiesFactory.value(\"cu_ne_6_codigo_proyecto_inicia_generacion\");\n if (iniciaCodigoVic.contains(\"-----NOT FOUND-----\")) {\n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_error_no_existe_codigo_proyecto_inicia_generacion\"));\n return;\n }\n //EL SISTEMA CAMBIA EL ESTADO DE TODAS LAS PROPUESTAS DEL LISTADO DE ''PRE-APROBADA ' A 'APROBADA' \n //Y LOS DE ESTADO 'REVISADA' A 'NO APROBADA' \n List<SieduPropuestaAsignada> lstPropuestaasignada = this.servicePropuestaAsignada.findByVigencia(this.propuestaSeleccionada);\n List<Long> lstLong = new ArrayList<>();\n for (SieduPropuestaAsignada s : lstPropuestaasignada) {\n lstLong.add(s.getPropuestaNecesidad().getIdPropuestaNecesidad());\n }\n Proyecto proyecto = new Proyecto();\n int contarProyecto = iProyectoLocal.contarProyectoByVigencia(lstLong);\n Constantes constantes = iConstantesLocal.getConstantesPorIdConstante(IConstantes.DURACION_PROYECTOS_INSTITUCIONALES);\n int numeroMesesEstimacionProyecto = Integer.parseInt(constantes.getValor());\n UsuarioRol usuarioRol = new UsuarioRol(loginFaces.getPerfilUsuarioDTO().getRolUsuarioPorIdRolDTO(IConstantesRole.EVALUADOR_DE_PROPUESTAS_DE_NECESIDADES_EN_LA_VICIN).getIdUsuarioRol());\n if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA)) {\n EjecutorNecesidad ejecutorNecesidadResponsable = iEjecutorNecesidadLocal.getEjecutorNecesidadPorPropuestaNecesidadYRolResponsable(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n if (ejecutorNecesidadResponsable == null || ejecutorNecesidadResponsable.getUnidadPolicial() == null || ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica() == null) {\n addErrorMessage(\"Error, Verifique la sigla física de la Unidad Policial asociada a la propuesta: \" + this.propuestaSeleccionada.getTema());\n return;\n }\n\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_APROBADA));\n //POR CADA PROPROPUESTA APROBADA SE CREA UN PROYECTO\n //CREA UN PROYECTO DE INVESTIGACIÓN POR CADA PROPUESTA CON EL ESTADO 'APROBADA', \n //ASIGNÁNDOLE EL CÓDIGO DE INVESTIGACIÓN DE ACUERDO AL MÉTODO ESTABLECIDO(VER REQUERIMIENTOS ESPECIALES), \n //ASIGNÁNDOLE EL ÁREA Y LA LÍNEA DE INVESTIGACIÓN Y EL TEMA PROPUESTO COMO TITULO PROPUESTO\n //VIC - [Consecutivo de proyectos en el periodo][Año]- [Código interno de la Unidad Policial o Escuela]\n String codigoInternoUnidad = ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica();\n String codigoProyecto = iniciaCodigoVic.concat(\"-\");//VIC \n contarProyecto += 1;\n codigoProyecto = codigoProyecto.concat(String.valueOf(contarProyecto));//[Consecutivo de proyectos en el periodo]\n codigoProyecto = codigoProyecto.concat(String.valueOf(lstPropuestaasignada.get(0).getSieduPropuestaAsignadaPK().getVigencia()));//[Año]\n codigoProyecto = codigoProyecto.concat(\"-\");\n codigoProyecto = codigoProyecto.concat(codigoInternoUnidad);//[Código interno de la Unidad Policial o Escuela]\n Date fechaHoy = new Date();\n proyecto.setCodigoProyecto(codigoProyecto);\n proyecto.setLinea(this.propuestaSeleccionada.getLinea());\n proyecto.setTituloPropuesto(this.propuestaSeleccionada.getTema());\n proyecto.setTema(this.propuestaSeleccionada.getTema());\n proyecto.setPeriodo(this.propuestaSeleccionada.getPeriodo());\n proyecto.setUsuarioRol(usuarioRol);\n proyecto.setEstado(new Constantes(IConstantes.TIPO_ESTADO_PROYECTO_EN_EJECUCION));\n proyecto.setUnidadPolicial(ejecutorNecesidadResponsable.getUnidadPolicial());\n proyecto.setPropuestaNecesidad(this.propuestaSeleccionada);\n proyecto.setFechaEstimadaInicio(fechaHoy);\n Calendar fechaFinalEstimadaProyecto = Calendar.getInstance();\n fechaFinalEstimadaProyecto.setTime(fechaHoy);\n fechaFinalEstimadaProyecto.add(Calendar.MONTH, numeroMesesEstimacionProyecto);\n proyecto.setFechaEstimadaFinalizacion(fechaFinalEstimadaProyecto.getTime());\n proyecto.setFechaActualizacion(fechaHoy);\n //CREAMOS LOS COMPROMISOS PROYECTOS\n List<CompromisoProyecto> listaCompromisosProyecto = new ArrayList<CompromisoProyecto>();\n //CONSULTAMOS LOS COMPROMISOS DE ESTE PERIODO\n List<CompromisoPeriodo> listaComprimiso = iCompromisoPeriodoLocal.buscarCompromisoPeriodoByIdPropuestaNecesidad(this.propuestaSeleccionada);\n for (CompromisoPeriodo unCompromisoPeriodo : listaComprimiso) {\n CompromisoProyecto compromisoProyecto = new CompromisoProyecto();\n compromisoProyecto.setCompromisoPeriodo(unCompromisoPeriodo);\n compromisoProyecto.setProyecto(proyecto);\n compromisoProyecto.setEstado(new Constantes(IConstantes.ESTADO_COMPROMISO_PROYECTO_PENDIENTE));\n compromisoProyecto.setFechaCreacion(new Date());\n compromisoProyecto.setMaquina(loginFaces.getPerfilUsuarioDTO().getMaquinaDTO().getIpLoginRemotoUsuario());\n compromisoProyecto.setUsuarioRegistro(loginFaces.getPerfilUsuarioDTO().getIdentificacion());\n compromisoProyecto.setUsuarioRolRegistra(usuarioRol);\n listaCompromisosProyecto.add(compromisoProyecto);\n }\n //CREAMOS LAS UNIDADES EJECUTORAS PARA EL PROYECTO\n List<EjecutorNecesidadDTO> listadoEjecutorNecesidadDTOPropuesta = iEjecutorNecesidadLocal.getEjecutorNecesidadDTOPorPropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n List<EjecutorNecesidad> listaEjecutorNecesidadProyecto = new ArrayList<EjecutorNecesidad>();\n for (EjecutorNecesidadDTO unaEjecutorNecesidadDTO : listadoEjecutorNecesidadDTOPropuesta) {\n EjecutorNecesidad ejecutorNecesidadLocal = new EjecutorNecesidad();\n ejecutorNecesidadLocal.setPropuestaNecesidad(new PropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad()));\n ejecutorNecesidadLocal.setProyecto(proyecto);\n ejecutorNecesidadLocal.setRol(new Constantes(unaEjecutorNecesidadDTO.getIdRol()));\n ejecutorNecesidadLocal.setUnidadPolicial(this.iUnidadPolicialLocal.obtenerUnidadPolicialPorId(unaEjecutorNecesidadDTO.getIdUnidadPolicial()));\n listaEjecutorNecesidadProyecto.add(ejecutorNecesidadLocal);\n }\n proyecto.setEjecutorNecesidadList(listaEjecutorNecesidadProyecto);\n proyecto.setCompromisoProyectoList(listaCompromisosProyecto);\n\n } else if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(\n IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_REVISADA)) {\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_NO_APROBADA));\n }\n\n //ACTUALIZAMOS EL CAMPO ROL_ACTUAL\n //CON EL OBJETIVO SE SABER EN DONDE SE ENCUENTRA LA PROPUESTA\n //ESTO SE REALIZA PARA CORREGIR \n //LA INCIDENCIA #0002754: Mientras no se publiquen los resultados de las necesidades, el estado debe ser 'Enviada a VICIN'.\n this.propuestaSeleccionada.setRolActual(IConstantes.PROPUESTA_NECESIDAD_PUBLICADA_JEFE_UNIDAD);\n /* \n\n //GENERAMOS EL NOMBRE DEL ARCHIVO DEL REPORTE\n String nombreReporteUnico = \"PROP_NECES_PERIODO\".concat(\"_\").concat(String.valueOf(System.currentTimeMillis())).concat(\".pdf\");\n String nombreReporte = \"PROP_NECES_PERIODO_\" + (periodoSeleccionado.getAnio() == null ? periodoSeleccionado.getIdPeriodo().toString() : periodoSeleccionado.getAnio().toString()) + \".pdf\";\n */\n //SE ACTUALIZAN LAS PROPUESTAS DE NECESIDAD\n servicePropuestaNecesidad.guardarPropuestaYgenerarProyecto(\n this.propuestaSeleccionada,\n proyecto);\n\n addInfoMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_propuestas_actualizadas_ok_publicar\"));\n\n navigationFaces.redirectFacesCuNe01();\n\n } catch (Exception e) {\n\n addErrorMessage(keyPropertiesFactory.value(\"general_mensaje_error_exception\"));\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE,\n \"CU-NE-06 Evaluar propuestas de necesidades de investigación - (publicarPropuestas)\", e);\n\n }\n\n }", "public static void main(String[] args) {\n ArrayList<Persona> cola = new ArrayList<>();\r\n \r\n generarCola(cola);\r\n \r\n //Creamos variables que nos seran útiles\r\n double recaudacion;\r\n double recaudacionTotal=0;\r\n Persona espectadorActual;\r\n int edadActual;\r\n int contadorPersonas=0;\r\n \r\n //Creamos el iterator\r\n Iterator<Persona> it=cola.iterator();\r\n \r\n \r\n //Recorremos la cola\r\n while(it.hasNext()){\r\n \r\n espectadorActual=it.next();\r\n \r\n //\"Atendemos\" al espectador para que pague\r\n edadActual=espectadorActual.getEdad();\r\n \r\n //Comprobamosla edad\r\n if(edadActual>=5 && edadActual<=10) { \r\n \trecaudacion=1; \r\n } else if(edadActual>=11 && edadActual<=17) {\r\n \trecaudacion=2.5;\r\n } else {\r\n \trecaudacion=3.5;\r\n }\r\n contadorPersonas++;\r\n recaudacionTotal+=recaudacion;\r\n \r\n System.out.println(\"Una persona de \"+edadActual+\" años se le ha cobrado \" +recaudacion+ \" euros\");\r\n \r\n }\r\n \r\n //Mostramos el resultado\r\n System.out.println(\"La recaudación es de \"+recaudacionTotal+\" euros y han venido \"+contadorPersonas);\r\n \r\n }", "public ArrayList<String> ExcutarCalculo(ArrayList<String> linha, String tipo){\n ArrayList<String> cod = new ArrayList();\n String reg, rv1, rv2;\n \n /*Verifica se a variavel tem registrador*/\n reg = r.getRegistrador(linha.get(0));\n if(linha.size() == 3){//x = n\n rv1 = r.getRegistrador(linha.get(2));//Verifica se é variavel\n \n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n } \n \n if(rv1 == null)\n cod.add(\"load \"+reg+\", \"+linha.get(2));\n else\n cod.add(\"load \"+reg+\", \"+rv1);\n }else{\n ArrayList<String> aux = new ArrayList();\n String[] ordem = new String[100];\n String [][]operador = {{\"(\",\"\"},{\"*\",\"mult\"},{\"/\",\"div\"},{\"+\",\"add\"},{\"-\",\"sub\"}};\n String []temp = {\"ra\",\"rb\",\"rc\",\"rd\",\"re\",\"rf\"};\n Boolean ctr = false;\n int i, j, k, tl, ctrTemp, r1, r2, pos;\n \n for(i = 0; i < 100; i++){\n ordem[i] = \"\";\n } \n \n tl = ctrTemp = 0;\n for(i = 0; i < 5; i++){\n for(j = 0; j < linha.size(); j++){\n if(linha.get(j).contains(operador[i][0])){\n if(i == 0){\n /* min = verificaRegistradores(linha.get(j+1),linha.get(j+3),temp);\n \n if(min == -1){\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t1\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+3);//Carrega val no registrador t2\n }\n \n \n for(k = 0; k < 5; k++){\n if(linha.get(j+2).contains(operador[k][0])){ \n if(operador[k][1].equals(\"add\")){\n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n }\n \n k = 5;\n }\n }\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3 por conta de reuso\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n \n for(k = 0; k < 5; k++)//( ate )\n linha.remove(j);\n linha.add(j,temp[ctrTemp-2]);\n \n if(min == -1)\n ctrTemp -= 1;\n else\n ctrTemp = 0;*/\n }else{\n rv1 = r.getRegistrador(linha.get(j-1));\n rv2 = r.getRegistrador(linha.get(j+1));\n \n r1 = verificaRegistradores(linha.get(j-1),temp);\n if(r1 == -1){//Nenhum registrador\n if(rv1 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j-1);//Carrega val no registrador t1\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv1;\n }\n r2 = verificaRegistradores(linha.get(j+1),temp);\n if(r2 == -1){//Nenhum registrador\n if(rv2 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t2\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv2;//Carrega val no registrador t2\n } \n \n pos = ctrTemp;//como posso entrar no mult ou no add\n if(operador[i][1].equals(\"mult\") || operador[i][1].equals(\"div\")){\n ctrTemp -= 2;\n \n if(operador[i][1].equals(\"mult\")){\n aux = mult(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }else\n if(operador[i][1].equals(\"div\")){\n aux = div(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }\n \n tl -= 2;\n for(k = 0; k < aux.size(); k++){\n ordem[tl++] = aux.get(k);\n }\n pos = ctrTemp-1;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n /*else\n ctrTemp -= 1;*/\n }else\n if(operador[i][1].equals(\"add\") || operador[i][1].equals(\"sub\")){\n if(operador[i][1].equals(\"sub\")){\n ordem[tl-1] = \"load \"+temp[ctrTemp-1]+\", -\"+linha.get(j+1);\n }\n \n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n pos = ctrTemp-2;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n else\n ctrTemp -= 1;\n }\n \n for(k = 0; k < 3; k++)\n linha.remove(j-1);\n linha.add(j-1,temp[pos]);\n }\n ctr = true;//Faz repetir denovo caso adicione;\n }\n }\n if(ctr){\n i--;//Controla pra só sair quando tiver excluido todas operacoes desse tipo\n ctr = false;\n }\n }\n for(k = 0; k < tl; k++){\n cod.add(ordem[k]);\n }\n\n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n }\n cod.add(\"move \"+reg+\", \"+temp[ctrTemp-1]);\n ctrTemp = 0;\n }\n \n return cod;\n }", "public static String[][] acomodamiento(char direccion, String[][] cuadricula) {\n int numeroA;\n int espacios;\n for (int fila = 0; fila < 4; fila++) {\n\n for (int columna = 0; columna < 4; columna++) {\n\n switch (direccion) {\n case 'w':\n /*Creamos una condicion que empezara a mover los numeros si la posicion en esa parte\n de la matriz no esta vacia, cuando la encuentra mueve desde esa posicion hacia arriba\n del cuadro y si se encuentra alguna parte igual la suma , si esta vacia la remplaza y si no se queda igual\n */\n if (cuadricula[columna][fila].equals(\" \") == false) {\n for (int vecesMovimiento = columna; vecesMovimiento > 0; vecesMovimiento--) {\n //Verigica si hay un numero igual arriba suyo para sumarse\n if (cuadricula[vecesMovimiento][fila].equals(cuadricula[vecesMovimiento - 1][fila])) {\n /* Como los numeros son iguales se toma uno, se convierte el string de esa parte de la cuadricula a\n numeroA la duplica y se la agrega a la posicion de arriba\n */\n numeroA = Integer.parseInt(cuadricula[vecesMovimiento][fila].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[vecesMovimiento - 1][fila] = Integer.toString(numeroA);\n /* desde la parte de espacios = 4 - cuadricula[vecesMovimiento-1]... hasta el for solo es el numero de espacios agregados al numero que dara\n para que se mantenga posicionado junto con la cuadricula\n */\n espacios = 4 - cuadricula[vecesMovimiento - 1][fila].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[vecesMovimiento - 1][fila] += \" \";\n }\n cuadricula[vecesMovimiento][fila] = \" \";\n } //Condicion que indica si hay un espacio vacio en una posicion arriba la sustituye la de abajo\n else if (cuadricula[vecesMovimiento - 1][fila].equals(\" \")) {\n cuadricula[vecesMovimiento - 1][fila] = cuadricula[vecesMovimiento][fila];\n cuadricula[vecesMovimiento][fila] = \" \";\n }\n }\n }\n break;\n\n case 's':\n /*Creamos una condicion que empezara a mover los numeros si la posicion en esa parte\n de la matriz no esta vacia,tomando en cuenta que inicia a contar de abajo para arriba, cuando la encuentra mueve\n desde esa posicion hacia abajo del cuadro y si se encuentra alguna parte igual la suma , si esta vacia la remplaza y si no se queda igual\n */\n if (cuadricula[3 - columna][fila].equals(\" \") == false) {\n //Empezamos el ciclo en una posicion de abajo de la matriz\n // llegaremos hasta 2 ya que sigue comparando con una posicion abajo extra gracias al +1\n for (int vecesMovimiento = 3 - columna; vecesMovimiento < 3; vecesMovimiento++) {\n /* Como los numeros son iguales se toma uno, se convierte el string de esa parte de la cuadricula a\n numeroA la duplica y se la agrega a la posicion de abajo\n */\n if (cuadricula[vecesMovimiento][fila].equals(cuadricula[vecesMovimiento + 1][fila])) {\n numeroA = Integer.parseInt(cuadricula[vecesMovimiento][fila].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[vecesMovimiento + 1][fila] = Integer.toString(numeroA);\n /* desde la parte de espacios = 4 - cuadricula[vecesMovimiento-1]... hasta el for solo es el numero de espacios agregados al numero que dara\n para que se mantenga posicionado junto con la cuadricula\n */\n espacios = 4 - cuadricula[vecesMovimiento + 1][fila].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[vecesMovimiento + 1][fila] += \" \";\n }\n cuadricula[vecesMovimiento][fila] = \" \";\n } //Condicion que indica si hay un espacio vacio en una posicion abajo la sustituye la de arriba\n else if (cuadricula[vecesMovimiento + 1][fila].equals(\" \")) {\n cuadricula[vecesMovimiento + 1][fila] = cuadricula[vecesMovimiento][fila];\n cuadricula[vecesMovimiento][fila] = \" \";\n }\n }\n }\n break;\n\n case 'a':\n /*Creamos una condicion que empezara a mover los numeros si la posicion en esa parte\n de la matriz no esta vacia,tomando en cuenta que inicia a contar de izquierda a derecha, cuando la encuentra mueve\n desde esa posicion hacia la izquierda del cuadro y si se encuentra alguna parte igual la suma , si esta vacia la remplaza y si no se queda igual\n */\n if (cuadricula[fila][columna].equals(\" \") == false) {\n //Empezamos el ciclo en una posicion de la izquierda de la matriz, es decir inicializada en 0\n for (int vecesMovimiento = columna; vecesMovimiento > 0; vecesMovimiento--) {\n /* Como los numeros son iguales se toma uno, se convierte el string de esa parte de la cuadricula a\n numeroA la duplica y se la agrega a la posicion de izquierda\n */\n if (cuadricula[fila][vecesMovimiento].equals(cuadricula[fila][vecesMovimiento - 1])) {\n numeroA = Integer.parseInt(cuadricula[fila][vecesMovimiento].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[fila][vecesMovimiento - 1] = Integer.toString(numeroA);\n espacios = 4 - cuadricula[fila][vecesMovimiento - 1].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[fila][vecesMovimiento - 1] += \" \";\n }\n cuadricula[fila][vecesMovimiento] = \" \";\n } //Condicion que indica si hay un espacio vacio en una posicion izquierda la sustituye la de derecha\n else if (cuadricula[fila][vecesMovimiento - 1].equals(\" \")) {\n cuadricula[fila][vecesMovimiento - 1] = cuadricula[fila][vecesMovimiento];\n cuadricula[fila][vecesMovimiento] = \" \";\n }\n }\n }\n break;\n\n //Lo mismo establecido pero orientado a la derecha, y en lugar del -1 de los vectores lo pasamos como +1 siguiendo la estructura\n //de la opcion 's'\n case 'd':\n if (cuadricula[fila][3 - columna].equals(\" \") == false) {\n for (int vecesMovimiento = 3 - columna; vecesMovimiento < 3; vecesMovimiento++) {\n if (cuadricula[fila][vecesMovimiento].equals(cuadricula[fila][vecesMovimiento + 1])) {\n numeroA = Integer.parseInt(cuadricula[fila][vecesMovimiento].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[fila][vecesMovimiento + 1] = Integer.toString(numeroA);\n espacios = 4 - cuadricula[fila][vecesMovimiento + 1].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[fila][vecesMovimiento + 1] += \" \";\n }\n cuadricula[fila][vecesMovimiento] = \" \";\n } else if (cuadricula[fila][vecesMovimiento + 1].equals(\" \")) {\n cuadricula[fila][vecesMovimiento + 1] = cuadricula[fila][vecesMovimiento];\n cuadricula[fila][vecesMovimiento] = \" \";\n }\n }\n }\n break;\n\n }\n\n }\n }\n return cuadricula;\n }", "public void main(String[] args) {\n \n Scanner entrada = new Scanner(System.in); \n String nombre;\n \n System.out.println(\"¿Cual es tu Nombre? \");\n nombre = entrada.nextLine();\n mensaje(nombre);\n \n \n \n imprimir(28, 12);\n imprimir(67, 6);\n imprimir(84, 16);\n imprimir(57, 23);\n imprimir(92, 12);\n \n \n\n \n int resultado=sumar(1, 2);\n System.out.println(\n concatenar(\"El resultado es\", \"\" +resultado));\n \n int resultado2= sumar(sumar(1, 2), 7);\n\n boolean mayor= comprobar(resultado2);\n \nif(comprobar(resultado2))\n System.out.println(\"Es mayor\");\n else\n System.out.println(\"No es mayor\");\n}", "public DatosIteracion mejorIteracionCapturados(\r\n\t\t\tArrayList<DatosIteracion> datos) {\r\n\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() < datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() == datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() == datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() == datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t\t.getnNodos() <= datos\r\n\t\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t\t.getnNodos()) {\r\n\r\n\t\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "private ArrayList limpiar() {//quita espacios en blanco y saltos de linea\n String codigoFuente = ta_source.getText();\n ArrayList retorno = new ArrayList();\n try {\n codigoFuente = codigoFuente.replaceAll(\" \", \"\");\n String aux = \"\";\n byte guardaLinea = 1, guardaBloque = 1;\n for (int i = 0; i < codigoFuente.length(); i++) {\n if (codigoFuente.length() > (i + 1) && codigoFuente.charAt(i) == '/' && codigoFuente.charAt(i + 1) == '/' && guardaBloque == 1) {\n guardaLinea = 0;//0: no guarda\n }\n if (codigoFuente.length() > (i + 1) && codigoFuente.charAt(i) == '/' && codigoFuente.charAt(i + 1) == '*' && guardaLinea == 1) {\n guardaBloque = 0;//0: no guarda\n }\n if (i > 0 && codigoFuente.charAt(i) == '/' && codigoFuente.charAt(i - 1) == '*') {\n guardaBloque = 2;//1: si guarda\n }\n if (codigoFuente.charAt(i) == '\\n' && guardaBloque == 1) {\n guardaLinea = 1;//1: si guarda\n if (aux.length() > 0) {\n retorno.add(aux);\n aux = \"\";\n }\n } else {\n if (i == codigoFuente.length() - 1) {\n aux += codigoFuente.charAt(i);\n retorno.add(aux);\n }\n }\n if (guardaBloque == 1 && guardaLinea == 1 && codigoFuente.charAt(i) != '\\n') {\n aux += codigoFuente.charAt(i);\n }\n if (guardaBloque == 2) {\n guardaBloque--;\n }\n }\n } catch (Exception e) {\n System.out.println(\"errror \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parametro = lbxParametros.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tlbTotal_admisiones.setValue(\"\");\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (!value.isEmpty()) {\n\t\t\t\tif (parametro.equals(\"paramTodo\")) {\n\t\t\t\t\tparameters.put(\"paramTodo\", \"paramTodo\");\n\t\t\t\t\tparameters.put(\"value\", value);\n\t\t\t\t} else {\n\t\t\t\t\tparameters.put(parametro, value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tparameters.put(\"atendida\", chkFiltro_atendidas.isChecked());\n\t\t\tparameters.put(\"estado\", \"1\");// Estado 1 significa que esta activa\n\n\t\t\tif (lbxVias_ingreso.getSelectedItems().size() > 0\n\t\t\t\t\t|| chkFiltro_incluir_hosp.isChecked()\n\t\t\t\t\t|| chkFiltro_incluir_urgencia.isChecked()) {\n\t\t\t\tList<String> listado_vias = new ArrayList<String>();\n\t\t\t\tfor (Listitem listitem : lbxVias_ingreso.getSelectedItems()) {\n\t\t\t\t\tlistado_vias.add((String) listitem.getValue());\n\t\t\t\t}\n\n\t\t\t\t// incluimos las areas\n\t\t\t\tif (chkFiltro_incluir_hosp.isChecked()) {\n\t\t\t\t\tlistado_vias.add(IVias_ingreso.HOSPITALIZACIONES);\n\t\t\t\t}\n\n\t\t\t\tif (chkFiltro_incluir_urgencia.isChecked()) {\n\t\t\t\t\tlistado_vias.add(IVias_ingreso.URGENCIA);\n\t\t\t\t}\n\n\t\t\t\tbtnFiltro_ingreso.setImage(\"/images/filtro1.png\");\n\t\t\t\tparameters.put(\"vias_ingreso\", listado_vias);\n\t\t\t} else {\n\t\t\t\tbtnFiltro_ingreso.setImage(\"/images/filtro.png\");\n\t\t\t\tList<String> vias_ingreso = new ArrayList<String>();\n\t\t\t\tvias_ingreso.add(IVias_ingreso.HOSPITALIZACIONES);\n\t\t\t\tvias_ingreso.add(IVias_ingreso.URGENCIA);\n\t\t\t\tparameters.put(\"vias_ingreso_excluyentes\", vias_ingreso);\n\t\t\t}\n\n\t\t\tif (dtbxFecha_inicial.getValue() != null\n\t\t\t\t\t&& dtbxFecha_final.getValue() != null) {\n\t\t\t\tif (dtbxFecha_inicial.getValue().compareTo(\n\t\t\t\t\t\tdtbxFecha_final.getValue()) > 0) {\n\t\t\t\t\tthrow new ValidacionRunTimeException(\n\t\t\t\t\t\t\t\"La fecha inicial en la busqueda no puede ser mayor a la fecha final\");\n\t\t\t\t}\n\t\t\t\tparameters.put(\"fecha_inicial_p\", new Timestamp(\n\t\t\t\t\t\tdtbxFecha_inicial.getValue().getTime()));\n\t\t\t\tparameters.put(\"fecha_final_p\", new Timestamp(dtbxFecha_final\n\t\t\t\t\t\t.getValue().getTime()));\n\t\t\t} else if (dtbxFecha_inicial.getValue() != null) {\n\t\t\t\tparameters.put(\"fecha_inicial_p\", new Timestamp(\n\t\t\t\t\t\tdtbxFecha_inicial.getValue().getTime()));\n\t\t\t} else if (dtbxFecha_final.getValue() != null) {\n\t\t\t\tparameters.put(\"fecha_final_p\", new Timestamp(dtbxFecha_final\n\t\t\t\t\t\t.getValue().getTime()));\n\t\t\t}\n\n\t\t\tAdministradora administradora = bandboxAseguradora\n\t\t\t\t\t.getRegistroSeleccionado();\n\n\t\t\tif (administradora != null) {\n\t\t\t\tparameters.put(\"codigo_administradora\",\n\t\t\t\t\t\tadministradora.getCodigo());\n\t\t\t\tif (lbxContratos.getSelectedIndex() != 0) {\n\t\t\t\t\tContratos contratos = (Contratos) lbxContratos\n\t\t\t\t\t\t\t.getSelectedItem().getValue();\n\t\t\t\t\tparameters.put(\"id_plan\", contratos.getId_plan());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tList<String> listado_centros = new ArrayList<String>();\n\t\t\tif (!lbxCentros_atencion.getSelectedItems().isEmpty()) {\n\t\t\t\tfor (Listitem listitem : lbxCentros_atencion.getSelectedItems()) {\n\t\t\t\t\tCentro_atencion centro_atencion = (Centro_atencion) listitem\n\t\t\t\t\t\t\t.getValue();\n\t\t\t\t\tlistado_centros.add(centro_atencion.getCodigo_centro());\n\t\t\t\t}\n\t\t\t\tbtnFiltro_centros.setImage(\"/images/filtro1.png\");\n\t\t\t\tparameters.put(\"listado_centros\", listado_centros);\n\t\t\t} else {\n\t\t\t\tbtnFiltro_centros.setImage(\"/images/filtro.png\");\n\t\t\t}\n\t\t\tpopupViasIngreso.close();\n\t\t\tpopupCentros_atencion.close();\n\n\t\t\t// for (String key_map : parameters.keySet()) {\n\t\t\t// log.info(key_map + \" ===> \" + parameters.get(key_map));\n\t\t\t// }\n\n\t\t\tList<Admision> lista_datos = admisionService\n\t\t\t\t\t.listarResultados(parameters);\n\t\t\tlistboxResultado.getItems().clear();\n\n\t\t\tfor (Admision admision : lista_datos) {\n\t\t\t\tlistboxResultado.appendChild(crearFilas(admision, this));\n\t\t\t}\n\n\t\t\tlbTotal_admisiones.setValue(lista_datos.size() + \"\");\n\n\t\t\tlistboxResultado.setVisible(true);\n\t\t\t// listboxResultado.setMold(\"paging\");\n\t\t\t// listboxResultado.setPageSize(20);\n\n\t\t\tlistboxResultado.applyProperties();\n\t\t\tlistboxResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void procesar(List instruccion, List<?> tempIns) {\n\t\tList<Object> list;\n\t\tfor (int i=0; i<tempIns.size(); i++) {\n instruccion = null;\n if(tempIns.get(i).getClass()==(ArrayList.class)){\n instruccion = (List<?>) tempIns.get(i);\n }\n else if(tempIns.getClass() == ArrayList.class){\n \tinstruccion = tempIns;\n \n }\n else if(tempIns.get(i).getClass()==String.class){\n instruccion = Arrays.asList(tempIns.toString().split(\" \"));\n \n }\n else{\n instruccion = tempIns;\n }\n \n System.out.println(\"Instruccion \" + instruccion);\n \n if (instruccion.contains(\"-\") || instruccion.contains(\"/\") || instruccion.contains(\"*\") || instruccion.contains(\"+\")){\n \t\n OperacionesAritmeticas calculator = new OperacionesAritmeticas();\n System.out.println(\"Resultado: \" + calculator.calcular(instruccion));\n break;\n \n } else if (instruccion.contains(\"list\")){\n \t\n list = new Evaluaciones().list(instruccion.subList(1, instruccion.size()));\n System.out.println(\"Lista Creada: \" +list);\n \n } else if (instruccion.contains(\"equal\")){\n \t\n if( (new Evaluaciones()).equals(instruccion.get(1), instruccion.get(2))){\n System.out.print(\"Resultado: Verdadero, \" + instruccion.get(1) + \" es igual que \" + instruccion.get(2));\n }\n else{\n System.out.print(\"Resultado: Falso, \" + instruccion.get(1) + \" No es igual que \" + instruccion.get(2));\n }\n \n } else if (instruccion.contains(\">\")){\n \t\n if( (new Evaluaciones()).Mayor(instruccion.get(1), instruccion.get(2))){\n System.out.print(\"Resultado: Verdadero, \" + instruccion.get(1) + \" es mayor que \" + instruccion.get(2));\n }\n else{\n System.out.print(\"Resultado: Falso, \" + instruccion.get(1) + \" NO es mayor que \" + instruccion.get(2));\n }\n \n } else if (instruccion.contains(\"<\")){\n \t\n if( (new Evaluaciones()).Menor(instruccion.get(1), instruccion.get(2))){\n System.out.print(\"Resultado: Verdadero, \" + instruccion.get(1) + \" es menor que \" + instruccion.get(2));\n }\n else{\n System.out.print(\"Resultado: Falso, \" + instruccion.get(1) + \" NO es menor que \" + instruccion.get(2));\n }\n \n }else if (instruccion.contains(\"cond\")){\n tempIns = (ArrayList<?>)new Evaluaciones().cond(instruccion);\n if (tempIns == null) {\n\t\t\t\t\ttempIns = (List<?>)instruccion.get(1);\n\t\t\t\t\ti=-1;\n\t\t\t\t}\n }else if(instruccion.contains(\"quote\")) {\n \tnew Evaluaciones().quoteShow(instruccion);\n }else if(instruccion.contains(\"setq\")) {\n \tnew Evaluaciones().setqEstablished(instruccion);\n }\n else if(instruccion.contains(\"first\")) {\n \t\n \tlist=new Evaluaciones().list(instruccion.subList(1, instruccion.size()).subList(0, instruccion.size()-1));\n \tnew Evaluaciones().firstOfList(instruccion,list.get(0).toString().substring(8,9));\n } \n\t\t}\n\t}", "public String[][] obtenerConsultas(){\n //VARIABLES PARA ALMACENAR LOS DATOS DE LA BASE DE DATOS\n int i = 0;\n String[][] datos = new String[obtenerRegistros()][5];\n //SE INTENTA HACE LA CONEXION Y OBTENER LOS RSULTDOS\n try {\n //METODOS DE CONEXION\n Connection connect = getConnection();\n PreparedStatement ps;\n ResultSet res;\n\n //QUERY PARA OBTENER LOS VALORES\n ps = connect.prepareStatement(\"SELECT nombre, apellidos, incentivo, descuentos, total FROM personal INNER JOIN nomina ON personal.id = nomina.id;\");\n res = ps.executeQuery();\n \n while (res.next()) {\n //SE ALMACENANAN LOS DATOS DE LA BASE DE DATOS EN EL ARREGLO\n datos[i][0] = res.getString(\"nombre\");\n datos[i][1] = res.getString(\"apellidos\");\n datos[i][2] = res.getString(\"incentivo\");\n datos[i][3] = res.getString(\"descuentos\");\n datos[i][4] = res.getString(\"total\"); \n i++; \n }\n //SE CIERRA LA CONEXION Y SE RETORNAN LOS DATOS OBTENIDOS\n connect.close();\n return datos;\n }\n //EN CASO DE ERROR SE MUESTRA EL MENSAJE \n catch (Exception e) {\n System.out.println(\"error en resultado: \"+e);\n JOptionPane.showMessageDialog(null, \"Hubo un error:\"+e);\n return datos;\n }\n }", "public List<SinistroPendente_FaixaVO> validaSelecionaSinistroPendente_Faixa(int tipo) {\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tList<SinistroPendente_FaixaVO> listaTratadaTotais = new ArrayList<SinistroPendente_FaixaVO>();\n\t\tList<SinistroPendente_FaixaVO> listaSinistroPendente = null;\n\t\tList<SinistroPendente_FaixaVO> listaFinal = new ArrayList<SinistroPendente_FaixaVO>();\n\n\t\tswitch (tipo) {\n\t\tcase 1: // faixa tempo\n\t\t\tlistaSinistroPendente = listaSinistroPendenteTempo;\n\t\t\tbreak;\n\t\tcase 2:// faixa valor\n\t\t\tlistaSinistroPendente = listaSinistroPendenteValor;\n\t\t\tbreak;\n\t\t}\n\n\t\tint totalNumSinistrosPendentes_Administrativo = 0;\n\t\tint totalNumSinistrosPendentes_Judicial = 0;\n\t\tint totalNumSinistrosPendentes_Total = 0;\n\n\t\tBigDecimal totalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\n\t\tString textoGrupoAnterior = \"\";\n\n\t\t// ============================\n\t\t// esse obj serve apenas para a lista nao ficar vazia\n\t\tSinistroPendente_FaixaVO totaNulo = new SinistroPendente_FaixaVO();\n\t\ttotaNulo.setGrupo(\"vazio\");\n\t\t// ============================\n\n\t\tlistaTratadaTotais.add(totaNulo);\n\t\tfor (int i = 0; i < listaSinistroPendente.size(); i++) {\n\n\t\t\tif (i == 0) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior)) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (!(listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior))) {\n\n\t\t\t\tSinistroPendente_FaixaVO totalVO = new SinistroPendente_FaixaVO();\n\t\t\t\ttotalVO.setGrupo(textoGrupoAnterior);\n\t\t\t\ttotalVO.setFaixa(\"Total\");\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Administrativo(\n\t\t\t\t\t\ttotalValorSinistrosPendentes_Administrativo.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\t\tlistaTratadaTotais.add(totalVO);\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Judicial = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\n\t\t\t\ttotalNumSinistrosPendentes_Total = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t}\n\n\t\t}\n\t\tboolean insere = false;\n\t\tfor (int i = 0; i < listaTratadaTotais.size(); i++) {\n\t\t\tif (listaTratadaTotais.get(i).getGrupo().equalsIgnoreCase(textoGrupoAnterior)) {\n\t\t\t\tinsere = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tinsere = true;\n\t\t\t}\n\t\t}\n\t\tif (insere) {\n\t\t\tSinistroPendente_FaixaVO totaVO = new SinistroPendente_FaixaVO();\n\t\t\ttotaVO.setGrupo(textoGrupoAnterior);\n\t\t\ttotaVO.setFaixa(\"Total\");\n\t\t\ttotaVO.setValorSinistrosPendentes_Administrativo(totalValorSinistrosPendentes_Administrativo.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\n\t\t\ttotaVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\ttotaVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\ttotaVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\tlistaTratadaTotais.add(totaVO);\n\t\t}\n\t\tlistaTratadaTotais.remove(0);// remove o obj inserido acima com o texto\n\t\t\t\t\t\t\t\t\t\t// \"nulo\"\n\n\t\t// ###################################################\n\t\t// ###################################################\n\t\t// parte para calcular as porcentagens\n\t\t// ###################################################\n\n\t\t// este 'for' serve para vincular a lista de pendentes com a lista de\n\t\t// totais atraves do indice da lista de totais\n\t\ttextoGrupoAnterior = \"\";\n\t\tint tamLista = listaSinistroPendente.size();\n\t\tfor (int i = 0; i < tamLista; i++) {\n\t\t\tfor (int j = 0; j < listaTratadaTotais.size(); j++) {\n\t\t\t\tif (listaSinistroPendente.get(i).getGrupo().equalsIgnoreCase(listaTratadaTotais.get(j).getGrupo())) {\n\t\t\t\t\t// Exemplo: Na listaSinistroPendente na posicao i=5 o\n\t\t\t\t\t// produto eh \"Auto Correntista\". Na listaTratadaTotais\n\t\t\t\t\t// esse produto \"Auto Correntista\" eh j=1. Entao assim\n\t\t\t\t\t// saberei onde esta o total de \"Auto Correntista\" na\n\t\t\t\t\t// listaTratadaTotais.\n\t\t\t\t\tlistaSinistroPendente.get(i).setIndiceListaTotais(j);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// este 'for' serve para organizar as listas de pendentes e a lista de\n\t\t// totais\n\t\tint inseriu = 0;\n\t\tint ultimoIndice = 0;\n\t\tfor (int j = 0; j < listaSinistroPendente.size(); j++) {\n\n\t\t\tif (listaSinistroPendente.get(j).getIndiceListaTotais() != ultimoIndice) {\n\t\t\t\tinseriu = 0;\n\t\t\t}\n\t\t\tif (inseriu == 0) {\n\t\t\t\tlistaFinal.add(listaTratadaTotais.get(listaSinistroPendente.get(j).getIndiceListaTotais()));\n\t\t\t\tultimoIndice = listaSinistroPendente.get(j).getIndiceListaTotais();\n\t\t\t\tinseriu = 1;\n\t\t\t}\n\n\t\t\tlistaFinal.add(listaSinistroPendente.get(j));\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\t\t\tif (!(listaFinal.get(i).getFaixa().equalsIgnoreCase(\"Total\"))) {\n\n\t\t\t\tint indice = listaFinal.get(i).getIndiceListaTotais();\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Administrativo())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Administrativo())));\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(percentForm.format(\n\t\t\t\t\t\t\tnew BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Administrativo()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(\"0%\");\n\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Judicial())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Judicial())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Judicial()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Judicial()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Total())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Total())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Total()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(listaTratadaTotais.get(indice).getValorSinistrosPendentes_Total()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t}\n\n\t\t\t} // if\n\t\t} // for\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Administrativo(uteis.insereSeparadoresMoeda(roundForm\n\t\t\t\t\t.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Judicial(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Judicial()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Total(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Total()))));\n\n\t\t}\n\n\t\treturn listaFinal;\n\t}", "public void busqueda_Aestrella(Estado estado_inicial, Estado estado_final) {\r\n\t\tabiertos.add(estado_inicial); // Añado como nodo abierto el punto de partida del laberinto\r\n\t\tEstado actual = abiertos.get(0); // Selecciono como punto actual el primero de los nodos abiertos (el punto de partida)\r\n\t\ttrata_repe = 1; // Variable para indicar al switch como tiene que tratar los repetidos en el switch del metodo tratar_repetidos\r\n\t\twhile (actual != estado_final && !abiertos.isEmpty()) { // Mientras que actual no sea el punto final y haya nodos abiertos\r\n\t\t\titeraciones++; // Contador de iteraciones del bucle while\r\n\t\t\tabiertos.remove(0); // Elimino el nodo actual de la lista de abiertos\r\n\t\t\tcerrados.add(actual); // Y lo añado a nodos cerrados\t\t\t\r\n\t\t\testados_cerrados = cerrados.size(); // Contador para estados cerrados\r\n\r\n\t\t\thijos = generar_sucesores(actual); // Genero los hijos del punto actual (Limpio de muros o punto de inicio)\r\n\t\t\thijos = tratar_repetidos(cerrados, abiertos, hijos); // Trato los repetidos\r\n\t\t\tinsertar(hijos); // Acolo los hijos en la lista de abiertos\r\n\t\t\testados_visitados += hijos.size(); // Contador para estados visitados\r\n\r\n\t\t\tCollections.sort(abiertos, getCompHeuristicaMasProf()); // Ordeno por heuristica Manhattan + Profundidad la cola de abiertos\r\n\r\n\t\t\tactual = abiertos.get(0); // Selecciono como actual el primero en la cola de abiertos\r\n\r\n\t\t\tif (actual.equals(estado_final)) { //Compruebo si estamos en el estado final\r\n\t\t\t\tmostrarcamino(actual, estado_final); // Muestro el camino solucion\r\n\t\t\t\tbreak; //Salgo del bucle while\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "public static void main(String[] args) {\n\t\tScanner lectorInt = new Scanner(System.in);\n\t\tScanner lectorString = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese información de pasajero\");\n\t\tSystem.out.println(\"Ingrese nombre: \");\n\t\tString nombre = lectorString.nextLine();\n\t\tSystem.out.println(\"Ingrese apellido: \");\n\t\tString apellido = lectorString.nextLine();\n\t\tSystem.out.println(\"Ingrese edad: \");\n\t\tint edad = lectorInt.nextInt();\n\t\tSystem.out.println(\"Que tipo de pasajero es: 1:Pasajero Vip 2:Pasajero Económico \");\n\t\tint opcion = lectorInt.nextInt();\n\t\tString membresia = \"\";\n\t\tString descuento = \"\";\n\t\tif (opcion == 1) {\n\t\t\tSystem.out.println(\"Ingrese Código de Membresía\");\n\t\t\tmembresia = lectorString.nextLine();\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Ingrese Código de Descuento\");\n\t\t\tdescuento = lectorString.nextLine();\n\t\t}\n\n\t\tPasajeroVip pasajero1 = new PasajeroVip();\n\t\tpasajero1.setNombre(nombre);\n\t\tpasajero1.setApellido(apellido);\n\t\tpasajero1.setCodigoMembresia(membresia);\n\t\tpasajero1.setEdad(edad);\n\n\t\tPasajeroVip pasajero2 = new PasajeroVip(\"Juan\", \"Tandre\", \"as2345\", 23);\n\n\t\tPasajeroEconomico pasajeroEconomico1 = new PasajeroEconomico();\n\t\tpasajeroEconomico1.setNombre(\"Helena\");\n\t\tpasajeroEconomico1.setApellido(\"Frias\");\n\t\tpasajeroEconomico1.setCodigoDescuento(\"1234df\");\n\t\tpasajeroEconomico1.setEdad(25);\n\n\t\tPasajero[][] asientos = new Pasajero[4][5];\n\t\tasientos[0][0] = pasajero1;\n\t\tasientos[0][1] = pasajero2;\n\t\tasientos[0][2] = pasajero1;\n\t\tasientos[0][3] = pasajeroEconomico1;\n\t\tasientos[1][0] = pasajero1;\n\t\tasientos[1][1] = pasajeroEconomico1;\n\n\t\tint opcionSalir = 0;\n\t\tdo {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Ingrese datos del asiento, 0:continuar, -1:SALIR\");\n\t\t\topcionSalir = lectorInt.nextInt();\n\t\t\tif (opcionSalir == 0) {\n\t\t\t\tSystem.out.print(\"Ingrese fila del asiento: \");\n\t\t\t\tint fila = lectorInt.nextInt();\n\t\t\t\tSystem.out.print(\"Ingrese columna del asiento: \");\n\t\t\t\tint columna = lectorInt.nextInt();\n\t\t\t\tSystem.out.println(\"Los datos del pasajero son: \");\n\t\t\t\tSystem.out.println(asientos[fila][columna]);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Va ha salir del sistema\");\n\t\t\t}\n\t\t} while (opcionSalir != -1);\n\n\t}", "@Test\n public void testAnalisarDia() throws Exception {\n System.out.println(\"analisarDia\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarDia(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n\n try {\n\n Object o[] = null;\n List<Producto> listP = CProducto.findProductoEntities();\n boolean resp = false; //ESTO ES LA BANDERA PARA SABER SI EL PRODUCTO EXISTE\n int num = 0;\n String nombreP = txtproducto.getText();\n for (int i = 0; i < listP.size(); i++) {\n\n if (listP.get(i).getNombreProducto().equals(txtproducto.getText())) {\n resp = true;\n num = i;\n }\n }\n if (resp != true) { //VA A VENDER UN PRODUCTO QUE NO EXISTE:\n JOptionPane.showMessageDialog(null, \"Estás intentando vender un articulo que no existe!\\nRevisa tu inventario.\", \"ERROR\", JOptionPane.WARNING_MESSAGE);\n\n } else {\n //Obtenemos el valor total y la cantidad que tenemos hasta ahora en inventarios.\n int cantidadTotal = listP.get(num).getCantidadAlmacenada();\n\n //Obtenemos el valor total de la compra que acabamos de realizar\n int cantidadCompra = Integer.parseInt(txtcantidad.getText());\n\n int resultado = cantidadTotal - cantidadCompra;\n if (resultado < 0) {\n JOptionPane.showMessageDialog(null, \"Lo sentimos, no tenemos esa cantidad.\\nActualmente solo le podemos vender \" + cantidadTotal + \" unidades de ese articulo.\", \"Total excedido\", JOptionPane.INFORMATION_MESSAGE);\n\n int respuesta = JOptionPane.showConfirmDialog(null, \"¿Desea realizar una compra por esta cantidad?\", \"Alerta!\", JOptionPane.YES_NO_OPTION);\n\n if (respuesta == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n this.setVisible(false);\n }\n } else if (resultado == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n float valorTotal = listP.get(num).getValorUnitario() * cantidadTotal;\n\n float valorTotalC = Float.parseFloat(txtvalorU.getText()) * cantidadCompra;\n\n //Actualizamos el valor total y la cntidad de inventario (Producto)\n valorTotal = valorTotal - valorTotalC;\n float valorUnitario = valorTotal / resultado; //Este es el costo unitario\n Producto pEdit = CProducto.findProducto(id);\n pEdit.setCantidadAlmacenada(resultado);\n pEdit.setValorUnitario(valorUnitario);\n\n CProducto.edit(pEdit);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n this.setVisible(false);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage() + e.getCause());\n }\n }", "public String getMostrarResultados() {\n StringBuilder strb = new StringBuilder();\r\n if(auditoriaanalizada==null){\r\n return \"No existe ningún informe para dicho informe\";\r\n }\r\n for(int i=1; i <= MAX_PREGUNTAS; i++){\r\n try{\r\n PropertyDescriptor p = new PropertyDescriptor(\"p\" + i, Auditorias.class);\r\n Integer c = (Integer) p.getReadMethod().invoke(auditoriaanalizada);\r\n if(c!=null && c==0){\r\n //hay que buscar dicha pregunta y poner lo que pone en el campo reglamento\r\n Reglamento r = ejbFacadeReglamento.find(i);\r\n if(r!=null && r.getIncumplimiento()!=null && !r.getIncumplimiento().isEmpty()){\r\n strb.append(\"<li>\");\r\n strb.append(r.getIncumplimiento());\r\n strb.append(\"</li>\");\r\n }\r\n }\r\n \r\n }\r\n catch(Exception e){\r\n System.out.println(\"Error:\" + e.getMessage());\r\n }\r\n }\r\n return strb.toString();\r\n }", "private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\t}", "public void calculEtatSuccesseur() { \r\n\t\tboolean haut = false,\r\n\t\t\t\tbas = false,\r\n\t\t\t\tgauche = false,\r\n\t\t\t\tdroite = false,\r\n\t\t\t\thautGauche = false,\r\n\t\t\t\tbasGauche = false,\r\n\t\t\t\thautDroit = false,\r\n\t\t\t\tbasDroit = false;\r\n\t\t\r\n\t\tString blanc = \" B \";\r\n\t\tString noir = \" N \";\r\n\t\tfor(Point p : this.jetonAdverse()) {\r\n\t\t\tString [][]plateau;\r\n\t\t\tplateau= copieEtat();\r\n\t\t\tint x = (int) p.getX();\r\n\t\t\tint y = (int) p.getY();\r\n\t\t\tif(this.joueurActuel.getCouleur() == \"noir\") { //dans le cas ou le joueur pose un pion noir\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) { //on regarde uniquement le centre du plateaau \r\n\t\t\t\t\t//on reinitialise x,y et plateau a chaque étape\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdroite = getDroite(x,y,blanc);\r\n\t\t\t\t\thaut = getHaut(x, y, blanc);\r\n\t\t\t\t\tbas = getBas(x, y, blanc);\r\n\t\t\t\t\tgauche = getGauche(x, y, blanc);\r\n\t\t\t\t\thautDroit = getDiagHautdroite(x, y, blanc);\r\n\t\t\t\t\thautGauche = getDiagHautGauche(x, y, blanc);\r\n\t\t\t\t\tbasDroit = getDiagBasDroite(x, y, blanc);\r\n\t\t\t\t\tbasGauche = getDiagBasGauche(x, y, blanc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y-1]==noir) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(droite) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//1\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==noir) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(bas) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==noir) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(gauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(haut) {\r\n\t\t\t\t\t\t\t//System.out.println(\"regarde en dessous\");\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==noir) {\r\n\t\t\t\t\t\tif(hautGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(basGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit : OK!\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(hautDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==noir) {\r\n\t\t\t\t\t\tif(basDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t//System.out.println(\"ajouté!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {//si le joueur actuel a les pions blanc\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x][y-1]==blanc) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(getDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}//1.1\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==blanc) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getBas(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2.2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==blanc) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getGauche(x, y, noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3.3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == blanc) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getHaut(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4.4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5.5\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//6.6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautdroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7.7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8.8\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void partida(String vpalabra[],String verror[],String vacierto[],String palabra){\r\n //comienzo ahorcado\r\n System.out.println(\"******************* AHORCADO *******************\");\r\n String letra;\r\n \r\n int contador=7;\r\n //bucle\r\n while ((contador>0)&&(ganarPartida(vacierto,vpalabra)==false)){\r\n //for (int i=0;i<verror.length;i++){\r\n //muestra el dibujo para que sepa por donde va \r\n mostrarDibujo(contador);\r\n System.out.println(\"VIDAS: \"+ contador);\r\n //mostrar vector acierto\r\n mostrarAcierto(palabra, vacierto);\r\n \r\n \r\n //pregunta letra al jugador \r\n System.out.println(\"\");\r\n System.out.println(\"\");\r\n System.out.println(\"Escribe una única letra: \");\r\n letra=leer.next();\r\n \r\n //muestra vector verror las letras erroneas que vas introduciendo\r\n muestraError(verror);\r\n System.out.println(\"\");\r\n System.out.println(\"\"); \r\n //comprueba si letra esta en la matriz palabra para acertar o fallar\r\n if (buscarLetra(vpalabra, vacierto, verror, letra)==false){\r\n //recorro verror guardando letra erronea\r\n \r\n // verror[i]=letra;\r\n contador--;\r\n } \r\n \r\n //}\r\n }\r\n \r\n if (ganarPartida(vacierto,vpalabra)==true){\r\n System.out.println(\"La palabra es: \");\r\n mostrarPalabra(palabra, vpalabra);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"¡HAS GANADO!\");\r\n } else{\r\n System.out.println(\" _ _ _ \");\r\n System.out.println(\" |/ | \");\r\n System.out.println(\" | 0 \");\r\n System.out.println(\" | /ºº/ \");\r\n System.out.println(\" | | \");\r\n System.out.println(\" | / / \");\r\n System.out.println(\" | \");\r\n System.out.println(\"---------------\");\r\n System.out.println(\"---------------\");\r\n System.out.println(\" HAS PERDIDO \");\r\n }\r\n }", "public List<FaturamentoVO> validaSelecionaTotalFaturamento(String ano, String anoTexto) {\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.0\");\n\n\t\tList<FaturamentoVO> listaTratada = new ArrayList<FaturamentoVO>();\n\t\tList<FaturamentoVO> lista = null;\n\t\tList<FaturamentoVO> listaRvne = null;\n\n\t\tswitch (anoTexto) {\n\t\tcase \"atual\":\n\t\t\tlista = dadosFaturamentoDetalhado;\n\t\t\tlistaRvne = rvneTipo2;\n\t\t\tbreak;\n\t\tcase \"anterior\":\n\t\t\tlista = dadosFaturamentoDetalhadoAnoAnterior;\n\t\t\tlistaRvne = rvneTipo2AnoAnterior;\n\t\t\tbreak;\n\t\t}\n\n\t\tBigDecimal totalMes = new BigDecimal(0.0);\n\n\t\t// Insere BP na lista\n\t\tint i = 0;\n\t\tFaturamentoVO faturamentoVObp = new FaturamentoVO();\n\t\tfaturamentoVObp.setProduto(lista.get(i).getProduto());\n\t\tString mesesTotalBP[] = new String[12];\n\n\t\tfor (int k = 0; k < 12; k++) {\n\t\t\tmesesTotalBP[k] = roundForm.format(Double.parseDouble(lista.get(i).getMeses()[k]) / 1000000).replace(\",\",\n\t\t\t\t\t\".\");\n\t\t}\n\n\t\tfaturamentoVObp.setMeses(mesesTotalBP);\n\t\tlistaTratada.add(faturamentoVObp);\n\n\t\t// i = 1;\n\t\t// Trata apenas do Faturamento:\n\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\tString mesesTotal[] = new String[12];\n\t\tfaturamentoVOtratado.setProduto(\"Faturamento \");\n\t\tfor (int j = 0; j < 12; j++) {\n\t\t\tint c = 0;\n\t\t\twhile (c < lista.size()) {\n\t\t\t\tif (lista.get(c).getProduto().equalsIgnoreCase(\"EMITIDO\")\n\t\t\t\t\t\t|| lista.get(c).getProduto().equalsIgnoreCase(\"EMITIDOS CANCELADOS\")\n\t\t\t\t\t\t|| lista.get(c).getProduto().equalsIgnoreCase(\"EMITIDOS RESTITUIDOS\")) {\n\n\t\t\t\t\ttotalMes = totalMes.add(new BigDecimal(lista.get(c).getMeses()[j]));\n\t\t\t\t}\n\t\t\t\tc++;\n\t\t\t}\n\t\t\t// RVNE trazido direto da tabela do banco\n\t\t\tif (listaRvne.get(0).getMeses()[j] != null) {\n\t\t\t\ttotalMes = totalMes.add(new BigDecimal(listaRvne.get(0).getMeses()[j]));\n\t\t\t} else {\n\t\t\t\ttotalMes = new BigDecimal(0.0);\n\t\t\t}\n\t\t\tmesesTotal[j] = roundForm.format(Double.parseDouble(totalMes.toString()) / 1000000).replace(\",\", \".\");\n\t\t\ttotalMes = new BigDecimal(0.0D);\n\t\t}\n\t\tfaturamentoVOtratado.setMeses(mesesTotal);\n\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\treturn listaTratada;\n\t}", "private void calcularOtrosIngresos(Ingreso ingreso)throws Exception{\n\t\tfor(IngresoDetalle ingresoDetalle : ingreso.getListaIngresoDetalle()){\r\n\t\t\tif(ingresoDetalle.getIntPersPersonaGirado().equals(ingreso.getBancoFondo().getIntPersonabancoPk())\r\n\t\t\t&& ingresoDetalle.getBdAjusteDeposito()==null){\r\n\t\t\t\tbdOtrosIngresos = ingresoDetalle.getBdMontoAbono();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void ingresarDinero() {\n\t\tString codigo=\"\";\n\t\tint din=1;\n\t\tint saldo=0;\n\t\tint cambio=0;\n\t\t\n\t\tArrayList<Integer> dinero = new ArrayList<Integer>();\n\t\t\n\t\tSystem.out.println(\"digite el codigo del producto\");\n\t\tcodigo=leer.dato();\n\t\t\n\t\tif(cU.buscarProducto(codigo)!=null){\n\t\t\tproducto=cU.buscarProducto(codigo);\n\t\t\tSystem.out.println(\"el producto encontrado fue\"+producto);\n\t\t\n\t\t\n\t\twhile(din!=0){\n\t\t\t\n\t\t\tSystem.out.println(\"digite la denominacion o 0 si ya completo el dinero\");\n\t\t\tdin=leer.datoInt();\n\t\t\t\n\t\t\tif(din!=0){\n\t\t\t\tdinero.add(din);\n\t\t\t\tsaldo=saldo+din;\n\t\t\t}\n\t\t\tSystem.out.println(\"saldo\"+saldo);\n\t\t\t\n\t\t}\n\t\t\n\t\tcambio=cU.ingresarSaldo(dinero, codigo);\n\t\tif(cambio>=0){\n\t\tSystem.out.println(\"el valor del producto es: \"+producto.getValor());\n\t\tSystem.out.println(\"su saldo era de: \"+saldo);\n\t\tSystem.out.println(\"el cambio es: \"+cambio);\n\t\t}else{\n\t\t\tSystem.out.println(\"el valor del producto es: \"+producto.getValor());\n\t\t\tSystem.out.println(\"saldo\"+saldo);\n\t\t\tSystem.out.println(\"fondos insufucientes para comprar el producto\");\n\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"producto no encontrado\");\n\t\t}\n\t\tif(cambio==saldo){\n\t\t\tSystem.out.println(\"denominacion ingresada no valida\");\n\t\t}\n\t}", "public void processarJogada(int resultadoDado1, int resultadoDado2, boolean PagamentoPrisao) throws Exception {\n\n\n if ((isResultadoDadoValido(resultadoDado1)) && (isResultadoDadoValido(resultadoDado2))) {\n\n if(bankruptcy && !listaJogadores.get(vez).ifRollAvaliable()){\n\n throw new Exception(\"Player can't roll dice when trying to avoid bankruptcy\");\n }\n\n if (!this.jogadorTerminouAVez() == true) {\n this.terminarAVez();// Prepara proxima jogada e coloca terminou vez para true\n\n }\n if (resultadoDado1 == resultadoDado2 && this.RegraJogadaDupla == true) {\n this.repete = true;\n this.duplasAcumuladas++;\n print(\"Repete foi ativado\");\n } else if (resultadoDado1 != resultadoDado2 && this.RegraJogadaDupla == true) {\n this.duplasAcumuladas = 0;\n this.repete = false;\n print(\"Repete foi desativado\");\n }\n\n\n if (this.duplasAcumuladas == 3 && this.RegraJogadaDupla == true) {\n adicionaNaPrisao(listaJogadores.get(jogadorAtual()));\n this.DeslocarJogador(jogadorAtual(), 10);\n this.duplasAcumuladas = 0;\n while (listaJogadoresNaPrisao.contains(listaJogadores.get(jogadorAtual()).getNome())) {\n PrepareNextJogada();\n }\n } else if (PagamentoPrisao == true) {\n this.pagarSaidaDaPrisao();\n pagouPrisaoRecentemente = true;\n this.repete = false;\n } else if (PagamentoPrisao == false) {\n if (this.repete == false) {\n this.terminarAVez();\n this.iniciarNovaVez();//coloca terminouVez para false\n }\n this.moverJogadorDaVez(resultadoDado1, resultadoDado2);\n this.repete = false;\n }\n\n\n this.print(\"Jogador \" + this.jogadorAtual());\n this.print(\"\\tEstá em \" + this.posicoes[this.jogadorAtual()]);\n this.print(\"\\tvai andar \" + (resultadoDado1 + resultadoDado2) + \" casas.\");\n\n\n\n }\n\n\n }", "public static void main(String[] args) {\n int[] notas = new int[4];\n //FORMA 1 DE LLENAR EL ARREGLO\n notas[0] = 61;\n notas[1] = 84;\n notas[2] = 60;\n notas[3] = 95;\n // OTRA FORMA DE RELLENAR EL ARREGLO -- NO RECOMENDABLE --\n int[] n = {1, 8, 2, 3, 6, 4, 9, 7, 8, 5, 1, 2, 30};\n //Como acceder a los datos uno por uno\n System.out.println(\"Recorrido uno por uno: \");\n System.out.print(\"Recorrido notas: \");\n System.out.println(notas[2]);\n System.out.print(\"Recorrido de n: \");\n System.out.println(n[11]);\n //TODO JUNTO\n System.out.println(\"Recorrido de notas:\");\n for(int i = 0; i < 4; i++){\n System.out.print(notas[i] + \" \");\n }\n System.out.println(\"\");\n System.out.println(\"Recorrido de n:\");\n for(int i = 0; i < 13; i++){\n System.out.print(n[i] + \" \");\n }\n //---------- CON CHAR ----------\n char[] secciones = new char[3];\n \n secciones[0] = 'A';\n secciones[1] = 'B';\n secciones[2] = 'C';\n char[] s = {'D', 'E', 'F', 'G'};\n \n System.out.println(\"Recorrido uno por uno: \");\n System.out.print(\"Recorrido de secciones: \");\n System.out.println(secciones[1]);\n System.out.print(\"Recorrido de s: \");\n System.out.println(s[2]);\n System.out.println(\"Recorrido de todos\");\n }", "public void calculos() {\n a = a1+a2+a3;\n b = b1+b2+b3;\n c = c1+c2+c3;\n }", "public synchronized boolean comprobarLineas(String sala) throws InterruptedException{\n \tSet<UserBean> userbeans = gestorSesions.dameUserBeans(\"jugador\",sala);\n \tPocketBingo pb = gestorSesions.getJugadasSalas(sala);\n \tList<Integer>numerosCalled = pb.getNumerosCalled();\n \tPeticionPremio userBeanPeticiones=null;\n \tint resultControlLinea;\n \tboolean hayLinea=false;\n \t\n \t\tIterator<UserBean> it = userbeans.iterator();\n \t\t//HashMap<UserBean,Carton> pilaAnunciaPremios = new HashMap<UserBean,Carton> ();\n \t\twhile(it.hasNext()){\n \t\t\tString hayPremioPresente=\"No\";\n \t\t\tUserBean user = it.next();\n \t\t\tVector<Carton>vCarton = user.getvCarton();\t\n \t\t\tIterator<Carton> itCarton = vCarton.iterator();\n \t\t\twhile(itCarton.hasNext()){\n \t\t\t\tCarton carton = (Carton)itCarton.next();\n \t\t\t\tint numeros[][] = carton.getNumeros();\n \t\t\t\tresultControlLinea=0;\n \t\t\t\t//Thread.sleep(3000);\n \t\t\t\tfor(int f=0;f < 3; f++){\n \t\t\t\t\tresultControlLinea=0;\n \t\t\t\t\tfor(int c=0; c<9 ; c++){\n \t\t\t\t\t\tint numero = numeros[f][c];\n \t\t\t\t\t\tif(numerosCalled.contains(numero)){\n \t\t\t\t\t\t\t//Enviar mensaje de encender numero a Carton por numero OK (En cliente marcar el numero como OK)\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t try {\n \t\t\t\t\t\t\t\t\tuser.getSesionSocket().getBasicRemote().sendText(\"numeroOK_\"+carton.getnOrden()+\"F\"+(f+1)+\"C\"+(c+1));\n \t\t\t\t\t\t\t\t\t//Thread.sleep(1000);\n \t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// \tTODO Auto-generated catch block\n \t\t\t\t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tif(f==0)resultControlLinea+=5;\n \t\t\t\t\t\t\t\tif(f==1)resultControlLinea+=50;\t\n \t\t\t\t\t\t\t\tif(f==2)resultControlLinea+=500;\t \n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tif (resultControlLinea == 25 || resultControlLinea == 250 || resultControlLinea == 2500 ) {\n \t\t\t\t\t\t\t//\tuser.getSesionSocket().getBasicRemote().sendText(\"Hay Linea ,result:\"+resultControlLinea);\n \t\t\t\t\t\tString key = user.getUsername();\n \t\t\t\t\t\tuserBeanPeticiones = gestorSesions.getListaPeticionesPremios().get(key);\n \t\t\t\t\t\t\tif(!(userBeanPeticiones==null)){\n \t\t\t\t\t\t\t\tif(userBeanPeticiones.getUserbean().getSalonInUse().equals(sala)&&userBeanPeticiones.getPremio().equals(\"Linea\")){\n \t\t\t\t\t\t\t\t\t// Debido a la naturaleza del Objeto Mapa, cada insercion de instancia userBeanPeticiones (put)machaca\n \t\t\t\t\t\t\t\t\t// a cualquiera existente previamente, lo cual garantiza que solo un premio por usuario (el ultimo regitrado)\n \t\t\t\t\t\t\t\t\t//se registra\n \t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\tgestorSesions.getPilaAnunciaPremios(sala).put(userBeanPeticiones, carton);\n \t\t\t\t\t\t\t\t\t\n \t \t\t\t\t\t\t\tlog.info(\"Hay Linea ,result:\"+resultControlLinea+\" Fila \"+ (f+1) + \" Carton:\" + carton.getnRef());\n \t \t\t\t\t\t\t\tlog.info(\"tamaño en Pila ahora(\"+gestorSesions.getPilaAnunciaPremios(sala).size()+\")\");\n \t \t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tuser.getSesionSocket().getBasicRemote().sendText(\"Hay premio Linea en Carton:\"+carton.getnRef()+\", Enhorabuena \");\n\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\thayLinea=true;\n \t \t\t\t\t\t\t\t//f=3;\n \t\t\t\t\t\t\t\t}\n\n \t\t\t\t\t\t\t}else{\n\t \t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tuser.getSesionSocket().getBasicRemote().sendText(\"Habia Linea y no la has cantado ...\");\n\t\t\t\t\t\t\t\t\t\t//f=3;\n\t\t\t\t\t\t\t\t\t\thayPremioPresente=\"Si\";\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t}\n\n\n \t\t\t\t\t\t\t\n \t\t\t\t\t}else{\n \t\t\t\t\t\t//if(!hayLinea){\n \t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\t//Para no borrar un premio anunciado antes, solo se procesa esta parte si no ha habido\n \t\t\t\t\t\t\t\t//premio antes.\n \t\t\t\t\t\t\t\tif(esteUsuarioYaTienePremio(userBeanPeticiones,gestorSesions.getPilaAnunciaPremios(sala))){\n \t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t//Para evitar que se sobrescriban mensajes anteriores\n \t\t\t\t\t\t\t\t\tif(hayPremioPresente.equals(\"No\"))user.getSesionSocket().getBasicRemote().sendText(\"No tienes Linea... \");\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\tlog.info(\"No Hay Linea ,result:\"+resultControlLinea +\" Carton:\" + carton.getnRef());\n \t\t\t\t\t\t\t} catch (IOException e) {\n \t\t\t\t\t\t\t\t// \t\tTODO Auto-generated catch block\n \t\t\t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t} \n \t\t}\n\n \t\t\n \t\treturn hayLinea;\n }", "public ArrayList<Producto> getProductosOrdenados(ArrayList<Producto> productosEncontrados,Cliente comprador) {\n \n //Comparador para ordenar los productos por su urgencia y proximidad\n\n ArrayList <Producto> productosOrdenados=new ArrayList<>();\n ArrayList <Producto> muyCerca = new ArrayList<>();\n ArrayList <Producto> cerca = new ArrayList<>();\n ArrayList <Producto> lejos = new ArrayList<>();\n String codigoPostalComprador = comprador.getUbicacion().getCodigoPostal();\n String codigoPostalProducto;\n Comparator porUrgencia = new Comparator() { \n public int compare(Object o1, Object o2) {\n\n\n Producto p1 = (Producto)o1;\n Producto p2 = (Producto)o2;\n\n String bool1;\n String bool2;\n if(p1.getUrgente()){\n bool1=\"0\";\n }else{\n bool1=\"1\";\n }\n if(p2.getUrgente()){\n bool2=\"0\";\n }else{\n bool2=\"1\";\n }\n\n String b1 = bool1;\n String b2 = bool2; \n return b1.compareTo(b2);\n }\n };\n\n for(Producto cadaProducto : productosEncontrados){\n codigoPostalProducto=cadaProducto.getUbicacionCliente().getCodigoPostal();\n if(codigoPostalComprador.substring(0, 3).equalsIgnoreCase(codigoPostalProducto.substring(0, 3))){\n muyCerca.add(cadaProducto);\n }else{\n if(codigoPostalComprador.substring(0, 2).equalsIgnoreCase(codigoPostalProducto.substring(0, 2))){\n cerca.add(cadaProducto);\n }else{\n lejos.add(cadaProducto);\n }\n }\n\n }\n if(muyCerca.size()>0){ \n Collections.sort(muyCerca,porUrgencia);\n productosOrdenados.addAll(muyCerca);\n }\n if(cerca.size()>0){\n Collections.sort(cerca,porUrgencia);\n productosOrdenados.addAll(cerca);\n } \n if(lejos.size()>0){\n Collections.sort(lejos,porUrgencia);\n productosOrdenados.addAll(lejos);\n }\n return productosOrdenados;\n \n \n }", "public List<conteoTab> filtro() throws Exception {\n iConteo iC = new iConteo(path, this);\n try {\n fecha = sp.getString(\"date\", \"\");\n iC.nombre = fecha;\n\n List<conteoTab> cl = iC.all();\n\n for (conteoTab c : cl) {\n boolean val = true;\n for (int i = 0; i <= clc.size(); i++) {\n if (c.getIdBloque() == sp.getInt(\"bloque\", 0) || c.getIdVariedad() == sp.getInt(\"idvariedad\", 0)) {\n val = true;\n } else {\n val = false;\n }\n }\n if (val) {\n clc.add(c);\n } else {\n }\n }\n } catch (Exception e) {\n Toast.makeText(this, \"No existen registros actuales que coincidan con la fecha\", Toast.LENGTH_LONG).show();\n clc.clear();\n }\n return clc;\n }", "public Individuo Recombinar(Individuo padre, Individuo madre) {\n Individuo hijo = new Individuo(padre.getCAMINOS());\r\n Individuo hijo2 = new Individuo(madre.getCAMINOS());\r\n for (int i = 0; i < padre.getEntradas_individuo().size(); i++) {\r\n if (i < padre.getCAMINOS() / 2) {\r\n Entradas entrada_1 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_1.setValores((ArrayList<Integer>) padre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_1.setEntradas((ArrayList<String>) padre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_1.setCamino_cubierto(padre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n Entradas entrada_2 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_2.setValores((ArrayList<Integer>) madre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_2.setEntradas((ArrayList<String>) madre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_2.setCamino_cubierto(madre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n hijo.getEntradas_individuo().add(entrada_1); \r\n hijo2.getEntradas_individuo().add(entrada_2);\r\n } else {\r\n Entradas entrada_1 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_1.setValores((ArrayList<Integer>) madre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_1.setEntradas((ArrayList<String>) madre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_1.setCamino_cubierto(madre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n Entradas entrada_2 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_2.setValores((ArrayList<Integer>) padre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_2.setEntradas((ArrayList<String>) padre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_2.setCamino_cubierto(padre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n hijo.getEntradas_individuo().add(entrada_1); \r\n hijo2.getEntradas_individuo().add(entrada_2);\r\n }\r\n }\r\n hijo.caminos_posibles = padre.caminos_posibles;\r\n hijo.caminos_cubiertos = padre.caminos_cubiertos;\r\n hijo2.caminos_posibles = madre.caminos_posibles;\r\n hijo2.caminos_cubiertos = madre.caminos_cubiertos;\r\n Document doc_copy_1 = (Document) this.doc.cloneNode(true);\r\n Document doc_copy_2 = (Document) this.doc.cloneNode(true);\r\n //Mutar(hijo);\r\n //Mutar(hijo2);\r\n hijo.EvaluarIndividuo(doc_copy_1);\r\n hijo2.EvaluarIndividuo(doc_copy_2);\r\n individuos.add(hijo);\r\n individuos.add(hijo2);\r\n if(hijo.getEvaluacion() > hijo2.getEvaluacion())\r\n {\r\n return hijo;\r\n }\r\n else\r\n {\r\n return hijo2;\r\n }\r\n }", "public void buscarPessoa(){\n\t\tstrCelular = CareFunctions.limpaStrFone(strCelular);\n\t\t System.out.println(\"Preparar \" + strCelular);//\n\t\t \n\t\tif (strCelular.trim().length() > 0){\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tList<Usuario> lstusuario = usuarioDAO.listPorcelular(strCelular);\n\t\t\tSystem.out.println(\"Buscou \" + lstusuario.size());\n\t\t\tsetBooIdentifiquese(false);\n\t\t\tif (lstusuario.size() > 0){\n\t\t\t\tusuario = lstusuario.get(0);\n\t\t\t\tsetBooSelecionouUsuario(true);\n\t\t\t}else{\n\t\t\t\tsetBooSelecionouUsuario(false);\t\t\t\t\n\t\t\t\tsetBooCadastrandose(true);\n\t\t\t\tusuario = new Usuario();\n\t\t\t\tusuario.setUsu_celular(strCelular);\n\t\t\t}\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Ahoe\", \"Bem Vindo\"));\t\n\t\t}else{\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Você deve informar o Celular\", \"Não foi possível pesquisar\"));\t\t\t\n\t\t}\n\t}", "public void obtenerValorDePiezaEnDolaresADolares() {\r\n\t\tPieza pieza = new Pieza(\"\",10,Moneda.DOLAR);\t\t\r\n\t\tdouble precio = pieza.getPrecioEn(Moneda.DOLAR);\r\n\t\tAssert.assertEquals(precio, 10);\r\n\t}" ]
[ "0.6496402", "0.60732967", "0.6056087", "0.6015024", "0.5964095", "0.59518313", "0.5936928", "0.5935865", "0.5932498", "0.59227145", "0.59102255", "0.5847438", "0.5840282", "0.58258367", "0.5808027", "0.57810843", "0.57621497", "0.57604545", "0.5749891", "0.5748201", "0.5739698", "0.57256573", "0.57052135", "0.5693886", "0.5689392", "0.56630564", "0.5660993", "0.5655757", "0.56554013", "0.5654926", "0.56236523", "0.5617413", "0.5611573", "0.56063783", "0.5600904", "0.5597886", "0.5594063", "0.5592389", "0.55803084", "0.55787164", "0.5572224", "0.5569931", "0.5560667", "0.5559895", "0.5557972", "0.5557958", "0.5541423", "0.5536397", "0.5536069", "0.5532209", "0.55269235", "0.5521516", "0.55209446", "0.55191815", "0.5508102", "0.5503478", "0.5490398", "0.5482936", "0.5474782", "0.546077", "0.54588616", "0.5457451", "0.54543585", "0.54521215", "0.5446412", "0.5443071", "0.5440509", "0.54399663", "0.5436779", "0.5431357", "0.54240185", "0.5419599", "0.5413214", "0.5408291", "0.5406384", "0.54038566", "0.540165", "0.53999645", "0.539202", "0.53919584", "0.5388451", "0.53834903", "0.53728974", "0.5365401", "0.53649294", "0.5361356", "0.5358669", "0.53556365", "0.53537923", "0.5349179", "0.534785", "0.53420025", "0.53406084", "0.5334029", "0.5333695", "0.5332519", "0.53294235", "0.5325575", "0.53240216", "0.5323303" ]
0.6663846
0