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: 24 /Coverage entropy=1.9102521673303827
@Test(timeout = 4000) public void test24() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); String string0 = "mn("; fBProcedureCall1.addParam(2, "mn("); fBProcedureCall0.equals(fBProcedureCall1); FBProcedureParam fBProcedureParam0 = new FBProcedureParam(); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); fBProcedureCall2.clone(); fBProcedureCall2.clone(); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); FBProcedureCall fBProcedureCall4 = new FBProcedureCall(); fBProcedureCall4.clone(); try { fBProcedureCall3.registerOutParam(3674, 3674); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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 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(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 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\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 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 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 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 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 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 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 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\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 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(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 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 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 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(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 testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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\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 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 testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", 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 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 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 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 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 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 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 }", "@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(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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 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 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 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 testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", 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(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 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 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 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 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 }", "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 testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", 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 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(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 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 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\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 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 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 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 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 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 testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", 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 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 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 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 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 testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", 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 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 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 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\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 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(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 testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", 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 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 }" ]
[ "0.73894846", "0.72570306", "0.6971041", "0.6914302", "0.69097257", "0.6902295", "0.6901109", "0.6875403", "0.68446016", "0.6839118", "0.6816335", "0.6812971", "0.67888266", "0.6775035", "0.6768184", "0.6760446", "0.67487085", "0.6735191", "0.67199534", "0.67060894", "0.66972685", "0.66768074", "0.66588485", "0.66257906", "0.65989107", "0.65861315", "0.65770954", "0.65740883", "0.6557939", "0.65408033", "0.65398866", "0.6517587", "0.64964694", "0.6485593", "0.6476077", "0.6473874", "0.64730155", "0.6470929", "0.6458491", "0.6437674", "0.64261115", "0.64205915", "0.6410898", "0.6408714", "0.6408553", "0.64047587", "0.6402998", "0.6401929", "0.6401628", "0.63955927", "0.63853747", "0.6376973", "0.6372184", "0.6353246", "0.6329082", "0.63035095", "0.6286362", "0.6281081", "0.62771165", "0.62770003", "0.626851", "0.6265657", "0.62573165", "0.6252273", "0.624914", "0.6240887", "0.6238349", "0.6238194", "0.62316877", "0.6217923", "0.62093467", "0.6208698", "0.62085825", "0.619639", "0.619569", "0.619553", "0.61849785", "0.61754006", "0.61715347", "0.6153044", "0.6152124", "0.6149784", "0.6142631", "0.61318636", "0.6126846", "0.6114936", "0.6108838", "0.61003053", "0.60963094", "0.6095726", "0.60853195", "0.6072735", "0.60662884", "0.6063756", "0.6063016", "0.6059312", "0.6041979", "0.60345435", "0.6029837", "0.60196644", "0.6011502" ]
0.0
-1
Test case number: 25 /Coverage entropy=1.7562764023249788
@Test(timeout = 4000) public void test25() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3674, "250"); String string0 = "oyA6@hY>6JL<<"; FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, "oyA6@hY>6JL<<"); fBProcedureParam1.clone(); fBProcedureCall0.addOutputParam(fBProcedureParam1); fBProcedureCall0.addParam(3674, "250"); FBProcedureParam fBProcedureParam2 = new FBProcedureParam(1726, "250"); fBProcedureParam2.clone(); fBProcedureParam0.setType(45); fBProcedureCall0.addOutputParam(fBProcedureParam2); fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureCall0.getOutputParam(1726); int int0 = (-1587); // Undeclared exception! fBProcedureCall0.registerOutParam(3674, (-1587)); }
{ "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 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 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 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 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 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 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 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 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 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\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 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\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 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 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 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 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 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 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 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 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 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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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 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 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 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 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 }", "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 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 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 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\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 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 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(\"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\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 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 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 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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", 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 @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 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 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();\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 }", "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 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 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 }", "@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 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 }", "@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 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 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\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();\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(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 }", "@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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, 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 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 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(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 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 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 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 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 }", "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 @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.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 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 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\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.74381286", "0.72133476", "0.70844775", "0.7000327", "0.6914766", "0.68715096", "0.6860318", "0.6843772", "0.68393004", "0.68211573", "0.68173265", "0.6814283", "0.68084526", "0.6788443", "0.67704445", "0.675509", "0.6710046", "0.6701595", "0.66932535", "0.66815114", "0.6628814", "0.6621015", "0.6619513", "0.65924716", "0.6581201", "0.6580619", "0.65471584", "0.65349", "0.65313363", "0.65239465", "0.6520935", "0.6501571", "0.6472516", "0.6467332", "0.646597", "0.64608014", "0.6427602", "0.64159596", "0.6403604", "0.6386506", "0.638241", "0.6381896", "0.638143", "0.63793296", "0.6377503", "0.6371815", "0.63704914", "0.63701785", "0.63625294", "0.6359678", "0.6355174", "0.6349288", "0.63314694", "0.63255626", "0.63229334", "0.6320099", "0.6319846", "0.63070726", "0.629488", "0.627926", "0.62576294", "0.62378126", "0.6223166", "0.62231433", "0.62231183", "0.6221673", "0.6211673", "0.620672", "0.62008375", "0.6197407", "0.61961436", "0.6195653", "0.6183101", "0.61720157", "0.6169157", "0.61687154", "0.61625683", "0.6159759", "0.61570495", "0.61519665", "0.61376315", "0.61370265", "0.6131448", "0.61223185", "0.61122763", "0.61042696", "0.61001015", "0.60958624", "0.6095046", "0.60883504", "0.60596716", "0.60355854", "0.6019266", "0.60150564", "0.60147035", "0.60141116", "0.6012434", "0.59968936", "0.599674", "0.5991955", "0.59895164" ]
0.0
-1
Test case number: 26 /Coverage entropy=1.7740376442826762
@Test(timeout = 4000) public void test26() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "FgZRnc2Yp%jU?C2`8"); fBProcedureParam0.setIndex(3); fBProcedureCall0.getSQL(false); fBProcedureParam0.setType(3); fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureParam0.setValue("FgZRnc2Yp%jU?C2`8"); fBProcedureParam0.setIndex(1861); fBProcedureParam0.setIndex(1861); fBProcedureParam0.setIndex(547); fBProcedureParam0.setIndex(887); fBProcedureParam0.setIndex(547); fBProcedureParam0.setIndex(1625); fBProcedureParam0.setIndex(1967); fBProcedureParam0.setIndex(1625); fBProcedureCall0.registerOutParam(1625, 749); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureParam0.setIndex((-1384)); fBProcedureParam0.setIndex(0); fBProcedureParam0.setIndex(887); fBProcedureParam0.setIndex((-1832)); fBProcedureParam0.setIndex(1967); fBProcedureParam0.setIndex(18); assertEquals(749, fBProcedureParam0.getType()); }
{ "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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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\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 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 }", "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 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(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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 }", "@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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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(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(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 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\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 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 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 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 }", "public double entropyPotential() {\n \n return (-1.0);\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 public void chiSquaredTest1() {\n long[] occs = new long[26];\n occs[0] = 43;\n occs[1] = 453;\n occs[2] = 42;\n occs[3] = 4;\n occs[4] = 1;\n occs[5] = 0;\n occs[6] = 27;\n occs[7] = 29;\n occs[8] = 301;\n occs[9] = 107;\n occs[10] = 79;\n occs[11] = 201;\n occs[12] = 3;\n occs[13] = 5;\n occs[14] = 82;\n occs[15] = 36;\n occs[16] = 47;\n occs[17] = 90;\n occs[18] = 68;\n occs[19] = 45;\n occs[20] = 9;\n occs[21] = 23;\n occs[22] = 42;\n occs[23] = 421;\n occs[24] = 26;\n occs[25] = 2;\n int textLen = 2186;\n assertEquals(64388.4292706625, this.ic.chiSquared(occs,\n this.freq.getExpectedLetterFrequencies(), textLen), 0.01);\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\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 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 testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", 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 }", "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 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 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 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 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 testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", 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 }", "public static void main(String[] args) {\n int N = Integer.parseInt(args[0]);\n int x = Integer.parseInt(args[1]);\n Integer[] a = new Integer[N];\n for (int i = 0; i < N; i++) {\n a[i] = i % x;\n }\n StdOut.printf(\"H = %4.2f\\n\", entropy(a));\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 testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\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 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 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 }", "public static void main(String[] args) {\n\n\n\n int timeSteps = 2;\n int variables = 100;\n RandomGenerator rg = new RandomGenerator();\n rg.setSeed(System.currentTimeMillis());\n\n// Create many columns in a multidimensional array (2 rows by 100 columns),\n// where the next time step (row 2) copies the value of the column on the left\n// from the previous time step (row 1):\n int[][] twoDTimeSeries = new int[timeSteps][];\n twoDTimeSeries[0] = rg.generateRandomInts(variables, 2); //表示产生服从0-2均匀分布的100个随机数\n twoDTimeSeries[1] = new int[variables];\n twoDTimeSeries[1][0] = twoDTimeSeries[0][variables - 1];\n System.arraycopy(twoDTimeSeries[0], 0, twoDTimeSeries[1], 1, variables - 1);\n\n// Create a TE calculator and run it:\n TransferEntropyCalculatorDiscrete teCalc=\n new TransferEntropyCalculatorDiscrete(2, 1);\n teCalc.initialise();\n// Add observations of transfer across one cell to the right (j=1)\n// per time step:\n teCalc.addObservations(twoDTimeSeries, 1);\n\n double result2D = teCalc.computeAverageLocalOfObservations();\n System.out.printf(\"The result should be close to 1 bit here, \" +\n \"since we are executing copy operations of what is effectively \" +\n \"a random bit to each cell here: %.3f bits\\n\", result2D);\n\n }", "@Test\n public void deltaBarICTest1() {\n String text = \"The basic idea of information theory is the more one knows about a topic, the less new information one \"\n + \"is apt to get about it. If an event is very probable, it is no surprise when it happens and thus provides little \"\n + \"new information. Inversely, if the event was improbable, it is much more informative that the event happened. \"\n + \"Therefore, the information content is an increasing function of the inverse of the probability of the event (1/p). \"\n + \"Now, if more events may happen, entropy measures the average information content you can expect to get if one of \"\n + \"the events actually happens. This implies that casting a die has more entropy than tossing a coin because each outcome \"\n + \"of the die has smaller probability than each outcome of the coin.Thus, entropy is a measure of unpredictability of the \"\n + \"state, or equivalently, of its average information content. To get an intuitive understanding of these terms, consider \"\n + \"the example of a political poll. Usually, such polls happen because the outcome of the poll is not already known. \"\n + \"In other words, the outcome of the poll is relatively unpredictable, and actually performing the poll and learning \"\n + \"the results gives some new information; these are just different ways of saying that the a priori entropy of the poll \"\n + \"results is large. Now, consider the case that the same poll is performed a second time shortly after the first poll. \"\n + \"Since the result of the first poll is already known, the outcome of the second poll can be predicted well and the \"\n + \"results should not contain much new information; in this case the a priori entropy of the second poll result is small \"\n + \"relative to that of the first.Now consider the example of a coin toss. Assuming the probability of heads is the same \"\n + \"as the probability of tails, then the entropy of the coin toss is as high as it could be. This is because there is no \"\n + \"way to predict the outcome of the coin toss ahead of time: if we have to choose, the best we can do is predict that the \"\n + \"coin will come up heads, and this prediction will be correct with probability 1/2. Such a coin toss has one bit of \"\n + \"entropy since there are two possible outcomes that occur with equal probability, and learning the actual outcome \"\n + \"contains one bit of information. In contrast, a coin toss using a coin that has two heads and no tails has zero \"\n + \"entropy since the coin will always come up heads, and the outcome can be predicted perfectly. Analogously, \"\n + \"one binary-outcome with equiprobable values has a Shannon entropy of log 2 ⁡ 2 = 1 \"\n + \"{\\\\displaystyle \\\\log _{2}2=1} \\\\log _{2}2=1 bit. Similarly, one trit with equiprobable values contains \"\n + \"log 2 ⁡ 3 {\\\\displaystyle \\\\log _{2}3} \\\\log _{2}3 (about 1.58496) bits of information because it can have \"\n + \"one of three values.English text, treated as a string of characters, has fairly low entropy, i.e., is fairly \"\n + \"predictable. Even if we do not know exactly what is going to come next, we can be fairly certain that, \"\n + \"for example, 'e' will be far more common than 'z', that the combination 'qu' will be much more common than \"\n + \"any other combination with a 'q' in it, and that the combination 'th' will be more common than 'z', 'q', or 'qu'. \"\n + \"After the first few letters one can often guess the rest of the word. English text has between 0.6 \"\n + \"and 1.3 bits of entropy per character of the message.\";\n\n assertEquals(1.7489797231, this.ic.deltaBarIC(text.toLowerCase()), 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 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\n public void testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\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(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 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 testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", 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(\"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\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }" ]
[ "0.7452271", "0.7273936", "0.70332164", "0.6985934", "0.6975004", "0.6940081", "0.6915194", "0.68660235", "0.68543273", "0.68484205", "0.6829878", "0.67992693", "0.67562276", "0.6720169", "0.671388", "0.67023015", "0.668004", "0.6668531", "0.6646523", "0.66203105", "0.6617671", "0.6613522", "0.6609767", "0.6604519", "0.659016", "0.65797", "0.65484476", "0.6523969", "0.65070647", "0.6494047", "0.6493446", "0.6468103", "0.6458633", "0.64527595", "0.6426858", "0.6423078", "0.6387039", "0.63834685", "0.6358866", "0.6332331", "0.6327496", "0.6309253", "0.6294415", "0.6293026", "0.62840664", "0.62782717", "0.6264991", "0.626459", "0.6262072", "0.6249773", "0.62285846", "0.62176085", "0.62090945", "0.62072", "0.61984855", "0.61919725", "0.6187829", "0.61772186", "0.6174755", "0.6170734", "0.6162818", "0.61558497", "0.6144373", "0.6124008", "0.6121833", "0.61130995", "0.61125165", "0.6107296", "0.6098164", "0.6091351", "0.6026835", "0.6019806", "0.601183", "0.5996418", "0.5996042", "0.5984865", "0.59793824", "0.5973084", "0.5965368", "0.59650004", "0.59545803", "0.5952343", "0.59519076", "0.5945377", "0.59375846", "0.59314156", "0.59307724", "0.5926866", "0.5919982", "0.59162503", "0.59149486", "0.5906802", "0.5904249", "0.58782625", "0.5874988", "0.58579755", "0.5854404", "0.58530974", "0.5849276", "0.5839459", "0.5828312" ]
0.0
-1
Test case number: 27 /Coverage entropy=1.6051472703821856
@Test(timeout = 4000) public void test27() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(1107, "HLB0f"); fBProcedureCall0.addOutputParam(fBProcedureParam0); FBProcedureParam fBProcedureParam1 = new FBProcedureParam(); FBProcedureParam fBProcedureParam2 = fBProcedureCall0.addParam(1107, "HLB0f"); fBProcedureParam2.setType((-2355)); fBProcedureParam0.setIndex((-2353)); fBProcedureParam2.setType((-2355)); fBProcedureParam0.setIndex(547); fBProcedureParam2.setIndex(1107); fBProcedureParam0.setIndex((-2355)); fBProcedureCall0.registerOutParam(1107, 1107); Object object0 = new Object(); fBProcedureCall0.addOutputParam(fBProcedureParam2); assertEquals(1107, fBProcedureParam2.getType()); assertEquals(1107, fBProcedureParam2.getPosition()); }
{ "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 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\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 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 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 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 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 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 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 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 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 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 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 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(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\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 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 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 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 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 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 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 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 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 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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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\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 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 }", "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 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 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 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 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 @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 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 testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", 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 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(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 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 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 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 testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", 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 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 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 @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();\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 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 @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 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 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 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 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 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 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 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(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 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(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 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\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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 }", "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 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 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 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 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 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 testSC205() {\n CuteNetlibCase.doTest(\"SC205.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 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\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }" ]
[ "0.7518465", "0.7305784", "0.7199116", "0.70455366", "0.70257455", "0.6992488", "0.698772", "0.6959294", "0.69537586", "0.6942335", "0.69253165", "0.69155586", "0.6913563", "0.6905702", "0.6903903", "0.68951905", "0.6858974", "0.6812221", "0.6812084", "0.68099016", "0.68084145", "0.680424", "0.6784357", "0.6758171", "0.6752542", "0.671199", "0.6707635", "0.6707377", "0.66050607", "0.6577607", "0.657734", "0.65714353", "0.65674853", "0.6564689", "0.6560938", "0.65535295", "0.65512335", "0.6539553", "0.6533696", "0.6530065", "0.6515381", "0.65050435", "0.6495676", "0.6473264", "0.6465775", "0.64578676", "0.6457283", "0.6444018", "0.6437325", "0.6423908", "0.64208084", "0.6416047", "0.64136034", "0.64118713", "0.6408717", "0.64046943", "0.637707", "0.6375212", "0.6370803", "0.6358551", "0.63555366", "0.6350552", "0.634644", "0.6339082", "0.63251483", "0.6312406", "0.630446", "0.6292421", "0.6282671", "0.6279186", "0.6262988", "0.62460047", "0.623693", "0.6230422", "0.6229863", "0.6228568", "0.62112004", "0.62081397", "0.62044555", "0.61950725", "0.61904305", "0.6183883", "0.61824113", "0.61668324", "0.6152228", "0.6143577", "0.61419725", "0.6139876", "0.61295563", "0.6113757", "0.609565", "0.60760427", "0.6060415", "0.60575557", "0.6049677", "0.6045409", "0.60444146", "0.60305524", "0.6029897", "0.6029112", "0.6027469" ]
0.0
-1
Test case number: 28 /Coverage entropy=1.7782333057997075
@Test(timeout = 4000) public void test28() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); fBProcedureCall0.equals(fBProcedureCall0); FBProcedureParam fBProcedureParam0 = new FBProcedureParam(); fBProcedureCall0.clone(); fBProcedureCall0.clone(); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); fBProcedureCall2.clone(); try { fBProcedureCall1.registerOutParam(2, 2); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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 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(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 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\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 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 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 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 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 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 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 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\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 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 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 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 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 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 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 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 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 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 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(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 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 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\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 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 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(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 }", "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 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 }", "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 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(\"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\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 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\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 @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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 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 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 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(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\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 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 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 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(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(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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 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 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 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 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 testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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 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 @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 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 testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\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 testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, 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(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", 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 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(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 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 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 }", "@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 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 }" ]
[ "0.735849", "0.7226709", "0.70756906", "0.700543", "0.69363946", "0.6901635", "0.68817395", "0.6850388", "0.6831853", "0.6828552", "0.6805421", "0.68044776", "0.6777445", "0.67554504", "0.6731981", "0.6726512", "0.6725006", "0.67202026", "0.6719419", "0.6717747", "0.6683259", "0.6680384", "0.66769534", "0.6676576", "0.6669098", "0.66114545", "0.6585569", "0.6576808", "0.65321213", "0.6503217", "0.6497756", "0.6492107", "0.6490804", "0.64866155", "0.6478685", "0.64642525", "0.6462036", "0.6442142", "0.64407724", "0.64381534", "0.64378655", "0.64337546", "0.64216596", "0.64021015", "0.6397329", "0.6386037", "0.6382893", "0.6380578", "0.6378539", "0.6376004", "0.6358966", "0.6358905", "0.63467133", "0.6337525", "0.6303273", "0.6297061", "0.629381", "0.6293627", "0.6289781", "0.62864095", "0.6280012", "0.6274376", "0.62709916", "0.6266324", "0.6259356", "0.62396365", "0.62335813", "0.62292314", "0.622709", "0.6206613", "0.6197586", "0.6196272", "0.6191433", "0.6188166", "0.6174265", "0.615568", "0.61430013", "0.61358273", "0.6130585", "0.6126939", "0.6117757", "0.60953075", "0.6077595", "0.60678005", "0.60607994", "0.6053816", "0.6045749", "0.60449266", "0.60352856", "0.6025871", "0.6025001", "0.6024821", "0.6022313", "0.6012745", "0.601079", "0.6009351", "0.59985197", "0.5993892", "0.5980885", "0.5976004", "0.5974919" ]
0.0
-1
Test case number: 29 /Coverage entropy=1.0547209169068124
@Test(timeout = 4000) public void test29() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); Object object10 = new Object(); Object object11 = new Object(); Object object12 = new Object(); Object object13 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(1993, ""); fBProcedureParam0.setType(1993); fBProcedureCall0.addOutputParam(fBProcedureParam0); assertEquals(1993, fBProcedureParam0.getPosition()); Object object14 = fBProcedureCall0.clone(); assertNotSame(fBProcedureCall0, object14); assertTrue(object14.equals((Object)fBProcedureCall0)); }
{ "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\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 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 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 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(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 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 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 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 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 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 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 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 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 }", "@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 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 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 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(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 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 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 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 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 }", "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 }", "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 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 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 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 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\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(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 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(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(\"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 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 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 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 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 testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "public double entropyPotential() {\n \n return (-1.0);\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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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_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 }", "@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 testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", 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 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 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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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\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 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 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 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 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 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 }", "public int getCoverage (){\r\n return coverage;\r\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();\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 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\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 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 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 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 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 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 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 }", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderROC();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }" ]
[ "0.71924156", "0.7068558", "0.6978314", "0.68676126", "0.68330985", "0.68193746", "0.6795421", "0.6765078", "0.67583674", "0.67376876", "0.6736838", "0.6717859", "0.67168224", "0.6709816", "0.6680898", "0.6672961", "0.6646572", "0.66315186", "0.66179764", "0.6604376", "0.65444666", "0.65252894", "0.6524288", "0.651877", "0.64967954", "0.6493721", "0.6451585", "0.64420223", "0.6441646", "0.6404006", "0.63905805", "0.63895345", "0.638683", "0.63465816", "0.63439786", "0.63423675", "0.63414794", "0.6331403", "0.62917393", "0.62856543", "0.62804323", "0.6278369", "0.62781924", "0.6275988", "0.6275354", "0.6270646", "0.6267181", "0.6262889", "0.6250678", "0.623327", "0.62085027", "0.6182133", "0.6177382", "0.61756027", "0.61697006", "0.6098836", "0.6094663", "0.6091081", "0.6088095", "0.6071373", "0.60616106", "0.6057702", "0.6054723", "0.60499156", "0.60490847", "0.6043017", "0.6039452", "0.602908", "0.60288405", "0.6027177", "0.6021423", "0.60017705", "0.5999017", "0.59924304", "0.5976487", "0.5970679", "0.5936634", "0.5935999", "0.5932231", "0.59309226", "0.59282285", "0.5911668", "0.5910048", "0.5908208", "0.58967143", "0.5887889", "0.58874565", "0.5887304", "0.58737135", "0.5867402", "0.5859273", "0.5851159", "0.58487356", "0.58363634", "0.58311987", "0.5830737", "0.58229357", "0.58147717", "0.5810518", "0.580622", "0.57967716" ]
0.0
-1
Test case number: 30 /Coverage entropy=0.6931471805599453
@Test(timeout = 4000) public void test30() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); String string0 = "GNz"; FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); Object object10 = new Object(); // Undeclared exception! try { fBProcedureCall0.addInputParam((FBProcedureParam) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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 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 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 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 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 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 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(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 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 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\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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 }", "@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 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 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 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 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 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 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 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 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 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 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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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(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 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 public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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 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 }", "@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 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 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(\"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 public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", 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\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 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 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 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 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 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 testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", 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\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 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 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 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\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 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 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(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\tpublic void testOptimization() throws Exception {\n\t\tfor(int i = 0; i < 20000000; i++) {\n\t\t\tint _300s = (int) (Math.random() * 100);\n\t\t\tint _100s = (int) (Math.random() * 100);\n\t\t\tint _50s = (int) (Math.random() * 100);\n\t\t\tint misses = (int) (Math.random() * 100);\n\t\t\t\n\t\t\tdouble acc = OsuApiScore.getAccuracy(_300s, _100s, _50s, misses);\n\t\t\t\n\t\t\tAccuracyDistribution accuracyDistribution = AccuracyDistribution.closest(\n\t\t\t\t\t_300s + _100s + _50s + misses, misses,\n\t\t\t\t\tacc);\n\t\t\t\n\t\t\tdouble rec = OsuApiScore.getAccuracy(accuracyDistribution.getX300(),\n\t\t\t\t\taccuracyDistribution.getX100(), accuracyDistribution.getX50(),\n\t\t\t\t\taccuracyDistribution.getMiss());\n\t\t\t\n\t\t\tassertEquals(acc, rec, 0d);\n\t\t}\n\t}", "@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 public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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 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 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 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 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 }", "@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(\"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(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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 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 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(\"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 test70() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n assertFalse(naiveBayesMultinomialText0.getNormalizeDocLength());\n \n StringKernel stringKernel0 = new StringKernel();\n Capabilities capabilities0 = stringKernel0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate();\n naiveBayesMultinomialText0.setNormalizeDocLength(true);\n naiveBayesMultinomialText0.buildClassifier(instances0);\n DenseInstance denseInstance0 = new DenseInstance(0);\n naiveBayesMultinomialText0.distributionForInstance(denseInstance0);\n assertTrue(naiveBayesMultinomialText0.getNormalizeDocLength());\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n CostMatrix costMatrix0 = Evaluation.handleCostOption(\"\", 1281);\n assertNull(costMatrix0);\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 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 }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }" ]
[ "0.754593", "0.72932154", "0.7175146", "0.71271354", "0.709498", "0.70635396", "0.705726", "0.6970957", "0.6958484", "0.69457513", "0.6920991", "0.69204324", "0.6910777", "0.68989414", "0.68954", "0.6848588", "0.68423903", "0.6804963", "0.6794195", "0.6791611", "0.6773266", "0.6766333", "0.67478836", "0.66828704", "0.66779226", "0.6656448", "0.6652135", "0.6647921", "0.66469014", "0.6609091", "0.659988", "0.65906835", "0.65846205", "0.6577866", "0.6567689", "0.6550629", "0.6541362", "0.6540014", "0.654001", "0.65352523", "0.6532301", "0.65315574", "0.6530221", "0.6529458", "0.6520775", "0.65091246", "0.64922553", "0.64794505", "0.6475565", "0.64552706", "0.6454135", "0.64517975", "0.64180666", "0.6399468", "0.6388014", "0.6387722", "0.63848567", "0.63703114", "0.6370301", "0.63637483", "0.6360527", "0.63556045", "0.63533324", "0.6337564", "0.63375574", "0.6326552", "0.63239115", "0.6318257", "0.63148147", "0.63113964", "0.630994", "0.62877315", "0.628771", "0.62817067", "0.627809", "0.6275523", "0.6274215", "0.62523025", "0.6232003", "0.6230891", "0.61994195", "0.6190563", "0.6190366", "0.61881185", "0.6185268", "0.6174236", "0.6170088", "0.6157159", "0.61484355", "0.61418414", "0.61277986", "0.6120345", "0.6116141", "0.6088157", "0.6084579", "0.60789835", "0.60691595", "0.6068248", "0.60611176", "0.605418", "0.60437024" ]
0.0
-1
Test case number: 31 /Coverage entropy=1.6460124172766666
@Test(timeout = 4000) public void test31() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); int int0 = 3; FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "^gZRnc2Y!%jU?C2`8"); fBProcedureCall0.getSQL(false); int int1 = 1625; fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureParam0.setValue("^gZRnc2Y!%jU?C2`8"); fBProcedureParam0.setIndex(1861); int int2 = (-1384); fBProcedureParam0.setIndex(1861); fBProcedureParam0.setIndex(547); fBProcedureParam0.setIndex((-201774121)); fBProcedureParam0.setType(1861); fBProcedureParam0.setIndex(547); fBProcedureParam0.setIndex(1967); fBProcedureParam0.setIndex((-201774121)); int int3 = 749; FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); fBProcedureCall0.getInputParams(); fBProcedureParam0.setValue("^gZRnc2Y!%jU?C2`8"); fBProcedureParam0.setIndex(1); fBProcedureParam0.setValue(fBProcedureCall1); // Undeclared exception! try { fBProcedureCall1.registerOutParam((-1384), 2); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -1385 // verifyException("java.util.Vector", e); } }
{ "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 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 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 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 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 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 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 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 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 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\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 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 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(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 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 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(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 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 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 }", "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 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 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 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 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 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 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 double entropyPotential() {\n \n return (-1.0);\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 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 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 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 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(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 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 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 public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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(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 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 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 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 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(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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 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 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 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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(\"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 testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", 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 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 }", "private double entropy(double x) {\r\n\t\tif (x > 0)\r\n\t\t\treturn -(x * (Math.log(x) / Math.log(2.0)));\r\n\t\telse\r\n\t\t\treturn 0.0;\r\n\t}", "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 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 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 }", "public p207() {\n double target = 1/12345.0;\n double log2 = Math.log(2);\n\n for (int x = 2; x < 2000000; x++){\n double a = Math.floor(Math.log(x) / log2) / (x-1);\n if (a < target){\n System.out.println(x*(x-1L));\n break;\n }\n }\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 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 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 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 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 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\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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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(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 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 }", "private double infobits(double[] probs) {\r\n\t\tdouble sum = 0;\r\n\t\tfor (int i = 0; i < probs.length; i++) {\r\n\t\t\tsum += entropy(probs[i]);\r\n\t\t}\r\n\t\treturn sum;\r\n\t}", "@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(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 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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\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 }", "@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 }", "public static void main(String[] args) {\n int N = Integer.parseInt(args[0]);\n int x = Integer.parseInt(args[1]);\n Integer[] a = new Integer[N];\n for (int i = 0; i < N; i++) {\n a[i] = i % x;\n }\n StdOut.printf(\"H = %4.2f\\n\", entropy(a));\n }", "public static void main(String[] args) {\n\n\n\n int timeSteps = 2;\n int variables = 100;\n RandomGenerator rg = new RandomGenerator();\n rg.setSeed(System.currentTimeMillis());\n\n// Create many columns in a multidimensional array (2 rows by 100 columns),\n// where the next time step (row 2) copies the value of the column on the left\n// from the previous time step (row 1):\n int[][] twoDTimeSeries = new int[timeSteps][];\n twoDTimeSeries[0] = rg.generateRandomInts(variables, 2); //表示产生服从0-2均匀分布的100个随机数\n twoDTimeSeries[1] = new int[variables];\n twoDTimeSeries[1][0] = twoDTimeSeries[0][variables - 1];\n System.arraycopy(twoDTimeSeries[0], 0, twoDTimeSeries[1], 1, variables - 1);\n\n// Create a TE calculator and run it:\n TransferEntropyCalculatorDiscrete teCalc=\n new TransferEntropyCalculatorDiscrete(2, 1);\n teCalc.initialise();\n// Add observations of transfer across one cell to the right (j=1)\n// per time step:\n teCalc.addObservations(twoDTimeSeries, 1);\n\n double result2D = teCalc.computeAverageLocalOfObservations();\n System.out.printf(\"The result should be close to 1 bit here, \" +\n \"since we are executing copy operations of what is effectively \" +\n \"a random bit to each cell here: %.3f bits\\n\", result2D);\n\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 }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }" ]
[ "0.7247436", "0.7009193", "0.69803184", "0.67868835", "0.67805594", "0.6779225", "0.6775838", "0.6772618", "0.6746969", "0.6738932", "0.6736395", "0.6735647", "0.67337453", "0.6678942", "0.66540307", "0.66538346", "0.6640801", "0.66176486", "0.6611099", "0.65799165", "0.65722615", "0.65699846", "0.6562818", "0.652552", "0.6514048", "0.65046614", "0.64902663", "0.6472685", "0.6397029", "0.63518345", "0.63211393", "0.6308256", "0.63044643", "0.6280637", "0.62705255", "0.62601656", "0.6245953", "0.6241557", "0.62357795", "0.6233438", "0.6224993", "0.62247264", "0.6223586", "0.62177515", "0.6217135", "0.6185677", "0.6176594", "0.6152113", "0.61515296", "0.6137349", "0.6133801", "0.61328053", "0.61308026", "0.61298543", "0.6109342", "0.61081743", "0.6105693", "0.6094761", "0.60931104", "0.6082768", "0.60619545", "0.6050883", "0.6002995", "0.6002937", "0.5993267", "0.59787816", "0.59647894", "0.595904", "0.5954823", "0.5951134", "0.59470963", "0.59456396", "0.5925056", "0.59040374", "0.5900305", "0.58934057", "0.58798623", "0.587963", "0.5874684", "0.58613676", "0.5857813", "0.5857486", "0.5854865", "0.5853062", "0.58505297", "0.5839334", "0.5833249", "0.5831488", "0.58255565", "0.58161575", "0.5811309", "0.58097285", "0.58044744", "0.5792837", "0.578316", "0.57748365", "0.5768033", "0.57668036", "0.576519", "0.57625884", "0.5757529" ]
0.0
-1
Test case number: 32 /Coverage entropy=0.37677016125643675
@Test(timeout = 4000) public void test32() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); Object object10 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); // Undeclared exception! try { fBProcedureCall0.addParam((-1), "Z2IY|A~e;ZDR\"8G"); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -1 // verifyException("java.util.Vector", e); } }
{ "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 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 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 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 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 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 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\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 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 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 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 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\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 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\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(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 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 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 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 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 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(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 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 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 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 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 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(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 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 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 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 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 }", "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(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 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 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 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 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(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(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 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 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 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(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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, 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 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 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 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(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 @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 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 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 testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n int N = Integer.parseInt(args[0]);\n int x = Integer.parseInt(args[1]);\n Integer[] a = new Integer[N];\n for (int i = 0; i < N; i++) {\n a[i] = i % x;\n }\n StdOut.printf(\"H = %4.2f\\n\", entropy(a));\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 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 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 testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", 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\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 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 testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", 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 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 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\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n\n\n\n int timeSteps = 2;\n int variables = 100;\n RandomGenerator rg = new RandomGenerator();\n rg.setSeed(System.currentTimeMillis());\n\n// Create many columns in a multidimensional array (2 rows by 100 columns),\n// where the next time step (row 2) copies the value of the column on the left\n// from the previous time step (row 1):\n int[][] twoDTimeSeries = new int[timeSteps][];\n twoDTimeSeries[0] = rg.generateRandomInts(variables, 2); //表示产生服从0-2均匀分布的100个随机数\n twoDTimeSeries[1] = new int[variables];\n twoDTimeSeries[1][0] = twoDTimeSeries[0][variables - 1];\n System.arraycopy(twoDTimeSeries[0], 0, twoDTimeSeries[1], 1, variables - 1);\n\n// Create a TE calculator and run it:\n TransferEntropyCalculatorDiscrete teCalc=\n new TransferEntropyCalculatorDiscrete(2, 1);\n teCalc.initialise();\n// Add observations of transfer across one cell to the right (j=1)\n// per time step:\n teCalc.addObservations(twoDTimeSeries, 1);\n\n double result2D = teCalc.computeAverageLocalOfObservations();\n System.out.printf(\"The result should be close to 1 bit here, \" +\n \"since we are executing copy operations of what is effectively \" +\n \"a random bit to each cell here: %.3f bits\\n\", result2D);\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\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 test144() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n Vector<Integer> vector0 = new Vector<Integer>();\n resultMatrixSignificance0.m_HeaderKeys = vector0;\n vector0.add((Integer) 0);\n resultMatrixSignificance0.getDefaultMeanWidth();\n resultMatrixSignificance0.getRevision();\n int int0 = ResultMatrix.SIGNIFICANCE_TIE;\n int[] intArray0 = new int[3];\n intArray0[0] = 1;\n resultMatrixSignificance0.setCountWidth(1);\n intArray0[1] = 0;\n intArray0[2] = 0;\n resultMatrixSignificance0.m_RowOrder = intArray0;\n resultMatrixSignificance0.getSignificance(0, 322);\n int int1 = resultMatrixSignificance0.getSignificanceWidth();\n assertEquals(1, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, int1);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCSD1() {\n CuteNetlibCase.doTest(\"SCSD1.SIF\", \"8.666666674333367\", null, 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 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 test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }" ]
[ "0.7403794", "0.7291005", "0.69887537", "0.686414", "0.6862366", "0.6819778", "0.68092424", "0.6807879", "0.680716", "0.6789353", "0.6742273", "0.67414016", "0.67211735", "0.67055684", "0.66932136", "0.6648672", "0.66387224", "0.6612611", "0.6607565", "0.6603141", "0.6593222", "0.6581494", "0.6576441", "0.65658116", "0.6562508", "0.65562", "0.6536254", "0.6475996", "0.6424423", "0.642388", "0.6380644", "0.6361197", "0.63385445", "0.63245237", "0.6323413", "0.6310096", "0.6307237", "0.63068426", "0.62909645", "0.6282839", "0.6279127", "0.62670356", "0.62600905", "0.6257313", "0.6255397", "0.6232329", "0.62209594", "0.62055904", "0.620363", "0.61624557", "0.6160105", "0.61545265", "0.6153302", "0.615129", "0.6145932", "0.61315584", "0.61290705", "0.6119889", "0.61078626", "0.6105595", "0.61044365", "0.61026204", "0.60899997", "0.6088616", "0.60541093", "0.6034537", "0.60298616", "0.602967", "0.599766", "0.5996762", "0.59940124", "0.599101", "0.59904015", "0.5971583", "0.5964664", "0.59627384", "0.59621465", "0.5940854", "0.5939685", "0.5904325", "0.5900563", "0.58972764", "0.5863865", "0.58631825", "0.586117", "0.5859638", "0.58592814", "0.5848208", "0.5848043", "0.5846385", "0.58454466", "0.5812887", "0.5811055", "0.58107275", "0.5802328", "0.5799356", "0.5794081", "0.57822305", "0.5781766", "0.578157", "0.5781323" ]
0.0
-1
Test case number: 33 /Coverage entropy=0.6365141682948128
@Test(timeout = 4000) public void test33() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); Object object10 = new Object(); Object object11 = new Object(); Object object12 = new Object(); Object object13 = new Object(); Object object14 = new Object(); Object object15 = new Object(); Object object16 = new Object(); Object object17 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); int int0 = 843; FBProcedureParam fBProcedureParam0 = new FBProcedureParam((-201774121), "OUT"); fBProcedureParam0.setType(0); // Undeclared exception! try { fBProcedureCall0.addInputParam(fBProcedureParam0); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -201774121 // verifyException("java.util.Vector", e); } }
{ "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\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\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 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 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 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 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 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 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 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(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 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\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 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 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 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 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 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 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 }", "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 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 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 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 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 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 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 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 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 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 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(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 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 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 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(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 }", "@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 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 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 }", "@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 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 testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\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 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(\"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(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 testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", 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 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 @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 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 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 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 double entropyPotential() {\n \n return (-1.0);\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 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 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 testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.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 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 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 }", "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(\"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 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 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 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 testFitnessProportionateSelection()\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 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\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 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\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 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 @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n\n\n\n int timeSteps = 2;\n int variables = 100;\n RandomGenerator rg = new RandomGenerator();\n rg.setSeed(System.currentTimeMillis());\n\n// Create many columns in a multidimensional array (2 rows by 100 columns),\n// where the next time step (row 2) copies the value of the column on the left\n// from the previous time step (row 1):\n int[][] twoDTimeSeries = new int[timeSteps][];\n twoDTimeSeries[0] = rg.generateRandomInts(variables, 2); //表示产生服从0-2均匀分布的100个随机数\n twoDTimeSeries[1] = new int[variables];\n twoDTimeSeries[1][0] = twoDTimeSeries[0][variables - 1];\n System.arraycopy(twoDTimeSeries[0], 0, twoDTimeSeries[1], 1, variables - 1);\n\n// Create a TE calculator and run it:\n TransferEntropyCalculatorDiscrete teCalc=\n new TransferEntropyCalculatorDiscrete(2, 1);\n teCalc.initialise();\n// Add observations of transfer across one cell to the right (j=1)\n// per time step:\n teCalc.addObservations(twoDTimeSeries, 1);\n\n double result2D = teCalc.computeAverageLocalOfObservations();\n System.out.printf(\"The result should be close to 1 bit here, \" +\n \"since we are executing copy operations of what is effectively \" +\n \"a random bit to each cell here: %.3f bits\\n\", result2D);\n\n }", "@Test\n public void testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\n }", "public static void main(String[] args) {\n int N = Integer.parseInt(args[0]);\n int x = Integer.parseInt(args[1]);\n Integer[] a = new Integer[N];\n for (int i = 0; i < N; i++) {\n a[i] = i % x;\n }\n StdOut.printf(\"H = %4.2f\\n\", entropy(a));\n }" ]
[ "0.72853786", "0.7199764", "0.6931758", "0.688548", "0.685831", "0.67895234", "0.6781837", "0.6776397", "0.6769784", "0.6746006", "0.6730085", "0.6694444", "0.6692934", "0.66898656", "0.6687654", "0.66798395", "0.6677788", "0.66730297", "0.6664237", "0.662022", "0.6603112", "0.65973735", "0.65564245", "0.65285516", "0.65280515", "0.65169704", "0.6502339", "0.64575475", "0.6449597", "0.641285", "0.6353389", "0.6349572", "0.6334235", "0.6334172", "0.63252157", "0.63036495", "0.62950385", "0.6294996", "0.62946576", "0.62850416", "0.6283437", "0.628011", "0.6277318", "0.6277157", "0.6274732", "0.6264425", "0.6256731", "0.6242304", "0.62392354", "0.6229096", "0.62155306", "0.62100023", "0.6209949", "0.61897695", "0.61776406", "0.61660904", "0.615382", "0.61429137", "0.6124437", "0.612405", "0.61185515", "0.6117079", "0.6116203", "0.60698515", "0.606618", "0.6059794", "0.60457194", "0.603417", "0.6010934", "0.600624", "0.5977956", "0.5975879", "0.59644544", "0.59272313", "0.5923413", "0.5917892", "0.5908887", "0.5898569", "0.58960927", "0.5893601", "0.5882928", "0.5882497", "0.58768415", "0.58744097", "0.5872435", "0.58682925", "0.5862605", "0.58607167", "0.5858719", "0.5851858", "0.58503246", "0.5845447", "0.5845362", "0.58424836", "0.58422506", "0.584073", "0.5835961", "0.5833244", "0.58319515", "0.58188385", "0.5793463" ]
0.0
-1
Test case number: 34 /Coverage entropy=0.6931471805599453
@Test(timeout = 4000) public void test34() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); Object object10 = new Object(); Object object11 = new Object(); Object object12 = new Object(); Object object13 = new Object(); Object object14 = new Object(); Object object15 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); String string0 = fBProcedureCall0.getName(); assertNull(string0); }
{ "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 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\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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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\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 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 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 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\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(\"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 public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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 @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", 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 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 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 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_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 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 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(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\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 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 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 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 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 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 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 }", "@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 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 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(\"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(\"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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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 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 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 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 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 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 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 testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "public double entropyPotential() {\n \n return (-1.0);\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 testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", 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 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 }", "@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 }", "@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 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(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 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 }" ]
[ "0.7567167", "0.73785996", "0.7195534", "0.7096882", "0.7088525", "0.70753855", "0.7061731", "0.70521796", "0.7025096", "0.6991953", "0.69810194", "0.6968849", "0.695948", "0.69477606", "0.69269043", "0.69257915", "0.6906435", "0.6889317", "0.68548036", "0.68455845", "0.684046", "0.6813567", "0.6785223", "0.6770222", "0.6751248", "0.6750906", "0.67477435", "0.66641504", "0.6623787", "0.66185045", "0.6609034", "0.6597888", "0.6595294", "0.6592722", "0.658227", "0.65653074", "0.6537766", "0.6528527", "0.6522915", "0.6513888", "0.6507664", "0.6505739", "0.64920944", "0.6470804", "0.64524335", "0.64516306", "0.64478654", "0.6441051", "0.6435983", "0.643162", "0.6425855", "0.6411481", "0.64080787", "0.63960624", "0.639605", "0.6383336", "0.6369574", "0.63656723", "0.63627684", "0.63540864", "0.63320625", "0.6331132", "0.63291204", "0.63222474", "0.6321156", "0.6320772", "0.6306947", "0.6303926", "0.6213089", "0.62101334", "0.6180841", "0.61800337", "0.6168203", "0.614871", "0.6131508", "0.6126851", "0.61202216", "0.6116437", "0.6112586", "0.610205", "0.6099523", "0.6094371", "0.6084701", "0.6084439", "0.6079627", "0.60749334", "0.6074136", "0.6072527", "0.6070594", "0.60697037", "0.6049301", "0.60456336", "0.6040447", "0.60400045", "0.6039335", "0.6038919", "0.6021354", "0.6016734", "0.60156226", "0.6011313", "0.6009187" ]
0.0
-1
Test case number: 35 /Coverage entropy=1.2293362159076602
@Test(timeout = 4000) public void test35() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3674, "250"); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, "250"); FBProcedureParam fBProcedureParam2 = new FBProcedureParam(1, "250"); fBProcedureParam2.clone(); fBProcedureParam0.setType(45); fBProcedureParam2.setType((-587)); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); fBProcedureCall0.addInputParam(fBProcedureParam1); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); FBProcedureParam fBProcedureParam3 = new FBProcedureParam(); fBProcedureCall2.addOutputParam(fBProcedureParam3); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); FBProcedureParam fBProcedureParam4 = fBProcedureCall0.addParam(1048, "_0c*k6{e>T1hto_)3"); assertEquals(1048, fBProcedureParam4.getPosition()); Object object0 = fBProcedureCall2.clone(); assertTrue(object0.equals((Object)fBProcedureCall2)); assertNotSame(object0, fBProcedureCall2); }
{ "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 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 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 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 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 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 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 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\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 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 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 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 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 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 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 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\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 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 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(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 }", "@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 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 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 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\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 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(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\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 testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", 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 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 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 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 testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 }", "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 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\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 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 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 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 @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 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 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 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 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 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(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 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(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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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 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 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(\"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 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 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(\"'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 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 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 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 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 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 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 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 testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", 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\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\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 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 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(\"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 }" ]
[ "0.73618424", "0.7208649", "0.70382816", "0.7026379", "0.6981698", "0.6952124", "0.693664", "0.6915168", "0.69122064", "0.6876184", "0.6861054", "0.68463385", "0.6829203", "0.6801759", "0.679431", "0.67911464", "0.6786146", "0.67852116", "0.6742251", "0.6729302", "0.6716612", "0.6701443", "0.66814876", "0.6669326", "0.66653913", "0.6616833", "0.6584895", "0.6547913", "0.6547904", "0.6489329", "0.648035", "0.64737296", "0.64717877", "0.64639497", "0.64418745", "0.6424706", "0.6423794", "0.64073133", "0.6399624", "0.6392202", "0.6381959", "0.6380778", "0.6379239", "0.6376946", "0.6376879", "0.6374133", "0.6372955", "0.6362365", "0.6360675", "0.6354347", "0.6354203", "0.6351199", "0.6328315", "0.63221765", "0.6320473", "0.63199353", "0.6311478", "0.62885916", "0.6286314", "0.6282984", "0.6276002", "0.62445307", "0.62400526", "0.62162465", "0.6208982", "0.62073153", "0.618559", "0.6153221", "0.6145915", "0.61108005", "0.61071676", "0.6107089", "0.6104359", "0.6104353", "0.6097286", "0.60943174", "0.6085531", "0.60763466", "0.6069681", "0.6063477", "0.6059163", "0.6056787", "0.6053607", "0.60517734", "0.6048373", "0.6036121", "0.6036044", "0.6035584", "0.60253996", "0.6023846", "0.60208595", "0.6017589", "0.60039383", "0.5994967", "0.5980819", "0.5978167", "0.5977251", "0.5974226", "0.59689426", "0.5966134", "0.5959153" ]
0.0
-1
Test case number: 36 /Coverage entropy=1.7541823508852143
@Test(timeout = 4000) public void test36() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "HY105"); fBProcedureCall0.addOutputParam(fBProcedureParam0); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); fBProcedureCall1.getSQL(true); fBProcedureCall1.addParam(3, "[s~dI}(-N'Z}]0T( ."); fBProcedureCall1.addParam(37, "xk(*$z\"UCH%y0+y"); fBProcedureCall1.getSQL(false); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); fBProcedureCall3.addInputParam(fBProcedureParam0); FBProcedureCall fBProcedureCall4 = new FBProcedureCall(); try { fBProcedureCall4.registerOutParam(3674, 2); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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 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 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\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\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 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\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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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(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 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 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 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 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 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 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 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 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 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 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 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 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 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(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 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 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 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(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 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 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 testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", 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 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 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 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 testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"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\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 testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\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(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 }", "@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 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 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 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(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", 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\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, 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 }", "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 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 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 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 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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", 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 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 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 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 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 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\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n\n\n\n int timeSteps = 2;\n int variables = 100;\n RandomGenerator rg = new RandomGenerator();\n rg.setSeed(System.currentTimeMillis());\n\n// Create many columns in a multidimensional array (2 rows by 100 columns),\n// where the next time step (row 2) copies the value of the column on the left\n// from the previous time step (row 1):\n int[][] twoDTimeSeries = new int[timeSteps][];\n twoDTimeSeries[0] = rg.generateRandomInts(variables, 2); //表示产生服从0-2均匀分布的100个随机数\n twoDTimeSeries[1] = new int[variables];\n twoDTimeSeries[1][0] = twoDTimeSeries[0][variables - 1];\n System.arraycopy(twoDTimeSeries[0], 0, twoDTimeSeries[1], 1, variables - 1);\n\n// Create a TE calculator and run it:\n TransferEntropyCalculatorDiscrete teCalc=\n new TransferEntropyCalculatorDiscrete(2, 1);\n teCalc.initialise();\n// Add observations of transfer across one cell to the right (j=1)\n// per time step:\n teCalc.addObservations(twoDTimeSeries, 1);\n\n double result2D = teCalc.computeAverageLocalOfObservations();\n System.out.printf(\"The result should be close to 1 bit here, \" +\n \"since we are executing copy operations of what is effectively \" +\n \"a random bit to each cell here: %.3f bits\\n\", result2D);\n\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 }" ]
[ "0.7538637", "0.7402437", "0.7099334", "0.70723885", "0.70656043", "0.7058529", "0.7041385", "0.702069", "0.6998128", "0.69818246", "0.6968264", "0.6962248", "0.6953893", "0.694656", "0.6898776", "0.68793005", "0.68302226", "0.68262917", "0.6822803", "0.68049777", "0.6784423", "0.67768085", "0.6776614", "0.67726785", "0.6760355", "0.6735339", "0.67115736", "0.66548854", "0.66395456", "0.6618963", "0.6594252", "0.65836096", "0.6558623", "0.6552265", "0.65443575", "0.6538397", "0.65347064", "0.65315235", "0.6520804", "0.65192246", "0.6516035", "0.650636", "0.64511406", "0.64445394", "0.64317465", "0.64240235", "0.641801", "0.64137816", "0.63989025", "0.6395759", "0.6376491", "0.6365578", "0.63571995", "0.6354241", "0.6342962", "0.6334218", "0.63246495", "0.632364", "0.6322012", "0.6311818", "0.6290599", "0.6268144", "0.6255648", "0.62430006", "0.62395", "0.62286747", "0.6218912", "0.62068415", "0.6206765", "0.6197433", "0.6178022", "0.6153233", "0.6136166", "0.6116006", "0.6100565", "0.60999894", "0.6090876", "0.60850346", "0.60772413", "0.6065577", "0.6060948", "0.6055977", "0.6055088", "0.60435456", "0.60427606", "0.6040936", "0.60360724", "0.6031902", "0.60171735", "0.6010926", "0.6009823", "0.6007116", "0.59930265", "0.5979568", "0.5959167", "0.5958939", "0.5957036", "0.5953523", "0.59510934", "0.59460557", "0.59316117" ]
0.0
-1
Test case number: 37 /Coverage entropy=0.6365141682948128
@Test(timeout = 4000) public void test37() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = new FBProcedureParam(); fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureParam0.setType((-349)); fBProcedureParam0.setType((-134)); fBProcedureCall0.addInputParam(fBProcedureParam0); assertFalse(fBProcedureParam0.isParam()); }
{ "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 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 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 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 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 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 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 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 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 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 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\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 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 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(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 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 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 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 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 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 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 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(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 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 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\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 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 }", "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 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 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 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 }", "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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 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 @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 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 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(\"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\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 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 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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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\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 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 testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", 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 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\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 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 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 @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 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 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\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "public double entropyPotential() {\n \n return (-1.0);\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\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 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 testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\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 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 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 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 static void main(String[] args) {\n\n\n\n int timeSteps = 2;\n int variables = 100;\n RandomGenerator rg = new RandomGenerator();\n rg.setSeed(System.currentTimeMillis());\n\n// Create many columns in a multidimensional array (2 rows by 100 columns),\n// where the next time step (row 2) copies the value of the column on the left\n// from the previous time step (row 1):\n int[][] twoDTimeSeries = new int[timeSteps][];\n twoDTimeSeries[0] = rg.generateRandomInts(variables, 2); //表示产生服从0-2均匀分布的100个随机数\n twoDTimeSeries[1] = new int[variables];\n twoDTimeSeries[1][0] = twoDTimeSeries[0][variables - 1];\n System.arraycopy(twoDTimeSeries[0], 0, twoDTimeSeries[1], 1, variables - 1);\n\n// Create a TE calculator and run it:\n TransferEntropyCalculatorDiscrete teCalc=\n new TransferEntropyCalculatorDiscrete(2, 1);\n teCalc.initialise();\n// Add observations of transfer across one cell to the right (j=1)\n// per time step:\n teCalc.addObservations(twoDTimeSeries, 1);\n\n double result2D = teCalc.computeAverageLocalOfObservations();\n System.out.printf(\"The result should be close to 1 bit here, \" +\n \"since we are executing copy operations of what is effectively \" +\n \"a random bit to each cell here: %.3f bits\\n\", result2D);\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(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 }", "@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 }" ]
[ "0.7440884", "0.7356861", "0.70329845", "0.70177287", "0.6972301", "0.6971499", "0.6966937", "0.6936008", "0.69263226", "0.6906839", "0.68998027", "0.6871536", "0.6855019", "0.68318534", "0.68133605", "0.6776", "0.67733127", "0.6770717", "0.6770097", "0.67455053", "0.6719375", "0.6715873", "0.66978604", "0.66896725", "0.6683809", "0.66792005", "0.6666325", "0.66160125", "0.65814024", "0.65553516", "0.6512363", "0.6508185", "0.6502462", "0.64750415", "0.6462162", "0.6441437", "0.64287376", "0.64191365", "0.6407477", "0.64052254", "0.63973284", "0.6393591", "0.63737184", "0.63649416", "0.6359013", "0.63480395", "0.6333688", "0.63297355", "0.631964", "0.6316287", "0.6305897", "0.6305456", "0.62958896", "0.62921274", "0.62902004", "0.6284998", "0.6284527", "0.62800527", "0.62546366", "0.62447166", "0.62107605", "0.6209604", "0.61971813", "0.6196864", "0.6177145", "0.61570287", "0.6122464", "0.6091628", "0.606573", "0.60655046", "0.60602987", "0.60571945", "0.6051334", "0.60239404", "0.60116273", "0.59927493", "0.59916323", "0.5990755", "0.5977837", "0.59689444", "0.59648573", "0.5958628", "0.5957633", "0.59450656", "0.5931415", "0.5921971", "0.5912476", "0.59035265", "0.5896646", "0.58946574", "0.5893079", "0.5888982", "0.58831424", "0.58756447", "0.58743185", "0.58689576", "0.5866156", "0.5860903", "0.5860485", "0.5847867", "0.5844106" ]
0.0
-1
Test case number: 38 /Coverage entropy=1.9094924996266924
@Test(timeout = 4000) public void test38() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3674, "sh"); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, "sh"); fBProcedureParam0.setType(3674); fBProcedureParam0.setType(45); fBProcedureParam0.setIndex(1); fBProcedureParam0.setType((-587)); fBProcedureParam1.setType(18); fBProcedureParam0.setIndex((-568)); fBProcedureParam0.setType(0); fBProcedureParam1.setIndex(2); fBProcedureParam0.setIndex(3674); fBProcedureCall0.addOutputParam(fBProcedureParam1); fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureCall0.getOutputParam(1); fBProcedureCall0.registerOutParam(3674, (-1587)); fBProcedureCall0.mapOutParamIndexToPosition(2, true); try { fBProcedureCall0.mapOutParamIndexToPosition(2, false); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Specified parameter does not exist. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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 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 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 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 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 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 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\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 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 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 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 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 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 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 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(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 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 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 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 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\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 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 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 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 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 }", "@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 }", "@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 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 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 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 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(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 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\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 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 }", "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 testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", 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(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\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 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 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 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\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(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(\"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 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 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 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 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(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\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 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\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 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 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 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 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();\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(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 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 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 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 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 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 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(\"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 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 }" ]
[ "0.7422565", "0.72924256", "0.7075498", "0.7071534", "0.70540696", "0.6989245", "0.6988028", "0.69643766", "0.69426167", "0.69214046", "0.6916136", "0.69031537", "0.68778515", "0.6872779", "0.6838342", "0.6829843", "0.6828133", "0.6824577", "0.6817211", "0.6794566", "0.6787776", "0.674876", "0.67484844", "0.6744726", "0.6733762", "0.67067575", "0.66764784", "0.66497946", "0.66165996", "0.66100264", "0.6587649", "0.6541113", "0.6528043", "0.6524364", "0.65220237", "0.6513668", "0.6504452", "0.6501262", "0.64927316", "0.64896834", "0.6482118", "0.6469501", "0.64594", "0.6445238", "0.6441983", "0.643706", "0.64162517", "0.6413747", "0.6411227", "0.6407784", "0.6407739", "0.6404397", "0.6395708", "0.6391101", "0.6387974", "0.6371867", "0.6353333", "0.634077", "0.6328493", "0.6324959", "0.6316129", "0.6291304", "0.6278265", "0.62758917", "0.6272297", "0.6270773", "0.6249878", "0.62477", "0.6211789", "0.6200104", "0.6159406", "0.6158963", "0.6149453", "0.6148881", "0.61285174", "0.6126199", "0.6119853", "0.6116106", "0.61129755", "0.61086345", "0.60925794", "0.6082825", "0.6077606", "0.6076454", "0.60730636", "0.6072672", "0.606405", "0.605751", "0.6053083", "0.60501534", "0.6039214", "0.6035214", "0.6032775", "0.60222995", "0.60124576", "0.6007058", "0.6004158", "0.59994936", "0.5990721", "0.59907037", "0.59888315" ]
0.0
-1
Test case number: 39 /Coverage entropy=0.5623351446188083
@Test(timeout = 4000) public void test39() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); int int0 = (-1304); fBProcedureCall0.mapOutParamIndexToPosition((-39), true); try { fBProcedureCall0.mapOutParamIndexToPosition((-1304), false); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Specified parameter does not exist. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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 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 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 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 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 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 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(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\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 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\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 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 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 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(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 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 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 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(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 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 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(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 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 @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 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 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 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 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_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\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 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\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 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 @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(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 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 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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, 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 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 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 @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 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(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 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 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 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 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\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 testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, 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 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 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 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 testSC105() {\n CuteNetlibCase.doTest(\"SC105.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(\"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(\"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 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 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.7422451", "0.7280451", "0.7015764", "0.7006697", "0.6995887", "0.6980223", "0.69272465", "0.69229084", "0.69110715", "0.68838793", "0.68838245", "0.68792194", "0.6850273", "0.68434", "0.6790433", "0.67797446", "0.6763933", "0.67601544", "0.67463195", "0.6742686", "0.6726696", "0.67228776", "0.6691089", "0.6680239", "0.66583836", "0.6640569", "0.65928596", "0.657687", "0.6573841", "0.6547865", "0.65386117", "0.64968604", "0.64964986", "0.6491555", "0.64880866", "0.64761376", "0.645352", "0.6437721", "0.6434487", "0.6434393", "0.6425825", "0.6421054", "0.6410044", "0.64040244", "0.64024866", "0.6400934", "0.63981104", "0.6392902", "0.63924205", "0.6390908", "0.63888", "0.63862383", "0.6384871", "0.6361358", "0.63424623", "0.63335454", "0.63258487", "0.63171", "0.6300291", "0.629898", "0.6298449", "0.6277949", "0.6274685", "0.6230815", "0.6223852", "0.62216324", "0.6213748", "0.6213636", "0.6209428", "0.61975855", "0.6185751", "0.618239", "0.6176678", "0.6173086", "0.6169815", "0.61669767", "0.61619407", "0.61530733", "0.6147414", "0.6146718", "0.6141973", "0.61386275", "0.6136595", "0.6126202", "0.6124943", "0.61247087", "0.6123865", "0.6116004", "0.6111258", "0.61071396", "0.60926723", "0.6085813", "0.6085352", "0.6085248", "0.6079436", "0.6070964", "0.60628676", "0.606239", "0.605586", "0.6042925", "0.60359883" ]
0.0
-1
Test case number: 40 /Coverage entropy=1.874063207697293
@Test(timeout = 4000) public void test40() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = new FBProcedureParam(); fBProcedureCall0.addOutputParam(fBProcedureParam0); int int0 = (-31); fBProcedureCall0.mapOutParamIndexToPosition(3828); fBProcedureParam0.clone(); try { fBProcedureCall0.registerOutParam(3828, 1); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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 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 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 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 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 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 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 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 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 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\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 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 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 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 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 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 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\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(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 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 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(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 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 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 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(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 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 }", "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 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 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 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\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 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 public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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 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 }", "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 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 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(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 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 }", "@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(\"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 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(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 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 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 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 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 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 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(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(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 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\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 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(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 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 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 testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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(\"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 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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testOptimization() throws Exception {\n\t\tfor(int i = 0; i < 20000000; i++) {\n\t\t\tint _300s = (int) (Math.random() * 100);\n\t\t\tint _100s = (int) (Math.random() * 100);\n\t\t\tint _50s = (int) (Math.random() * 100);\n\t\t\tint misses = (int) (Math.random() * 100);\n\t\t\t\n\t\t\tdouble acc = OsuApiScore.getAccuracy(_300s, _100s, _50s, misses);\n\t\t\t\n\t\t\tAccuracyDistribution accuracyDistribution = AccuracyDistribution.closest(\n\t\t\t\t\t_300s + _100s + _50s + misses, misses,\n\t\t\t\t\tacc);\n\t\t\t\n\t\t\tdouble rec = OsuApiScore.getAccuracy(accuracyDistribution.getX300(),\n\t\t\t\t\taccuracyDistribution.getX100(), accuracyDistribution.getX50(),\n\t\t\t\t\taccuracyDistribution.getMiss());\n\t\t\t\n\t\t\tassertEquals(acc, rec, 0d);\n\t\t}\n\t}", "@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 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 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\n public void testFitnessProportionateSelection()\n {\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 }", "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 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 @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }" ]
[ "0.7426649", "0.7196932", "0.7045453", "0.70297277", "0.7008574", "0.7000175", "0.69501406", "0.69208753", "0.6899532", "0.6839877", "0.6830109", "0.68300164", "0.68245083", "0.68234116", "0.681868", "0.6797405", "0.6793671", "0.67414886", "0.6736251", "0.66532105", "0.6634174", "0.66302866", "0.66185147", "0.66146934", "0.6602911", "0.6587425", "0.6555257", "0.65181744", "0.65170974", "0.651697", "0.6509439", "0.64620966", "0.64468807", "0.6444505", "0.64326394", "0.64189875", "0.6413793", "0.6413049", "0.6407891", "0.64055777", "0.64011234", "0.64008844", "0.6385543", "0.6379925", "0.6372336", "0.63722193", "0.63680214", "0.63677746", "0.63654876", "0.6337944", "0.6337567", "0.6312738", "0.63044536", "0.62942445", "0.6281758", "0.62778795", "0.6262944", "0.62615025", "0.62594205", "0.6259313", "0.62587684", "0.62491906", "0.6242976", "0.62166375", "0.6213098", "0.62036496", "0.6188697", "0.61885333", "0.61784697", "0.61752105", "0.6172972", "0.6169224", "0.61679524", "0.61625975", "0.61572343", "0.6140082", "0.6124085", "0.61045164", "0.61035115", "0.6097584", "0.60891634", "0.6088937", "0.6083597", "0.60825104", "0.60765713", "0.60518116", "0.60495055", "0.604841", "0.6044038", "0.6031852", "0.6015326", "0.60006315", "0.5980772", "0.5975476", "0.5967149", "0.59550655", "0.5950587", "0.59457654", "0.59435", "0.5941289", "0.5940764" ]
0.0
-1
Test case number: 41 /Coverage entropy=1.9292801145349803
@Test(timeout = 4000) public void test41() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "gZbnc2Y!%jU?C2`8"); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureCall0.getSQL(true); fBProcedureCall0.getSQL(true); fBProcedureCall0.getOutputParam(1702); fBProcedureCall0.mapOutParamIndexToPosition(1, true); fBProcedureCall0.getSQL(true); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); fBProcedureCall0.getSQL(true); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); fBProcedureCall3.getInputParam(1); fBProcedureCall2.addParam(1702, "Keu{9b0D\"p"); try { fBProcedureCall3.registerOutParam(1702, 1); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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\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 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 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 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 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 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 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 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 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 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 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 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\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(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 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\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 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 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 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 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 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 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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 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 }", "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 }", "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 testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", 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 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 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(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 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\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\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 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 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 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 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(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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\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 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\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 public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, 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 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 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();\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 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 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 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 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 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(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 testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", 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 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 }", "@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 testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.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(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 }", "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(\"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(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 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 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 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\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.7338508", "0.7200284", "0.6999662", "0.69460386", "0.688877", "0.6885534", "0.6881519", "0.68564016", "0.6807491", "0.6806425", "0.67978066", "0.6797604", "0.676681", "0.6761216", "0.67468536", "0.6737309", "0.6709062", "0.67076886", "0.6684009", "0.6675914", "0.66739565", "0.6655603", "0.6615664", "0.65725356", "0.6572276", "0.65308416", "0.6512882", "0.6460806", "0.6454445", "0.64011407", "0.6386718", "0.63822424", "0.6368407", "0.63676846", "0.63661253", "0.6366053", "0.6346428", "0.6345648", "0.6340242", "0.63161534", "0.63161004", "0.63093483", "0.63023025", "0.6302177", "0.62946934", "0.6289158", "0.6287312", "0.6285748", "0.62826675", "0.62817484", "0.6277681", "0.6275895", "0.6273702", "0.62709236", "0.6270381", "0.62620795", "0.6244814", "0.62344295", "0.62296945", "0.6224854", "0.62112373", "0.6207529", "0.61823833", "0.6142254", "0.6135903", "0.61351365", "0.61253893", "0.6111044", "0.6109475", "0.60960174", "0.6088898", "0.6085335", "0.6076999", "0.6061616", "0.60553706", "0.60534894", "0.6049847", "0.60372204", "0.603558", "0.603238", "0.602512", "0.601454", "0.6013713", "0.60092074", "0.6008842", "0.59845704", "0.59790516", "0.5975351", "0.5969833", "0.59608895", "0.59605676", "0.5958161", "0.59567565", "0.5955113", "0.59512573", "0.59400254", "0.59337723", "0.59216666", "0.59148926", "0.5903201", "0.58925056" ]
0.0
-1
Test case number: 42 /Coverage entropy=1.7868083399845722
@Test(timeout = 4000) public void test42() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); fBProcedureCall0.equals(fBProcedureCall1); FBProcedureParam fBProcedureParam0 = new FBProcedureParam(); fBProcedureCall1.clone(); fBProcedureCall1.clone(); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); fBProcedureCall3.clone(); try { fBProcedureCall2.registerOutParam(2, 2); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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\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 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 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 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 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 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 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 @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 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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 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 @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 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\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 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 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(\"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 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 @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 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(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 @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(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, 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 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 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 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 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 @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", 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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, 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 @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 test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", 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 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 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 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 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 testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", 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 @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 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 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 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(\"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\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 testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.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 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 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\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 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 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 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 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\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 testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", 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 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 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 @Tag(\"unstable\")\n public void testOSA_30() {\n CuteNetlibCase.doTest(\"OSA-30.SIF\", \"1234567890\", \"1234567890\", 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(\"slow\")\n public void testWOOD1P() {\n CuteNetlibCase.doTest(\"WOOD1P.SIF\", \"1.44290241157344\", \"9.99999999999964\", NumberContext.of(7, 4));\n }", "@Test\n public void costTest() {\n // TODO: test cost\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_18() {\n CuteNetlibCase.doTest(\"KEN-18.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\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, 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 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 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 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 sustainMassiveDamage() {\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 testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"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\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_D() {\n CuteNetlibCase.doTest(\"CRE-D.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(\"bm1000\")\n public void testAGG3() {\n CuteNetlibCase.doTest(\"AGG3.SIF\", \"1.031211593508922E7\", \"5.746768863949547E9\", NumberContext.of(7, 4));\n }" ]
[ "0.74062485", "0.7219932", "0.69142437", "0.6882715", "0.6848759", "0.68483776", "0.68348026", "0.68269247", "0.68136084", "0.6790389", "0.67828685", "0.67547876", "0.6744205", "0.6738604", "0.67370474", "0.67362183", "0.67349523", "0.67344797", "0.670634", "0.6699686", "0.6693643", "0.669213", "0.6684973", "0.6671147", "0.6664876", "0.65893894", "0.65880054", "0.6583995", "0.65784353", "0.65668696", "0.6564093", "0.65460455", "0.6533815", "0.65299153", "0.65294343", "0.6518875", "0.6509666", "0.6508897", "0.6506033", "0.64984506", "0.64751905", "0.6462374", "0.6456857", "0.6427571", "0.64214844", "0.6410734", "0.64098424", "0.640148", "0.6387834", "0.6387137", "0.63759506", "0.63757807", "0.6372815", "0.63696533", "0.6367256", "0.6364121", "0.635967", "0.6358032", "0.6356268", "0.6353466", "0.63516444", "0.6350798", "0.6349101", "0.63462734", "0.63407123", "0.6339547", "0.63395035", "0.6334873", "0.63285255", "0.6327042", "0.632139", "0.6317689", "0.6307861", "0.63064873", "0.6299523", "0.62995005", "0.6292343", "0.6288033", "0.62826544", "0.6276541", "0.62752104", "0.62720233", "0.6269745", "0.6257764", "0.6257022", "0.6235786", "0.622816", "0.6221277", "0.62200224", "0.62135214", "0.62119967", "0.62108195", "0.61847353", "0.61845464", "0.6176492", "0.61709666", "0.6159771", "0.61596644", "0.6154891", "0.6147345", "0.61467445" ]
0.0
-1
Test case number: 43 /Coverage entropy=0.6365141682948128
@Test(timeout = 4000) public void test43() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); boolean boolean0 = fBProcedureCall0.equals("~}"); assertFalse(boolean0); }
{ "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\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 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(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 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 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(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 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 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 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 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 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 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 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 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 }", "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\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 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 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 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 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\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 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 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 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 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\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 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\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\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 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(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 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 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 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(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 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 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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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(\"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 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 testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, 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 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 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 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 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(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 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 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(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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", 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 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(\"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 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(\"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 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 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 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 public void testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\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 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\n public void testFitnessProportionateSelection()\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 }" ]
[ "0.72480595", "0.71733886", "0.6902429", "0.69001997", "0.6871452", "0.6803417", "0.6769355", "0.6766494", "0.67622435", "0.6742356", "0.67367643", "0.67105097", "0.6709057", "0.67057", "0.67004687", "0.66838235", "0.6675427", "0.6671083", "0.6667377", "0.6664225", "0.6618411", "0.6584908", "0.6573783", "0.6527288", "0.6511532", "0.6506139", "0.6460613", "0.6433522", "0.6425273", "0.6414239", "0.6385724", "0.63484716", "0.6342781", "0.6326337", "0.63216364", "0.6318382", "0.63156253", "0.6307927", "0.6307796", "0.6307125", "0.628652", "0.6282232", "0.6281737", "0.62796694", "0.62746584", "0.6271972", "0.6264057", "0.6263204", "0.6262116", "0.6246444", "0.6239245", "0.6238472", "0.62318754", "0.6227389", "0.62204844", "0.6202526", "0.61874634", "0.6183051", "0.6180635", "0.6179783", "0.61518955", "0.6142112", "0.6138715", "0.6133649", "0.61253285", "0.6106751", "0.6082197", "0.6074902", "0.6068044", "0.6064642", "0.6063985", "0.6053281", "0.6051357", "0.603333", "0.6016964", "0.6007503", "0.6007341", "0.6000305", "0.5993764", "0.5987769", "0.5986367", "0.59810305", "0.5975579", "0.5960591", "0.59590787", "0.59461504", "0.5937973", "0.5934377", "0.5929353", "0.59226334", "0.5922372", "0.5921615", "0.59180135", "0.59169966", "0.5912177", "0.5879797", "0.58781517", "0.587656", "0.58754736", "0.58752865", "0.5869815" ]
0.0
-1
Test case number: 44 /Coverage entropy=0.6931471805599453
@Test(timeout = 4000) public void test44() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); Object object10 = new Object(); Object object11 = new Object(); Object object12 = new Object(); Object object13 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); List<FBProcedureParam> list0 = fBProcedureCall0.getInputParams(); assertEquals(0, list0.size()); }
{ "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 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 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 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 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 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(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\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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 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 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(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 }", "@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\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 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 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 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 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 testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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 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 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\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 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 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 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 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 @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(\"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 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 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(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 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(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 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 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 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 testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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\n public void testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\n }", "@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", 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\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 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 testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", 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 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 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 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 test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", 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 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 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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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(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 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 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 testSCSD8() {\n CuteNetlibCase.doTest(\"SCSD8.SIF\", \"905\", null, 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 testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", 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 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 }", "private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\n }\n }", "@Test\n @Tag(\"slow\")\n public void testSCSD6() {\n CuteNetlibCase.doTest(\"SCSD6.SIF\", \"50.5\", null, NumberContext.of(7, 4));\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(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.73965967", "0.7308518", "0.6986863", "0.69767857", "0.6959445", "0.6948282", "0.6920183", "0.6919145", "0.6903519", "0.68674064", "0.686094", "0.6852955", "0.68510866", "0.6848012", "0.6843991", "0.6807439", "0.68050045", "0.6796265", "0.67771846", "0.6744919", "0.67359287", "0.66840106", "0.6657606", "0.6629991", "0.66292113", "0.6592051", "0.65863967", "0.65845174", "0.65812445", "0.65499663", "0.6540983", "0.6533362", "0.6529874", "0.652776", "0.6525455", "0.65159744", "0.6514417", "0.6510027", "0.6509757", "0.65030473", "0.64841187", "0.64802706", "0.64793646", "0.64758945", "0.64654404", "0.64416224", "0.64403707", "0.64326775", "0.6427951", "0.6421071", "0.642099", "0.6409974", "0.6379913", "0.6379297", "0.6361845", "0.6352923", "0.63474965", "0.63468045", "0.63428646", "0.63110185", "0.6291313", "0.62842715", "0.6283815", "0.6277832", "0.62757844", "0.627009", "0.6257713", "0.62499833", "0.62287796", "0.62272745", "0.62225944", "0.61871284", "0.6184487", "0.6174407", "0.6173647", "0.6170847", "0.6170459", "0.6168979", "0.61681443", "0.6160369", "0.61586314", "0.6143958", "0.61355865", "0.61354876", "0.61270684", "0.61199707", "0.6118461", "0.610295", "0.60948426", "0.60910493", "0.6083919", "0.6083912", "0.60813165", "0.608013", "0.60798764", "0.6076867", "0.603756", "0.6036366", "0.60299695", "0.6028221", "0.60275143" ]
0.0
-1
Test case number: 45 /Coverage entropy=1.15374194270109
@Test(timeout = 4000) public void test45() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); Object object10 = new Object(); Object object11 = new Object(); Object object12 = new Object(); Object object13 = new Object(); Object object14 = new Object(); Object object15 = new Object(); Object object16 = new Object(); Object object17 = new Object(); Object object18 = new Object(); Object object19 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); // Undeclared exception! try { fBProcedureCall0.registerOutParam((-501), (-669)); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -502 // verifyException("java.util.Vector", e); } }
{ "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 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 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 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 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 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 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 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 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(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 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 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\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(\"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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", 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 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 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(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 }", "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 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(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 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 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 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\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\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\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 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 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 testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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 }", "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(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 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(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 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 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 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 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 testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", 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 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 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 public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", 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(\"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 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 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 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 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 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 int getCoverage (){\r\n return coverage;\r\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 testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.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 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 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(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(\"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 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(\"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 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 testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", 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 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 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 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 }", "@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 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 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\n @Tag(\"bm1000\")\n public void testDEGEN2() {\n CuteNetlibCase.doTest(\"DEGEN2.SIF\", \"-1435.1779999999999\", \"-1226.12\", NumberContext.of(7, 4));\n }" ]
[ "0.7194726", "0.7087181", "0.69145685", "0.68490845", "0.680071", "0.67921597", "0.6735897", "0.6707481", "0.66969806", "0.668243", "0.66641074", "0.66442543", "0.6613376", "0.6606134", "0.6605283", "0.6592557", "0.6586525", "0.6566272", "0.65559244", "0.65469205", "0.6537951", "0.6517491", "0.6506175", "0.6485505", "0.6436949", "0.6421117", "0.6406938", "0.6399986", "0.63958037", "0.6392027", "0.63913745", "0.63832486", "0.63805246", "0.6371781", "0.63634", "0.63423425", "0.63011914", "0.6300555", "0.62880296", "0.62834066", "0.62810516", "0.62704307", "0.6268146", "0.624815", "0.6242932", "0.6240099", "0.6234534", "0.6230767", "0.6224915", "0.6215141", "0.62142575", "0.62135315", "0.62118924", "0.62109697", "0.62077785", "0.62053835", "0.6204988", "0.6199438", "0.61953056", "0.6190182", "0.6184206", "0.61732954", "0.6158948", "0.6152592", "0.61517525", "0.61486316", "0.61477673", "0.61346537", "0.6126051", "0.6124022", "0.6113146", "0.6110324", "0.61077464", "0.61046773", "0.6103712", "0.60856825", "0.6080444", "0.60802805", "0.607996", "0.6076438", "0.607391", "0.6065417", "0.60619986", "0.60427374", "0.6041357", "0.6041036", "0.6037993", "0.60376316", "0.6026689", "0.6023214", "0.60230845", "0.6021116", "0.6013693", "0.6010239", "0.6004606", "0.60008776", "0.59914494", "0.5988253", "0.59802574", "0.5972399", "0.5964266" ]
0.0
-1
Test case number: 46 /Coverage entropy=0.6365141682948128
@Test(timeout = 4000) public void test46() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = new FBProcedureParam((-685), "c{G01mJsAqc1nb#f8G"); // Undeclared exception! try { fBProcedureCall0.addOutputParam(fBProcedureParam0); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -685 // verifyException("java.util.Vector", e); } }
{ "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 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\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(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 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 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 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\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 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 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 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(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 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 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 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 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 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 }", "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 }", "@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 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(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 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 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 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 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 testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", 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 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 }", "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 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\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 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 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_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", 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 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 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 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 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(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_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(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 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 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 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 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();\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 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 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 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 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 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 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(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 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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", 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 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 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 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 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 testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.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 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 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 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 }" ]
[ "0.7262388", "0.71696246", "0.68670756", "0.686563", "0.68654203", "0.68009347", "0.6766088", "0.6727734", "0.672303", "0.6720788", "0.6699076", "0.66974086", "0.66891867", "0.6688113", "0.66844577", "0.6668057", "0.66588193", "0.6621869", "0.6613111", "0.6598231", "0.65871006", "0.6562177", "0.6549349", "0.65409184", "0.6517746", "0.64839226", "0.64742607", "0.64422137", "0.64398956", "0.64075476", "0.6397967", "0.6367616", "0.6352794", "0.6350772", "0.6335674", "0.6328006", "0.63112515", "0.63093966", "0.62922645", "0.6287779", "0.6284391", "0.6279957", "0.6275877", "0.6265827", "0.62548214", "0.6253058", "0.62474954", "0.624138", "0.62222296", "0.6220127", "0.62184125", "0.62102693", "0.62072086", "0.6205979", "0.6196366", "0.6184911", "0.61821437", "0.61786467", "0.6177667", "0.6172309", "0.6141566", "0.6141382", "0.61400706", "0.6138255", "0.6135004", "0.61315054", "0.61281216", "0.6095647", "0.6052973", "0.6050785", "0.6047058", "0.6018479", "0.6016249", "0.6013354", "0.6012513", "0.599707", "0.59877324", "0.5987216", "0.5984592", "0.5983056", "0.5972531", "0.59708357", "0.59707576", "0.596061", "0.5952037", "0.59435326", "0.5941486", "0.59333444", "0.5932358", "0.59294266", "0.59271485", "0.59240115", "0.59168607", "0.591028", "0.5904867", "0.589289", "0.58854455", "0.5881091", "0.58766437", "0.5874574", "0.5874094" ]
0.0
-1
Test case number: 47 /Coverage entropy=0.9433483923290392
@Test(timeout = 4000) public void test47() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); Object object10 = new Object(); Object object11 = new Object(); Object object12 = new Object(); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); fBProcedureCall1.getInputParam(362); fBProcedureCall1.getInputParam(362); assertFalse(fBProcedureCall1.equals((Object)fBProcedureCall0)); }
{ "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\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 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 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 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 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 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 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 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 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 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(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 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 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 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\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 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 @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 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 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 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 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 @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 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(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 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 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 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 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 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 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 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 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 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 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\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 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 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 testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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 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 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 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 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 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 @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 }", "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 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 @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\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 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\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 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 test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, 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(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", 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 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 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 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();\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_11() {\n CuteNetlibCase.doTest(\"KEN-11.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\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 public void testFitnessProportionateSelection()\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 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\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\n public void test() throws Exception {\n// diversifiedRankingxPM2()\n diversifiedRankingxQuAD();\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 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 public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }" ]
[ "0.7315824", "0.72152793", "0.6883366", "0.6853752", "0.68484175", "0.6845651", "0.6820904", "0.6786432", "0.67689764", "0.67674994", "0.6766263", "0.67532474", "0.67291844", "0.67042714", "0.6684205", "0.66760683", "0.66633147", "0.66610545", "0.6640974", "0.6633962", "0.6598879", "0.65791875", "0.65767616", "0.6561888", "0.6556378", "0.6547389", "0.6509811", "0.6467696", "0.64608717", "0.6450933", "0.6440538", "0.6438252", "0.6403537", "0.6387689", "0.63781935", "0.6370622", "0.6363375", "0.63565654", "0.6354088", "0.63431007", "0.633653", "0.6335642", "0.63346624", "0.6324761", "0.63221806", "0.6320985", "0.6318476", "0.6312783", "0.63088167", "0.6270761", "0.6260488", "0.6259249", "0.6255269", "0.6254042", "0.6240415", "0.6237279", "0.62320125", "0.6221953", "0.6221362", "0.62209105", "0.62133205", "0.6212727", "0.61896884", "0.6188659", "0.6183698", "0.61808527", "0.6173518", "0.6165815", "0.6161951", "0.6159098", "0.614939", "0.61424863", "0.61393577", "0.6139148", "0.6120401", "0.61194086", "0.61173284", "0.6095792", "0.60941386", "0.60890305", "0.60839766", "0.60819894", "0.60766006", "0.60733205", "0.6073013", "0.60680103", "0.60650057", "0.60638416", "0.60610884", "0.6050476", "0.60245544", "0.601771", "0.6011406", "0.60068816", "0.60064995", "0.5998045", "0.5997985", "0.5997613", "0.5995041", "0.5977143", "0.59614366" ]
0.0
-1
Test case number: 48 /Coverage entropy=1.3306600933628874
@Test(timeout = 4000) public void test48() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.getInputParam(3); fBProcedureParam0.setIndex(3); fBProcedureCall0.getSQL(false); int int0 = 1861; int int1 = 1625; fBProcedureCall0.addInputParam(fBProcedureParam0); try { fBProcedureParam0.setValue("^gZRnc2Y!%jU?C2`8"); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // You cannot set value of an non-existing parameter. // verifyException("org.firebirdsql.jdbc.FBProcedureCall$NullParam", e); } }
{ "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 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\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 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 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 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 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 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 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 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 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 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(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 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 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 @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 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 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 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 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 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 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 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 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 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 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 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 testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 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 }", "@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 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 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 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 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\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 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 }", "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(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 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(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 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 }", "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 @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 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 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 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 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 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 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 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 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 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\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(\"'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 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 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 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 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 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 testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", 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 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 testDEGEN2() {\n CuteNetlibCase.doTest(\"DEGEN2.SIF\", \"-1435.1779999999999\", \"-1226.12\", 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(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"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 test144() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n Vector<Integer> vector0 = new Vector<Integer>();\n resultMatrixSignificance0.m_HeaderKeys = vector0;\n vector0.add((Integer) 0);\n resultMatrixSignificance0.getDefaultMeanWidth();\n resultMatrixSignificance0.getRevision();\n int int0 = ResultMatrix.SIGNIFICANCE_TIE;\n int[] intArray0 = new int[3];\n intArray0[0] = 1;\n resultMatrixSignificance0.setCountWidth(1);\n intArray0[1] = 0;\n intArray0[2] = 0;\n resultMatrixSignificance0.m_RowOrder = intArray0;\n resultMatrixSignificance0.getSignificance(0, 322);\n int int1 = resultMatrixSignificance0.getSignificanceWidth();\n assertEquals(1, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, int1);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCSD1() {\n CuteNetlibCase.doTest(\"SCSD1.SIF\", \"8.666666674333367\", null, NumberContext.of(7, 4));\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\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 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 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 testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }" ]
[ "0.73384845", "0.71999073", "0.6910684", "0.68183976", "0.6777229", "0.67693526", "0.6760433", "0.6750897", "0.67504257", "0.67415506", "0.6708753", "0.6701846", "0.6660457", "0.66426647", "0.66406524", "0.66406065", "0.66396564", "0.662347", "0.6547691", "0.6537609", "0.6533834", "0.65287393", "0.6526894", "0.6511046", "0.6506197", "0.64688766", "0.6462405", "0.6455311", "0.6454281", "0.64538467", "0.6448956", "0.6430687", "0.64070505", "0.639106", "0.6387626", "0.63855827", "0.6376124", "0.6370213", "0.6357483", "0.6356829", "0.6349406", "0.63313997", "0.62968427", "0.62782085", "0.6260338", "0.62563956", "0.6245451", "0.62441045", "0.6243026", "0.6243016", "0.6241994", "0.6230839", "0.6229935", "0.62297374", "0.6222493", "0.62205005", "0.62202126", "0.6204777", "0.6204589", "0.6200462", "0.6183355", "0.6178708", "0.61777943", "0.61754197", "0.6172382", "0.61715245", "0.6170661", "0.6168038", "0.6165718", "0.6161718", "0.6151691", "0.6149653", "0.6143727", "0.6133855", "0.61274546", "0.61245185", "0.6116102", "0.6103455", "0.6099662", "0.6098032", "0.6093493", "0.6083539", "0.6078051", "0.60552305", "0.60544455", "0.60470575", "0.60469085", "0.60387224", "0.60354465", "0.60352945", "0.6006686", "0.60048985", "0.59927815", "0.59844494", "0.5980931", "0.5979028", "0.59783846", "0.5973898", "0.5969107", "0.596827", "0.5967772" ]
0.0
-1
Test case number: 49 /Coverage entropy=1.3321790402101223
@Test(timeout = 4000) public void test49() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); Object object10 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); fBProcedureCall0.getOutputParam(0); int int0 = fBProcedureCall0.mapOutParamIndexToPosition(0, true); assertEquals(0, int0); }
{ "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 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 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\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 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 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 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(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 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 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 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 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 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\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(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 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 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 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 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 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 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 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 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 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 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\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 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 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 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\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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", 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 public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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 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 }", "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 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 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_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 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 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", 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 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 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();\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 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 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 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(\"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 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(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 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\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 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 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 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();\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 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 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 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 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 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 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 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 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\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\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 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 }", "public double entropyPotential() {\n \n return (-1.0);\n}", "@Test\n @Tag(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"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 }" ]
[ "0.7338687", "0.7165398", "0.6927529", "0.69218075", "0.692036", "0.68198603", "0.6815561", "0.6797904", "0.67936987", "0.67732537", "0.6766549", "0.67305833", "0.6710607", "0.6703767", "0.6676943", "0.665857", "0.665576", "0.66469204", "0.66419417", "0.65876806", "0.6555354", "0.6554685", "0.65445423", "0.6540803", "0.65356594", "0.65235054", "0.6483627", "0.64387786", "0.64237726", "0.63916403", "0.6386797", "0.6378739", "0.634979", "0.63464963", "0.63312787", "0.63226414", "0.6318549", "0.6309009", "0.6300196", "0.62981284", "0.6293768", "0.62934685", "0.6283744", "0.62807274", "0.6278816", "0.6278103", "0.6273834", "0.62591577", "0.6258405", "0.6258393", "0.6253519", "0.6249067", "0.6236115", "0.62234634", "0.6222652", "0.6206569", "0.6200689", "0.61933476", "0.61929345", "0.6185086", "0.6174808", "0.614734", "0.6134371", "0.61300623", "0.6109281", "0.60879713", "0.6081587", "0.6079272", "0.60771984", "0.6076103", "0.60564595", "0.60555047", "0.6054486", "0.60500556", "0.60428196", "0.6026833", "0.60248506", "0.6022865", "0.6015094", "0.6014665", "0.60073775", "0.5996669", "0.59956044", "0.59932125", "0.599183", "0.59893906", "0.59814274", "0.5961387", "0.595683", "0.5943882", "0.59353167", "0.5924332", "0.59217024", "0.5915501", "0.59150803", "0.5912852", "0.5895539", "0.5887065", "0.5885301", "0.5880574", "0.5876354" ]
0.0
-1
Test case number: 50 /Coverage entropy=0.37677016125643675
@Test(timeout = 4000) public void test50() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); Object object10 = new Object(); Object object11 = new Object(); Object object12 = new Object(); Object object13 = new Object(); Object object14 = new Object(); Object object15 = new Object(); Object object16 = new Object(); Object object17 = new Object(); Object object18 = new Object(); Object object19 = new Object(); Object object20 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); // Undeclared exception! try { fBProcedureCall0.addParam((-2499), "OY><Qp{Bq@DB+Acd]<$"); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -2499 // verifyException("java.util.Vector", e); } }
{ "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 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 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\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(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 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 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\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 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\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 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 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 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 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 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 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 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 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 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(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 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 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 @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 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 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 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 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 }", "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\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 }", "@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 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 }", "@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 }", "@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 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 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 testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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 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 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 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 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 }", "@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 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 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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n public void testFitnessProportionateSelection()\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\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 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();\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 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 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 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 testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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 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(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 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 testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", 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 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 }", "@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\n public void costTest() {\n // TODO: test cost\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 public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, 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\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 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\tpublic void testOptimization() throws Exception {\n\t\tfor(int i = 0; i < 20000000; i++) {\n\t\t\tint _300s = (int) (Math.random() * 100);\n\t\t\tint _100s = (int) (Math.random() * 100);\n\t\t\tint _50s = (int) (Math.random() * 100);\n\t\t\tint misses = (int) (Math.random() * 100);\n\t\t\t\n\t\t\tdouble acc = OsuApiScore.getAccuracy(_300s, _100s, _50s, misses);\n\t\t\t\n\t\t\tAccuracyDistribution accuracyDistribution = AccuracyDistribution.closest(\n\t\t\t\t\t_300s + _100s + _50s + misses, misses,\n\t\t\t\t\tacc);\n\t\t\t\n\t\t\tdouble rec = OsuApiScore.getAccuracy(accuracyDistribution.getX300(),\n\t\t\t\t\taccuracyDistribution.getX100(), accuracyDistribution.getX50(),\n\t\t\t\t\taccuracyDistribution.getMiss());\n\t\t\t\n\t\t\tassertEquals(acc, rec, 0d);\n\t\t}\n\t}", "@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 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(\"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_60() {\n CuteNetlibCase.doTest(\"OSA-60.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(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 @Tag(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", NumberContext.of(7, 4));\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 testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }" ]
[ "0.731375", "0.71381533", "0.711985", "0.7010411", "0.685839", "0.6841718", "0.6773253", "0.6751513", "0.6745154", "0.67285556", "0.6719581", "0.6678098", "0.66771203", "0.6674001", "0.66645867", "0.6651723", "0.6640334", "0.6633187", "0.66301686", "0.656191", "0.6527471", "0.652511", "0.65062785", "0.64957905", "0.6471384", "0.6469169", "0.6451103", "0.64474577", "0.6431637", "0.6428699", "0.64031136", "0.6393556", "0.6377204", "0.63747454", "0.63721573", "0.63709456", "0.6362905", "0.6361641", "0.6359239", "0.63461846", "0.6329618", "0.6321193", "0.6318947", "0.6297614", "0.62946606", "0.6287334", "0.62769324", "0.62749237", "0.62468064", "0.62400764", "0.6235701", "0.6227505", "0.62155896", "0.6195158", "0.61926866", "0.61748046", "0.6171255", "0.6170188", "0.6166952", "0.61610967", "0.6158784", "0.6143558", "0.613945", "0.6138862", "0.612633", "0.61237127", "0.6122254", "0.6109794", "0.6107149", "0.6106245", "0.610163", "0.60999554", "0.607671", "0.60626596", "0.605515", "0.6040497", "0.6038888", "0.6036319", "0.60359675", "0.6033645", "0.6020035", "0.6019558", "0.6017692", "0.6006641", "0.6002227", "0.59922683", "0.5986134", "0.59731835", "0.59626514", "0.5960482", "0.59580547", "0.5952258", "0.59436405", "0.59413654", "0.5940901", "0.59378594", "0.5926671", "0.59248006", "0.5922455", "0.59139794", "0.5892965" ]
0.0
-1
Test case number: 51 /Coverage entropy=0.8675632284814612
@Test(timeout = 4000) public void test51() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); Object object10 = new Object(); Object object11 = new Object(); Object object12 = new Object(); Object object13 = new Object(); Object object14 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); // Undeclared exception! try { fBProcedureCall0.getInputParam(0); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -1 // verifyException("java.util.Vector", e); } }
{ "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 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 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\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 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 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 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 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 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 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 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 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 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 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\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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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\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 }", "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 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 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 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 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 }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 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 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 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 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 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 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 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 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\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 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(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\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 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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, 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 }", "@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(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(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 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 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 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\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 testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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\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 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 testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\n }", "@Test\n\tpublic void testOptimization() throws Exception {\n\t\tfor(int i = 0; i < 20000000; i++) {\n\t\t\tint _300s = (int) (Math.random() * 100);\n\t\t\tint _100s = (int) (Math.random() * 100);\n\t\t\tint _50s = (int) (Math.random() * 100);\n\t\t\tint misses = (int) (Math.random() * 100);\n\t\t\t\n\t\t\tdouble acc = OsuApiScore.getAccuracy(_300s, _100s, _50s, misses);\n\t\t\t\n\t\t\tAccuracyDistribution accuracyDistribution = AccuracyDistribution.closest(\n\t\t\t\t\t_300s + _100s + _50s + misses, misses,\n\t\t\t\t\tacc);\n\t\t\t\n\t\t\tdouble rec = OsuApiScore.getAccuracy(accuracyDistribution.getX300(),\n\t\t\t\t\taccuracyDistribution.getX100(), accuracyDistribution.getX50(),\n\t\t\t\t\taccuracyDistribution.getMiss());\n\t\t\t\n\t\t\tassertEquals(acc, rec, 0d);\n\t\t}\n\t}", "@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 }" ]
[ "0.7382824", "0.728328", "0.7038854", "0.6965961", "0.69269896", "0.6905783", "0.6889992", "0.6825966", "0.68242806", "0.68175834", "0.6811762", "0.67688316", "0.676703", "0.67613953", "0.6693333", "0.6680242", "0.66697276", "0.66511714", "0.66507065", "0.6645642", "0.66267735", "0.6617451", "0.65985847", "0.6582097", "0.65458095", "0.65253294", "0.6498958", "0.6481129", "0.6462419", "0.6455577", "0.64253676", "0.639303", "0.6376882", "0.6370282", "0.63684076", "0.6364087", "0.63613236", "0.6350038", "0.6336961", "0.63292503", "0.63230646", "0.6309236", "0.63067085", "0.6302457", "0.62753975", "0.6274753", "0.62725323", "0.6271591", "0.62714523", "0.62663656", "0.62659705", "0.62652546", "0.625274", "0.62523806", "0.625232", "0.62493587", "0.624783", "0.62442106", "0.62332433", "0.6233066", "0.62315094", "0.6228375", "0.62208456", "0.6146985", "0.61267096", "0.61210567", "0.6119066", "0.6093119", "0.60926086", "0.60918266", "0.60633427", "0.6039604", "0.60325736", "0.60247827", "0.6008246", "0.6000126", "0.6000095", "0.5992732", "0.59918594", "0.599024", "0.5989162", "0.5988361", "0.5987213", "0.5981523", "0.59807116", "0.5978499", "0.5974371", "0.5963873", "0.59612846", "0.5960498", "0.5945484", "0.59439266", "0.5938502", "0.5931383", "0.5899277", "0.58939654", "0.5885824", "0.5881589", "0.58808047", "0.58794403", "0.5866246" ]
0.0
-1
Test case number: 52 /Coverage entropy=1.7897275885480937
@Test(timeout = 4000) public void test52() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); int int0 = (-452); int int1 = 1; fBProcedureCall0.mapOutParamIndexToPosition(1, true); FBProcedureParam fBProcedureParam0 = new FBProcedureParam(); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.getInputParam(1); FBProcedureParam fBProcedureParam2 = fBProcedureCall0.getOutputParam((-2608)); fBProcedureParam1.setIndex(1); fBProcedureParam0.clone(); fBProcedureParam0.clone(); fBProcedureParam1.setType(1); fBProcedureCall0.addOutputParam(fBProcedureParam0); int int2 = 0; fBProcedureCall0.mapOutParamIndexToPosition(0); fBProcedureParam0.setIndex(64); fBProcedureParam2.setType(2); fBProcedureParam2.setIndex(1451); fBProcedureCall0.addOutputParam(fBProcedureParam2); int int3 = (-201774121); String string0 = "Kx]|"; // Undeclared exception! try { fBProcedureCall0.addParam((-201774121), "Kx]|"); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -201774121 // verifyException("java.util.Vector", e); } }
{ "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\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 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(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 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 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 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 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 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 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\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 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 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 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 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(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 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 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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 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 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\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\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 @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 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 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 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 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 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(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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, 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(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 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(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(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\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 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 }", "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 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 testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\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(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 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 testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", 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 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 testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", 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\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 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 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 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\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 testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", 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 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\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(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", 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 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 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.7436871", "0.7317214", "0.6947506", "0.6937362", "0.6935983", "0.6935586", "0.68920517", "0.686436", "0.6845431", "0.6843476", "0.68349755", "0.68048", "0.6793168", "0.67922056", "0.67622757", "0.67496514", "0.6742531", "0.6723764", "0.6717224", "0.6715699", "0.6678375", "0.667029", "0.6658035", "0.6654295", "0.6635076", "0.6575662", "0.65666", "0.6543821", "0.65225065", "0.6487665", "0.64844817", "0.6471584", "0.6462354", "0.6461473", "0.64524895", "0.64523673", "0.64521426", "0.6439796", "0.64381033", "0.6435012", "0.64319247", "0.6422896", "0.64192766", "0.6418138", "0.64178884", "0.640895", "0.6390755", "0.6384575", "0.637116", "0.6369782", "0.63629067", "0.6331183", "0.6304666", "0.62899745", "0.628376", "0.62828434", "0.627912", "0.62784475", "0.62662715", "0.62592715", "0.62518734", "0.624826", "0.62450975", "0.6240606", "0.62360585", "0.6225355", "0.6220855", "0.621592", "0.62145495", "0.62098765", "0.62011063", "0.6199089", "0.6170816", "0.6162963", "0.6160853", "0.61522794", "0.61504185", "0.6144528", "0.6141438", "0.6126579", "0.61080176", "0.61056364", "0.6105613", "0.61054736", "0.61008614", "0.6095458", "0.60865235", "0.6082171", "0.6079552", "0.6051443", "0.605108", "0.6046121", "0.6041377", "0.6040236", "0.60362595", "0.603577", "0.60315377", "0.60228926", "0.6022867", "0.60048664", "0.5974762" ]
0.0
-1
Test case number: 53 /Coverage entropy=2.0884664513655467
@Test(timeout = 4000) public void test53() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); fBProcedureCall0.setName("2i95<~j!a("); fBProcedureCall0.hashCode(); fBProcedureCall0.getSQL(true); fBProcedureCall0.getOutputParam(1866); fBProcedureCall0.addParam(1866, "2i95<~j!a("); fBProcedureCall0.getName(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.getInputParam(1866); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(274, "SELECT * FROM 2i95<~j!a("); fBProcedureCall0.addOutputParam(fBProcedureParam1); fBProcedureCall0.addParam(274, "2i95<~j!a("); fBProcedureCall0.getOutputParams(); FBProcedureParam fBProcedureParam2 = fBProcedureCall0.getInputParam(1866); assertSame(fBProcedureParam2, fBProcedureParam0); }
{ "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\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 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 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 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 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 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 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(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 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 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 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\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\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 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(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 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 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 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 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 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 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 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(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 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 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 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 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 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 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\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 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 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 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 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 }", "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 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 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\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\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 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 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 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 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 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\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 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 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 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 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 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 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 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 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(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 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 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 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 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 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 testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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\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(\"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 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\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 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\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 }", "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 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\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 testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.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(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 }" ]
[ "0.7405927", "0.7239794", "0.7029844", "0.695231", "0.6928185", "0.6917081", "0.69110703", "0.69049096", "0.6874793", "0.684709", "0.68211025", "0.68199253", "0.68162227", "0.6812633", "0.6803646", "0.6800108", "0.67681795", "0.6740529", "0.67359936", "0.6730944", "0.6729921", "0.6701055", "0.6691018", "0.6670606", "0.6649704", "0.66459864", "0.66370666", "0.6603005", "0.65791214", "0.6494183", "0.64919835", "0.6487736", "0.64615667", "0.6455306", "0.64422643", "0.64390945", "0.6436167", "0.6410296", "0.640884", "0.6395573", "0.63934404", "0.63919276", "0.6378705", "0.63738525", "0.63730663", "0.6359014", "0.6358727", "0.63580877", "0.6358077", "0.63553447", "0.63368106", "0.63359463", "0.63348615", "0.6334737", "0.6330451", "0.6308912", "0.63048047", "0.63031197", "0.62944674", "0.62832654", "0.6254461", "0.62521154", "0.6240879", "0.6240014", "0.6236458", "0.62327147", "0.6215704", "0.6192458", "0.6181118", "0.61684835", "0.61392605", "0.6131082", "0.61272484", "0.6120472", "0.6113566", "0.61100745", "0.60967404", "0.6091374", "0.60910237", "0.6084385", "0.6081157", "0.6078958", "0.6078809", "0.60774297", "0.6067837", "0.6064756", "0.6062381", "0.60512555", "0.6027499", "0.6018746", "0.60140854", "0.6010834", "0.6004726", "0.6001235", "0.5992701", "0.5977742", "0.5973246", "0.5964477", "0.5963344", "0.59464407", "0.5943388" ]
0.0
-1
Test case number: 54 /Coverage entropy=0.6931471805599453
@Test(timeout = 4000) public void test54() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); fBProcedureCall0.hashCode(); }
{ "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\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 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 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 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 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 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\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 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 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 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(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 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 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 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\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 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 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 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 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 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 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(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 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 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 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 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(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 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 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 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 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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 }", "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 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 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 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 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 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 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 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(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 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 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 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 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 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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", 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 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 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 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 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 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 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 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 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 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 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\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 testAGG3() {\n CuteNetlibCase.doTest(\"AGG3.SIF\", \"1.031211593508922E7\", \"5.746768863949547E9\", 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 public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", 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 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 @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"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(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\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 testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testAGG2() {\n CuteNetlibCase.doTest(\"AGG2.SIF\", \"-2.0239252355977114E7\", \"5.71551859632249E9\", 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 testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", 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(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 @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 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.7512764", "0.7330339", "0.70556086", "0.7051545", "0.7044868", "0.7043534", "0.7005642", "0.6974342", "0.6971225", "0.69283915", "0.692055", "0.6907768", "0.68555725", "0.6845715", "0.68384606", "0.6836245", "0.68284327", "0.68122554", "0.6798239", "0.67834866", "0.67623544", "0.67536676", "0.6742199", "0.6709238", "0.66759306", "0.6659106", "0.6656171", "0.665233", "0.66281956", "0.65995514", "0.65947753", "0.65846443", "0.65286183", "0.6514126", "0.6510643", "0.6509967", "0.65067536", "0.6503089", "0.6501873", "0.64952224", "0.6492023", "0.6484036", "0.6474802", "0.6459911", "0.64594376", "0.645297", "0.6442659", "0.6437312", "0.6430487", "0.64093256", "0.64044076", "0.63851684", "0.63794553", "0.6369099", "0.63677555", "0.63636285", "0.63569003", "0.6353601", "0.63532865", "0.6337242", "0.63286567", "0.6300311", "0.6282628", "0.62764275", "0.62592024", "0.6251206", "0.62378746", "0.6236264", "0.6225417", "0.62224", "0.6205907", "0.61861", "0.6178827", "0.6177797", "0.61752886", "0.6170344", "0.61662686", "0.61582553", "0.6137192", "0.61359113", "0.61353266", "0.6134296", "0.6133985", "0.61248153", "0.6121031", "0.6113305", "0.6106238", "0.6104753", "0.6101471", "0.609822", "0.60917604", "0.60827255", "0.6081602", "0.6080269", "0.60785854", "0.60779357", "0.60778755", "0.6073725", "0.60433424", "0.6039714", "0.6034671" ]
0.0
-1
Test case number: 55 /Coverage entropy=0.9502705392332347
@Test(timeout = 4000) public void test55() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); fBProcedureCall0.mapOutParamIndexToPosition((-264)); try { fBProcedureCall0.mapOutParamIndexToPosition((-1), false); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Specified parameter does not exist. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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\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 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\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 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 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 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 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 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 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 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 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 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 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 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\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 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 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 }", "@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 }", "@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\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", 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(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 }", "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 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 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 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(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 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(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 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 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 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 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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, 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 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 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 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();\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 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 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 testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.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(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\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(\"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 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\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 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 @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 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 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 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 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 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 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(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", 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\n public void testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\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(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n public void testFitnessProportionateSelection()\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 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 }" ]
[ "0.7302403", "0.7196395", "0.6975591", "0.68773663", "0.6863398", "0.6833401", "0.6793744", "0.6749061", "0.67332214", "0.67153424", "0.6708289", "0.6702785", "0.66833556", "0.6667713", "0.6663741", "0.6654313", "0.6644817", "0.6609354", "0.6602261", "0.6594496", "0.6586656", "0.65804434", "0.65216804", "0.64931536", "0.64866835", "0.6439852", "0.64361995", "0.6435841", "0.64284176", "0.6395123", "0.63930756", "0.63708264", "0.63677514", "0.6366198", "0.63508517", "0.6329683", "0.63220143", "0.63209987", "0.63155556", "0.62989146", "0.62985903", "0.6289292", "0.62887496", "0.6286202", "0.6284248", "0.6279812", "0.6275594", "0.62672675", "0.62611204", "0.6253523", "0.6250525", "0.6246596", "0.62423784", "0.6234035", "0.62228304", "0.6215744", "0.62110937", "0.61893487", "0.61890656", "0.6180151", "0.6175581", "0.6168984", "0.61565036", "0.61535954", "0.61466354", "0.6143378", "0.613264", "0.61213106", "0.612106", "0.6114467", "0.6107689", "0.60960156", "0.608797", "0.6068182", "0.60659754", "0.60658336", "0.6065556", "0.60637957", "0.60624427", "0.60520697", "0.6051703", "0.6042726", "0.60395414", "0.60353804", "0.60313725", "0.6029673", "0.60254127", "0.6021978", "0.6021712", "0.60159695", "0.60009015", "0.5997464", "0.5994218", "0.5984099", "0.59778243", "0.596912", "0.59578687", "0.5949251", "0.59256065", "0.5922555", "0.5920402" ]
0.0
-1
Test case number: 56 /Coverage entropy=0.6931471805599453
@Test(timeout = 4000) public void test56() throws Throwable { Object object0 = new Object(); Object object1 = new Object(); Object object2 = new Object(); Object object3 = new Object(); Object object4 = new Object(); Object object5 = new Object(); Object object6 = new Object(); Object object7 = new Object(); Object object8 = new Object(); Object object9 = new Object(); Object object10 = new Object(); Object object11 = new Object(); Object object12 = new Object(); Object object13 = new Object(); Object object14 = new Object(); Object object15 = new Object(); Object object16 = new Object(); Object object17 = new Object(); Object object18 = new Object(); Object object19 = new Object(); FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); // Undeclared exception! try { fBProcedureCall0.addParam(843, (String) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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\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 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 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 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 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 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\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 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\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 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 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 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 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 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 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 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\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 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(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 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 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 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 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 @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\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 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_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", 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 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 }", "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(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 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(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\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 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 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 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 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(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\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 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 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 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 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 testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, 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 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 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\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 testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.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\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 testSCSD6() {\n CuteNetlibCase.doTest(\"SCSD6.SIF\", \"50.5\", null, 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 @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 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 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 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 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 testSCSD8() {\n CuteNetlibCase.doTest(\"SCSD8.SIF\", \"905\", null, 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 }", "private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\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 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 @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", 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 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(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 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 testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\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(\"'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 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 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_30() {\n CuteNetlibCase.doTest(\"OSA-30.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCSD1() {\n CuteNetlibCase.doTest(\"SCSD1.SIF\", \"8.666666674333367\", 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 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 }" ]
[ "0.7480956", "0.7336823", "0.69656205", "0.6928481", "0.6914523", "0.68811893", "0.68749094", "0.6873132", "0.68490136", "0.68455106", "0.6821835", "0.6805997", "0.6801675", "0.67989063", "0.677509", "0.6766149", "0.67609227", "0.6749379", "0.67302644", "0.6673755", "0.6652433", "0.66394055", "0.66379523", "0.66375005", "0.66277194", "0.6600831", "0.655652", "0.6546161", "0.654258", "0.65247387", "0.6510628", "0.6498301", "0.64878047", "0.64836323", "0.6483367", "0.64820653", "0.6479154", "0.6472881", "0.6472073", "0.6456645", "0.64490926", "0.64414114", "0.64397603", "0.6427171", "0.6394757", "0.638554", "0.637543", "0.63655937", "0.63599974", "0.63533574", "0.6352987", "0.63345444", "0.6326096", "0.6312525", "0.63124615", "0.6308851", "0.62829804", "0.627553", "0.62711036", "0.6258566", "0.62556183", "0.6249779", "0.62419647", "0.62305576", "0.6230281", "0.62263745", "0.62227595", "0.6222198", "0.6221911", "0.6215567", "0.6214286", "0.620948", "0.6195007", "0.6194186", "0.61915714", "0.61815804", "0.61731803", "0.6168357", "0.61673933", "0.61643845", "0.6152602", "0.61507446", "0.6148322", "0.61433804", "0.61400586", "0.613527", "0.61350244", "0.6126948", "0.6103827", "0.6098312", "0.6088685", "0.60791636", "0.60769695", "0.6073308", "0.6061108", "0.60532194", "0.60478914", "0.6046112", "0.60456616", "0.60429025", "0.6042562" ]
0.0
-1
Test case number: 57 /Coverage entropy=0.6931471805599453
@Test(timeout = 4000) public void test57() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); // Undeclared exception! try { fBProcedureCall0.addOutputParam((FBProcedureParam) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "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 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 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 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 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 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 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 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 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\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 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 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 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\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 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 @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 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 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 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 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 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 testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\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 @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 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 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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 @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 testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", 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 @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 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 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 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 }", "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(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 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 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 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 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 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 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 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(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 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 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 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\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 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 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\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 public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, 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 test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\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 @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(\"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 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 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(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 testRulesetHighlife() {\n System.out.println(\"Highlife: B36/S23\");\n byte[][] highlife = { \n {0,0,0,0},\n {0,0,1,0},\n {0,1,1,0},\n {0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0},\n {0,1,1,0},\n {0,1,1,0},\n {0,0,0,0},\n };\n \n ng.decodeRuleset(\"36\", \"23\");\n byte[][] result = ng.calcNextGen(highlife);\n assertArrayEquals(expResult, result);\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 }", "private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\n }\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 testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", 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 @Tag(\"slow\")\n public void testSCSD6() {\n CuteNetlibCase.doTest(\"SCSD6.SIF\", \"50.5\", null, 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 }", "@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(\"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 testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\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 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 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 }", "@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 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 public void testSCSD8() {\n CuteNetlibCase.doTest(\"SCSD8.SIF\", \"905\", 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 }" ]
[ "0.75577754", "0.7327262", "0.7127338", "0.7063067", "0.70468485", "0.7020125", "0.6968802", "0.6925635", "0.69163114", "0.69086987", "0.6898438", "0.6877405", "0.687121", "0.68661815", "0.6854981", "0.6826986", "0.68258834", "0.6824131", "0.6745829", "0.67432725", "0.6733733", "0.67331576", "0.67006683", "0.6663643", "0.66627926", "0.66245204", "0.6621612", "0.6618324", "0.6618312", "0.6587634", "0.65873003", "0.65793765", "0.6577864", "0.65641004", "0.6555311", "0.6525606", "0.6522677", "0.6514216", "0.6508665", "0.6507945", "0.65008175", "0.6496907", "0.64863133", "0.6477962", "0.646119", "0.6452735", "0.64489424", "0.6448743", "0.64476734", "0.64234966", "0.64115", "0.6391521", "0.638712", "0.63836014", "0.63766867", "0.6366949", "0.6344105", "0.6339466", "0.63365793", "0.6320428", "0.63120645", "0.63014805", "0.6292484", "0.6288692", "0.6284408", "0.6283868", "0.6276926", "0.62685055", "0.6265746", "0.6242498", "0.62413675", "0.6236321", "0.62357634", "0.6212549", "0.62004775", "0.619619", "0.6194615", "0.6193018", "0.6185048", "0.61819774", "0.6166732", "0.6165827", "0.6164025", "0.6159572", "0.6156687", "0.61477697", "0.6145807", "0.61380756", "0.6136036", "0.61294293", "0.6123549", "0.6113421", "0.61064", "0.61008507", "0.6100268", "0.6099366", "0.609882", "0.6098174", "0.6093339", "0.6093312", "0.60925525" ]
0.0
-1
private Integer matricula; // wrapper
public Funcionario(String nome, String funcao, int matricula) { super(); this.nome = nome; this.funcao = funcao; this.matricula = matricula; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getMatricula() {\r\n return matricula;\r\n }", "public int[][] getMatriuSolucio() {\n\t\treturn null;\n\t}", "public interface IMatrix {\n\n /**\n * Set coefficient\n * @param y row (0..height-1)\n * @param x column (0..width-1)\n * @param v value\n */\n public void set(int y, int x, double v);\n /**\n * Get coefficient from matrix, by returning coeff[y*width + x].\n * @param y row (0..height-1)\n * @param x column (0..width-1)\n * @return coefficient\n */\n public double get(int y, int x);\n\n /**\n * Clear matrix to zeros\n */\n public void clear();\n\n /**\n * Get array of coefficients.\n * They are indexed by [y*height + x].\n * Not all classes support this method.\n * @return array of coefficients\n */\n public double[] coeff();\n\n /**\n * Get width of matrix\n * @return width\n */\n public int width();\n\n /**\n * Get height of matrix\n * @return height\n */\n public int height();\n}", "public Matrix getValue();", "public int getNmi(){\n return nmi;\n }", "public int[][] MatrizPesos(){\n return this.mat;\n }", "public int[][] getMatriceValeurs()\n {\n return matriceValeurs;\n }", "int getSize(){\n return this.matrixSize;\n }", "public void setMatricula(long value) {\r\n this.matricula = value;\r\n }", "public int[][] getMatrix(){\n\t\treturn matrix;\n\t}", "public MatricesPN getMatriz() {\n\t\treturn this.matriz;\n\t}", "public Matrix getMatrix() {\n\t\treturn matrix;\n\t}", "public int getBrillo(){\n return brillo;\n }", "public String getMatricule() {\n\t\treturn matricule;\n\t}", "public Integer getLongitud()\n/* 37: */ {\n/* 38:55 */ return this.longitud;\n/* 39: */ }", "public abstract Integer mo36212o();", "@Override\n public byte[] getMatrix() {\n return luminances;\n }", "List<Matricula> listarMatriculas();", "public short[][] getIntensity(){ return intensity; }", "public abstract Integer mo36210m();", "public int getNbyMz() { return mByMz; }", "public double getImag() {return this.imag;}", "public Integer getCedula() {return cedula;}", "public double getRot() {\n return this.rot;\n }", "public interface LinopTransform extends Transform {\r\n public double[][] getMat();\r\n}", "int getM();", "public Complex getVal() {\n\t\treturn new Complex(re,im);\n\t}", "public interface Matrix extends Entity{\n\tboolean isNull(int row, int column);\n\tvoid setNull(int row, int column);\n\tScalar getRowLabel(int row);\n\tScalar getColumnLabel(int column);\n\tScalar get(int row, int column);\n\tVector getRowLabels();\n\tVector getColumnLabels();\n\tboolean hasRowLabel();\n\tboolean hasColumnLabel();\n\tClass<?> getElementClass();\n}", "public int getModopelea(){return modopelea;}", "public int GetM()\r\n\t{\r\n\t\treturn M;\r\n\t}", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public Long getMolecula() {\n return molecula;\n }", "public interface IMatrixMultiplicator {\n\n\t/**\n\t * Multiplies two matrixes and returns the result in a new matrix \n\t * \n\t * @param matrixA first matrix\n\t * @param matrixB second matrix \n\t * @return result of the multiplication\n\t */\n\tpublic long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);\n\t \n\t\n}", "public long getPlateau()\n {\n return plateau;\n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "public abstract M getValue();", "public interface IMatrix {\n\n\tpublic int getRowsCount();\n\tpublic int getColsCount();\n\tpublic double get(int numberOne, int numberTwo);\n\tpublic IMatrix set(int numberOne, int numberTwo, double numberThree);\n\tpublic IMatrix copy();\n\tpublic IMatrix newInstance(int numberOne, int numberTwo);\n\tpublic IMatrix nTranspose(boolean trans);\n\tpublic IMatrix add(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nAdd(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix sub(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nSub(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nMultiply(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic double determinant() throws OperationNotSupportedException;\n\tpublic IMatrix subMatrix(int numberOne, int numberTwo, boolean subM);\n\tpublic IMatrix nInvert() throws OperationNotSupportedException;\n\tpublic double[][] toArray();\n\tpublic IVector toVector(boolean toVect) throws OperationNotSupportedException;\n\tpublic IMatrix scalarMultiply(double value);\n\tpublic IMatrix nScalarMultiply(double value);\n\t\n}", "public Matrix(int[][] array){\n this.matriz = array;\n }", "public double getM() {\r\n return m;\r\n }", "static void productoEscalarMatriz() {\r\n\r\n System.out.println(\"PRODUCTO ESCALAR X MATRIZ \\n\");\r\n setup(false);\r\n String valor = inputDialog(\"Inserte un escalar\", \"Escalar\", JOptionPane.INFORMATION_MESSAGE);\r\n int escalar = Integer.parseInt(valor);\r\n matrizA.productoEscalarMatriz(escalar);\r\n messageDialog(\"La matriz resultante al multiplicar por el escalar \" + escalar + \", es: \\n\" + matrizA.datosMatrizNumeros(), \"Producto escalar\", 3);\r\n\r\n }", "public double getIm() {\r\n return im;\r\n }", "public double getIm() {\n return im;\n }", "public interface Matrix {\n\n void initZeroValues();\n\n void fillRandomValues();\n\n int getRows();\n\n int getColumns();\n\n Entity getEntity(int i, int j);\n\n String toString();\n}", "IntegerValue getValueObject();", "public int producto(){\r\n return x*y;\r\n }", "public BigInteger getBigIntegerAttribute();", "public int getNumber(){return number;}", "public Number getNumberValue();", "public interface R2MatricesInstanceSingleValuesType\n{\n /**\n * @return The current modelview matrix for an instance\n */\n\n PMatrixDirectReadable4x4FType<R2SpaceObjectType, R2SpaceEyeType>\n matrixModelView();\n\n /**\n * @return The current normal matrix for an instance\n */\n\n PMatrixDirectReadable3x3FType<R2SpaceObjectType, R2SpaceNormalEyeType>\n matrixNormal();\n\n /**\n * @return The current UV matrix for an instance\n */\n\n PMatrixDirectReadable3x3FType<R2SpaceTextureType, R2SpaceTextureType>\n matrixUV();\n}", "public Articulo(){\r\n\t\t\r\n\t}", "public int getArmadura(){return armadura;}", "MatrixParameter createMatrixParameter();", "public <InnerType extends Matrix> InnerType getMatrix() {\n return (InnerType)mat;\n }", "public Unit<Length> metre() {return metre;}", "public ArrayList<ArrayList<T>> getMatrix() {\n\t\treturn matrix;\n\t}", "public Matriu() {\n \t/** <p><b>Pre:</b></p> <Ul>Cert.</Ul>\n\t\t * <p><b>Post:</b></p> <Ul> S'inicialitza una matriu esparsa buida. </Ul>\n\t\t * \n\t\t*/\n this.M = new HashMap<>(0);\n this.MatriuTF_IDF = new HashMap<>(0);\n this.IDFJ = new TreeMap<>();\n }", "public Matrix P0 ();", "final Object mo6080c() {\n return Integer.valueOf(this.f2352i);\n }", "public Matrix getTransform()\n {\n return transform;\n }", "public interface Matrix<T> {\n\n public void put(Integer x,Integer y,T element);\n public T get(Integer x, Integer y);\n}", "public int getMyShape(){ return myShape;}", "public Type getType() {\n\t\treturn BaseType.LONG_MATRIX;\n\t}", "Object getValor();", "@Override\n\tpublic Mat GetRomateMatrix()\n\t{\n\t\treturn mR;\n\t}", "public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }", "public int getNumber(){\r\n return num;\r\n }", "public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }", "float getIva();", "public ArrayList<double[]> getMatrix() {\n return matrix;\n }", "public BigInteger getX();", "public double getLoX() {\r\n\treturn fieldLoX;\r\n}", "public Estados[][] getMatrix() {\n return matrix;\n }", "public int getValoracionMedia(){\n return valoracionMedia;\n }", "public abstract Double getMontant();", "public int getTipoAtaque(){return tipoAtaque;}", "public int getM () {\n\t\treturn M;\n\t}", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "void mo12647a(C3333i iVar);", "public java.math.BigInteger getCantidadCUVErrado(){\n return localCantidadCUVErrado;\n }", "Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }", "public Matrix33() {\r\n // empty\r\n }", "public long getNumber(){\n return number;\r\n }", "public int FitVal(){\r\n return _FitVal;\r\n}", "public double getImaginary() {\r\n return imaginary;\r\n }", "public abstract Number getPrimitiveType();", "double getDiametro(){\n return raggio * 2;\n }", "public String getMatriculationNumber() {\n return matriculationNumber;\n }", "public int getCiclo() { return this.ciclo; }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "@Override\n public double obtenrArea() {\n return lado*lado;\n }", "public ArrayList<Matka> getMatkat() {\n return matkat;\n }", "public ComplexNumber getNumber()\n\t{\n\t\treturn this.cn;\n\t}", "public Matriz(int[][] matriz) {\n\t\tthis.matriz = matriz;\n\t}", "public Map(){\n this.matrix = new int[10][10];\n }", "public int cima(){\n return VectorPila[cima];\n }", "protected SimpleMatrix() {}", "public Integer getValue();", "public Matrice getMatrice(){\n int t = this.sommets.size();\n Matrice ret = new Matrice( (t), (t));\n\n List<Arc<T>> arcsTemps ;\n\n for(int i=0 ; i < t ;i++){\n arcsTemps = getArcsDepuisSource(this.sommets.get(i));\n\n for (Arc<T> arcsTemp : arcsTemps) {\n System.out.println(i + \" == \" + arcsTemp.getDepart().getInfo()+ \" , \" +arcsTemp.getArrivee().getId());\n ret.setValue(i, arcsTemp.getArrivee().getId(), 1);\n }\n System.out.println(\"***\");\n }\n\n return ret;\n }", "public abstract float mo9744i();", "@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}", "public int getMaturity ()\n {\n return maturity;\n }" ]
[ "0.70732373", "0.6203522", "0.6125816", "0.605948", "0.6056021", "0.5969998", "0.59628874", "0.5952112", "0.59187883", "0.58934826", "0.5835097", "0.581116", "0.5790593", "0.5782337", "0.57610464", "0.57578206", "0.57502246", "0.574266", "0.5740424", "0.57143897", "0.5692427", "0.5687856", "0.56833535", "0.56568795", "0.5649524", "0.5644781", "0.5639042", "0.5623136", "0.5604806", "0.5580085", "0.55698574", "0.55686545", "0.55674857", "0.55626696", "0.55607843", "0.5553589", "0.55535537", "0.5553236", "0.5551829", "0.55484277", "0.5547136", "0.55456525", "0.5544843", "0.55321646", "0.55245763", "0.552144", "0.5516922", "0.5516013", "0.55130637", "0.5508205", "0.5484021", "0.54790777", "0.5472182", "0.54692036", "0.54668605", "0.54627943", "0.54609007", "0.54603046", "0.5454092", "0.54473823", "0.54379433", "0.54336417", "0.5433465", "0.5429178", "0.54276305", "0.5425694", "0.5422742", "0.54205596", "0.541721", "0.54141146", "0.5412378", "0.5411569", "0.54070246", "0.5406967", "0.54052025", "0.5405199", "0.540495", "0.5401208", "0.5394937", "0.5393666", "0.53890914", "0.5385873", "0.5378434", "0.5370379", "0.5362942", "0.5357097", "0.534164", "0.53379923", "0.53372455", "0.5335046", "0.5327385", "0.53263927", "0.5325984", "0.53223383", "0.53168386", "0.5315194", "0.5312676", "0.53118885", "0.5310853", "0.5301427", "0.52964073" ]
0.0
-1
testing service layer method to to add a plant
@Test void testAddPlant() { Plant plant = service.addPlant(new Plant(9.0, "Hibiscus", "Skin Benefits", 22.0, 8, 330.0, "Shurbs")); assertEquals("Hibiscus", plant.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid testGetPlant() {\n\t\tPlant plant = service.getPlant(53);\n\t\tassertNotEquals(\"Rose\", plant.getName());\n\t}", "public void harvestPlant(Plant plant) {\n\t\tgetListofplant().add(plant);\n\t}", "@Test\n\tvoid testUpdatePlant() {\n\t\tPlant plant = service.updatePlant(new Plant( 8.0, \"Lemon\", \"Antihairfall\", 22.0, 5, 170.0, \"shurb\"));\n\t\tassertEquals(170.0, plant.getCost());\n\t}", "@Test void addIngredientBoundary()\n {\n }", "void add(MockAPI mockAPI);", "@Test\n public void testAddProduct() {\n }", "public void insertReservation(TestDto testDto) throws Exception;", "@Test\n\tvoid testDeletePlant() {\n\t\tList<Plant> plant = service.deletePlant(50);\n\t\tassertFalse(plant.isEmpty());\n\t}", "org.hl7.fhir.ResourceReference addNewSpecimen();", "@Test\n\t\t@Transactional\n\t\tpublic void addBeer() {\n\t\t\taddTestUser(\"addBeer\",Role.ADMIN);\n\t\t\tBeer newBeer = new Beer();\n\t\t\tnewBeer.setName(\"Jimmy Light\");\n\t\t\tnewBeer.setBrewery(\"Jimmy Brewing\");\n\t\t\tnewBeer.setCountry(\"US\");\n\t\t\tBeer savedBeer = beerSvc.add(newBeer);\n\t\t\tAssert.assertNotNull(savedBeer);\n\t\t\tAssert.assertTrue(savedBeer.getId() > 0);\n\t\t}", "@Test void addIngredientZero()\n {\n }", "public Plant(String plantName) {\n this.plantName = plantName;\n }", "@Test\n public void testAddAndGetSuperpower() throws Exception {\n Superpower sp = new Superpower();\n sp.setSuperPowerName(\"Ice Power\");\n sp.setSuperPowerDescription(\"Control the elements of ice\");\n \n Superpower fromDb = dao.addSuperpower(sp);\n \n assertEquals(sp, fromDb);\n \n }", "public void addFacility(Facility someFacility);", "@Override\n public void createTechnicalTestService(\n @RequestBody CreateProblemSetRequest createProblemSetRequest)\n {\n List<Problem> problemSet = createProblemSetService(createProblemSetRequest);\n TechnicalTest technicalTest = new TechnicalTest();\n\n technicalTest.setProblems(problemSet);\n technicalTest.setCv(cvRepository.findOne(createProblemSetRequest.getIdCV()));\n\n technicalTestRepository.save(technicalTest);\n\n }", "private MyPlant createMyPlant(Plant plant) {\n\n MyPlant newMyPlant = new MyPlant();\n newMyPlant.setName(plant.getName());\n newMyPlant.setLatinName(plant.getLatinName());\n newMyPlant.setMinpH(plant.getMinpH());\n newMyPlant.setMaxpH(plant.getMaxpH());\n newMyPlant.setMinTemp(plant.getMinTemp());\n newMyPlant.setMaxTemp(plant.getMaxTemp());\n newMyPlant.setWatering(plant.getWatering());\n newMyPlant.setAlive(true);\n newMyPlant.setConnected(false);\n newMyPlant.setArduinoName(null);\n newMyPlant.setStartdate(Calendar.getInstance().getTimeInMillis());\n newMyPlant.setWaternotify(0);\n newMyPlant.setStatus(\"OK\");\n newMyPlant.setImageID(plant.getImageID());\n newMyPlant.setArduinoName(\"none\");\n newMyPlant.setAvatarImage(\"none\");\n newMyPlant.setLastwatered(Calendar.getInstance().getTimeInMillis());\n\n ArrayList<String> addedImages = new ArrayList<>();\n Uri imageUri = Uri.parse(\"android.resource://thomas.jansen.plantbase/drawable/\" +plant.getName().toLowerCase()+\"_stock\");\n addedImages.add(String.valueOf(imageUri));\n newMyPlant.setAddedImages(addedImages);\n\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\n mDatabase.child(\"users\").child(mAuth.getUid()).push().setValue(newMyPlant);\n\n return newMyPlant;\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"department\"})\n public void _2_1_3_addExistDept() throws Exception {\n Department dept = new Department();\n dept.setName(d_1_1.getName());\n dept.setDescription(\"测试新增重复部门\");\n dept.setParent(d_1.getId());\n try {\n RequestBuilder request = post(\n \"/api/v1.0/companies/\"+\n d_1.getCompany()+\n \"/departments\")\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(dept));\n this.mockMvc.perform(request)\n .andDo(print())\n .andExpect(status().isConflict());\n } catch(Exception e) {\n throw(e);\n } finally {\n cleanNode(LdapNameBuilder.newInstance(d_1.getId())\n .add(\"ou\",dept.getName())\n .build().toString());\n }\n }", "@Test\n public void addAndGetMap() throws Exception {\n String mapName = mockMvc.perform(post(\"/map/add\")\n .param(\"map_name\", \"mapTest\")\n .param(\"map_bin\",\"map_bin_test\")).andExpect(status().isOk())\n .andDo(print())\n .andReturn().getResponse().getContentAsString();\n assertEquals(\"add map\",mapName,\"mapTest\");\n\n /* get the added map */\n String mapUrl = mockMvc.perform(get(\"/map/get\")\n .param(\"name\", \"mapTest\"))\n .andExpect(status().isOk())\n .andDo(print())\n .andReturn().getResponse().getContentAsString();\n assertEquals(\"get map url\",mapUrl,\"map_bin_test\");\n\n /* clear db */\n mockMvc.perform(get(\"/map/delete\")\n .param(\"map_name\", \"mapTest\"))\n .andExpect(status().isOk())\n .andDo(print());\n }", "@Test\n public void testAddMaterialOneMaterial() {\n String material = \"material\";\n planned.addMaterials(material);\n\n assertEquals(planned.getMaterials().size(), 1);\n\n assertTrue(planned.getMaterials().contains(material));\n\n }", "@Test\r\n\tpublic void testAddServices(){\r\n\t\tblog = new Blog();\r\n\t\t\r\n\t\tblog.setBlogId(1);\r\n\t\tblog.setBlogName(\"techZealot\");\r\n\t blog.setBlogDescription(\"for technical skills\");\r\n\t\tblog.setBlogStatus(\"approved\");\r\n\t\tblog.setNoOfComments(10);\r\n\t\tblog.setNoOfLikes(10);\r\n\t\tblog.setNoOfViews(12);\r\n\t\tblog.setPostDate(LocalDate.parse(\"2017-04-21\"));\r\n\t\tblog.setUserId(1);\r\n\t\tblog.setUserName(\"bhavna\");\r\n\t\t\r\n\t\tassertEquals(\"Successfully added a product inside the table!\",true,blogDao.addBlog(blog));\r\n\t}", "@Test\n\tvoid insertDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorData = new DoctorDetail();\n\t\tdoctorData.setName(\"John\");\n\t\tdoctorData.setAvailability(true);\n\t\tdoctorData.setSpecialist(\"cardioc\");\n\t\tdoctorData.setCreationDate(new Date());\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).insertDoctorService(doctorData);\n\t\tmockMvc.perform(post(\"/doctor/add\").contentType(mediaType).content(jsonConverter(doctorData)))\n\t\t\t\t.andExpect(status().isOk());\n\t}", "@Test\n public void testAddPengguna() {\n System.out.println(\"addPengguna\");\n Pengguna pengguna = null;\n DaftarPengguna instance = new DaftarPengguna();\n instance.addPengguna(pengguna);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n @DisplayName(\"Test for add patient to patient arrayList if correct\")\n public void testAddPatientTrue(){\n assertEquals(\"test\",department.getPatients().get(0).getFirstName());\n assertEquals(\"test\",department.getPatients().get(0).getLastName());\n assertEquals(\"test\",department.getPatients().get(0).getPersonNumber());\n }", "@Test\n\tvoid testgetAllPlants() {\n\t\tList<Plant> plantlist = service.getAllPlant();\n\t\tboolean result = true;\n\t\tif (plantlist.isEmpty()) {\n\t\t\tresult = false;\n\t\t}\n\t\tassertTrue(result);\n\t}", "@Test\n public void testAddRent() {\n System.out.println(\"addRent\");\n ReserveInfo reserveInfo = new ReserveInfo();\n reserveInfo.setGuestIDnumber(\"test\");\n reserveInfo.setGuestName(\"test\");\n reserveInfo.setRentType(\"test\");\n reserveInfo.setRoomType(\"test\");\n reserveInfo.setRentDays(1);\n reserveInfo.setRemark(\"test\");\n reserveInfo.setResult(true); \n BookingController instance = new BookingController();\n boolean expResult = true;\n boolean result = instance.addRent(reserveInfo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n }", "abstract public void act(List<Plant> newPlants);", "void planted() {\n\n }", "@Test\n void addItem() {\n }", "@Test\n public void validAdd() throws Exception {\n Logger.getGlobal().info(\"Start validAdd test\");\n RestaurantVO restaurant = new RestaurantVO();\n restaurant.setId(\"999\");\n restaurant.setName(\"Test Restaurant\");\n\n ResponseEntity<Restaurant> restaurants = restaurantController.add(restaurant);\n Assert.assertEquals(HttpStatus.CREATED, restaurants.getStatusCode());\n Logger.getGlobal().info(\"End validAdd test\");\n }", "@Test\n void addItem() {\n\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"department\"})\n public void _2_1_1_addFirstLevelDept() throws Exception {\n Department dept = new Department();\n dept.setName(\"testadddept\");\n dept.setDescription(\"测试新增一级部门\");\n dept.setCompany(c_1.getId());\n try {\n RequestBuilder request = post(\"/api/v1.0/companies/\"+c_1.getId().toString()+\"/departments\")\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(dept));\n this.mockMvc.perform(request)\n .andDo(print())\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.id\",is(\n LdapNameBuilder.newInstance(c_1.getId())\n .add(\"ou\",\"departments\")\n .add(\"ou\",dept.getName())\n .build().toString()\n )))\n .andExpect(jsonPath(\"$.name\",is(dept.getName())))\n .andExpect(jsonPath(\"$.description\",is(dept.getDescription())))\n .andExpect(jsonPath(\"$.company\",is(c_1.getId().toString())))\n .andExpect(jsonPath(\"$.parent\",is(\n LdapNameBuilder.newInstance(c_1.getId())\n .add(\"ou\",\"departments\")\n .build().toString()\n )));\n } catch(Exception e) {\n throw(e);\n } finally {\n cleanNode(LdapNameBuilder.newInstance(c_1.getId())\n .add(\"ou\",\"departments\")\n .add(\"ou\",dept.getName())\n .build().toString());\n }\n\n }", "@Test\n public void createRecipeTest() throws BusinessLogicException {\n RecipeEntity newEntity = factory.manufacturePojo(RecipeEntity.class);\n newEntity.getIngredientes().add(new IngredientEntity());\n RecipeEntity persistence=recipeLogic.createRecipe(newEntity);\n Assert.assertEquals(persistence.getId(), newEntity.getId());\n Assert.assertEquals(persistence.getDescription(), newEntity.getDescription());\n Assert.assertEquals(persistence.getName(), newEntity.getName());\n }", "@Test\n public void addStationUsesStationDaoToAddStationWithPassedInZone()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n ArgumentCaptor<Station> args = ArgumentCaptor.forClass(Station.class);\n\n facade.addStation(SOME_NAME, SOME_ZONE);\n\n verify(mockStationDao).addStation(args.capture());\n assertThat(args.getValue()\n .getZone(), equalTo(SOME_ZONE));\n }", "@Test\n public void testProductOfferingCreate() {\n // TODO: test ProductOfferingCreate\n }", "@Test\n\tpublic void testAddRecipe(){\n\t\t\n\t\ttestingredient1.setName(\"Peanut Butter\");\n\t\ttestingredient2.setName(\"Jelly\");\n\t\ttestingredient3.setName(\"Bread\");\n\t\t\n\t\t\n\t\tingredients.add(testingredient1);\n\t\tingredients.add(testingredient2);\n\t\tingredients.add(testingredient3);\n\t\t\n\t\ttestRecipe.setName(\"PB and J\");\n\t\ttestRecipe.setDescription(\"A nice, tasty sandwich\");\n\t\ttestRecipe.setIngredients(ingredients);\n\t\t\n\t\ttest2.saveRecipe(testRecipe);\n\t\t//test2.deleteRecipe(testRecipe);\n\t}", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"department\"})\n public void _2_1_2_addSecondLevelDept() throws Exception {\n Department dept = new Department();\n dept.setName(\"testadd2nddept\");\n dept.setDescription(\"测试新增二级部门\");\n dept.setParent(d_1.getId());\n try {\n RequestBuilder request = post(\n \"/api/v1.0/companies/\"+\n d_1.getCompany()+\n \"/departments\")\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(dept));\n this.mockMvc.perform(request)\n .andDo(print())\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.id\",is(\n LdapNameBuilder.newInstance(d_1.getId())\n .add(\"ou\",dept.getName())\n .build().toString()\n )))\n .andExpect(jsonPath(\"$.name\",is(dept.getName())))\n .andExpect(jsonPath(\"$.description\",is(dept.getDescription())))\n .andExpect(jsonPath(\"$.company\",is(d_1.getCompany().toString())))\n .andExpect(jsonPath(\"$.parent\",is(d_1.getId().toString())));\n } catch(Exception e) {\n throw(e);\n } finally {\n cleanNode(LdapNameBuilder.newInstance(d_1.getId())\n .add(\"ou\",dept.getName())\n .build().toString());\n }\n }", "@Test\r\n\tvoid testAddMedicine() throws Exception {\r\n\t\tString URI = \"/medicine/addMedicine\";\r\n\t\tMedicine medicine = new Medicine();\r\n\t\tmedicine.setMedicineId(1001);\r\n\t\tmedicine.setMedicineName(\"crosin\");\r\n\t\tmedicine.setMedicineCost(200);\r\n String jsonInput = this.converttoJson(medicine);\r\n\r\n Mockito.when(medicineService.addMedicine(Mockito.any(Medicine.class))).thenReturn(medicine);\r\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.post(URI).accept(MediaType.APPLICATION_JSON).content(jsonInput).contentType(MediaType.APPLICATION_JSON)).andReturn();\r\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\r\n String jsonOutput = mockHttpServletResponse.getContentAsString();\r\n assertNotNull(jsonOutput);\r\n \r\n\t}", "@Test\r\n\tvoid testAppointmentServiceClassAddAppointment() {\r\n\t\tAppointmentService appointmentService = new AppointmentService();\r\n\t\tAppointment appointment = new Appointment(\"23456\", new Date(), \"This is a description\");\r\n\t\tappointmentService.addAppointment(appointment);\r\n\t\tassertTrue(appointmentService.getAppointments().containsValue(appointment));\r\n\t}", "@Test\n\tpublic void testAllowIntakeOfAHomelessPet() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter(); //eclipse ask me to create addPet in VPS\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ttestPetShelter.addPet(new String(), new VirtualPet(\"Rusty\", \"He doesn't get hungry, he's Dead!\", 0, 0, 0));\n\t\tAssert.assertEquals(1, testPetShelter.getVirtualPets().size()); // I test # of values (pets) in collection\n\t}", "@Test\n void createParkingLot() {\n }", "@Test\n public void addStationUsesStationDaoToAddStationWithPassedInName()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n ArgumentCaptor<Station> args = ArgumentCaptor.forClass(Station.class);\n\n facade.addStation(SOME_NAME, SOME_ZONE);\n\n verify(mockStationDao).addStation(args.capture());\n assertThat(args.getValue()\n .getName(), equalTo(SOME_NAME));\n }", "@Test\n public void testAddWorkload_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n Workload userType = new Workload();\n\n fixture.addWorkload(userType);\n }", "@Test\r\n\t public void addAnExistingRouteFather(){\r\n\t\tRouteFather toAdd = new RouteFather();\r\n\t\ttoAdd = routeFatherDAO.create(toAdd);\r\n\t\tAssert.assertNull(toAdd);\r\n\t\t\r\n\t }", "@Test\n public void testAddItem() throws Exception {\n System.out.println(\"addItem\");\n Orcamentoitem orcItem = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n instance.addItem(orcItem);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testAddCar() {\n\n }", "@Test\n void addTask() {\n }", "@Test\n public void createProduct() {\n }", "@Test\r\n\tpublic final void testAddRoom() {\n\t\tboolean success = roomServices.addRoom(expected2);\r\n\t\t// check if added successfully\r\n\t\tassertTrue(success);\r\n\t\t// need to copy the id from database since it autoincrements\r\n\t\tRoom actual = roomServices.getRoomByName(expected2.getName());\r\n\t\texpected2.setId(actual.getId());\r\n\t\t// check content of data\r\n\t\tassertEquals(expected2, actual);\r\n\t\t// delete room on exit\r\n\t\troomServices.deleteRoom(actual);\r\n\t}", "public Response addTechnology(TechResponse technologyResponse);", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_1_1_addDeptRole() throws Exception {\n Role role = new Role();\n Department dept = d_1_1;\n role.setDepartment(dept.getId());\n role.setName(\"director\");\n role.setDescription(\"测试角色-经理\");\n String roleId = LdapNameBuilder.newInstance(dept.getId())\n .add(\"cn\",role.getName())\n .build().toString();\n try {\n RequestBuilder request = post(\"/api/v1.0/companies/\"+\n dept.getCompany()+\n \"/departments/\"+\n dept.getId().toString()+\n \"/roles\")\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(role));\n this.mockMvc.perform(request)\n .andDo(print())\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.id\",is(roleId)))\n .andExpect(jsonPath(\"$.name\",is(role.getName())))\n .andExpect(jsonPath(\"$.description\",is(role.getDescription())))\n .andExpect(jsonPath(\"$.department\",is(role.getDepartment().toString())))\n .andExpect(jsonPath(\"$.occupants\").doesNotExist());\n } catch(Exception e) {\n throw(e);\n } finally {\n cleanNode(roleId);\n }\n }", "int addPilotContainer(PilotContainer container);", "@Test\r\n\tpublic void addNew() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\t\r\n\t\tString content = \"{\\r\\n\" + \r\n\t\t\t\t\" \\\"id\\\": 3,\\r\\n\" + \r\n\t\t\t\t\" \\\"name\\\": \\\"TF1\\\",\\r\\n\" + \r\n\t\t\t\t\" \\\"team\\\": \\\"DECEPTICON\\\",\\r\\n\" + \r\n\t\t\t\t\" \\\"strength\\\": 8,\\r\\n\" + \r\n\t\t\t\t\" \\\"intelligence\\\": 9,\\r\\n\" + \r\n\t\t\t\t\" \\\"speed\\\": 2,\\r\\n\" + \r\n\t\t\t\t\" \\\"endurance\\\": 6,\\r\\n\" + \r\n\t\t\t\t\" \\\"rank\\\": 7,\\r\\n\" + \r\n\t\t\t\t\" \\\"courage\\\": 5,\\r\\n\" + \r\n\t\t\t\t\" \\\"firepower\\\": 6,\\r\\n\" + \r\n\t\t\t\t\" \\\"skill\\\": 10\\r\\n\" + \r\n\t\t\t\t\"}\";\r\n\t\t\r\n\t\tmockMvc.perform(post(\"/transformers/\").contentType(MediaType.APPLICATION_JSON).content(content.getBytes(\"UTF-8\")))\r\n\t\t\t\t.andExpect(status().isCreated())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t;\r\n\t\tassertEquals( 1, tr.count());\r\n\t\t\r\n\t}", "@Test\n public void testCustomerFactoryCreate() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(1, customerController.getCustomerList().size());\n }", "@Test\n public void testAddNewJobType_request_OK()\n {\n JobTypes jobType = new JobTypes(1, \"test1\");\n \n doReturn(true).when(jobTypesService).addJobType(any(JobTypes.class));\n\n try {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/job_types/add\")\n .content(asJsonString(jobType))\n .contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"));\n } catch (Exception ex) {\n Logger.getLogger(JobTypesControllerTest.class.getName()).log(Level.SEVERE, null, ex);\n fail();\n }\n }", "@Override\r\n\tpublic void update(Plant plant) throws Exception {\n\r\n\t}", "@Test\n @IfProfileValue(name=\"dept-test-group\", values = {\"all\",\"dept-update\"})\n public void _2_4_2__addBCtoDept() throws Exception {\n Department d = d_1;\n d.addBusinessCategory(bc_1);\n this.mockMvc.perform(put(\"/api/v1.0/companies/\"+\n d.getCompany()+\n \"/departments/\"+\n d.getId())\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(d)))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.id\",is(d.getId().toString())))\n .andExpect(jsonPath(\"$.description\",is(d.getDescription())))\n .andExpect(jsonPath(\"$.businessCategories\",hasSize(1)))\n .andExpect(jsonPath(\"$.businessCategories[0].product\",is(bc_1.getProduct())))\n .andExpect(jsonPath(\"$.businessCategories[0].locality\",is(bc_1.getLocality())));\n }", "@Test\r\n\t public void addANullRouteFather(){\r\n\t\t RouteFather test = routeFatherDAO.create(new RouteFather(null, null, null, null, null));\r\n\t\t Assert.assertNull(\"it should returns null\", test);\r\n\t }", "@Test\n public void a_create() {\n String url = baseUrl + \"create\";\n System.out.println();\n System.out.println(\"volunteerProvince being posted: \"+volunteerProvince);\n ResponseEntity<VolunteerProvince> postResponse = testRestTemplate\n .withBasicAuth(SECURITY_USERNAME, SECURITY_PASSWORD)\n .postForEntity(url, volunteerProvince, VolunteerProvince.class);\n volunteerProvince = postResponse.getBody();\n assertNotNull(postResponse.getBody());\n assertEquals(volunteerProvince.getVolunteerNum(), postResponse.getBody().getVolunteerNum());\n System.out.println(\"Volunteer Province saved on the data structure: \"+postResponse.getBody());\n\n }", "@Test\n public void addPublisherTest() {\n Mockito.when(this.repo.save(testPublisher1)).thenReturn(testPublisher1);\n Publisher resultFromService = this.publisherService.addOne(testPublisher1);\n assertTrue(resultFromService.getWebsite().equals(\"www.whatthewhat.com\"));\n }", "@Override\r\n\tpublic Planter addPlanter(Planter planter) throws ResourceNotFoundException {\r\n\t\t\r\n\t\tOptional<Seed> s = Optional.empty();\r\n\t\tOptional<Plant> p = Optional.empty();\r\n\t\tif(planter.getSeed() != null) {\r\n\t\t\ts = seedRepo.findById(planter.getSeed().getSeedId());\r\n\t\t}\r\n\t\tif(planter.getPlant() != null) {\r\n\t\t\t p = plantRepo.findById(planter.getPlant().getPlantId());\r\n\t\t}\r\n\t\tif(p.isPresent() || s.isPresent()) {\r\n\t\t\treturn planterRepo.save(planter);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new ResourceNotFoundException();\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n public void canAddBedroomToArrayList() {\n hotel.addBedroom(bedroom1);\n assertEquals(5, hotel.checkNumberOfBedrooms());\n }", "@Test\n\tpublic void testAddResource()\n\t{\n\t\tLocalDate resDate = null;\n\t\t\n\t\tCategory cat = new Category();\n\t\tcat.setCatId(10);\n\t\tcat.setCatName(\"Clothing\");\n\t\t\n\t\tResource res = new Resource();\n\t\tres.setResId(10);\n\t\tres.setResDate(resDate);\n\t\tres.setCategory(cat);\n\t\tres.setResDescription(\"100% Cotton\");\n\t\tres.setResTitle(\"Shirt\");\n\t\tres.setResPrice(1000);\n\t\t\n\t\tMockito.when(resourceRepository.save(res)).thenReturn(res);\n\t\tassertEquals(res, resourceService.addResource(res)); //check the expected result with actual result.\n\t}", "public static void main(String[] args) {\n DepartmentServiceimpl deptservice=new DepartmentServiceimpl();\n Department deptobj=new Department();\n \n deptobj.setDepartmentNumber(22);\n deptobj.setDepartmentName(\"com\");\n deptobj.setDepatmentLocation(\"pune\");\ndeptservice.createDepartmentService(deptobj);\n\n}", "public void addService() throws Throwable\r\n\t{\r\n\t\tselServicOpt.click();\r\n\t\tverifyService();\r\n\t\twdlib.waitForElement(getSelServiceBtn());\r\n\t\tselServiceBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ServicesPage\") , \"Services Page \");\r\n\t\tServicesPage svpage=new ServicesPage();\r\n\t\tsvpage.selectServices();\r\n\t\t\r\n\t}", "@Test\n public void testAddTablet() {\n System.out.println(\"addTablet\");\n Tablet tb = new Tablet(\"T005\", \"tablet005\", 0,0);\n DBTablet instance = new DBTablet();\n boolean expResult = true;\n boolean result = instance.addTablet(tb);\n assertEquals(expResult, result);\n }", "@Test\n\tpublic void testAddProduct() throws Exception {\n\t\tPrincipal mockPrincipal = Mockito.mock(Principal.class);\n\t\tMockito.when(mockPrincipal.getName()).thenReturn(\"1\");\n\t\tProductDTO expected = DummyData.getProductDto1();\n\t\tMockHttpServletRequestBuilder mockRequest = MockMvcRequestBuilders.request(HttpMethod.POST, \"/\")\n\t\t\t\t.principal(mockPrincipal)\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON)\n\t\t\t\t.content(ObjectMapperHelper.asJsonString(expected));\n\n\t\t// Setup when\n\t\twhen(productService.addProduct(ArgumentMatchers.any())).thenReturn(expected);\n\t\t\n\t\t// Execute the POST request\n\t\tmockMvc.perform(mockRequest)\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t// Validate the response code and content type\n\t\t\t\t.andExpect(MockMvcResultMatchers.content().contentType(MediaType.APPLICATION_JSON))\n\t\t\t\t// Validate the returned fields\n\t\t\t\t.andExpect(jsonPath(\"$.brand\", Is.is(expected.getBrand())))\n\t\t\t\t.andExpect(jsonPath(\"$.color\", Is.is(expected.getColor())))\n\t\t\t\t.andExpect(jsonPath(\"$.name\", Is.is(expected.getName()))).andReturn();\n\n\t\t// verify\n\t\tverify(productService).addProduct(ArgumentMatchers.any());\n\t}", "@Test\n public void addUser(){\n System.out.println(userService.findAllSysUser());\n }", "public void addProduct(Product product);", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();", "@Test\n public void addRole(){\n }", "@Test\n\tpublic void testAdoptionOfAShelterPet() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter(); \n\t\ttestPetShelter.addPet(\"Rusty\", new VirtualPet(\"Rusty\", \"He doesn't get hungry, he's Dead!\", 0, 0, 0));\n\t\ttestPetShelter.addPet(\"Grazer\", new VirtualPet(\"Grazer\", \"She cant leave.. she's dead too!\", 0, 0, 0));\n\t\ttestPetShelter.adoptPet(\"Grazer\"); // I created adoptPet, eclipse erred and asked me to create adoptPet in VPS \n\t\tAssert.assertEquals(1, testPetShelter.getVirtualPets().size()); // Pet is now removed from VP's collection\n\t}", "@PostMapping(value = \"/add\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<ServiceResult> insertTest(@RequestBody Test test) {\n return new ResponseEntity<ServiceResult>(testService.insertTest(test), HttpStatus.OK);\n }", "SUT createSUT();", "@Before\n public void setupTests()\n {\n Service s1 = new Service();\n s1.setCategory(\"HAIR\");\n\n repository.save(s1);\n\n }", "@Test\r\n public void testAgregar() {\r\n System.out.println(\"agregar\");\r\n Integer idDepto = null;\r\n String nombreDepto = \"\";\r\n Departamento instance = new Departamento();\r\n instance.agregar(idDepto, nombreDepto);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\n\tpublic void isExistingCaseNameAdded() {\n\t\tString caseName = \"leather Case\";\n\t\tString cost = \"50\";\n\t\ttry {\n\t\t\tCaseManagerService.addCaseType(caseName, cost);\n\t\t\tfail();\n\t\t} catch (ServiceException e) {\n\t\t\tassertEquals(\"Case Name is Already Exist\",e.getMessage());\n\t\t}\n\t}", "@Test\n public void testAddCity_City02() {\n\n System.out.println(\"addCity\");\n City cityTest = new City(new Pair(41.200000, -8.000000), \"cityTest\", 30);\n\n boolean result = sn10.addCity(cityTest);\n assertTrue(result);\n }", "@Test\n\tpublic void addProductToCartFromCategoryDrop() {\n\t}", "@Test\n public void addContacts() {\n }", "@Override\n\tpublic void add(Plane p) {\n\t\tString query = \"INSERT INTO fleet(model,planeid)\" + \"VALUES ('\" + p.getName() + \"',\" + p.getPlaneID() + \")\";\n\t\tDBManager.getInstance().addToDB(query);\n\t}", "void addProduct(Product product);", "public void testAddEntry(){\n }", "@Test\n public void testStaffFactoryCreate() {\n StaffController staffController = staffFactory.getStaffController();\n staffController.addStaff(STAFF_NAME, STAFF_GENDER, STAFf_ROLE);\n assertEquals(1, staffController.getStaffList().size());\n }", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "MealDto addMeal(MealDto meal, int restaurantId);", "public abstract void addDetails();", "@Test\n\tpublic void testAddTheUniqueNameOfRecipe() {\n\t\tcoffeeMaker.addRecipe(recipe1);\n\t\tassertTrue(coffeeMaker.addRecipe(recipe2));\n\t}", "@Override\r\n\tpublic void addSurgeryTreatment(TreatmentDto dto) throws ProviderServiceExn {\n\t\tSurgeryType surType = dto.getSurgery();\r\n\t\tTreatment t = treatmentFactory.createSurgeryTreatment(dto.getDiagnosis(), surType.getDate());\r\n\t\ttreatmentDAO.addTreatment(t);\r\n\t}", "void AddPatiant(Patient p) throws Exception;", "@Test\n\tpublic void testAddproductNotName() throws Exception {\n\t\tPrincipal mockPrincipal = Mockito.mock(Principal.class);\n\t\tMockito.when(mockPrincipal.getName()).thenReturn(\"1\");\n\t\tProductDTO expected = ProductDTO.builder()\n\t\t\t\t.brand(\"GUCCI\")\n\t\t\t\t.color(\"blue and ivory GG denim\")\n\t\t\t\t.price(new BigDecimal(\"1000.50\"))\n\t\t\t\t.build();\n\t\tMockHttpServletRequestBuilder mockRequest = MockMvcRequestBuilders.request(HttpMethod.POST, \"/\")\n\t\t\t\t.principal(mockPrincipal)\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON)\n\t\t\t\t.content(ObjectMapperHelper.asJsonString(expected));\n\n\t\t// Setup when\n\t\twhen(productService.addProduct(ArgumentMatchers.any())).thenReturn(expected);\n\t\t\n\t\t// Execute the POST request\n\t\tmockMvc.perform(mockRequest)\n\t\t\t\t.andExpect(status().isBadRequest())\n\t\t\t\t// Validate the response code and content type\n\t\t\t\t.andExpect(MockMvcResultMatchers.content().contentType(MediaType.APPLICATION_JSON))\n\t\t\t\t// Validate the returned fields\n\t\t\t\t.andExpect(jsonPath(\"$.error\", containsString(\"Name must be not blank\")));\n\n\t\t// verify\n\t\tverify(productService, times(0)).addProduct(ArgumentMatchers.any());\n\t}", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "@Test\n\tpublic void addRegistrationDetails() {\n\t\tRegistrationDetails registrationDetailsForHappyPath = RegistrationHelper.getRegistrationDetailsForHappyPath();\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\tRegistrationDetails addRegistrationDetails = registrationDAO\n\t\t\t\t\t.addRegistrationDetails(registrationDetailsForHappyPath);\n\t\t\tem.getTransaction().commit();\n\t\t\tassertTrue(addRegistrationDetails.getId() != 0l);\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t}", "@Test\r\n public void createFoodCategory() {\r\n repo = ctx.getBean(FoodCategoryRepository.class);\r\n// MainMeal meal= new MainMeal.Builder(\"Pap and Vors\")\r\n// .Amountprice(79000)\r\n// .build();\r\n FoodCategory cat= new FoodCategory.Builder(\"Gatsby\")\r\n .build();\r\n repo.save(cat);\r\n id = cat.getId(); \r\n Assert.assertNotNull(cat);\r\n \r\n \r\n }", "@Test\n\tpublic void addTown_when_town_is_added() throws Exception {\n\t\t// GIVEN\n\t\ttown = new Town(\"varna\", 2000);\n\t\t// WHEN\n\t\tcountry.addTown(town);\n\t\t// THEN\n\t\tassertEquals(country.getCountTowns(), 1);\n\t}", "public interface SpecimenService\r\n{\r\n static void setInstance(SpecimenService serviceImpl)\r\n {\r\n ServiceRegistry.get().registerService(SpecimenService.class, serviceImpl);\r\n }\r\n\r\n static SpecimenService get()\r\n {\r\n return ServiceRegistry.get().getService(SpecimenService.class);\r\n }\r\n\r\n /** Does a search for matching GlobalUniqueIds */\r\n ParticipantVisit getSampleInfo(Container studyContainer, User user, String globalUniqueId) throws SQLException;\r\n\r\n Set<ParticipantVisit> getSampleInfo(Container studyContainer, User user, String participantId, Date date) throws SQLException;\r\n\r\n Set<ParticipantVisit> getSampleInfo(Container studyContainer, User user, String participantId, Double visit) throws SQLException;\r\n\r\n String getCompletionURLBase(Container studyContainer, CompletionType type);\r\n\r\n Set<Pair<String, Date>> getSampleInfo(Container studyContainer, User user, boolean truncateTime) throws SQLException;\r\n\r\n Set<Pair<String, Double>> getSampleInfo(Container studyContainer, User user) throws SQLException;\r\n\r\n Lsid getSpecimenMaterialLsid(@NotNull Container studyContainer, @NotNull String id);\r\n\r\n void importSpecimens(User user, Container container, List<Map<String, Object>> rows, boolean merge) throws SQLException, IOException, ValidationException;\r\n\r\n void registerSpecimenImportStrategyFactory(SpecimenImportStrategyFactory factory);\r\n\r\n Collection<SpecimenImportStrategyFactory> getSpecimenImportStrategyFactories();\r\n\r\n void registerSpecimenTransform(SpecimenTransform transform);\r\n\r\n Collection<SpecimenTransform> getSpecimenTransforms(Container container);\r\n\r\n @Nullable\r\n SpecimenTransform getSpecimenTransform(String name);\r\n\r\n PipelineJob createSpecimenReloadJob(Container container, User user, SpecimenTransform transform, @Nullable ActionURL url) throws SQLException, IOException, ValidationException;\r\n\r\n void registerSpecimenChangeListener(SpecimenChangeListener listener);\r\n\r\n @Nullable\r\n TableInfo getTableInfoVial(Container container);\r\n\r\n @Nullable\r\n TableInfo getTableInfoSpecimen(Container container);\r\n\r\n @Nullable\r\n TableInfo getTableInfoSpecimenEvent(Container container);\r\n\r\n SpecimenTablesTemplate getSpecimenTablesTemplate();\r\n\r\n Domain getSpecimenVialDomain(Container container, User user);\r\n\r\n Domain getSpecimenEventDomain(Container container, User user);\r\n\r\n Map<String, String> getSpecimenImporterTsvColumnMap();\r\n\r\n SpecimenRequestCustomizer getRequestCustomizer();\r\n\r\n void registerRequestCustomizer(SpecimenRequestCustomizer customizer);\r\n\r\n /** Hooks to allow other modules to control a few items about how specimens are treated */\r\n interface SpecimenRequestCustomizer\r\n {\r\n /** @return whether or not a specimen request must include at least one vial */\r\n boolean allowEmptyRequests();\r\n\r\n /** @return null if users should always supply a destination site for a given request, or the site's id if they should all be the same */\r\n Integer getDefaultDestinationSiteId();\r\n\r\n /** @return true if reports shouldn't give the option to group based on primary, additive, or derivative types */\r\n boolean omitTypeGroupingsWhenReporting();\r\n\r\n /** @return whether the current user can make changes to the status of the request */\r\n boolean canChangeStatus(User user);\r\n\r\n /** @return true if a variety of warning types including vial status, the inclusion of vials spanning multiple locations, and more should be suppressed in the UI */\r\n boolean hideRequestWarnings();\r\n\r\n /** @return a message to show the user after a request has been submitted */\r\n HtmlString getSubmittedMessage(Container c, int requestId);\r\n }\r\n\r\n interface SampleInfo\r\n {\r\n String getParticipantId();\r\n Double getSequenceNum();\r\n String getSampleId();\r\n }\r\n\r\n enum CompletionType\r\n {\r\n SpecimenGlobalUniqueId,\r\n ParticipantId,\r\n VisitId,\r\n LabId\r\n }\r\n}", "@Test\n public void testAddPassenger() {\n System.out.println(\"addPassenger\");\n Passenger p = new Passenger();\n p.setForename(\"DAVID\");\n p.setSurname(\"DAVIDSON\");\n p.setDOB(new Date(2012-02-02));\n p.setNationality(\"ENGLISH\");\n PassengerHandler instance = new PassengerHandler();\n assertTrue(instance.addPassenger(p));\n }", "public void serviceAdded(ServiceDescription service) {\n System.out.println(\"service added\");\n current = service;\n //set up channel to communicate with server\n //multiple beds -> multiple channels\n channel = ManagedChannelBuilder.forAddress(service.getAddress(), service.getPort())\n .usePlaintext(true)\n .build();\n\n //To call service methods, we first need to create a stub, \n //a blocking/synchronous stub: this means that the RPC call waits for the server to respond, \n //and will either return a response or raise an exception.\n blockingStub = ProjectorGrpc.newBlockingStub(channel);\n\n activateProjector();\n //listInputs();\n\n }", "@Override\n\t\t\tpublic TestEntity addTest(TestEntity test) \n\t\t\t{\t\n\t\t\t\t\ttest = testDao.save(test);\n\t\t\t\t\treturn test;\n\t\t\t}", "public static void testAddTodoView(){\n }", "public void testAdd() {\n System.out.println(\"add\");\n String key = \"\";\n Object value = null;\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n Object expResult = null;\n Object result = instance.add(key, value);\n assertEquals(expResult, result);\n }" ]
[ "0.6475333", "0.6459971", "0.6418778", "0.6289155", "0.6209613", "0.60187876", "0.60032237", "0.5998235", "0.5984694", "0.5949218", "0.5945347", "0.5943786", "0.5931044", "0.59173", "0.59137166", "0.59135944", "0.5874485", "0.5854887", "0.58545434", "0.5851723", "0.5823956", "0.5814524", "0.5814077", "0.58071923", "0.5804919", "0.5784159", "0.57728904", "0.5769878", "0.57697266", "0.5748921", "0.5739107", "0.5733141", "0.57162285", "0.57161623", "0.56989944", "0.56916225", "0.56862617", "0.568577", "0.5679289", "0.5664229", "0.5660876", "0.5659006", "0.5652835", "0.56524503", "0.5651722", "0.5651359", "0.56310385", "0.562435", "0.5608547", "0.56022924", "0.5586407", "0.5570378", "0.55545664", "0.55535096", "0.55533624", "0.5553209", "0.55507", "0.5548922", "0.55451787", "0.5536577", "0.5535962", "0.5533761", "0.5533249", "0.5530395", "0.55217147", "0.55156654", "0.5513393", "0.5509585", "0.5507819", "0.550304", "0.55024004", "0.54946154", "0.54840004", "0.5467468", "0.5466029", "0.5461175", "0.5459789", "0.54541564", "0.5454019", "0.5449164", "0.5439199", "0.54366714", "0.54342425", "0.5433659", "0.5425322", "0.54152364", "0.5414154", "0.5414018", "0.5413269", "0.5408355", "0.53969574", "0.53851926", "0.53811646", "0.53807896", "0.53802264", "0.5379573", "0.53734505", "0.5368365", "0.5367856", "0.5365044" ]
0.8211601
0
testing service layer method to upadte plant
@Test void testUpdatePlant() { Plant plant = service.updatePlant(new Plant( 8.0, "Lemon", "Antihairfall", 22.0, 5, 170.0, "shurb")); assertEquals(170.0, plant.getCost()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void setupService() {\n }", "@Test\n public void getStuff() {\n \n Assert.assertEquals(wService.work(), \"Parker\");\n Assert.assertEquals(aService.age(), 25);\n }", "public void testSetService() throws Exception {\n }", "public void testService() {\n\n\t\ttry {\n\t\t\tString nextAction = \"next action\";\n\t\t\trequest.setAttribute(\"NEXT_ACTION\", nextAction);\n\t\t\tString nextPublisher = \"next publisher\";\n\t\t\trequest.setAttribute(\"NEXT_PUBLISHER\", nextPublisher);\n\t\t\tString expertQueryDisplayed = \"expert query displayed\";\n\t\t\trequest.setAttribute(\"expertDisplayedForUpdate\", expertQueryDisplayed);\n\t\t\tupdateFieldsForResumeAction.service(request, response);\n\t\t\tassertEquals(nextAction, response.getAttribute(\"NEXT_ACTION\"));\t\t\n\t\t\tassertEquals(nextPublisher, response.getAttribute(\"NEXT_PUBLISHER\"));\n\t\t\tassertEquals(expertQueryDisplayed, singleDataMartWizardObj.getExpertQueryDisplayed());\n\t\t\t\n\t\t} catch (SourceBeanException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Unaspected exception occurred!\");\n\t\t}\n\t\t\n\t}", "@Test\n public void getStaff() {\n \n Assert.assertEquals(aService.getDoctorAge(), 23);\n Assert.assertEquals(nService.getDoctorName(), \"Karriem\");\n }", "@Test\n public void others(){\n Item item = itemService.getItem(50);\n System.out.println(item);\n\n }", "@Test\r\n void testUserImplementation() {\r\n bindUser();\r\n testService.userImplementation();\r\n }", "public TeamServiceTest() {\r\n\t\tsetupRequestContext();\r\n\t}", "@Test\n public void serviceCandidateTest() {\n // TODO: test serviceCandidate\n }", "@Test\r\n\tpublic void client() {\n\t}", "public GameServiceTest() {\r\n\t\tsetupRequestContext();\r\n\t}", "public OrderLineServiceTest() {\n\t\tsetupRequestContext();\n\t}", "@Test\n\tpublic void bodyUseService() {\n\t\tLOG.info(\"[#759] bodyUseService part 1\");\n\n\t\tFuture<List<Service>> asyncServices = null;\n\t\tList<Service> services = new ArrayList<Service>();\n\n\t\ttry {\n\t\t\t// Start the service\n\t\t\tLOG.info(\"[#759] Calculator service starting\");\n\t\t\tFuture<ServiceControlResult> asyncStartResult = TestCase759.serviceControl.startService(calculatorServiceId);\n\t\t\tServiceControlResult startResult = asyncStartResult.get();\n\t\t\t// Service can't be started\n\t\t\tif (!startResult.getMessage().equals(ResultMessage.SUCCESS)) {\n\t\t\t\tthrow new Exception(\"Can't start the service. Returned value: \"+startResult.getMessage());\n\t\t\t}\n\t\t\tLOG.info(\"[#759] Calculator service started\");\n\n\t\t\t// -- Test case is now ready to consume the service\n\t\t\t// The injection of ICalc will launch the UpperTester\n\t\t}\n\t\tcatch (ServiceDiscoveryException e) {\n\t\t\tLOG.info(\"[#759] ServiceDiscoveryException\", e);\n\t\t\tfail(\"[#759] ServiceDiscoveryException: \"+e.getMessage());\n\t\t\treturn;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLOG.info(\"[#759] Preamble installService: Unknown Exception\", e);\n\t\t\tfail(\"[#759] Preamble installService: Unknown Exception: \"+e.getMessage());\n\t\t\treturn;\n\t\t}\n\t}", "public void service() {\n\t}", "@BeforeTest\n public void setUp() {\n UrlaubrWsUtils.migrateDatabase(TravelServiceImpl.DEFAULT_URL, TravelServiceImpl.DEFAULT_USER, TravelServiceImpl.DEFAULT_PASSWORD);\n\n service = new TravelServiceImpl();\n }", "@Test\r\n public void customerService() {\r\n Customer customer;\r\n customerCrudService = (CustomerCrudService)ctx.getBean(\"customerCrudService\");\r\n \r\n Contact contact = ContactFactory.getContact(\"[email protected]\", \"0785566321\", \"0218897190\");\r\n Demography demo = DemographyFactory.getDemography(\"Female\", \"Black\", new Date(10/6/1986));\r\n \r\n BigDecimal sellingPrice = new BigDecimal(\"8.00\");\r\n BigDecimal broughtPrice = new BigDecimal(\"6.00\");\r\n BigDecimal profit = new BigDecimal(\"2.00\");\r\n ArrayList prices = new ArrayList<BigDecimal>();\r\n prices.add(sellingPrice);\r\n prices.add(broughtPrice);\r\n prices.add(profit);\r\n Item item = ItemFactory.getItem(\"PS\", prices);\r\n \r\n List items = new ArrayList<Item>();\r\n items.add(items);\r\n \r\n customer = new CustomerFactory\r\n .Builder(125)\r\n .CustomerName(\"Mphokazi\")\r\n .CustomerSurname(\"Mhlontlo\")\r\n .Contact(contact)\r\n .Demography(demo)\r\n .OrderItem(items)\r\n .build();\r\n \r\n customerCrudService.persist(customer);\r\n customerService = (CustomerServices)ctx.getBean(\"customerService\");\r\n List<OrderItem> orderItems = customerService.customerOrder(customer.getId());\r\n Assert.assertNotNull(orderItems);\r\n for (OrderItem orderItem : orderItems) {\r\n System.out.println(orderItem.getItem());\r\n \r\n \r\n } \r\n }", "@Test\n /***\n * 传统方式开发\n */\n public void demo1(){\n\n UserServiceImpl userService = new UserServiceImpl();\n userService.setName(\"王\");\n userService.sayHello();\n }", "public interface IDemoService {\n /**\n * 查询测试申请列表\n *\n * @return\n */\n Map<String, Object> getTestPage(JSONObject jsonObject);\n\n /**\n * 新建测试申请\n *\n * @param jsonObject\n * @return\n */\n int addApply(JSONObject jsonObject);\n\n /**\n * 根据iD获取详细信息\n *\n * @param json\n * @return\n */\n Map<String, Object> getTestItemInfo(JSONObject json);\n\n /**\n * 修改\n */\n\n int updateTestItemInfo(JSONObject json);\n\n /**\n * 审核\n */\n\n int checkTestItemInfo(JSONObject json);\n\n /**\n * 补充\n */\n int addSupply(JSONObject json);\n\n /**\n * 延期\n */\n int addDelay(JSONObject json);\n\n /**\n * 获取补充信息列表\n */\n List<Map<String, Object>> getSupply(JSONObject json);\n /**\n * 获取延期信息列表\n */\n List<Map<String, Object>> getDelay(JSONObject json);\n\n /**\n * 测试完成\n */\n int testComplete(JSONObject json);\n\n /**\n * 导出\n */\n List<Map<String, Object>> export(JSONObject json);\n}", "@Before\n public void setupTests()\n {\n Service s1 = new Service();\n s1.setCategory(\"HAIR\");\n\n repository.save(s1);\n\n }", "@Override\n public void testCreateRequestListSomeFilteredBySourceSystem(){\n }", "@Test\n public void createProduct() {\n }", "@Test\n public void testProductOfferingCreate() {\n // TODO: test ProductOfferingCreate\n }", "@Test\n public void addUser(){\n System.out.println(userService.findAllSysUser());\n }", "public void testOperation();", "@Test\n public void contextLoads() {\n\n ServicosProdutos inserir = new ServicosProdutos() {\n @Override\n public ItemProduto inserir() {\n return super.inserir();\n }\n };\n\n ServicosProdutos listar = new ServicosProdutos() {\n @Override\n public ItemProduto listar() {\n return super.listar();\n }\n };\n\n\n\n ServicosProdutos alterar = new ServicosProdutos() {\n @Override\n public ItemProduto alterar() {\n return super.alterar();\n }\n };\n\n ServicosProdutos deletar = new ServicosProdutos() {\n @Override\n public ItemProduto deletar() {\n return super.deletar();\n }\n };\n\n\n\n }", "@BeforeMethod\n private void setUp() throws ServerError {\n sessionMock.returns(updatePrxMock.getMock()).getUpdateService();\n\n // mock the session on the Blitz service mock\n updateService = new UpdateBlitzService(sessionMock.getMock());\n }", "@Before\n public void setUp() {\n this.forecastService = new ForecastAdapter(new Forecast());\n }", "@Test\n void createParkingLot() {\n }", "@Test\n public void testSetName() {\n service.setName(\"ServiceNew\");\n assertEquals(\"ServiceNew\", service.getName());\n \n }", "@Test\n public void testCustomerRewardService() {\n CustomerReward customerReward = customerRewardService.calculateRewards(\"custId1\");\n\n System.out.println(\"Custormer Avg Reward: \" + customerReward.getAverageRewardsPerMonth());\n System.out.println(\"Custormer Total Reward: \" + customerReward.getTotalRewards());\n\n customerReward = customerRewardService.calculateRewards(\"custId2\");\n System.out.println(\"Custormer Avg Reward: \" + customerReward.getAverageRewardsPerMonth());\n System.out.println(\"Custormer Total Reward: \" + customerReward.getTotalRewards());\n\n\n }", "public static void main(String[] args) throws Exception {\n\n System.out.println(\"###CustomerOrder Test###\");\n CustomerOrderService customerOrderService = new CustomerOrderService(new CustomerOrderDao());\n\n CustomerOrder customerOrder1 = new CustomerOrder(BigDecimal.valueOf(99.95), \"NEW\", \"1000\", 1, 1, 1);\n customerOrderService.addCustomerOrder(customerOrder1);\n\n System.out.println(\"getCustomerOrder(1): \" + customerOrderService.getCustomerOrder(1));\n System.out.println(\"getAllCustomerOrdersByCustId(1): \" + customerOrderService.getAllCustomerOrdersByCustId(1));\n\n System.out.println(\"getDetailedCustomerOrder(1): \" + customerOrderService.getDetailedCustomerOrder(1));\n\n System.out.println(\"getCustomerOrderStatus(1): \" + customerOrderService.getCustomerOrderStatus(1));\n \n\n CustomerOrder customerOrder2 = new CustomerOrder(1, BigDecimal.valueOf(88.88), \"SHIPPED\", \"2222\", 2, 2, 2);\n customerOrderService.updateCustomerOrder(customerOrder2);\n\n System.out.println(\"getCustomerOrder(1) - after update: \" + customerOrderService.getCustomerOrder(1));\n\n Payment payment1 = new Payment(1, \"PAYMENT\", \"PROCESSED\");\n customerOrderService.addPayment(payment1);\n\n System.out.println(\"getPayment(1): \" + customerOrderService.getPayment(1));\n customerOrderService.updatePayment(1, \"REFUNDED\");\n System.out.println(\"getPayment(1) - after status update: \" + customerOrderService.getPayment(1));\n\n System.out.println(\"getPaymentsByOrderId(1): \" + customerOrderService.getPaymentsByOrderId(1));\n\n CustomerOrderDetail customerOrderDetail1 = new CustomerOrderDetail(1, 3);\n customerOrderService.addCustomerOrderDetail(customerOrderDetail1);\n\n System.out.println(\"getCustomerOrderDetail(2): \" + customerOrderService.getCustomerOrderDetail(2));\n System.out.println(\"getCustomerOrderDetailsByOrderId(1): \" + customerOrderService.getCustomerOrderDetailsByOrderId(1));\n \n \n \n //Start of the Product test\n \n System.out.println(\"###Product Test###\"); \n ProductService productService = new ProductService(new ProductDao());\n\n Product productTest = new Product(1, \"1234\", \"ProductTest\", \"veryCool\", true, 1, 1, \"picture\");\n productService.createProduct(productTest);\n \n System.out.println(\"Select productTest by id: \" + productService.getProduct(4));\n \n System.out.println(\"select All Products: \" + productService.selectAllProducts());\n \n\n \n //End of product test\n \n //Partner test started\n \n System.out.println(\"###Partner Test###\"); \n PartnerService partnerService = new PartnerService(new PartnerDao());\n\n Partner partnerTest = new Partner(1, \"Myco\", \"6331 N Kenmore Ave\", \"Chicago\", \"IL\", \"60660\", \"USA\", \"800-556-8876\", \"[email protected]\", \"http://www.xyz.com/\", true);\n partnerService.createPartner(partnerTest);\n \n System.out.println(\"Select partnerTest by id: \" + partnerService.getPartner(1));\n \n System.out.println(\"select All Partners: \" + partnerService.selectAllPartner());\n \n \n //End of partner test\n }", "@Test\n // public void hello() {}\n public void creatSearchFlight()\n {\n flyRep = ctx.getBean(FlightsRepository.class);\n flySer = ctx.getBean(SearchFlightService.class);\n \n Flights f = new Flights.Builder(\"100F\")\n // .canFlyt(new CancelledFlight.Builder(\"100F\").build())\n .className(\"economy\")\n .flightName(\"SAA\")\n .departureCity(\"Cape Town\")\n .arriveCity(\"Durban\")\n .totalCapacity(\"300\")\n .seatsAvailable(\"100\")\n .build();\n flyRep.save(f);\n id = f.getId();\n \n \n List <Flights> pas = flySer.searchFlights(\"101F\");\n Assert.assertNotEquals(pas.equals(f), \"100F\");\n \n }", "public void mock(){\n\n }", "public static void main(String[] args) {\n DepartmentServiceimpl deptservice=new DepartmentServiceimpl();\n Department deptobj=new Department();\n \n deptobj.setDepartmentNumber(22);\n deptobj.setDepartmentName(\"com\");\n deptobj.setDepatmentLocation(\"pune\");\ndeptservice.createDepartmentService(deptobj);\n\n}", "@Test\r\n\tpublic void executionTest() throws Exception {\n\t\tOperationalEnvDistributionStatus operEnvDistStatusObj = new OperationalEnvDistributionStatus();\r\n\t\toperEnvDistStatusObj.setServiceModelVersionId(serviceModelVersionId);\r\n\t\toperEnvDistStatusObj.setDistributionId(asdcDistributionId);\r\n\t\toperEnvDistStatusObj.setOperationalEnvId( operationalEnvironmentId);\r\n\t\toperEnvDistStatusObj.setDistributionIdStatus(DistributionStatus.DISTRIBUTION_COMPLETE_OK.toString());\r\n\t\toperEnvDistStatusObj.setRequestId(requestId);\r\n\t\t\r\n\t\t// ServiceModelStatus - getOperationalEnvServiceModelStatus\r\n\t\tOperationalEnvServiceModelStatus operEnvServiceModelStatusObj = new OperationalEnvServiceModelStatus();\r\n\t\toperEnvServiceModelStatusObj.setRequestId(requestId);\r\n\t\toperEnvServiceModelStatusObj.setOperationalEnvId(operationalEnvironmentId);\r\n\t\toperEnvServiceModelStatusObj.setServiceModelVersionDistrStatus(DistributionStatus.DISTRIBUTION_COMPLETE_OK.toString());\r\n\t\toperEnvServiceModelStatusObj.setRecoveryAction(recoveryAction);\r\n\t\toperEnvServiceModelStatusObj.setRetryCount(retryCount);\r\n\t\toperEnvServiceModelStatusObj.setWorkloadContext(workloadContext);\r\n\t\toperEnvServiceModelStatusObj.setServiceModelVersionId(serviceModelVersionId);\r\n\t\tList<OperationalEnvServiceModelStatus> queryServiceModelResponseList = new ArrayList<OperationalEnvServiceModelStatus>();\r\n\t\tqueryServiceModelResponseList.add(operEnvServiceModelStatusObj);\r\n\t\t\r\n\t\t// prepare distribution obj\r\n\t\tDistribution distribution = new Distribution();\r\n\t\tdistribution.setStatus(Status.DISTRIBUTION_COMPLETE_OK);\r\n\t\trequest.setDistribution(distribution);\r\n\t\trequest.setDistributionId(asdcDistributionId);\r\n\t\t\r\n\t\t// prepare asdc return data\r\n\t\tString jsonPayload = asdcClientUtils.buildJsonWorkloadContext(workloadContext);\r\n\t\r\n\t\tJSONObject jsonObject = new JSONObject();\r\n\t\tjsonObject.put(\"statusCode\", \"202\");\r\n\t\tjsonObject.put(\"message\", \"Success\");\r\n\t\tjsonObject.put(\"distributionId\", asdcDistributionId);\r\n\t\t\r\n\t\t// Mockito mock\r\n\t\tOperationalEnvDistributionStatusDb distributionDb = Mockito.mock(OperationalEnvDistributionStatusDb.class);\r\n\t\tOperationalEnvServiceModelStatusDb serviceModelDb = Mockito.mock(OperationalEnvServiceModelStatusDb.class);\r\n\t\tRequestsDBHelper dbUtils = mock(RequestsDBHelper.class);\r\n\t\tAsdcClientHelper asdcClientHelperMock = Mockito.mock(AsdcClientHelper.class);\r\n\t\tRESTConfig configMock = Mockito.mock(RESTConfig.class);\r\n\t\tRESTClient clientMock = Mockito.mock(RESTClient.class);\r\n\t\tAPIResponse apiResponseMock = Mockito.mock(APIResponse.class);\t\t\r\n\t\r\n\t\tMockito.when(asdcClientHelperMock.setRestClient(configMock)).thenReturn(clientMock);\r\n\t\tMockito.when(asdcClientHelperMock.setHttpPostResponse(clientMock, jsonPayload)).thenReturn(apiResponseMock);\r\n\t\tMockito.when(asdcClientHelperMock.enhanceJsonResponse(jsonObject, 202)).thenReturn(jsonObject);\t\t\r\n\t\tMockito.when(asdcClientHelperMock.postActivateOperationalEnvironment(serviceModelVersionId, operationalEnvironmentId, workloadContext)).thenReturn(jsonObject);\t\t\r\n\t\t\r\n\t\tMockito.when(distributionDb.getOperationalEnvDistributionStatus(asdcDistributionId)).thenReturn(operEnvDistStatusObj);\r\n\t\tMockito.when(serviceModelDb.getOperationalEnvServiceModelStatus(operationalEnvironmentId, serviceModelVersionId)).thenReturn(operEnvServiceModelStatusObj);\t\t\r\n\t\tMockito.when(serviceModelDb.getOperationalEnvIdStatus(operationalEnvironmentId, requestId)).thenReturn(queryServiceModelResponseList);\t\t\r\n\t\t\r\n\t\tint row = 1;\r\n\t\tMockito.when(distributionDb.updateOperationalEnvDistributionStatus(distribution.getStatus().toString(), asdcDistributionId, operationalEnvironmentId, serviceModelVersionId)).thenReturn(row);\r\n\t\tMockito.when(serviceModelDb.updateOperationalEnvRetryCountStatus(operationalEnvironmentId, serviceModelVersionId, distribution.getStatus().toString(), 0)).thenReturn(row);\r\n\t\t\r\n\t\tdoNothing().when(dbUtils).updateInfraSuccessCompletion(any(String.class), any(String.class), any(String.class));\r\n\t\t\r\n\t\trequest.setOperationalEnvironmentId(operationalEnvironmentId);\r\n\t\tActivateVnfStatusOperationalEnvironment activateVnfStatus = new ActivateVnfStatusOperationalEnvironment(request, requestId);\r\n\t\tActivateVnfStatusOperationalEnvironment activateVnfStatusMock = spy(activateVnfStatus);\r\n\t\tactivateVnfStatusMock.setOperationalEnvDistributionStatusDb(distributionDb);\r\n\t\tactivateVnfStatusMock.setOperationalEnvServiceModelStatusDb(serviceModelDb);\r\n\t\tactivateVnfStatusMock.setRequestsDBHelper(dbUtils);\t\t\r\n\t\tactivateVnfStatusMock.setAsdcClientHelper(asdcClientHelperMock);\r\n\r\n\t\tactivateVnfStatusMock.execute();\t\t\r\n\t\t\r\n\t\tverify(distributionDb, times(1)).updateOperationalEnvDistributionStatus(distribution.getStatus().toString(), asdcDistributionId, operationalEnvironmentId, serviceModelVersionId);\r\n\t\tverify(serviceModelDb, times(1)).updateOperationalEnvRetryCountStatus(operationalEnvironmentId, serviceModelVersionId, distribution.getStatus().toString(), 0);\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Before\n\tpublic void setup(){\n\t\taccount = mock(Account.class);\n\t\t\t\t\n\t\taccountDB = mock(AccountRepository.class);\n\t\twhen(accountDB.find(anyString())).thenReturn(account);\n\t\tservice = new LoginService(accountDB);\n\n\t}", "@Test\n\tvoid testAddPlant() {\n\t\tPlant plant = service.addPlant(new Plant(9.0, \"Hibiscus\", \"Skin Benefits\", 22.0, 8, 330.0, \"Shurbs\"));\n\t\tassertEquals(\"Hibiscus\", plant.getName());\n\n\t}", "@Test\n public void testProxy() {\n Dell dell = new Dell();\n Proxy proxy = new Proxy(dell);\n proxy.salePc();\n }", "@Test\n public void testService()\n {\n final JsonSchemaValidator jsonValidator =\n JsonSchemaValidator.matchesJsonSchemaInClasspath(\"costcenters-schema.json\");\n\n // HTTP GET response OK, JSON header and valid schema\n given().get(\"/costcenters\").then().assertThat().statusCode(200).contentType(ContentType.JSON).body(\n jsonValidator);\n }", "@Test\n public void testGetName() {\n String result = service.getName();\n assertEquals(\"Servis\", result);\n \n }", "SUT createSUT();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\r\n\tpublic void testAddServices(){\r\n\t\tblog = new Blog();\r\n\t\t\r\n\t\tblog.setBlogId(1);\r\n\t\tblog.setBlogName(\"techZealot\");\r\n\t blog.setBlogDescription(\"for technical skills\");\r\n\t\tblog.setBlogStatus(\"approved\");\r\n\t\tblog.setNoOfComments(10);\r\n\t\tblog.setNoOfLikes(10);\r\n\t\tblog.setNoOfViews(12);\r\n\t\tblog.setPostDate(LocalDate.parse(\"2017-04-21\"));\r\n\t\tblog.setUserId(1);\r\n\t\tblog.setUserName(\"bhavna\");\r\n\t\t\r\n\t\tassertEquals(\"Successfully added a product inside the table!\",true,blogDao.addBlog(blog));\r\n\t}", "@Test\n void findClientById() {\n }", "public void doService() {\n }", "@Test\n public void testCreateDietStatus() throws Exception{\n String URI = \"/healthreminder/create_followup_dietstatus\";\n FollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(true);\n\t\t\n String jsonInput = this.converttoJson(followUpDietStatusInfo);\n\n Mockito.when(followUpDietStatusInfoServices.createDietStatus(Mockito.any(FollowUpDietStatusInfo.class))).thenReturn(followUpDietStatusInfo);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.post(URI).accept(MediaType.APPLICATION_JSON).content(jsonInput).contentType(MediaType.APPLICATION_JSON))\n .andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n String jsonOutput = mockHttpServletResponse.getContentAsString();\n assertThat(jsonInput).isEqualTo(jsonOutput);\n Assert.assertEquals(HttpStatus.OK.value(), mockHttpServletResponse.getStatus());\n }", "public TestService() {}", "@Before\r\n public void setup() {\n JacksonTester.initFields(this, new ObjectMapper());\r\n // MockMvc standalone approach\r\n mvc = MockMvcBuilders.standaloneSetup(peopleController)\r\n .build();\r\n //peopleService = Mockito.mock(PeopleServiceImpl.class);\r\n }", "@Test\n public void testGetProducts() {\n }", "@Test\n public void testCategoryService() {\n assertEquals(\"com.dungnv.streetfood.service.ClientServiceImpl\", this.clientService.getClass().getName());\n\n }", "public interface TC1MockService {\n\n List<TC1MockDTO> getAll();\n\n}", "TestViewpoint createTestViewpoint();", "@Before\n public void setup(){\n\n mockUserRepo = mock(UserRepository.class);\n mockSession = mock(UserSession.class);\n mockValidator = mock(InputValidator.class);\n sut = new UserService( mockUserRepo, mockSession, mockValidator);\n\n }", "public interface SpecimenService\r\n{\r\n static void setInstance(SpecimenService serviceImpl)\r\n {\r\n ServiceRegistry.get().registerService(SpecimenService.class, serviceImpl);\r\n }\r\n\r\n static SpecimenService get()\r\n {\r\n return ServiceRegistry.get().getService(SpecimenService.class);\r\n }\r\n\r\n /** Does a search for matching GlobalUniqueIds */\r\n ParticipantVisit getSampleInfo(Container studyContainer, User user, String globalUniqueId) throws SQLException;\r\n\r\n Set<ParticipantVisit> getSampleInfo(Container studyContainer, User user, String participantId, Date date) throws SQLException;\r\n\r\n Set<ParticipantVisit> getSampleInfo(Container studyContainer, User user, String participantId, Double visit) throws SQLException;\r\n\r\n String getCompletionURLBase(Container studyContainer, CompletionType type);\r\n\r\n Set<Pair<String, Date>> getSampleInfo(Container studyContainer, User user, boolean truncateTime) throws SQLException;\r\n\r\n Set<Pair<String, Double>> getSampleInfo(Container studyContainer, User user) throws SQLException;\r\n\r\n Lsid getSpecimenMaterialLsid(@NotNull Container studyContainer, @NotNull String id);\r\n\r\n void importSpecimens(User user, Container container, List<Map<String, Object>> rows, boolean merge) throws SQLException, IOException, ValidationException;\r\n\r\n void registerSpecimenImportStrategyFactory(SpecimenImportStrategyFactory factory);\r\n\r\n Collection<SpecimenImportStrategyFactory> getSpecimenImportStrategyFactories();\r\n\r\n void registerSpecimenTransform(SpecimenTransform transform);\r\n\r\n Collection<SpecimenTransform> getSpecimenTransforms(Container container);\r\n\r\n @Nullable\r\n SpecimenTransform getSpecimenTransform(String name);\r\n\r\n PipelineJob createSpecimenReloadJob(Container container, User user, SpecimenTransform transform, @Nullable ActionURL url) throws SQLException, IOException, ValidationException;\r\n\r\n void registerSpecimenChangeListener(SpecimenChangeListener listener);\r\n\r\n @Nullable\r\n TableInfo getTableInfoVial(Container container);\r\n\r\n @Nullable\r\n TableInfo getTableInfoSpecimen(Container container);\r\n\r\n @Nullable\r\n TableInfo getTableInfoSpecimenEvent(Container container);\r\n\r\n SpecimenTablesTemplate getSpecimenTablesTemplate();\r\n\r\n Domain getSpecimenVialDomain(Container container, User user);\r\n\r\n Domain getSpecimenEventDomain(Container container, User user);\r\n\r\n Map<String, String> getSpecimenImporterTsvColumnMap();\r\n\r\n SpecimenRequestCustomizer getRequestCustomizer();\r\n\r\n void registerRequestCustomizer(SpecimenRequestCustomizer customizer);\r\n\r\n /** Hooks to allow other modules to control a few items about how specimens are treated */\r\n interface SpecimenRequestCustomizer\r\n {\r\n /** @return whether or not a specimen request must include at least one vial */\r\n boolean allowEmptyRequests();\r\n\r\n /** @return null if users should always supply a destination site for a given request, or the site's id if they should all be the same */\r\n Integer getDefaultDestinationSiteId();\r\n\r\n /** @return true if reports shouldn't give the option to group based on primary, additive, or derivative types */\r\n boolean omitTypeGroupingsWhenReporting();\r\n\r\n /** @return whether the current user can make changes to the status of the request */\r\n boolean canChangeStatus(User user);\r\n\r\n /** @return true if a variety of warning types including vial status, the inclusion of vials spanning multiple locations, and more should be suppressed in the UI */\r\n boolean hideRequestWarnings();\r\n\r\n /** @return a message to show the user after a request has been submitted */\r\n HtmlString getSubmittedMessage(Container c, int requestId);\r\n }\r\n\r\n interface SampleInfo\r\n {\r\n String getParticipantId();\r\n Double getSequenceNum();\r\n String getSampleId();\r\n }\r\n\r\n enum CompletionType\r\n {\r\n SpecimenGlobalUniqueId,\r\n ParticipantId,\r\n VisitId,\r\n LabId\r\n }\r\n}", "@Test\n public void testAddProduct() {\n }", "@Test\n public void marketSegmentTest() {\n // TODO: test marketSegment\n }", "@Test\n public void testAdviceMapList() {\n//TODO: Test goes here... \n }", "@Test\n\tvoid testgetAllPlants() {\n\t\tList<Plant> plantlist = service.getAllPlant();\n\t\tboolean result = true;\n\t\tif (plantlist.isEmpty()) {\n\t\t\tresult = false;\n\t\t}\n\t\tassertTrue(result);\n\t}", "@Before\n public void setUp() throws Exception {\n cut = new LightScheduler();\n// spyLedController = new SpyLedController();\n// fakeTimeService = new FakeTimeService();\n }", "public interface PrintTaskService extends GenericService<PrintTask> {\n\n /**\n * 计算未付款printTask\n *\n * @param studentId studentId\n * @return count\n */\n int countInCart(Long studentId);\n\n\n /**\n * 文档假如购物车\n *\n * @param studentId studentId\n * @param studentDocumentId studentDocumentId\n * @return printTaskDto\n */\n PrintTaskDto addToCart(Long studentId, Long studentDocumentId);\n\n}", "public void testGetBasedata() {\n }", "@Before\n public void setUp() {\n underTest = context.registerInjectActivateService(new CropSquareServlet());\n }", "@Test\n void getGreeting() {\n System.out.println(controller.getGreeting());\n }", "public interface TestService {\n\n int getInt(int count);\n void print(int count);\n void asyncPrint(int count);\n void testJPA();\n \n String getGreeting();\n}", "@Test\n public void productTest() {\n // TODO: test product\n }", "@Test\n\tpublic void injectionTest() {\n\t\tAssert.assertNotNull(service1);\n\t\tAssert.assertNotNull(service2);\n\t}", "@Test void addIngredientBoundary()\n {\n }", "@Test\r\n\tpublic void testShootHit() {\n\t\t\r\n\t\tLoginResponse respLoginPepe = service.login(\"pepe\", \"123456\");\r\n\t\tassertEquals(LoginStateEnum.OK,respLoginPepe.getState());\r\n\t\t\r\n\t\tLoginResponse respLoginJuan = service.login(\"juan\", \"123456\");\r\n\t\tassertEquals(LoginStateEnum.OK,respLoginJuan.getState());\r\n\t\t\r\n\t\t// pepe pide usuarios disponibles\r\n\t\t\r\n\t\tGetUsersResponse usersResponse = service.getAvailableUsers(respLoginPepe.getToken());\r\n\t\tList<String> users = usersResponse.getUsers();\r\n\t\tassertNotNull(users);\r\n\t\tassertEquals(1,users.size());\r\n\t\t\r\n\t\t// pepe le declara la guerra a juan (por lo tanto tendrá derecho al primer disparo)\r\n\t\tDeclareWarResponse warResp = service.declareWar(respLoginPepe.getToken(), \"juan\");\r\n\t\tString warToken=warResp.getWarToken();\r\n\t\tSystem.out.println(warToken);\r\n\t\tassertNotNull(warToken);\r\n\t\t\r\n\t\t// Juan recibe invitación a pelear de Pepe\r\n\t\tNotificationResponse warDeclaredResp = service.getNotification(respLoginJuan.getToken());\r\n\t\tList<NotificationDto> nots= warDeclaredResp.getNotifications();\r\n\t\tassertNotNull(nots);\r\n\t\tassertTrue(nots.size()>0);\r\n\t\tNotificationDto not = nots.get(0);\r\n\t\tassertNotNull(not.getWarToken());\r\n\t\tassertEquals(NotificationTypeEnum.DECLARED_WAR,not.getNotificationType());\r\n\t\tassertEquals(\"pepe\",not.getSenderNick());\r\n\t\t\r\n\t\t// Juan acepta el reto.\r\n\t\tAcceptDeclaredWarResponse declaredWarResponse = service.acceptDeclaredWar(respLoginJuan.getToken(), not.getWarToken());\r\n\t\tassertEquals(MessageStateEnum.OK, declaredWarResponse.getState());\r\n\t\t\r\n\t\t// Pepe recibe la notificación que Juan le aceptó el reto\r\n\t\tNotificationResponse juanAceptaRetoNotif = service.getNotification(respLoginPepe.getToken());\r\n\t\tnots= juanAceptaRetoNotif.getNotifications();\r\n\t\tassertNotNull(nots);\r\n\t\tassertTrue(nots.size()>0);\r\n\t\tnot = nots.get(0);\r\n\t\tassertNotNull(not.getWarToken());\r\n\t\tassertEquals(NotificationTypeEnum.ACCEPTED_WAR,not.getNotificationType());\r\n\t\tassertEquals(\"juan\",not.getSenderNick());\r\n\t\t\r\n\t\t// Pepe Valida su flota\r\n\t\tValidateFleetResponse validateFleetResponse = service.validateFleet(respLoginPepe.getToken(), not.getWarToken(), fleet);\r\n\t\tassertEquals(MessageStateEnum.OK, validateFleetResponse.getState());\t\t\r\n\t\t\r\n\t\t// Juan valida la flota\r\n\t\t\r\n\t\tvalidateFleetResponse = service.validateFleet(respLoginJuan.getToken(), not.getWarToken(), fleet);\r\n\t\tassertEquals(MessageStateEnum.OK, validateFleetResponse.getState());\r\n\t\t\r\n\t\t// Pepe recibe la notificación para primer disparo\r\n\t\tNotificationResponse primerDisparoNotif = service.getNotification(respLoginPepe.getToken());\r\n\t\tnots= primerDisparoNotif.getNotifications();\r\n\t\tassertNotNull(nots);\r\n\t\tassertTrue(nots.size()>0);\r\n\t\tnot = nots.get(0);\r\n\t\tassertNotNull(not.getWarToken());\r\n\t\tassertEquals(NotificationTypeEnum.TURN_TO_SHOOT,not.getNotificationType());\r\n\t\t\r\n\t\t\r\n\t\t//finalmente Dispara\r\n\t\t\r\n\t\tShootResponse shootResp = service.shoot(respLoginPepe.getToken(), not.getWarToken(), \"1\", \"d\");\r\n\t\t// tocado, vuelve a disparar\r\n\t\tassertEquals(ShootEnum.HIT, shootResp.getShootResult());\r\n\r\n\t\t// disparo\r\n\t\t\r\n\t\tshootResp = service.shoot(respLoginPepe.getToken(), not.getWarToken(), \"2\", \"d\");\r\n\t\t// tocado\r\n\t\tassertEquals(ShootEnum.HIT, shootResp.getShootResult());\r\n\r\n\t\tshootResp = service.shoot(respLoginPepe.getToken(), not.getWarToken(), \"3\", \"d\");\r\n\r\n\t\t// hundido\r\n\t\tassertEquals(ShootEnum.HIT_SUNK, shootResp.getShootResult());\r\n\r\n\t\tshootResp = service.shoot(respLoginPepe.getToken(), not.getWarToken(), \"0\", \"d\");\r\n\r\n\t\t// agua\r\n\t\tassertEquals(ShootEnum.WATER, shootResp.getShootResult());\r\n\r\n\t\t\r\n\t\t// Juan quiere conocer los disparos de Pepe\r\n\t\t\r\n\t\tShootNotificationResponse shootNotifResp = service.getShootNotification(respLoginJuan.getToken());\r\n\t\tList<Shoot> shoots = shootNotifResp.getShoots();\r\n\t\tassertNotNull(shoots);\r\n\t\tassertEquals(4, shoots.size());\r\n\t\tShoot shoot1 = shoots.get(0), shoot2= shoots.get(1), shoot3 = shoots.get(2),shoot4 = shoots.get(3);\r\n\t\tassertEquals(\"1\", shoot1.getX());\r\n\t\tassertEquals(\"d\", shoot1.getY());\r\n\t\tassertEquals(\"2\", shoot2.getX());\r\n\t\tassertEquals(\"d\", shoot2.getY());\r\n\t\tassertEquals(\"3\", shoot3.getX());\r\n\t\tassertEquals(\"d\", shoot3.getY());\r\n\t\tassertEquals(\"0\", shoot4.getX());\r\n\t\tassertEquals(\"d\", shoot4.getY());\r\n\t\t\r\n\t\t// Juan se arrepiente. (si no hago esto no me deja desloguear)\r\n\t\t\r\n\t\tRetireOfWarResponse retireOfWarResponse = service.retireOfWar(respLoginJuan.getToken());\r\n\t\tassertEquals(MessageStateEnum.OK, retireOfWarResponse.getState());\r\n\t\t\r\n\t\tLogoutResponse respLogoutPepe = service.logout(respLoginPepe.getToken());\r\n\t\tassertEquals(MessageStateEnum.OK,respLogoutPepe.getState());\r\n\t\t\r\n\t\tLogoutResponse respLogoutJuan = service.logout(respLoginJuan.getToken());\r\n\t\tassertEquals(MessageStateEnum.OK,respLogoutJuan.getState());\r\n\t\t\r\n\t}", "@Test \n public void GetTrustInfoFromWizardTest(){\n\tlogger.info(\"--------------------start--GetTrustInfoFromWizardTest---------------------------------------------------------------------------------------------------\");\n// \tList<District> list=districtService.GetCityListByProvinceCode(\"110000\");\n\tList<TrustInfo> list=trustManagementService.GetTrustInfoFromWizard(\"9\");\n\tfor (TrustInfo trustInfo : list) {\n\t\tlogger.info(\"查找结果getItemValue:\" + trustInfo.getItemValue()); \n\t\tlogger.info(\"查找结果getItemAliasValue:\" + trustInfo.getItemAliasValue()); \n\t}\n logger.info(\"--------------------end----GetTrustInfoFromWizardTest-------------------------------------------------------------------------------------------------\");\n }", "@Test\r\n public void testRent() {\r\n }", "private RecipleazBackendService() {\n }", "public interface ISysDeptService extends IBaseService<SysDept> {\n\n /**\n * 校验部门名称是否唯一\n *\n * @param dept 部门信息\n * @return 结果\n */\n String checkDeptNameUnique(SysDept dept);\n\n /**\n * 查询部门是否存在用户\n *\n * @param deptId 部门ID\n * @return 结果 true 存在 false 不存在\n */\n Boolean checkDeptExistUser(Long deptId);\n\n /**\n * 查询部门管理树\n *\n * @param dept 部门信息\n * @return 所有部门信息\n */\n List<Ztree> selectDeptTree(SysDept dept);\n\n /**\n * 根据角色ID查询菜单\n *\n * @param role 角色对象\n * @return 菜单列表\n */\n List<Ztree> roleDeptTreeData(SysRole role);\n}", "private static void testmereService(ApplicationContext context) {\n MergeService mergeService = (MergeService) context.getBean(\"mergeServiceImp\"); // 获取远程服务代理\n List<String> result = mergeService.mergeResult();\n for (String s : result) {\n log.info(s);\n }\n }", "public interface ScenarioService {\n boolean isExist(int scenarioId);\n\n boolean isExist(int scenarioId, int strategyId);\n\n boolean isExist(int scenarioId, int strategyId, int farmId);\n\n boolean isExist(int scenarioId, int strategyId, int farmId, int userId);\n\n boolean isExistExcept(int scenarioId, int strategyId, int farmId, int userId, String scenarioName);\n\n boolean isExist(int strategyId, int farmId, int userId, String scenarioName);\n\n JSONObject getJsonFrom(FarmStrategyScenarioView farmStrategyScenarioView);\n\n JsonResponse saveScenario(String scenarioName, int farmId, String scenarioComment, String cropSpecificComment, int strategyId, int global_crop_price, int global_crop_yields, int global_crop_prod_cost, String cropSpecific);\n\n JsonResponse updateScenario(int scenarioId, String scenarioName, String scenarioComment, String cropSpecificComment, int farmId, int strategyId, int global_crop_price, int global_crop_yields, int global_crop_prod_cost, String cropSpecific);\n\n FarmStrategyScenarioView getScenarioById(int scenarioId);\n\n FarmStrategyScenarioView getScenarioByNameFarmStrategy(String scenarioName, int farmId, int strategyId);\n\n List<FarmStrategyScenarioView> getAllScenarioByStrategy(int strategyId);\n\n boolean deleteScenarioCropSpecificData(FarmStrategyScenario farmStrategyScenario);\n\n /**\n * @added - Abhishek\n * @date - 06-01-2016\n */\n List<CropTypeView> getScenarioCropValuesByStrategyBean(StrategyDataBean strategyDataBean, FarmStrategyScenarioView farmStrategyScenarioView);\n\n /**\n * @added - Abhishek\n * @date - 06-01-2016\n */\n JSONObject getFarmOutputDetails(StrategyDataBean strategyDataBean) throws JSONException;\n\n JSONObject getScenarioComparisonDetails(FarmInfoView farmInfoView, int scenarioId, int[] strategyIdArray);\n\n boolean deleteScenario(FarmStrategyScenario farmStrategyScenario);\n\n FarmStrategyScenario getFarmScenarioById(int scenarioId);\n}", "@Service\r\npublic interface ResearchService {\r\n\r\n public Page<product_research> getResearchPage(Map<String,Object> params);\r\n public Page<product_research> researchProductPageList(Map<String,Object> params);\r\n public List<product_research> getResearchforbaobiao(Map<String,Object> params);\r\n public int research_add(Map<String,Object> params);\r\n public void research_in(Map<String,Object> params);\r\n public void putuAdd(Map<String,Object> params);\r\n public void researchDel(Map<String,Object> params);\r\n public List<Product_sale_detail> venditionSelect(Map<String,Object> params);\r\n public product_research researchSelect(Map<String,Object> params);\r\n public void researchStatusUp(Map<String,Object> params);\r\n\r\n void research_mod(Map<String, Object> params);\r\n /*public List<pss_research_doc> research_putu(Map<String, Object> params);*/\r\n //public void research_putu(Map<String,Object> params);\r\n}", "@Before\n public void setup() {\n MockitoAnnotations.initMocks(this);\n final AddressEndpoint addressEndpoint = new AddressEndpoint(addressRepository);\n this.mockAddressEndpoint = MockMvcBuilders.standaloneSetup(addressEndpoint).build();\n\n address01 = new Address(\"Procession St\", \"Paris\", \"75015\", \"FR\");\n address02 = new Address(\"Ritherdon Rd\", \"London\", \"8QE\", \"UK\");\n address03 = new Address(\"Inacio Alfama\", \"Lisbon\", \"A54\", \"PT\");\n address04 = new Address(\"Jardins\", \"Sao Paulo\", \"345678\", \"BR\");\n address05 = new Address(\"Coffey\", \"Perth\", \"654F543\", \"AU\");\n address06 = new Address(\"Harbour Bridge\", \"Sydney\", \"JHG3\", \"AU\");\n address07 = new Address(\"Playa de la Concha\", \"San Sebastian\", \"45678\", \"ES\");\n\n // Persist the object\n addressRepository.save(address01);\n addressRepository.save(address02);\n addressRepository.save(address03);\n addressRepository.save(address04);\n addressRepository.save(address05);\n addressRepository.save(address06);\n addressRepository.save(address07);\n }", "public interface TCMusterService {\n\n void createTestCaseMuster(TCMuster tcMuster);\n\n void createTestCaseMuster(TCMusterForm tcMusterForm);\n\n void createTestCaseMuster(List<TCMuster> tcMusters);\n\n void createTestCaseMuster(TCMusterDTO tcMusterDTO);\n\n void updateTestCaseMuster(TCMuster tcMuster);\n\n void updateTestCaseMuster(TCMusterDTO tcMusterDTO);\n\n void updateTestCaseMuster(TCMusterForm tcMusterForm);\n\n void deleteTestCaseMuster(TCMuster TCMusterToDelete);\n\n void deleteTestCaseMusterById(long testCaseMusterToDeleteById);\n\n TCMuster findTestCaseMusterById(long id);\n\n TCMusterName findTestCaseMusterNameById(long id);\n\n TCMusterDTO findTestCaseMusterDTOById(long id);\n\n TCMusterList findTCMusterListById(long id);\n\n TCMusterForm findTestCaseMusterFormById(long id);\n\n List<TCMuster> findAllTestCaseMusters();\n\n List<TCMusterDTO> findAllTestCaseMustersDTO();\n\n List<TCMusterName> findAllTestCaseMustersNames();\n\n TCMuster findTestCaseMusterByTCInstanceId(long tcInstanceId);\n\n List<TCMuster> findAllTestCaseMustersByTestSuite(TestSuite testSuite);\n\n List<TCMusterDTO> findAllTestCaseMustersDTOByTestSuiteId(long id);\n\n List<TCMusterName> findAllTestCaseMusterNamesByTestSuiteId(long id);\n\n List<TCMusterDTO> findAllTCDTOByUser(Person person);\n\n List<TCMusterList> findAllTCListsByUser(Person person);\n\n List<TCMusterDTO> findAllTCDTOByUser(Long projectId);\n\n List<TCMusterDTO> findTCMustersDTOByProject(Project project);\n\n List<TCMusterDTO> findTCMustersDTOByProject(List<Project> projects);\n\n List<TCMusterDTO> findTCMustersDTOByProjectId(long projectId);\n\n List<TCMusterList> findTCMusterListsByProject(List<Project> projects);\n\n List<TCMusterList> findTCMusterListByProject(Project project);\n\n List<TCMusterName> findTCMusterNamesByProjectId(long projectId);\n\n int getNumberOfMyTCsInProject(Person person, Project project);\n\n int getNumberOfTCsInProject(Project project);\n\n\n}", "@Test\n public void testGatewayMigratePersonalItems() {\n // TODO: test GatewayMigratePersonalItems\n }", "private ServiceGenerator() {\n }", "@Test\n public void productOfferingTermTest() {\n // TODO: test productOfferingTerm\n }", "@Test\r\n\tvoid testAppointmentServiceClass() {\r\n\t\tAppointmentService appointmentService = new AppointmentService();\r\n\t\tAppointment appointment = new Appointment(\"12345\", new Date(), \"This is a description\");\r\n\t\tassertFalse(appointmentService == null);\r\n\t\tassertFalse(appointment == null);\r\n\t}", "private MockarooPingHelper(){}", "@Before\n\tpublic void setUp() {\n accessToken = \"123\";\n xeroTenantId = \"xyz\";\n \n // Init projectApi client\n // NEW Sandbox for API Mocking\n\t\tdefaultClient = new ApiClient(\"https://ba3fd247-8fc6-4d7c-bcd1-bdbea4ea1803.mock.pstmn.io/payroll.xro/2.0\",null,null,null,null);\n payrollUkApi = PayrollUkApi.getInstance(defaultClient); \n \n\t}", "public void testFindByCatalogo() {\n }", "@Override\r\n /*\r\n Chaque objet utilisé est alors déclaré en tant que variuable d instance de la classe de test\r\n initialisé dans la methode setUp() et eventuellement libere dans la methode tearDown\r\n */\r\n protected void setUp() throws Exception {\n cruiseBean = new CruiseBean();\r\n clientCruise = new RestClientCruise();\r\n }", "@Before\n public void setup() {\n context.build().resource(OAK_INDEX).commit();\n context.registerService(Scheduler.class,scheduler);\n context.registerService(RequireAem.class,requireAem,\"distribution\",\"classic\");\n\n ScheduleOptions options = mock(ScheduleOptions.class);\n lenient().when(scheduler.NOW()).thenReturn(options);\n lenient().when(scheduler.schedule(any(), any())).thenAnswer((InvocationOnMock invocation) -> {\n EnsureOakIndexJobHandler handler = invocation.getArgument(0);\n handler.run();\n return true;\n });\n\n context.registerService(ChecksumGenerator.class, new ChecksumGeneratorImpl());\n \n ensureOakIndexManagerProperties = new HashMap<>();\n ensureOakIndexManagerProperties.put(\"properties.ignore\", null);\n \n }", "@Test\n public void testHistory(){\n\n userService.insertHistory(\"kaaksd\",\"------sdas\");\n }", "@Before\n public void setup() {\n }", "Fog_Services createFog_Services();", "@Test\n public void serviceLevelAgreementTest() {\n // TODO: test serviceLevelAgreement\n }", "@Test\n void createProductStockTest() {\n CreateProductStockResponse createProductStockResponse = new CreateProductStockResponse();\n\n //Set behaviour\n Mockito.doReturn(createProductStockResponse).when(stockClient).createProductStock(Mockito.any(CreateProductStockRequest.class));\n\n //Execute\n stockService.createProductStock(ObjectFactory.generateSampleProduct(), 5);\n\n //Verify\n Mockito.verify(stockClient, Mockito.times(1)).createProductStock(Mockito.any(CreateProductStockRequest.class));\n }", "@Before\n\t public void setUp() {\n\t }", "public void testSetBasedata() {\n }", "@Test\n public void testUserProduct() {\n // TODO: test UserProduct\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Test\n @Ignore\n public void testDomainCatalogueService() {\n //Domain A objects\n final String DOMAIN_A_ID=\"DomainAid\";\n DomainInterface domainAinterface = new DomainInterface(\"url.url.rul\", 8080, true, InterfaceType.HTTP);\n VerticalDomainLayer verticalDomainLayer = new VerticalDomainLayer(\"verticalDomainLayerID\",DspType.VERTICAL_EXPERIMENT);\n ArrayList<DomainLayer> listOwnedLayerDomainA = new ArrayList<DomainLayer>();\n listOwnedLayerDomainA.add(verticalDomainLayer);\n Domain domainA = new Domain(DOMAIN_A_ID,\"domainNameA\",\"domainDescriptionA\",\"domainOwnerA\",\"Domain adminA\", DomainStatus.ACTIVE, listOwnedLayerDomainA,new HashSet<>(),domainAinterface);\n\n //Domain B objects\n final String DOMAIN_B_ID=\"DomainBid\";\n NspDomainLayer nspDomainLayer = new NHNspDomainLayer(\"nspDomainLayerID\",\"test\", \"test\");\n NfvoDomainLayer nfvoDomainLayer = new OsmNfvoDomainLayer(\"nfvoDomainLayerId\",\"username\", \"password\", \"project\");\n ArrayList<DomainLayer> listOwnedLayerDomainB = new ArrayList<DomainLayer>();\n listOwnedLayerDomainB.add(nspDomainLayer);\n listOwnedLayerDomainB.add(nfvoDomainLayer);\n DomainInterface domainBinterface = new DomainInterface(\"url2.url2.rul2\", 8081, true, InterfaceType.HTTP);\n Domain domainB = new Domain(DOMAIN_B_ID,\"domainNameB\",\"domainDescriptionB\",\"domainOwnerB\",\"Domain adminB\", DomainStatus.ACTIVE, listOwnedLayerDomainB,new HashSet<>(),domainBinterface);\n\n\n //Test on board Domain B and A\n log.info(\"Testing on boarding Domain B\");\n onBoardDomainTest(domainB);\n\n //An agreement between domain A and two domains layer owned by domain B is performed. Eventually, the domain A is on boarded with such info.\n ArrayList<String> idDomainLayers = new ArrayList<String>();\n idDomainLayers.add(domainB.getOwnedLayers().get(0).getDomainLayerId());\n idDomainLayers.add(domainB.getOwnedLayers().get(1).getDomainLayerId());\n\n DomainAgreement domainAgreement = new DomainAgreement(domainB.getDomainId(),idDomainLayers);\n HashSet<DomainAgreement> domainAgreements = new HashSet<DomainAgreement>();\n domainAgreements.add(domainAgreement);\n domainA.setDomainsAgreement(domainAgreements);\n log.info(\"Testing on boarding domain A\");\n onBoardDomainTest(domainA);\n try {\n domainCatalogueService.deleteDomain(domainA.getDomainId());\n } catch (NotExistingEntityException e) {\n e.printStackTrace();\n }\n boolean notFound=false;\n try {\n domainCatalogueService.getDomain(domainA.getDomainId());\n\n } catch (NotExistingEntityException e) {\n notFound=true;\n log.info(\"Element not found as expected\");\n }\n assertTrue(notFound);\n assertTrue(domainCatalogueService.getAllDomains().size()==1);\n }", "@Test\r\n public void testGetApiBase() {\r\n // Not required\r\n }", "public void testGetVectorFactory()\n {\n this.testSetVectorFactory();\n }", "@Before\r\n public void setUp()\r\n {\r\n }" ]
[ "0.6951229", "0.67061263", "0.6625022", "0.65788436", "0.6498899", "0.648805", "0.6485223", "0.64261425", "0.6386894", "0.6383371", "0.63813955", "0.6371983", "0.6346965", "0.63458383", "0.63391775", "0.6328415", "0.631956", "0.6314268", "0.6308484", "0.6307896", "0.6289561", "0.6283782", "0.6270208", "0.62218523", "0.6204477", "0.6198439", "0.6179504", "0.61783", "0.61650485", "0.6164702", "0.61551434", "0.6154293", "0.6153121", "0.61469704", "0.6143061", "0.612449", "0.6107607", "0.6096066", "0.6081673", "0.60782117", "0.6072031", "0.6070949", "0.6064142", "0.6060458", "0.6056765", "0.60460687", "0.60447645", "0.6041381", "0.6041065", "0.6040578", "0.6033529", "0.6030651", "0.6025537", "0.6002599", "0.60024077", "0.5993698", "0.59915644", "0.5980387", "0.5976787", "0.5967845", "0.5967521", "0.5961586", "0.59554535", "0.5946768", "0.5937165", "0.5936508", "0.59306294", "0.59225744", "0.59223545", "0.59208447", "0.5919747", "0.5916836", "0.5914992", "0.5901617", "0.59004915", "0.5897163", "0.5896982", "0.5895207", "0.58890307", "0.5888836", "0.58858484", "0.58836937", "0.5883344", "0.58798057", "0.58766234", "0.5876521", "0.5876478", "0.5872129", "0.58672816", "0.58654505", "0.58652216", "0.5863575", "0.5859414", "0.5856309", "0.58549196", "0.58549196", "0.58549196", "0.5851591", "0.585152", "0.5851127", "0.58499557" ]
0.0
-1
testing service layer method to delete plant using id
@Test void testDeletePlant() { List<Plant> plant = service.deletePlant(50); assertFalse(plant.isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void delete(Plant plant) throws Exception {\n\r\n\t}", "@Delete\n Single<Integer> delete(Collection<Plant> plant);", "@Delete\n Single<Integer> delete(Plant... plant);", "@Test\n void deleteById() {\n petTypeSDJpaService.deleteById(petType.getId());\n\n //Then\n verify(petTypeRepository).deleteById(petType.getId());\n }", "@Test\n public void testDeleteDietStatus() throws Exception{\n \tString URI = \"/healthreminder/delete_dietstatus_by_id/{patientId}\"; \n \tFollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(true);\n\n Mockito.when(followUpDietStatusInfoServices.findDietStatusById(Mockito.anyInt())).thenReturn(followUpDietStatusInfo);\n Mockito.when(followUpDietStatusInfoServices.deleteDietStatus(Mockito.any())).thenReturn(true);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.delete(URI,1).accept(MediaType.\n \t\tAPPLICATION_JSON)).andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n\n Assert.assertEquals(HttpStatus.OK.value(), mockHttpServletResponse.getStatus());\n\n }", "@Test\n\tvoid deleteDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorfind = new DoctorDetail();\n\t\tdoctorfind.setId(\"1\");\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).deleteDoctorService(doctorfind.getId());\n\t\tmockMvc.perform(get(\"/doctor/delete?id=/{id}\", 1L)).andExpect(status().isOk());\n\t}", "@Override\r\n @Transactional\r\n public String deleteHarvest(Long id){\r\n harvestRepository.delete(harvestRepository.findById(id)\r\n .orElseThrow(()-> new HarvestNotFoundException(\"Harvest with \" + id + \" not found. Can't be deleted\")));\r\n return \"crop with \" + id +\"Deleted\";\r\n }", "public String deleterPetDetails(int petId);", "@Test\n public void delete() {\n System.out.println(\"\\n--- delete Singer by id=2 ---\");\n\n restTemplate.delete(\"http://localhost:9082/restful-ws/singer/{id}\", 2);\n\n printAllSingers();\n }", "@Test\n public void deleteDoctor() {\n\t\tList<Doctor> doctors = drepository.findByName(\"Katri Halonen\");\n\t\tassertThat(doctors).hasSize(1);\n \tdrepository.deleteById((long) 3);\n \tdoctors = drepository.findByName(\"Katri Halonen\");\n \tassertThat(doctors).hasSize(0);\n }", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getById(3));\n }", "@Test(dependsOnMethods = \"update\")\n public void delete()throws Exception{\n repository.delete(id);\n OwnerRegion delete = repository.findOne(id);\n Assert.assertNull(delete);\n }", "@Test\n public void deleteTest(){\n given().pathParam(\"id\",1)\n .when().delete(\"/posts/{id}\")\n .then().statusCode(200);\n }", "@Test\n void deletePet_API_TEST() throws Exception {\n mvc.perform(delete(\"/owners/1/pets/2\").accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk());\n verify(petService, times(1)).deletePet(2, 1);\n }", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(2));\n assertNull(dao.getById(2));\n }", "@Test\n public void deleteId() throws Exception {\n Role role = create(new Role(\"roleName\"));\n\n //Attempt to remove from the database with delete request\n try {\n mvc.perform(MockMvcRequestBuilders.delete(\"/auth/roles/{id}\", UUIDUtil.UUIDToNumberString(role.getUuid()))\n .header(\"Authorization\", authPair[0])\n .header(\"Function\", authPair[1])\n )\n .andExpect(status().isOk());\n } catch (Exception e) {\n remove(role.getUuid());\n throw e;\n }\n\n //Check if successfully removed from database\n try {\n //Remove from database (above get function should have thrown an error if the object was no longer in the database)\n remove(role.getUuid());\n fail(\"DELETE request did not succesfully delete the object from the database\");\n } catch (ObjectNotFoundException e) {\n //Nothing because the object is no longer present in the database which is expected\n }\n }", "@PostMapping(\"/delete\")\n public ResponseEntity<ServiceResult> deleteTest(@RequestBody Integer id) {\n return new ResponseEntity<ServiceResult>(testService.deleteTest(id), HttpStatus.OK);\n }", "@Test(dataProvider = \"DataForDelete\")\n public void testDelete(int id) throws JsonProcessingException {\n\n JSONObject jsonResult = new JSONObject();\n jsonResult.put(\"id\", id);\n\n given()\n .header(\"Content-Type\", \"application/json\")\n .contentType(ContentType.JSON)\n .accept(ContentType.JSON)\n .body(jsonResult)\n .when()\n .delete(\"https://reqres.in/api/users/2\")\n .then()\n .statusCode(204);\n }", "public void delete(int id) \n{ \n\ttvShowRepo.deleteById(id); \n}", "@Test\n void delete() {\n petTypeSDJpaService.delete(petType);\n\n //Then\n verify(petTypeRepository).delete(petType);\n }", "@Test\n void deleteSuccess() {\n carDao.delete(carDao.getById(1));\n assertNull(carDao.getById(1));\n\n //Delete repairs\n GenericDao<Repair> repairDao = new GenericDao(Repair.class);\n Repair repair = repairDao.getById(2);\n assertNull(carDao.getById(2));\n\n //Delete part\n GenericDao<Part> partDao = new GenericDao(Part.class);\n Role part = partDao.getById(2);\n assertNull(partDao.getById(2));\n }", "@Test\n void deleteSuccess() {\n genericDao.delete(genericDao.getById(3));\n assertNull(genericDao.getById(3));\n }", "@RequestMapping(value = \"/groupps/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Groupp : {}\", id);\n grouppRepository.delete(id);\n grouppSearchRepository.delete(id);\n }", "@Override\n public void delete(Long id) {\n planRepository.deleteById(id);\n\n }", "@Test\n public void testDeletePengguna() throws Exception {\n System.out.println(\"deletePengguna\");\n Long id = null;\n DaftarPengguna instance = new DaftarPengguna();\n instance.deletePengguna(id);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n\tpublic void deleteTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeam \r\n\t\tTeam team_1 = new wsdm.domain.Team();\r\n\t\tservice.deleteTeam(team_1);\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Mock : {}\", id);\n mockRepository.deleteById(id);\n }", "@Test\n public void deleteStationPassesStationIdToStationDao()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.deleteStation(SOME_ID);\n\n verify(mockStationDao).deleteStation(eq(SOME_ID));\n }", "@Test\r\n void testRemoveMedicineById() throws Exception{\r\n String URI = \"/medicine/delete/{medicineId}\";\r\n Medicine medicine = new Medicine(); \r\n \t medicine.setMedicineId(1345);\r\n \t\tmedicine.setMedicineName(\"Calcium\");\r\n \t\tmedicine.setMedicineCost(300);\r\n \t\t\r\n\t Mockito.when(medicineService.cancelMedicineById(1345)).thenReturn(true);\r\n\t MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.delete(URI, 1345).accept(MediaType.APPLICATION_JSON)).andReturn();\r\n\t MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\r\n\t String jsonOutput = mockHttpServletResponse.getContentAsString();\r\n\t assertNotNull(jsonOutput);\r\n }", "@Override\n public void delete(String id) {\n log.debug(\"Request to delete Projectproduct : {}\", id);\n projectproductRepository.delete(UUID.fromString(id));\n }", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "@Test\r\n public void testDeleteById() {\r\n System.out.println(\"deleteById\");\r\n int id = 0;\r\n AbonentDAL instance = new AbonentDAL();\r\n Abonent expResult = null;\r\n Abonent result = instance.deleteById(id);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testDeleteVehicleById() {\n //Arrange\n Vehicle vehicle = new Vehicle();\n Model model = new Model();\n Make make = new Make();\n \n make.setMakeName(\"Ford\");\n \n Make createdMake = makeDao.addMake(make);\n \n model.setModelName(\"Explorer\");\n model.setMake(createdMake);\n \n Model createdModel = modelDao.addModel(model);\n \n vehicle.setYear(2018);\n vehicle.setTransmission(\"Automatic\");\n vehicle.setMileage(1000);\n vehicle.setColor(\"Blue\");\n vehicle.setInterior(\"Leather\");\n vehicle.setBodyType(\"SUV\");\n vehicle.setVin(\"W9D81KQ93N8Z0KS7\");\n vehicle.setSalesPrice(new BigDecimal(\"35000.00\"));\n vehicle.setMsrp(new BigDecimal(\"40000.00\"));\n vehicle.setDescription(\"A practical vehicle\");\n vehicle.setPicURL(\"http://www.sampleurl.com/samplepic\");\n vehicle.setModel(createdModel);\n\n Vehicle createdVehicle = vehicleDao.addVehicle(vehicle);\n\n //Act\n vehicleDao.deleteVehicleById(vehicle.getVehicleId());\n \n //Assert\n Vehicle fetchedVehicle = vehicleDao.getVehicleById(createdVehicle.getVehicleId());\n assertNull (fetchedVehicle);\n \n }", "@Test\n void deleteSuccess() {\n genericDAO.delete(genericDAO.getByID(2));\n assertNull(genericDAO.getByID(2));\n }", "@Test\n public void testDeleteTravel() throws Exception{\n \n doNothing().when(databaseMock).deleteTravel(anyInt());\n \n mockMVC.perform(delete(\"/user/1/travel/1\")\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isNoContent());\n \n verify(databaseMock, times(1)).getUser(1);\n verify(databaseMock, times(1)).deleteTravel(1);\n verifyNoMoreInteractions(databaseMock);\n }", "@RequestMapping(value=\"/tests/{id}\", method=RequestMethod.DELETE)\n\tpublic ResponseEntity<Void> dropData(@PathVariable int id) {\n\t\t\n\t\tif (id != 1234) {\n\t\t\treturn new ResponseEntity<Void>(HttpStatus.UNAUTHORIZED);\t\t\t\n\t\t}\n\t\t\n\t\ttestService.dropData();\n\t\treturn new ResponseEntity<Void>(HttpStatus.NO_CONTENT);\n\t}", "@Test\n public void deleteFlightTest() throws Exception {\n mockMvc.perform(delete(\"/v1/flight/deleteFlight?flightId=1\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(status().is(200));\n\n }", "void delete(int entityId);", "@GetMapping(\"/delete/{id}\")\n public String deletegetRestaurant(@PathVariable String id) {\n restaurantServiceImpl.delete(id);\n return \"data deleted\";\n }", "@DeleteMapping(\"/delete_person/{id}\")\n public void delete(@PathVariable(\"id\") int id ){\n persons.remove(id);\n }", "@Test\n public void deleteHouseholdUsingDeleteTest() throws ApiException {\n UUID householdId = null;\n api.deleteHouseholdUsingDelete(householdId);\n\n // TODO: test validations\n }", "public void deleteById(int theId);", "@RequestMapping(value = \"/estados/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Estado : {}\", id);\n estadoRepository.delete(id);\n }", "@Test\n void deleteNoteSuccess() {\n noteDao.delete(noteDao.getById(2));\n assertNull(noteDao.getById(2));\n }", "public void delete(int id);", "@Test\n public void deleteTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.delete(1);\n Servizio servizio= manager.retriveById(1);\n assertNull(servizio,\"Should return true if delete Servizio\");\n }", "@Override\r\n\tpublic String deletePlantDetails(Object object) {\n\t\tPlant plant = null;\r\n\t\tString msg=null;\r\n\t\ttry {\r\n\t\t\tplant = (Plant) object;\r\n\t\t\tgetHibernateTemplate().delete(plant);\r\n\t\t\tmsg=\"S\";\r\n\t\t} catch (Exception e) {\r\n\t\t\tmsg=\"F\";\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn msg;\r\n\t}", "@DeleteMapping(\"/product/{productid}\") \nprivate void deleteProduct(@PathVariable(\"productid\") int productid) \n{ \nproductsService.delete(productid); \n}", "public void delete(Long id) {\n log.debug(\"Request to delete PatientOrderTest : {}\", id);\n patientOrderTestRepository.delete(id);\n patientOrderTestSearchRepository.delete(id);\n }", "@Test\n public void deleteIngredient_Deletes(){\n int returned = testDatabase.addIngredient(ingredient);\n testDatabase.deleteIngredient(returned);\n assertEquals(\"deleteIngredient - Deletes From Database\",null, testDatabase.getIngredient(returned));\n }", "@Test\n @WithMockUser(username = \"employee\", roles = {\"EMPLOYEE\"})\n public void deleteTransactionById() throws Exception {\n\n when(transactionService.getTransactionById(99)).thenReturn(transaction);\n this.mvc.perform(delete(\"/transactions/99\").contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().is(200));\n }", "void deleteDepartmentById(Long id);", "public void DeleteCust(String id);", "@Test\n public void delete() {\n auctionService.restTemplate = mockRestTemplate;\n auctionService.delete(1);\n verify(mockRestTemplate).delete(testOneUrl);\n }", "public void deleteDepartmentByDeptNo(int dept_no);", "@Test\n\tpublic void testDelete() {\n\t\t\n\t\tLong id = 4L;\n\t\tString cpr = \"271190-0000\";\n\t\tint kr = 100;\n\t\tString dato = \"01-01-2001\";\n\t\tString type = \"type2\";\n\n\t\tYdelse y = new Ydelse(id, cpr, kr, dato, type);\n\t\t\n\t\tdoReturn(y).when(entityManager).getReference(y.getClass(), y.getId());\n\t\t\n\t\tydelseService.delete(y.getClass(), id);\n\t}", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"dept-del\"})\n public void _2_3_1_delExistDept() throws Exception {\n this.mockMvc.perform(delete(\"/api/v1.0/companies/\"+\n d_1.getCompany()+\n \"/departments/\"+\n d_1.getId())\n .header(AUTHORIZATION,ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk());\n thrown.expect(NameNotFoundException.class);\n repository.findDepartment(d_1.getId());\n }", "@Test\n public void testAddLocationGetLocationByIdDeleteLocation() {\n System.out.println(\"-------------------\");\n System.out.println(\"testGetLocationById\");\n System.out.println(\"-------------------\");\n\n Location loc1 = new Location();\n loc1.setLocationName(\"Mommas House\");\n loc1.setDescription(\"Like it says\");\n loc1.setAddress(\"123 nunya Ave\");\n loc1.setCity(\"Hometown\");\n loc1.setLatitude(123.456);\n loc1.setLongitude(123.456);\n\n locDao.addLocation(loc1);\n\n Location testLoc = locDao.getLocationById(loc1.getLocationId());\n\n assertEquals(loc1, testLoc);\n\n locDao.deleteLocation(loc1.getLocationId());\n\n assertNull(locDao.getLocationById(loc1.getLocationId()));\n\n }", "@Test\n public void deleteTarjetaPrepagoTest() throws BusinessLogicException \n {\n TarjetaPrepagoEntity entity = data.get(2);\n tarjetaPrepagoLogic.deleteTarjetaPrepago(entity.getId());\n TarjetaPrepagoEntity deleted = em.find(TarjetaPrepagoEntity.class, entity.getId());\n Assert.assertNull(deleted);\n }", "void deletePatient(Patient target);", "public abstract void deleteByID( int id);", "@DeleteMapping(\"/act-kodus/{id}\")\n @Timed\n public ResponseEntity<Void> deleteActKodu(@PathVariable Long id) {\n log.debug(\"REST request to delete ActKodu : {}\", id);\n actKoduRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Test\n final void testDeleteDevice() {\n when(deviceDao.deleteDevice(user, DeviceFixture.SERIAL_NUMBER)).thenReturn(Long.valueOf(1));\n ResponseEntity<String> response = deviceController.deleteDevice(DeviceFixture.SERIAL_NUMBER);\n assertEquals(200, response.getStatusCodeValue());\n assertEquals(\"Device with serial number 1 deleted\", response.getBody());\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete PomocniMaterijal : {}\", id);\n pomocniMaterijalRepository.deleteById(id);\n }", "void delete(String id) throws PSDataServiceException, PSNotFoundException;", "@Test\r\n\tpublic void deleteProductDetails() {\r\n\t\tRestAssured.baseURI = \"http://localhost:9000/products\";\r\n\t\tRequestSpecification request = RestAssured.given();\r\n\t\tJSONObject requestParams = new JSONObject();\r\n\t\trequestParams.put(\"name\", \"Almond\");\r\n\t\trequest.header(\"Content-Type\", \"application/json\");\r\n\t\trequest.body(requestParams.toString());\r\n\t\tResponse response = request.delete(\"/7\");\r\n\t\tSystem.out.println(\"DELETE Responce Body ----->\" + response.asString());\r\n\t\tint statusCode = response.getStatusCode();\r\n\t\tAssert.assertEquals(statusCode, 200);\r\n\r\n\t}", "@DeleteMapping(\"/type-tests/{id}\")\n @Timed\n public ResponseEntity<Void> deleteTypeTest(@PathVariable Long id) {\n log.debug(\"REST request to delete TypeTest : {}\", id);\n typeTestService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@DeleteMapping(\"/pets/{id}\")\n public ResponseEntity<Void> deletePet(@PathVariable Long id) {\n log.debug(\"REST request to delete Pet : {}\", id);\n petService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Test\n public void deleteStationUsesStationDaoToRemoveStation()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.deleteStation(SOME_ID);\n\n verify(mockStationDao).deleteStation(anyLong());\n }", "void delete(Long id) throws Throwable;", "@Override\npublic void deleteDepartmentDataById(Integer Id) {\n\tOptional<DepartmentEntity> emp= departmentRepository.findById(Id);\n\tif(emp.isPresent())\n\t{\n\t\tdepartmentRepository.deleteById(Id);\n\t}\n\telse\n\t{\n\t\tthrow new IdNotValidException();\n\t}\n}", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "@DeleteMapping(\"/api/rents/{id}\")\r\n public ResponseEntity<?> deleteRent(@PathVariable(name = \"id\") Long id) {\r\n return rentService.find(id).map(rent -> {\r\n rentService.delete(rent);\r\n return ResponseEntity.ok().build();\r\n }).orElseThrow(() -> new IllegalArgumentException());\r\n }", "@Test\r\n public void testEliminar() {\r\n System.out.println(\"eliminar\");\r\n Integer idDepto = null;\r\n Departamento instance = new Departamento();\r\n instance.eliminar(idDepto);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n void delete(String resourceGroupName, String queryPackName, String id);", "@Override\n\tpublic String delete(Long id) {\n\t\tOptional<FoodTruckEntity> result=repo.findById(id);\n\t\tif(result.isPresent()) { \n\t\t\t repo.deleteById(id);\n\t\t\t return \"Id \" +id +\"data deleted Succesfully\";\n\t\t } \n\t\t else {\n\t\t \n\t\t\t return \"id \"+id+\"is not pressent\"; \n\t\t }\n\t\t\n\t}", "@RequestMapping(value = \"/tshirt/{id}\", method = RequestMethod.DELETE)\n @ResponseStatus(value = HttpStatus.OK)\n public void deleteTShirt(@PathVariable Long id) {\n // Get the requested TShirt from the database\n TShirt tShirt = serviceLayer.getTShirt(id);\n\n // Delete the TShirt if it is found in the database\n if (tShirt != null) {\n serviceLayer.deleteTShirt(id);\n } else {\n throw new IllegalArgumentException(\"There is no T-Shirt with id: \" + id);\n }\n }", "@Test\n public void testDeleteProductShouldCorrect() throws Exception {\n // Mock method\n when(productRepository.findOne(product.getId())).thenReturn(product);\n doNothing().when(productRepository).delete(product);\n\n testResponseData(RequestInfo.builder()\n .request(delete(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(adminToken)\n .httpStatus(HttpStatus.OK)\n .build());\n }", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "int deleteByExample(Drug_OutWarehouseExample example);", "@Override\r\n\tpublic Result delete(int id) {\n\t\treturn null;\r\n\t}", "void deleteById(int id);", "@Test\n\t// @Disabled\n\tvoid testDeleteCustomer() {\n\t\tCustomer customer = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"[email protected]\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer));\n\t\tcustRep.deleteById(1);\n\t\tCustomer persistedCust = custService.deleteCustomerbyId(1);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t\tassertEquals(\"tommy\", persistedCust.getFirstName());\n\n\t}", "@Override\n @Modifying\n @Query(value = \"delete from Dept where deptId = ?1\", nativeQuery = true)\n void deleteById(Long deptId);", "@Override\n\tpublic void delete(Integer deptno) {\n\t\t\n\t}", "void delete(int id) throws Exception;", "@Override\n\tpublic void deletepatienttreat(int id) {\n\t\tpatreatrep.deleteById(id);\n\t\t\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\tconsigMetalDtRepository.delete(id);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\tstnLooseMtRepository.delete(id);\r\n\t\t}", "@DeleteMapping(value = \"/delete\", produces = \"application/json\")\n void delete(@RequestParam int id);" ]
[ "0.75489473", "0.7439053", "0.7172957", "0.7131085", "0.6982281", "0.6915932", "0.689754", "0.6895982", "0.6882601", "0.68462694", "0.6802173", "0.67976594", "0.679065", "0.6786581", "0.6785595", "0.6781411", "0.6764643", "0.6752484", "0.6740916", "0.6733666", "0.6730827", "0.67264104", "0.67178875", "0.67134374", "0.67107475", "0.66686904", "0.66523236", "0.6641792", "0.6610579", "0.6600217", "0.65844434", "0.65699637", "0.6564416", "0.656301", "0.6560069", "0.655705", "0.65456134", "0.65431243", "0.6525943", "0.6518343", "0.6508507", "0.6503858", "0.64976984", "0.64812714", "0.64773625", "0.6465493", "0.6452278", "0.6451266", "0.644999", "0.64492905", "0.6441401", "0.643612", "0.6428194", "0.64254874", "0.64247304", "0.6415683", "0.641257", "0.64123595", "0.64109844", "0.64056194", "0.6396783", "0.6394351", "0.63930696", "0.63865036", "0.638463", "0.6382055", "0.6378379", "0.63776153", "0.6372561", "0.6369012", "0.6364288", "0.6360994", "0.6360994", "0.6360994", "0.6360994", "0.6360994", "0.6357729", "0.6352757", "0.6352532", "0.63524264", "0.63500196", "0.63484615", "0.63484204", "0.63484204", "0.63484204", "0.63484204", "0.63484204", "0.63484204", "0.6348048", "0.6347065", "0.634526", "0.6338682", "0.63378453", "0.63373554", "0.6336748", "0.6336641", "0.633148", "0.63241994", "0.63229924", "0.6315621" ]
0.8031426
0
testing service layer method to view plant using id
@Test void testGetPlant() { Plant plant = service.getPlant(53); assertNotEquals("Rose", plant.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t@Transactional\r\n\tpublic Planter viewPlanter(int planterId) throws ResourceNotFoundException {\r\n\t\tOptional<Planter> pl = planterRepo.findById(planterId);\r\n\t\tif(pl.isPresent()) {\r\n\t\t\treturn pl.get();\r\n\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new ResourceNotFoundException(\"No Planter found with the Id\");\r\n\t\t}\r\n\t}", "@Test\n\t// @Disabled\n\tvoid testViewCustomerbyId() {\n\t\tCustomer customer = new Customer(1, \"jen\", \"cru\", \"951771122\", \"[email protected]\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer));\n\t\tCustomer persistedCust = custService.viewCustomerbyId(1);\n\t\tassertEquals(\"jen\", persistedCust.getFirstName());\n\t}", "public void getDetail(int id) {\n\t\t\n\t}", "@Override\r\n\tpublic List<Object[]> searchPlantDetails(int id) {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p where p.plantId=\"\r\n\t\t\t\t\t+ id + \"\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic JSONObject findZzblPlantTeethOperationById(String id) throws Exception {\n\t\treturn opertaionDao.findZzblPlantTeethOperationById(id);\n\t}", "void viewProductById(long id);", "@Override\r\n\tpublic Botany show(int id) {\n\t\treturn dao.show(id);\r\n\t}", "public void viewDetailAllPlantCanHarvest() {\n\t\tint i = 1;\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\tif(!checkPlantCanHarvest()){\n\t\t\tSystem.out.println(\"No Plant\");\n\t\t}\n\t\telse{\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\tSystem.out.println( i + \" \" + p.viewDetail() + \" StatusWater : \" + p.getStatusWater()\n\t\t\t+ \" StatusHarvest : \" + p.getStatusHarvest());\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t}\n\t\t\n\t}", "@Test\n void findByPetId_API_TEST() throws Exception {\n\n Pet pet = setupPet();\n given(petService.findByPetId(2)).willReturn(Optional.of(pet));\n mvc.perform(get(\"/owners/*/pets/2\").accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json\"))\n .andExpect(jsonPath(\"$.id\").value(2))\n .andExpect(jsonPath(\"$.name\").value(\"Daisy\"));\n }", "@Test\n public void findById() {\n System.out.println(\"\\n--- Singer by id=1 ---\");\n\n Singer singer = restTemplate.getForObject(\n \"http://localhost:9082/restful-ws/singer/{id}\", Singer.class, 1);\n\n System.out.println(singer);\n }", "@GET\r\n @Path(\"/{id}\")\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public Tool getInstrument(@PathParam(\"id\") Integer id) {\r\n return dao.findById(id);\r\n }", "@Override\r\n\tpublic List<Planter> viewPlanter(String planterShape) throws ResourceNotFoundException{\r\n\t\tList<Planter> plist = planterRepo.viewPlanter(planterShape);\r\n\t\tif(plist != null) {\r\n\t\t\treturn plist;\r\n\t\t}\r\n\t\tthrow new ResourceNotFoundException();\r\n\t}", "@Test\n public void selectById() {\n }", "@Test\r\n public void testSelectById() {\r\n System.out.println(\"selectById\");\r\n int id = 1;\r\n AbonentDAL instance = new AbonentDAL();\r\n Abonent result = instance.selectById(id);\r\n assertTrue(result!=null && result.getId()==id);\r\n }", "public void openPortal(String id){\n\n\n\n\n }", "@GetMapping(value = \"/{id}\")\n\tpublic PlantingArea findById(@PathVariable Long id) throws NotFoundException {\n\t\treturn plantAreaServ.findById(id);\n\t}", "@Test\n\tvoid testAddPlant() {\n\t\tPlant plant = service.addPlant(new Plant(9.0, \"Hibiscus\", \"Skin Benefits\", 22.0, 8, 330.0, \"Shurbs\"));\n\t\tassertEquals(\"Hibiscus\", plant.getName());\n\n\t}", "@Override\r\n public HarvestResponseDto getHarvest(Long id) {\r\n return harvestMapper.mapToDto(harvestRepository.findById(id).orElseThrow(() -> new HarvestNotFoundException(\"Couldn't find harvest with id: \" + id)));\r\n }", "@GET\n @Path(\"{id}\")\n @JWTTokenNeeded\n @Produces({MediaType.APPLICATION_JSON})\n public EscenarioDTO getById(@PathParam(\"id\") int id) {\n logger.log(Level.INFO, \"id:{0}\", id);\n Escenario entidad = managerDAO.find(id);\n return entidad.toDTO();\n\n }", "@Test\n public void previewTemplateFromIdTest() throws IdfyException, Exception {\n TemplateWithIdPreview model = new TemplateWithIdPreview.Builder().build();\n UUID id = UUID.randomUUID();\n String xmlTemplate = new String(\"123\");\n api.previewTemplateFromId(model, id, xmlTemplate);\n }", "public static void accessoriesstatuspage(Long id){\r\n\t\tAccount a = (Account) Cache.get(\"authUser\");\r\n\t\tif (a != null){\r\n\t\t\tOrderAccessories o = OrderAccessories.findById(id);\r\n\t\t\trender(o);\r\n\t\t}\r\n\t\telse\t\r\n\t\t\tDealerControllerMap.pleaselogin();\r\n\t}", "@RequestMapping(value = \"/tshirt/{id}\", method = RequestMethod.GET)\n @ResponseStatus(value = HttpStatus.OK)\n public TShirt getTShirt(@PathVariable Long id) {\n // Find the TShirt requested in the database\n TShirt tShirt = serviceLayer.getTShirt(id);\n\n // Return the TShirt if it is found in the database\n if (tShirt != null) {\n return tShirt;\n } else {\n throw new IllegalArgumentException(\"There is no T-Shirt with id: \" + id);\n }\n }", "@GetMapping (Constants.PATH_FETCH_PLANT_INFO + \"/{\" + Constants.PARAM_TEAM_ID + \"}\")\n public ResponseEntity<ApiResponse> fetchTeamPlantInfo(@PathVariable Long teamId) {\n return ResponseEntity.ok(enterpriseService.getTeamPlantInfo(String.valueOf(teamId)));\n }", "@GetMapping(\"/planets/{id}\")\n\tpublic String showPlanet(@PathVariable(\"id\")Long id, Model model) {\n\t\t\n\t\tmodel.addAttribute(\"newMoon\", new Moon());\n\t\t// get a planet based on id\n\t\tPlanet planet = pService.getPlanet(id);\n\t\tmodel.addAttribute(\"planet\", planet);\n\t\treturn \"show.jsp\";\n\t}", "@Test\n public void retriveByIdTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(1);\n assertNotNull(servizio,\"Should return true if return Servizio 1\");\n }", "@Override\n public RiceptDto getRicept(int id) {\n Optional<Ricept> ricept = riceptRepository.findById(id);\n if (!ricept.isPresent()) {\n log.error(\"Ricept not found by id. Class RiceptServiceImpl, method getRicept\");\n throw new NotFoundException(\"Ricept not found by id\");\n }\n log.info(\"Get ingredient by id. Class RiceptServiceImpl, method getRicept\");\n return RiceptDto.of(ricept.get());\n }", "@GetMapping(value = \"/{id}\")\n public ResponseEntity<TechnicianDTO> findById(@PathVariable Long id) {\n TechnicianDTO objDTO = new TechnicianDTO(technicianService.findById(id));\n return ResponseEntity.ok().body(objDTO);\n }", "@Test\n\tpublic void getSurveyIdTest() throws Exception {\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/getsurveybyid/962\")\n\t\t .contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON))\n\t\t\t\t.andExpect(status().isFound());\n\t}", "public void getProduseFromFurnizor(int id) {\n\t\tList<Produs> productsFromProvider = produsOperations.getAllProduseFromFurnizor(id);\n\t\tprodusOperations.printListOfProduse(productsFromProvider);\n\t}", "@Test\r\n void testGetMedicineById() throws Exception{\r\n String URI= \"/medicine/get/{medicineId}\";\r\n Medicine medicine = new Medicine();\r\n\t medicine.setMedicineId(134);\r\n\t medicine.setMedicineName(\"crosin\");\r\n\t medicine.setMedicineCost(200);\r\n\r\n Mockito.when(medicineService.findMedicineById(Mockito.any())).thenReturn(medicine);\r\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.get(URI, 102).accept(MediaType.APPLICATION_JSON)).andReturn();\r\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\r\n String jsonOutput = mockHttpServletResponse.getContentAsString();\r\n assertNotNull(jsonOutput);\r\n }", "@Test\n public void validResturantById() throws Exception {\n Logger.getGlobal().info(\"Start validResturantById test\");\n ResponseEntity<Entity> restaurant = restaurantController.findById(RESTAURANT);\n\n Assert.assertEquals(HttpStatus.OK, restaurant.getStatusCode());\n Assert.assertTrue(restaurant.hasBody());\n Assert.assertNotNull(restaurant.getBody());\n Assert.assertEquals(RESTAURANT, restaurant.getBody().getId());\n Assert.assertEquals(RESTAURANT_NAME, restaurant.getBody().getName());\n Logger.getGlobal().info(\"End validResturantById test\");\n }", "@Test\n public void idTest() {\n // TODO: test id\n }", "@Test\n public void idTest() {\n // TODO: test id\n }", "public abstract Optional<Object> getByID(@PathVariable(\"id\") int id);", "@Test\n\tpublic void testPatient() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/edit-patient?id=4\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200,response.getStatusCodeValue());\n\t}", "@Test\n public void findByIdTest() {\n Long id = 1L;\n reservation1.setId(id);\n Mockito.when(reservationDao.findById(id)).thenReturn(reservation1);\n Reservation result = reservationService.findById(id);\n Assert.assertEquals(reservation1, result);\n Assert.assertEquals(id, reservation1.getId());\n }", "@Test\n public void oneSpartanPojo(){\n Response response = given().accept(ContentType.JSON)\n .and().pathParam(\"id\", 15)\n .and().get(\"http://18.232.145.26:8000/api/spartans/{id}\");\n\n // Verify response status code should be 200\n Assert.assertEquals(response.statusCode(), 200 , \"Verify status code : \");\n\n // Convert Json to POJO( Our custom Spartan java class )\n Spartan spartan15 = response.body().as(Spartan.class);\n System.out.println(\"spartan15 = \" + spartan15);\n System.out.println(\"spartan15.getNames() = \" + spartan15.getName());\n System.out.println(\"spartan15.getId() = \" + spartan15.getId());\n\n\n }", "@Test\n\tpublic void getOwnerByIdTest() throws Exception {\n\t\tmockMvc.perform(get(\"/owner/4\"))\n\t\t.andExpect(status().isOk())\n\t\t.andExpect(content().contentType(contentType))\n\t\t.andExpect(jsonPath(\"$.id\", is(4)))\n\t\t.andExpect(jsonPath(\"$.firstName\", is(\"Harold\")))\n\t\t.andExpect(jsonPath(\"$.lastName\", is(\"Davis\")))\n\t\t.andExpect(jsonPath(\"$.city\", is(\"Windsor\")))\n\t\t.andExpect(jsonPath(\"$.address\", is(\"563 Friendly St.\")))\n\t\t.andExpect(jsonPath(\"$.telephone\", is(\"6085553198\")));\n\t}", "@Override\r\n public Visitors visfindById(Integer id) {\n return userMapper.visfindById(id);\r\n }", "@Test\n public void getStationPassesStationIdToStationDao()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.getStation(SOME_ID);\n\n verify(mockStationDao).getStation(eq(SOME_ID));\n }", "@SelectProvider(type = ServeInfoSqlProvider.class, method = \"findById\")\n ServeInfoDO findById(@Param(\"id\") Long id);", "@Test\n public void getID() {\n\n }", "@Test\n public void testPersonReturn(){\n// System.out.println(\"------->\"+ mHbParam.getId());\n }", "@ApiOperation(\"根据会场编号查询具体会场\")\n @GetMapping(\"/selectOnePlaceById\")\n public ResultResponse selectOnePlace(@ApiParam(\"会场编号\") @RequestParam(\"id\")Integer id){\n VoPlace voPlace = placeService.selectOnePlaceById(id);\n return new ResultResponse()\n .setData(voPlace)\n .setMessage(\"根据编号查询会场\");\n }", "@Test\n\t// @Disabled\n\tvoid testViewCustomerbyVehicleLocation() {\n\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"[email protected]\");\n\t\tVehicle vehicle1 = new Vehicle(101, \"TN02J0666\", \"bus\", \"A/C\", \"prime\", \"chennai\", \"13\", 600.0, 8000.0);\n\t\tVehicle vehicle2 = new Vehicle(102, \"TN02J0776\", \"car\", \"nonA/C\", \"prime\", \"chennai\", \"13\", 600.0, 8000.0);\n\t\tList<Vehicle> vehicleList =new ArrayList<>();\n\t\tvehicleList.add(vehicle1);\n\t\tvehicleList.add(vehicle2);\n\t\tcustomer1.setVehicle(vehicleList);\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tMockito.when(custRep.findbyVehicleLocation(\"chennai\")).thenReturn(customerList);\n\t\tList<Customer> cust3 = custService.findbyVehicleLocation(\"chennai\");\n\t\tassertEquals(1, cust3.size());\n\t}", "@Test\n public void others(){\n Item item = itemService.getItem(50);\n System.out.println(item);\n\n }", "@GetMapping(\"/animal/{id}/details\")\n public Animal listAnimalDetails(@PathVariable String id) { return animalService.getAnimal(id); }", "@Test\n\tvoid findDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorfind = new DoctorDetail();\n\t\tdoctorfind.setSpecialist(\"cardioc\");\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).doctors(doctorfind.getSpecialist());\n\t\tmockMvc.perform(get(\"/doctor/find?specialist=/{specialist}\", \"cardioc\")).andExpect(status().isOk());\n\t}", "@Test\n void findClientById() {\n }", "@Test\n public void testSelectById() {\n disciplineTest = disciplineDao.selectById(1);\n boolean result = disciplineTest.getId() == 1;\n assertTrue(result);\n }", "@Test\n public void testFindById() {\n System.out.println(\"findById\");\n Integer id = 1;\n PrioridadRest instance = mokPrioridadRest;\n Prioridad expResult = new Prioridad(1);\n Prioridad result = instance.findById(id);\n assertEquals(expResult, result);\n \n }", "public String viewDetailPlant(int index) {\n\t\tif(getListofplant().size() == 0){\n\t\t\treturn \"No Plant\";\n\t\t}\n\t\telse{\n\t\t\treturn getListofplant().get(index).viewDetail() + \" StatusWater : \" + getListofplant().get(index).getStatusWater() \n\t\t\t\t\t+ \" StatusHarvest : \" + getListofplant().get(index).getStatusHarvest();\n\t\t}\n\t}", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "@GetMapping(path = {\"/{idtv}\"})\n public Tipovehiculo listarId(@PathVariable(\"idtv\")int idtv){\n return service.listarId(idtv);\n }", "@GetMapping(\"/type-tests/{id}\")\n @Timed\n public ResponseEntity<TypeTest> getTypeTest(@PathVariable Long id) {\n log.debug(\"REST request to get TypeTest : {}\", id);\n TypeTest typeTest = typeTestService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(typeTest));\n }", "@GET\n @Path(\"{id}\")\n @Produces({ \"application/json\" })\n public abstract Response find(@PathParam(\"id\") Long id);", "@Test\r\n\tpublic void findByIdMaterialCategoryTest() {\r\n\t\t// Your Code Here\r\n\r\n\t}", "public String doDetail(){\n if(idsecteur==null){\n this.addActionError(getText(\"error.topo.missing.id.\"));\n }else secteur = managerFactory.getSecteurManager().getbynid(idsecteur);\n {\n // this.addActionError(\"il n'y a pas de projet pour ce numéro \"+idtopo );\n\n\n }\nreturn (this.hasErrors())? ActionSupport.ERROR : ActionSupport.SUCCESS;\n\n }", "@GetMapping(\"/restaurant/{id}\")\n public ResponseEntity<Restaurant> GetRestaurantByID(@PathVariable String id) {\n Optional<Restaurant> getRestaurant = restaurantServiceImpl.getById(id);\n return new ResponseEntity<Restaurant>(getRestaurant.get(), HttpStatus.OK);\n }", "@Test\n\tpublic void getIdTest() {\n\t}", "@Override\n\tpublic ClientResponse get(Integer id) {\n\t\tWebResource webResource = this.webResource.path(\"/location/\" + id);\n\t\treturn get(webResource);\n\t}", "@GetMapping(\"{id}\")\n public Optional<Donut> retDonutbyID(@PathVariable Long id){\n\n return this.donutRepository.findById(id);\n\n }", "@Test\r\n\tpublic void Test_ID() {\r\n\t\tResponse resp = given().\r\n\t\t\t\tparam(\"nasa_id\", \"PIA12235\").\r\n\t\t\t\twhen().\r\n\t\t\t\tget(endpoint);\r\n\t\t\t\tSystem.out.println(resp.getStatusCode());\r\n\t\t\t\tAssert.assertEquals(resp.getStatusCode(), 200);\r\n\t}", "public Triplet selectSingle(int id) throws DAOException;", "TestViewpoint createTestViewpoint();", "@Test\n\tpublic void sheldonShouldBeAbleToLookAtLeonardsQueryByItsPublicId() throws Exception {\n\t\t\n\t\tString sheldonToken = generateTokenWithExpirationDate(\"sheldon\", 1, TimeUnit.DAYS, Arrays.asList(\"ROLE_USER\"));\n\n\t\t// UserQuery getUserQuery()\n\t\tthis.mockMvc.perform(get(\"/queries/Abc1\").\n\t\t\t\theader(\"Authorization\", \"Bearer \" + sheldonToken).accept(MediaType.APPLICATION_JSON)).\n\t\t\t\tandExpect(status().isOk());\n\t}", "@Test\n public void getCatalogSaleTest() {\n Integer id = null;\n // CatalogSale response = api.getCatalogSale(id);\n\n // TODO: test validations\n }", "@GetMapping(\"/{id}\")\n @Transactional\n public PostulantExamResultResponse getById(@PathVariable Long id) {\n return postulantExamService.getById(id);\n }", "@Test\n public void getStationUsesStationDaoToRetrieveStationById()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.getStation(SOME_ID);\n\n verify(mockStationDao).getStation(anyLong());\n }", "@Test\n public void getPostByIdTest() {\n\n\n }", "@Override\n\tpublic ResponseEntity<?> get(Long id) {\n\t\treturn ResponseEntity.ok(service.deposit.get(id));\n\t}", "@Test\n public void apiKundenViewGetByMandantMandantIDGetTest() throws ApiException {\n Integer mandantID = null;\n List<CmplxKunden> response = api.apiKundenViewGetByMandantMandantIDGet(mandantID);\n\n // TODO: test validations\n }", "@Test\n void getByIdSuccess() {\n Event retrievedEvent = (Event)genericDao.getById(2);\n assertNotNull(retrievedEvent);\n assertEquals(\"Dentist\", retrievedEvent.getName());\n }", "@Test\n void getNoteByIdSuccess() {\n Note retrievedNote = (Note) noteDao.getById(1);\n assertEquals(1, retrievedNote.getId());\n assertEquals(\"Amari Rodgers\", retrievedNote.getProspect());\n }", "@GetMapping(\"/act-kodus/{id}\")\n @Timed\n public ResponseEntity<ActKodu> getActKodu(@PathVariable Long id) {\n log.debug(\"REST request to get ActKodu : {}\", id);\n ActKodu actKodu = actKoduRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(actKodu));\n }", "@GetMapping(value = \"/selectById\", produces = \"application/json\")\n Patient selectById(@RequestParam int id);", "@Test\n\tpublic void testGetID() {\n\t}", "@Test\n public void getLocationById() throws Exception {\n }", "public Plant getPlantById(Long id) throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\tstmt = conn.prepareStatement(\"SELECT * FROM garden where id=?\");\n\t\t\tstmt.setLong(1, id);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tPlant p = createPlant(rs);\n\t\t\t\trs.close();\n\t\t\t\treturn p;\n\t\t\t}\n\t\t} finally {\n\t\t\t// If the Statement or the Connection, hasn't been closed, we close it\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "@Test\n public void testFindDietStatusById() throws Exception{\n String URI = \"/healthreminder/followup_dietstatus_find/{patientId}\";\n FollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(true);\n\t\t\n\t\tString jsonInput = this.converttoJson(followUpDietStatusInfo);\n\n Mockito.when(followUpDietStatusInfoServices.findDietStatusById(Mockito.anyInt())).thenReturn(followUpDietStatusInfo);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.get(URI, 1).accept(MediaType.APPLICATION_JSON))\n .andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n String jsonOutput = mockHttpServletResponse.getContentAsString();\n\n assertThat(jsonInput).isEqualTo(jsonOutput);\n }", "@GetMapping(\"/getById/{id}\")\n public CityInfo getById(@PathVariable int id){\n return service.getById(id);\n }", "@Test\n\tvoid testUpdatePlant() {\n\t\tPlant plant = service.updatePlant(new Plant( 8.0, \"Lemon\", \"Antihairfall\", 22.0, 5, 170.0, \"shurb\"));\n\t\tassertEquals(170.0, plant.getCost());\n\t}", "public interface IScenicServiceView extends MvpView {\n void showTicketList(List<TicketDto> ticketDtos,int money);\n\n void applyFreeTeaSuccess();\n\n void showActionInfo(ActionDto actionDto);\n}", "@Test\n public void selectById(){\n User user=iUserDao.selectById(\"158271202\");\n System.out.println(user.toString());\n }", "@Test\n\tpublic void getProductDetails() throws Exception {\n\n\t\tMockito.when(productService.getProductInfo(Mockito.anyLong())).thenReturn(mockProduct);\n\n\t\tRequestBuilder requestBuilder = MockMvcRequestBuilders.get(\"/products/\" + productID)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON);\n\n\t\tMvcResult result = mockMvc.perform(requestBuilder).andReturn();\n\n\t\tSystem.out.println(result.getResponse());\n\n\t\tJSONAssert.assertEquals(expected, result.getResponse().getContentAsString(), true);\n\t\tSystem.out.println(\"UnitTestSuccessful\");\n\t}", "public void testGetViews() {\n }", "@Test\n\tvoid testDeletePlant() {\n\t\tList<Plant> plant = service.deletePlant(50);\n\t\tassertFalse(plant.isEmpty());\n\t}", "@Test\n\tpublic void getOwnerById6Test() throws Exception {\n\t\tmockMvc.perform(get(\"/owner/6\"))\n\t\t.andExpect(status().isOk())\n\t\t.andExpect(content().contentType(contentType))\n\t\t.andExpect(jsonPath(\"$.id\", is(6)))\n\t\t.andExpect(jsonPath(\"$.firstName\", is(\"Jean\")))\n\t\t.andExpect(jsonPath(\"$.lastName\", is(\"Coleman\")))\n\t\t.andExpect(jsonPath(\"$.city\", is(\"Monona\")))\n\t\t.andExpect(jsonPath(\"$.address\", is(\"105 N. Lake St.\")))\n\t\t.andExpect(jsonPath(\"$.telephone\", is(\"6085552654\")));\n\t\t//.andExpect(jsonPath(\"$\"));\n\t}", "@Test\n\tpublic void test_get_product_by_id_return_200() throws Exception {\n\t\tPrincipal mockPrincipal = Mockito.mock(Principal.class);\n\t\tMockito.when(mockPrincipal.getName()).thenReturn(\"1\");\n\t\tProductDTO expected = DummyData.getProductDto1();\n\t\tMockHttpServletRequestBuilder mockRequest = MockMvcRequestBuilders.request(HttpMethod.GET, \"/1\")\n\t\t\t\t.principal(mockPrincipal)\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON);\n\n\t\t// Setup when\n\t\twhen(productService.findProductById(1l)).thenReturn(expected);\n\t\t\n\t\t// Execute the POST request\n\t\tmockMvc.perform(mockRequest)\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t// Validate the response code and content type\n\t\t\t\t.andExpect(MockMvcResultMatchers.content().contentType(MediaType.APPLICATION_JSON))\n\t\t\t\t// Validate the returned fields\n\t\t\t\t.andExpect(jsonPath(\"$.brand\", Is.is(expected.getBrand())))\n\t\t\t\t.andExpect(jsonPath(\"$.color\", Is.is(expected.getColor())))\n\t\t\t\t.andExpect(jsonPath(\"$.name\", Is.is(expected.getName()))).andReturn();\n\n\t\t// verify\n\t\tverify(productService).findProductById(ArgumentMatchers.any());\n\t}", "@GetMapping(path = \"/{id}\")\n public Response<Object> show\n (\n @PathVariable(\"id\") Long id\n )\n {\n\n try {\n return Response.ok().setPayload(facultyService.show(id));\n } catch (FacultyNotFoundException e) {\n return Response.exception().setErrors(e.getMessage());\n }\n }", "@GetMapping(path = \"/view/{id}\")\n public String showById(@PathVariable(\"id\") Long id, Model model) {\n log.info(\"READ itinerary by ID : {}\", id);\n \n Itinerary itinerary = itineraryService.findById(id);\n \n if (Objects.isNull(itinerary)) {\n log.info(\"Any sector found with ID : {}\", id);\n return \"redirect:/itineraries/view\";\n }\n \n TreeSet<Comment> comments = new TreeSet<>(itinerary.getComments());\n \n model.addAttribute(\"itinerary\", itinerary);\n model.addAttribute(\"comment\", new Comment());\n model.addAttribute(\"comments\", comments);\n \n return VIEW;\n }", "@RequestMapping(value = \"/{id}\", method=RequestMethod.GET)\n public ResponseEntity<?> findById(@PathVariable final Integer id) {\n Team team = this.teamService.findById(id);\n return ResponseEntity.ok().body(team);\n }", "@GetMapping(\"/viewItem/{id}\")\n\tpublic ModelAndView viewItemById(@PathVariable(value=\"id\") long id) {\n\t\tModelAndView mv = new ModelAndView();\n\t\tItem item = itemService.findItemById(id);\n\t\tmv.setViewName(\"preview\");\n\t\tmv.addObject(\"item\", item);\n\t\t\n\t\treturn mv;\n\t}", "@RequestMapping(value = \"/detail/{runnerId}\")\n\tpublic ModelAndView ictDetail(@PathVariable int runnerId) throws SQLException, IOException {\n\t\tModelAndView mav = new ModelAndView(\"ict/detail\");\n\t\tmav.addObject(\"rc\", rs.findDetail(runnerId));\n\t\treturn mav;\n\t}", "@Test\n public void printPetDetailedListTest() {\n\n }", "@GetMapping(path=\"{id}\")\n public @ResponseBody TeamMember getTeamMember(@PathVariable long id){\n return teamMemberRepository.getOne(id);\n }", "@RequestMapping(value=\"/Infrastrecture/{id}\",method=RequestMethod.GET)\n\tpublic Infrastrecture getInfrastrecture(@PathVariable Long id){\n\t\treturn infrastrectureRepository.findOne(id);\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Test\n public void findByIdTest() {\n }", "@Test\n public void findByIdTest() {\n }" ]
[ "0.6384169", "0.62502396", "0.6207595", "0.61480564", "0.61099637", "0.604725", "0.6024918", "0.60116", "0.6003418", "0.5930284", "0.59240377", "0.5881998", "0.5880843", "0.5873367", "0.58534205", "0.58527374", "0.5801741", "0.5792599", "0.57873464", "0.5786233", "0.5777416", "0.57745624", "0.5766593", "0.5754636", "0.57501715", "0.5730421", "0.5717689", "0.5709994", "0.5696146", "0.56822085", "0.5666032", "0.56427366", "0.56427366", "0.56248915", "0.5618421", "0.5608706", "0.5607044", "0.55992186", "0.55918765", "0.5584008", "0.55804026", "0.5577807", "0.5571825", "0.554611", "0.5543304", "0.55310714", "0.5530303", "0.5528431", "0.5523864", "0.5522732", "0.55190206", "0.5515881", "0.551063", "0.5507983", "0.5507437", "0.550602", "0.55022377", "0.54991436", "0.54936635", "0.5485681", "0.54794574", "0.54671824", "0.54638124", "0.54599476", "0.5459491", "0.54574424", "0.54520804", "0.54482406", "0.5445279", "0.54442483", "0.5444004", "0.54407614", "0.5434326", "0.5434259", "0.5433074", "0.5432427", "0.5427984", "0.5426835", "0.54234576", "0.5413167", "0.54080397", "0.54068476", "0.54021937", "0.54020816", "0.5399156", "0.5397854", "0.5389941", "0.53863287", "0.5379685", "0.5378668", "0.5374535", "0.5365457", "0.5364313", "0.5362979", "0.53597265", "0.53595346", "0.53551143", "0.5352338", "0.5350829", "0.5350829" ]
0.6377837
1
testing service layer method to view all the plants present in database
@Test void testgetAllPlants() { List<Plant> plantlist = service.getAllPlant(); boolean result = true; if (plantlist.isEmpty()) { result = false; } assertTrue(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<PlantDTO> fetchPlants(String filter);", "@Override\r\n\tpublic List<Object[]> searchPlantDetails() {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Override\r\n\tpublic List<Planter> viewAllPlanters() {\r\n\t\t\r\n\t\treturn planterRepo.findAll();\r\n\t}", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "List<ProductionPlanDTO> findAll();", "public List<Plant> getPlants() throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tList<Plant> pl = new ArrayList<Plant>();\n\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\tstmt = conn.prepareStatement(\"SELECT * FROM garden\");\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tPlant p = createPlant(rs);\n\t\t\t\tpl.add(p);\n\t\t\t}\n\t\t} finally {\n\t\t\t// If the Statement or the Connection, hasn't been closed, we close it\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t\treturn pl;\n\n\t}", "@Test\n\t \t\n\t public void listAll() {\n\t \n\t List<Persona> list = personaDao.listPersons();\n\t \n\t Assert.assertNotNull(\"Error listado\", list);\n\n\t }", "@Override\r\n\tpublic List<Planter> viewPlanter(String planterShape) throws ResourceNotFoundException{\r\n\t\tList<Planter> plist = planterRepo.viewPlanter(planterShape);\r\n\t\tif(plist != null) {\r\n\t\t\treturn plist;\r\n\t\t}\r\n\t\tthrow new ResourceNotFoundException();\r\n\t}", "protected void listTenants() {\n if (!MULTITENANT_FEATURE_ENABLED.contains(dbType)) {\n return;\n }\n Db2Adapter adapter = new Db2Adapter(connectionPool);\n try (ITransaction tx = TransactionFactory.openTransaction(connectionPool)) {\n try {\n GetTenantList rtListGetter = new GetTenantList(adminSchemaName);\n List<TenantInfo> tenants = adapter.runStatement(rtListGetter);\n \n System.out.println(TenantInfo.getHeader());\n tenants.forEach(t -> System.out.println(t.toString()));\n } catch (DataAccessException x) {\n // Something went wrong, so mark the transaction as failed\n tx.setRollbackOnly();\n throw x;\n }\n }\n }", "@Override\n public List<Plan> listAll() {\n List<Plan> plans = new ArrayList<>();\n planRepository.findAll().forEach(plans::add);\n return plans;\n }", "@Test\n\tvoid testGetAllByType() {\n\t\tList<Plant> plant = service.getAllByType(\"Shurbs\");\n\t\tString type = plant.get(0).getType();\n\t\tassertEquals(\"Shurbs\", type);\n\t}", "@Test\n public void selectAll() {\n List<ProductCategory>productCategories=categoryService.selectAll();\n for (ProductCategory productCategory:productCategories\n ) {\n System.out.println(productCategory);\n }\n }", "public abstract List<LocationDto> viewAll();", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasAprovadasFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_APROVACION, Planta.class);\n\t\tquery.setParameter(\"aprovacion\", 1);\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "@Override\n\tpublic List<Planification> listPlan() {\n\t\treturn dao.listPlan();\n\t}", "public java.util.List<PlanoSaude> findAll();", "@Test\n\tvoid testGetPlant() {\n\t\tPlant plant = service.getPlant(53);\n\t\tassertNotEquals(\"Rose\", plant.getName());\n\t}", "@Test\r\n public void UserServiceTest_RetrievePresenter()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getPresenterList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@Test\n public void printPetDetailedListTest() {\n\n }", "@Test\r\n @Ignore\r\n public void testGetPlantoes() {\r\n System.out.println(\"getPlantoes\");\r\n EnfermeiroDaoImpl instance = new EnfermeiroDaoImpl();\r\n List<Enfermeiro> expResult = null;\r\n List<Enfermeiro> result = instance.getPlantoes();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSelectAll() {\r\n System.out.println(\"AbonentDAL selectAll\");\r\n AbonentDAL instance = new AbonentDAL();\r\n List<Abonent> result = instance.selectAll();\r\n assertTrue(result!=null && result.size()>0);\r\n }", "@Test\n\tpublic void findAll() {\n\t\tList<Farm> list = (List<Farm>) farmRepository.findAll();\n\n\t\tSystem.out.println(\"info:\"+ list);\n\t\tassert(true);\n\n\t}", "@GetMapping(\"/api/laptops\")\n public List<Laptop> findAll(){\n\n return laptopRepository.findAll();\n }", "@Test\n public void testJPA3ListAll (){\n Iterable<TruckInfo> trucklist = truckRepo.findAll();\n\n\n\n\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}", "@Test\n\tpublic void getStudyGermplasmListFromDb() {\n\n\t\tfinal Session currentSession = Mockito.mock(Session.class);\n\t\tfinal Criteria mockCriteria = Mockito.mock(Criteria.class);\n\t\twhen(currentSession.createCriteria(ListDataProject.class)).thenReturn(mockCriteria);\n\t\twhen(mockCriteria.createAlias(\"list\", \"l\")).thenReturn(mockCriteria);\n\t\twhen(mockCriteria.add(any(SimpleExpression.class))).thenReturn(mockCriteria);\n\n\t\tfinal PodamFactory factory = new PodamFactoryImpl();\n\n\t\tfinal GermplasmList germplasmList = new GermplasmList();\n\t\tfinal ListDataProject listDataProject = new ListDataProject();\n\n\t\tfactory.populatePojo(germplasmList, GermplasmList.class);\n\t\tfactory.populatePojo(listDataProject, ListDataProject.class);\n\n\t\tlistDataProject.setList(germplasmList);\n\t\tfinal List<ListDataProject> queryResults = new ArrayList<ListDataProject>();\n\t\tqueryResults.add(listDataProject);\n\n\t\twhen(mockCriteria.list()).thenReturn(queryResults);\n\n\t\tfinal StudyGermplasmDto expectedGermplasm = this.getResultingStudyGermplasmDto(germplasmList, listDataProject);\n\n\t\tfinal StudyGermplasmListServiceImpl studyGermplasmListServiceImpl = new StudyGermplasmListServiceImpl(currentSession);\n\t\tfinal List<StudyGermplasmDto> actualGermplasmList = studyGermplasmListServiceImpl.getGermplasmList(2013);\n\n\t\tassertEquals(\"The two lists must be equal.\", Collections.<StudyGermplasmDto>singletonList(expectedGermplasm), actualGermplasmList);\n\t}", "@Override\r\n\tpublic List prodAllseach() {\n\t\treturn adminDAO.seachProdAll();\r\n\t}", "@Test\n\tpublic void testSuppServices() {\n\t\tList<SuppServices> suppServices = suppServicesService.selectList();\n\n\t\tfor (SuppServices supp : suppServices) {\n\n\t\t\tSystem.out.println(supp);\n\t\t}\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorGeneroFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_GENERO, Planta.class);\n\t\tquery.setParameter(\"genero\", \"carnivoras\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "public DBViewAllPilot() {\n\t\ttry {\n\t\tstatement = connection.createStatement(); \n\t\tviewAll(); //call the viewAll function; \n\t\t\n\t}catch(SQLException ex) {\n\t\tSystem.out.println(\"Database connection failed DBViewAllAircraft\"); \n\t}\n}", "@Override\r\n\tpublic List<Object[]> plantAdvanceSearch(String plant) {\n\t\tString hql=null;\r\n\t\tif(plant.equalsIgnoreCase(\"ALL\"))\r\n\t\t{\r\n\t\t\thql=\"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t \r\n\t\t}\r\n\t\t\r\n\t\tif(!plant.equalsIgnoreCase(\"ALL\"))\r\n\t\t{\t\r\n\t\thql=\"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p where \"+plant;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t List<Object[]> list=getHibernateTemplate().find(hql);\r\n\t\r\n\t\t\treturn list;\t\r\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorFamiliaFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_FAMILIA, Planta.class);\n\t\tquery.setParameter(\"familia\", \"telepiatos\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 3);\n\t}", "private void findPlantsList() {\n try {\n\n RemoteMongoCollection<Document> plants = mongoDbSetup.getCollection(getString(R.string.eye_plant_plants));\n RemoteMongoIterable<Document> plantIterator = plants.find();\n\n final ArrayList<Document> docsToUser = new ArrayList<>();\n\n plantIterator\n .forEach(document -> {\n docsToUser.add(document);\n setPlantList(docsToUser);\n })\n .addOnFailureListener(e -> Log.e(TAG, \"Error\" + e.getCause()))\n\n .addOnCompleteListener(task -> {\n\n if (getPlantList().size() == docsToUser.size() && getPlantList().size() != 0) {\n setUpRecyclerView();\n }\n });\n } catch (Throwable e) {\n Log.e(TAG, \"NullPointerException: \" + e.getMessage());\n }\n }", "public interface IPlantDAO {\n\n /**\n * Accept filter, text and return a collection of plants that contain that filter text\n * @param filter the text we want to match in our returned list of plants.\n * @return a list of plants that contain given filter text in either genus, species, cultivar or common name.\n */\n public List<PlantDTO> fetchPlants(String filter);\n\n\n}", "@Test\n void getAllSuccess(){\n\n List<CompositionInstrument> compositionInstruments = genericDao.getAll();\n assertEquals(4, compositionInstruments.size());\n }", "public static void showAllHouse(){\n ArrayList<House> houseList = getListFromCSV(FuncGeneric.EntityType.HOUSE);\n displayList(houseList);\n showServices();\n }", "@GetMapping(\"/findAll\")\n public List<LabTest> findAll(){\n return labTestService.getLabTests();\n }", "@Test\n public void testGetAllPharmacies() throws Exception {\n System.out.println(\"getAllPharmacies\");\n\n ManagePharmaciesController instance = new ManagePharmaciesController();\n LinkedList<PharmacyDTO> expResult= new LinkedList<>();\n LinkedList<PharmacyDTO> result = instance.getAllPharmacies();\n expResult.add(getPharmacyDTOTest(\"a\"));\n expResult.add(getPharmacyDTOTest(\"b\"));\n expResult.add(getPharmacyDTOTest(\"c\"));\n\n LinkedList<Pharmacy> resultDB = new LinkedList<>();\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"a\")));\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"b\")));\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"c\")));\n PharmacyDB db = Mockito.mock(PharmacyDB.class);\n PharmaDeliveriesApp.getInstance().getPharmacyService().setPharmacyDB(db);\n when(db.getAllPharmacies()).thenReturn(resultDB);\n result = instance.getAllPharmacies();\n Assertions.assertEquals(result.size(), expResult.size());\n Assertions.assertEquals(result.get(0).getName(), expResult.get(0).getName());\n Assertions.assertEquals(result.get(1).getName(), expResult.get(1).getName());\n Assertions.assertEquals(result.get(2).getName(), expResult.get(2).getName());\n \n// int i = 0;\n// for(PharmacyDTO p : result){\n// Assertions.assertEquals(p.getName(), expResult.get(i).getName());\n// i++;\n// }\n \n when(db.getAllPharmacies()).thenReturn(null);\n Assertions.assertNull(instance.getAllPharmacies());\n }", "@Override\r\n\tpublic List<Object[]> getPlantIds() {\n\r\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId,p.plantName from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Override\r\n public List<Dept> deptList() {\n return sqlSession.selectList(\"deptDAO.deptList\");\r\n }", "private void getPlanSkus() {\n\n List<PlanSkuVo> planList = new ArrayList<>();\n final Session session = sessionManager.getSession();\n\n\n PreparedStatement statement = session.prepare(\"SELECT * FROM PLANSKU\");\n BoundStatement boundStatement = statement.bind();\n ResultSet result = session.execute(boundStatement);\n\n if (result == null){\n log.info(\"No Planskus found\");\n// throw new NoDataAvailableException(\"There are no Plans available right now\");\n }\n else {\n log.info(\"Populating results for getPlanSkus\");\n result.forEach(row -> {\n PlanSkuVo planSkuVo = new PlanSkuVo(row.getString(\"product_id\"),\n row.getString(\"sku_id\"),\n row.getString(\"prod_desc\"),\n row.getString(\"prod_frenchname\"),\n row.getString(\"prod_name\"),\n row.getMap(\"sku_features\", String.class, String.class),\n row.getInt(\"sku_order\"));\n planList.add(planSkuVo);\n });\n\n ObjectMapper mapper = new ObjectMapper();\n String jsonInString =\"\";\n try {\n jsonInString = mapper.writeValueAsString(planList);\n } catch (JsonProcessingException e) {\n log.info(\"error in forming json \");\n }\n\n getSender().tell(jsonInString, ActorRef.noSender());\n }\n\n }", "public void viewDetailAllPlantCanHarvest() {\n\t\tint i = 1;\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\tif(!checkPlantCanHarvest()){\n\t\t\tSystem.out.println(\"No Plant\");\n\t\t}\n\t\telse{\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\tSystem.out.println( i + \" \" + p.viewDetail() + \" StatusWater : \" + p.getStatusWater()\n\t\t\t+ \" StatusHarvest : \" + p.getStatusHarvest());\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t}\n\t\t\n\t}", "@Test\n public void shouldListExpectedPlan() {\n OrgPlansListPage thePlansPage = open(OrgPlansListPage.class, organization.getName());\n thePlansPage.entriesContainer().shouldHave(text(plan.getName()));\n }", "@PreAuthorize(\"hasAuthority('ADMIN')\")\n @GetMapping(\"/all\")\n public ResponseEntity<List<SecretaryModel>> getAllSecretaries() {\n return ResponseEntity.ok(secretaryService.getAllSecretaries());\n }", "@Test\n public void retriveAllTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n List<Servizio> lista = manager.retriveAll();\n assertEquals(7,lista.size(),\"It should return a list of length 7\");\n }", "@Transactional\n\t@Override\n\tpublic List<ApplicantModel> viewAllApplicants() {\n\t\treturn applicantRepo.findAll().stream().map(course -> parser.parse(course))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public List queryTest() {\n\t\tList list = null;\n\t\tthis.init();\n\t\t try {\n\t\t\t list= sqlMap.queryForList(\"getAllTest\");\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 list;\n\t\t\n\t}", "@Test\n public void findAll() {\n // SalesRep:\n List<SalesRep> salesRepList = salesRepRepository.findAll();\n assertEquals(2, salesRepList.size());\n assertEquals(\"Pepe\", salesRepList.get(0).getName());\n // Leads:\n List<Lead> leadList = leadRepository.findAll();\n assertEquals(3, leadList.size());\n assertEquals(\"María\", leadList.get(0).getName());\n // Opportunities:\n List<Opportunity> opportunityList = opportunityRepository.findAll();\n assertEquals(3, opportunityList.size());\n assertEquals(5, opportunityList.get(0).getQuantity());\n // Account:\n List<Account> accountList = accountRepository.findAll();\n assertEquals(2, accountList.size());\n assertEquals(20, accountList.get(0).getEmployeeCount());\n }", "@Override\n\t\t\tpublic List<Dept> queryAll() {\n\t\t\t\treturn null;\n\t\t\t}", "@GetMapping(path=\"/showData\")\n public List<Person> showData() {\n Iterable<Person> myPerson = personRepository.findAll();\n List<Person> listOfPersons = new ArrayList<>();\n myPerson.forEach((Person person) -> {\n listOfPersons.add(person);\n });\n return listOfPersons;\n }", "@Transactional(readOnly = true)\n public List<TechPracticesDTO> findAll() {\n log.debug(\"Request to get all TechPractices\");\n return techPracticesRepository.findAll().stream()\n .map(techPracticesMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\r\n\tpublic List<Object[]> searchPlantDetails(int id) {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p where p.plantId=\"\r\n\t\t\t\t\t+ id + \"\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public void testGetAllProjetos() {\n List<Projeto> lista = ProjetoDAO.getAllProjetos();\n assertTrue(lista != null && !lista.isEmpty());\n }", "public static boolean testDaoLirePraticien() {\n boolean ok = true; \n ArrayList<Praticien> lesPraticiens = new ArrayList<Praticien>();\n try {\n lesPraticiens = daoPraticien.getAll();\n } catch (Exception ex) {\n ok = false;\n }\n System.out.println(\"liste des praticiens\");\n for (Praticien unPraticien: lesPraticiens){\n System.out.println(unPraticien);\n }\n return ok;\n \n }", "@Override\r\n\tpublic List<WarehouseInfo> selectAll(Page page) {\n\t\treturn warehouseDao.selectAll(page);\r\n\t}", "@Override\r\n\tpublic List<shopPet> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "@GetMapping\n\tpublic List<PlantingArea> findAll() {\n\t\treturn plantAreaServ.findAll();\n\t}", "@Test\n public void test3FindAll() {\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n List<SpecialityDTO> lista=(List<SpecialityDTO>)dao.findAll(); \n System.out.println(lista);\n assertTrue(!lista.isEmpty());\n }", "@Override\n public List<Paciente> listar(){\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n List<Paciente> listaPaciente = em.createQuery(\"SELECT pac FROM Paciente pac\").getResultList(); \n em.close();\n factory.close();\n return (listaPaciente);\n }", "@Test\n\tvoid testGetDepartmentsByCrit() {\n\t\tDepartmentDAO ddao = new DepartmentDAO();\n\t\tList<Department> ls = ddao.getDepartmentsByCrit();\n\t\tIterator<Department> it = ls.iterator();\n\n\t\twhile (it.hasNext()) {\n\t\t\tDepartment dpt = it.next();\n\t\t\tSystem.out.println(dpt.getDepartment_name() + \" \" + dpt.getLocation_id() + \" \" + dpt.getManager_id());\n\t\t}\n\t\t// assertEquals(203, ls.get(0).getManager_id());\n\t}", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Test\n public void getAllPersons() {\n List<Person> persons = personService.getAllPersons();\n\n //Assert\n assertEquals(\"Fulano\", persons.get(0).getFirstName());\n assertEquals(\"John\", persons.get(1).getFirstName());\n }", "@Test\n\t// @Disabled\n\tvoid testViewAllCustomer() {\n\t\tCustomer customer1 = new Customer(1, \"tom\", \"son\", \"951771122\", \"[email protected]\");\n\t\tCustomer customer2 = new Customer(2, \"jerry\", \"lee\", \"951998122\", \"[email protected]\");\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tcustomerList.add(customer2);\n\t\tMockito.when(custRep.findAll()).thenReturn(customerList);\n\t\tList<Customer> customer = custService.findAllCustomer();\n\t\tassertEquals(2, customer.size());\n\t}", "@Override\r\n\tpublic List<ServicesDto> list() {\r\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"FROM ServicesDto WHERE active = TRUE\").list();\r\n}", "@SneakyThrows\n public static void main(String[] args) {\n List<Developer> all = new DeveloperServiceImpl().findAll();\n System.out.println(all.size());\n System.out.println(all.get(50));\n\n// Developer developerServiceByID = developerService.findByID(1L);\n// System.out.println(developerServiceByID);\n// GetQueryServiceImpl getQueryServiceImpl = new GetQueryServiceImpl();\n//\n// // Новый разработчик\n// DeveloperServiceImpl developerService = new DeveloperServiceImpl();\n// developerService.create(Developer.builder()\n// .developerID(14L)\n// .companyID(2L)\n// .age(23L)\n// .name(\"Рыжий\")\n// .email(\"[email protected]\")\n// .gender(\"Male\")\n// .numberPhone(12345L)\n// .salary(1111L)\n// .build());\n\n // Новый проект\n// ProjectServiceImpl projectService = new ProjectServiceImpl();\n// projectService.create(Project.builder()\n// .id(4L)\n// .name(\"New Project\")\n// .cost(123456L)\n// .companyID(3L)\n// .customerID(1L)\n// .build());\n\n // Новый клиент\n// CustomerServiceImpl customerService = new CustomerServiceImpl();\n// customerService.create(Customer.builder()\n// .id(4L)\n// .name(\"Customer4\")\n// .budget(1000000L)\n// .companyID(2L)\n// .build());\n\n // изменить разработчика\n // default -(4,'Витя', 27, 'Male', '[email protected]', 8765434,1,5600),\n// developerService.update(4L, Developer.builder()\n// .name(\"newName\")\n// .age(33L)\n// .numberPhone(1234567L)\n// .companyID(1L)\n// .salary(600L)\n// .gender(\"Male\")\n// .email(\"[email protected]\")\n// .build());\n\n // удалить - разработчика/проект/клиента\n// developerService.delete(14L);\n// projectService.delete(4L);\n// customerService.delete(4L);\n\n // все юзеры 1-ого проекта по айди - done\n// System.out.println(getQueryServiceImpl.getDevelopersByProjectID(1L));\n// // сумма всех зарплат 1-ого проекта - done\n// System.out.println(getQueryServiceImpl.getSumSalariesByProjectID(1L));\n// // список всех Java - done\n// System.out.println(getQueryServiceImpl.getDevelopersByActivity(\"Java\"));\n// // список юзеров middle - done\n// System.out.println(getQueryServiceImpl.getDevelopersByLevel(\"middle\"));\n// //список проектов в формате: дата создания - название проекта - количество разработчиков на этом проекте.\n// System.out.println(getQueryServiceImpl.projectsWithCountDevelopers());\n\n\n// Map<Long, Developer> testMap = new HashMap<>();\n// Developer developer = Developer.builder()\n// .developerID(20L)\n// .name(\"User1\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer.getDeveloperID(), developer);\n//\n// Developer developer1 = Developer.builder()\n// .developerID(21L)\n// .name(\"User2\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer1.getDeveloperID(), developer1);\n//\n// Developer developer2 = Developer.builder()\n// .developerID(22L)\n// .name(\"User3\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer2.getDeveloperID(), developer2);\n//\n// System.out.println(testMap);\n// Stream<Developer> developerStream = testMap.values().stream();\n// Stream<Developer> developerStream1 = developerStream.filter((testMap1) -> developer.getName().contains(\"1\"));\n// System.out.println(developerStream);\n// System.out.println(Arrays.toString(developerStream1.toArray()));\n\n }", "@Override\n @Transactional(readOnly = true)\n public List<Paciente> getAll() {\n return this.pacienteRepository.findAll();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DbLotniskoEntity> getAll() {\n \tList<DbLotniskoEntity> airports = (List<DbLotniskoEntity>)getSession().createQuery(\"from kiwi.models.DbLotniskoEntity\").list();\n\n \treturn airports;\n }", "public List<Departmentdetails> getDepartmentDetails();", "List<VitalDTO> findAll();", "@Override\n public void showDiaryFromDB() {\n diaryPresenter.showDiaryFromDB();\n }", "public List<Department> getAllDepartments();", "@Override\n\tpublic List<TestDTO> getTest() {\n\t\t\n\t\t\n\t\treturn sessionTemplate.selectList(\"get_test\");\n\t}", "@Override\n\t//查询考试信息\n\tpublic List<TestSuite> publishedOut() {\n\t\tString hql=\"from TestSuite\";\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<TestSuite> list=(List<TestSuite>) this.getHibernateTemplate().find(hql);\n\t\tif (list.size()>0) {\n\t\t\treturn list;\n\t\t}else {\n\t\t\tSystem.out.println(\"查询失败!\");\n\t\t\treturn null;\n\t\t}\n\t}", "@GetMapping(\"/households\")\n public ResultEntity<List<ItemDTO>> getAllHousehold()\n {\n\n return itemService.getItemsBySubCategory(ConstantUtil.TYPE_SALE_RENT,\"Household\");\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"department\"})\n public void _2_2_1_getAllDept() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n c_1.getId().toString()+\n \"/departments\")\n .header(AUTHORIZATION,ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.departments\",hasSize(4)));\n }", "@Override\n\tpublic List<PersonVO> test() {\n\t\tSystem.out.println(\"Service 접근\");\n\t\treturn mongoDAO.test();\n\t}", "@GET()\n\t@Produces(\"application/json\")\n\tpublic List<Pizzerias> getAllPizzerias() {\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tSystem.out.println(\"Hi..\");\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\t\tMongoCursor<Document> cursor = pizzerias.find().iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\n\t\treturn allPizzeriasList;\n\t}", "public List<Sports> getAllSportsService() {\n\t\tList<Sports> list=new ArrayList<>();\n\t\tlist=(List<Sports>)repository.findAll();\n\t\tif(list.size()<1)\n\t\t\tthrow new RecordNotFoundException(\"No Sports present in the table Sports\");\n\t\tlogger.info(\"Size of the list after fetching all the records= \"+list.size());\n\t\treturn list;\n\t\t\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<PermisoDTO> findAll() {\n log.debug(\"Request to get all Permisos\");\n List<PermisoDTO> result = permisoRepository.findAll().stream()\n .map(permisoMapper::permisoToPermisoDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n return result;\n }", "@Override\r\n\tpublic List<Product> showAll() throws Exception {\n\t\treturn this.dao.showAll();\r\n\t}", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "private void viewTeachers() {\n Iterable<Teacher> teachers = ctrl.getTeacherRepo().findAll();\n teachers.forEach(System.out::println);\n }", "public List<Dept> list() {\n try {\n List<Dept> dept = new ArrayList<Dept>();\n PreparedStatement stmt = this.connection\n .prepareStatement(\"select * from dept_sr\"); //here\n\n ResultSet rs = stmt.executeQuery();\n\n while (rs.next()) {\n // adiciona a tarefa na lista\n dept.add(populateDept(rs));\n }\n\n rs.close();\n stmt.close();\n\n return dept;\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Override\n public List<Item> viewAllItems() {\n // calls List<Item> itemRepo.findCatalog();\n return itemRepo.findCatalog();\n }", "@Test\r\n // @Ignore\r\n public void showOrders()\r\n {\r\n System.out.println(\"----- showOrders -----\");\r\n\r\n OrderRepository orderRepository = new OrderRepository();\r\n orderRepository.entityManager = this.entityManager;\r\n\r\n List<Order> orders = orderRepository.findAll();\r\n for (Order order : orders)\r\n {\r\n System.out.println(order.toDebugString());\r\n for (OrderLine orderLine : order.getOrderLines())\r\n {\r\n System.out.println(\" \" + orderLine.toDebugString());\r\n }\r\n }\r\n }", "public List<LugarEntity> findall(){\n Query q = em.createQuery(\"SELECT p FROM LugarEntity p\");\n return q.getResultList();\n }", "public List<Department> findAll(){\n\t\treturn departmentRepository.findAll();\n\t}", "@GetMapping(\"/all\")\n public List<Admin> getAll(){\n return adminService.getAll();\n }", "@Override\r\n\tpublic List getAllDepartement() {\n\t\treturn session.getCurrentSession().createQuery(\"From Departement\").list();\r\n\t}", "public java.util.List<Campus> findAll();", "public find() {\n initComponents();\n loadTBL(\"select * from before_production order by date\");\n loadSupp();\n }", "@Override\n @Transactional\n public List<Patient> allPatients() {\n return patientDAO.allPatients();\n }", "public void viewAll() {\n\t\ttry {\n\t\t\tString method = \"{call CAFDB.dbo.View_All_Pilot}\"; \n\t\t\tcallable = connection.prepareCall(method); \n\t\t\t\n\t\t\t//execute the query\n\t\t\tResultSet rs = callable.executeQuery(); \n\t\t\t\n\t\t\t/**\n\t\t\t * Output from View_All_Pilot:\n\t\t\t * 1 = PilotID - int\n\t\t\t * 2 = FirstName - varchar (string)\n\t\t\t * 3 = LastName - varchar (string)\n\t\t\t * 4 = DateOfBirth - date\n\t\t\t * 5 = EmployeeNumber - varchar (string)\n\t\t\t * 6 = DateOfHire - date \n\t\t\t * 7 = DateLeftCAF - date\n\t\t\t */\n\t\t\twhile(rs.next()) {\n\t\t\t\t//append to arraylists\n\t\t\t\tpilotID.add(rs.getInt(1)); \n\t\t\t\tfirstName.add(rs.getString(2)); \n\t\t\t\tlastName.add(rs.getString(3)); \n\t\t\t\tdob.add(rs.getDate(4));\n\t\t\t\temployeeNumber.add(rs.getString(5)); \n\t\t\t\tdateOfHire.add(rs.getDate(6)); \n\t\t\t\tdateLeftCAF.add(rs.getDate(7)); \t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch (SQLException ex) {\n\t\t\tLogger.getLogger(DBViewAllClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"view all clients could not be completed\"); \n\t\t}\n\t\t\n\t\t\n\t}", "@Test\n public void test() {\n List<CateDto> list = articleService.queryCates();\n System.out.println(list.size());\n }", "@Test\n public void testFindAllPassengers() {\n System.out.println(\"findAllPassengers\");\n PassengerHandler instance = new PassengerHandler();\n ArrayList<Passenger> expResult = new ArrayList();\n for(int i = 1; i < 24; i++){\n Passenger p = new Passenger();\n p.setPassengerID(i);\n p.setForename(\"Rob\");\n p.setSurname(\"Smith\");\n p.setDOB(new Date(2018-02-20));\n p.setNationality(\"USA\");\n p.setPassportNumber(i);\n expResult.add(p);\n }\n \n ArrayList<Passenger> result = instance.findAllPassengers();\n assertEquals(expResult, result);\n }", "public interface LightTenantService {\n\n Result findAll();\n}", "@Test\r\n\tpublic void listAllTransformer() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\ttr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10));\r\n\t\ttr.save(new Transformer( null, \"Hubcap\", Team.AUTOBOT, 4,4,4,4,4,4,4,4));\r\n\t\ttr.save(new Transformer( null, \"Bluestreak\", Team.AUTOBOT, 6,6,7,9,5,2,9,7));\r\n\t\ttr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 1, 1, 1, 1, 1, 1, 1, 1));\r\n\t\ttr.save(new Transformer( null, \"Foo\", Team.DECEPTICON, 1, 1, 1, 1, 1, 1, 1, 1));\r\n\t\t\r\n\t\tmockMvc.perform(get(\"/transformers/\" ))\r\n\t\t\t\t.andExpect(status().isOk())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t.andExpect(jsonPath(\"$\").isArray())\r\n\t\t\t\t.andExpect(jsonPath(\"$\" , hasSize(5)))\r\n\t\t\t\t;\r\n\t\t\r\n\t\t\r\n\t}", "@Test\n\tpublic void testFindAll() {\n\n\t\tList<UserInfo> result = this.userinfoDao.findAll();\n\n\t}", "@Override\npublic List<Department> queryForEmp() {\n\treturn departmentMapper.queryForEmp();\n}" ]
[ "0.6702721", "0.65442383", "0.65017736", "0.6214653", "0.61669004", "0.615177", "0.61332154", "0.6076721", "0.6072476", "0.6069505", "0.6060587", "0.60308385", "0.5976061", "0.5956226", "0.59492946", "0.5892223", "0.5872938", "0.58569986", "0.5856313", "0.5855977", "0.58444595", "0.58429414", "0.58337796", "0.5826553", "0.58261955", "0.5818709", "0.5808577", "0.58020055", "0.5775548", "0.5762001", "0.5760623", "0.57570326", "0.5748841", "0.5747721", "0.5742826", "0.5735438", "0.5734334", "0.57332784", "0.57294536", "0.5728427", "0.5722498", "0.5705507", "0.5704302", "0.5704051", "0.56943583", "0.5693384", "0.56867576", "0.56830317", "0.568258", "0.5678537", "0.5677866", "0.5674385", "0.56715554", "0.5670014", "0.56597733", "0.5647973", "0.5639333", "0.56315017", "0.5619968", "0.5619135", "0.5617697", "0.5610584", "0.56062365", "0.5599236", "0.557201", "0.5571052", "0.55618966", "0.5560208", "0.555489", "0.555221", "0.5549774", "0.55414146", "0.5536846", "0.5530386", "0.5523719", "0.5522968", "0.55189234", "0.5517005", "0.55132383", "0.5513141", "0.5512966", "0.5512784", "0.5512427", "0.55079037", "0.5506562", "0.5505833", "0.5504401", "0.55043614", "0.54925966", "0.5488727", "0.5485714", "0.5481149", "0.5479829", "0.5478859", "0.5478779", "0.5475206", "0.54685754", "0.5467408", "0.545409", "0.5452759" ]
0.71218157
0
testing service layer method to view all the plants present in database using plant name
@Test void testGetAllByName() { List<Plant> plant = service.getAllByName("Tulsi"); String name = plant.get(0).getName(); assertEquals("Tulsi", name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Object[]> searchPlantDetails() {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Test\n\tvoid testgetAllPlants() {\n\t\tList<Plant> plantlist = service.getAllPlant();\n\t\tboolean result = true;\n\t\tif (plantlist.isEmpty()) {\n\t\t\tresult = false;\n\t\t}\n\t\tassertTrue(result);\n\t}", "public List<PlantDTO> fetchPlants(String filter);", "@Test\n\tvoid testGetPlant() {\n\t\tPlant plant = service.getPlant(53);\n\t\tassertNotEquals(\"Rose\", plant.getName());\n\t}", "@Override\r\n\tpublic List<Object[]> plantAdvanceSearch(String plant) {\n\t\tString hql=null;\r\n\t\tif(plant.equalsIgnoreCase(\"ALL\"))\r\n\t\t{\r\n\t\t\thql=\"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t \r\n\t\t}\r\n\t\t\r\n\t\tif(!plant.equalsIgnoreCase(\"ALL\"))\r\n\t\t{\t\r\n\t\thql=\"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p where \"+plant;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t List<Object[]> list=getHibernateTemplate().find(hql);\r\n\t\r\n\t\t\treturn list;\t\r\n\t}", "@Test\n\tvoid testGetAllByType() {\n\t\tList<Plant> plant = service.getAllByType(\"Shurbs\");\n\t\tString type = plant.get(0).getType();\n\t\tassertEquals(\"Shurbs\", type);\n\t}", "@Override\r\n\tpublic List<Object[]> searchPlantDetails(int id) {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p where p.plantId=\"\r\n\t\t\t\t\t+ id + \"\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Override\r\n\tpublic List<Planter> viewPlanter(String planterShape) throws ResourceNotFoundException{\r\n\t\tList<Planter> plist = planterRepo.viewPlanter(planterShape);\r\n\t\tif(plist != null) {\r\n\t\t\treturn plist;\r\n\t\t}\r\n\t\tthrow new ResourceNotFoundException();\r\n\t}", "@Test\n public void printPetDetailedListTest() {\n\n }", "public void viewDetailAllPlantCanHarvest() {\n\t\tint i = 1;\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\tif(!checkPlantCanHarvest()){\n\t\t\tSystem.out.println(\"No Plant\");\n\t\t}\n\t\telse{\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\tSystem.out.println( i + \" \" + p.viewDetail() + \" StatusWater : \" + p.getStatusWater()\n\t\t\t+ \" StatusHarvest : \" + p.getStatusHarvest());\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t}\n\t\t\n\t}", "public interface IPlantDAO {\n\n /**\n * Accept filter, text and return a collection of plants that contain that filter text\n * @param filter the text we want to match in our returned list of plants.\n * @return a list of plants that contain given filter text in either genus, species, cultivar or common name.\n */\n public List<PlantDTO> fetchPlants(String filter);\n\n\n}", "@Test\n\tvoid testAddPlant() {\n\t\tPlant plant = service.addPlant(new Plant(9.0, \"Hibiscus\", \"Skin Benefits\", 22.0, 8, 330.0, \"Shurbs\"));\n\t\tassertEquals(\"Hibiscus\", plant.getName());\n\n\t}", "public List<Plant> getPlants() throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tList<Plant> pl = new ArrayList<Plant>();\n\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\tstmt = conn.prepareStatement(\"SELECT * FROM garden\");\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tPlant p = createPlant(rs);\n\t\t\t\tpl.add(p);\n\t\t\t}\n\t\t} finally {\n\t\t\t// If the Statement or the Connection, hasn't been closed, we close it\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t\treturn pl;\n\n\t}", "@Override\r\n\tpublic List<Planter> viewAllPlanters() {\r\n\t\t\r\n\t\treturn planterRepo.findAll();\r\n\t}", "@Override\r\n\tpublic List<Object[]> getPlantIds() {\n\r\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId,p.plantName from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorFamiliaFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_FAMILIA, Planta.class);\n\t\tquery.setParameter(\"familia\", \"telepiatos\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 3);\n\t}", "public List<Plant> findByName(String name) throws SQLException {\n\t\t// Declaring our variables\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tList<Plant> pl = new ArrayList<Plant>();\n\n\t\t// Lets start the connection\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\t// We will add LOWER and then toLower case so it wont be case sensitive\n\t\t\tstmt = conn.prepareStatement(\"SELECT * FROM garden WHERE LOWER(plant) LIKE ?\");\n\t\t\t// Here we going to add \"%\"'s in case of the name be between other words\n\t\t\tstmt.setString(1, \"%\" + name.toLowerCase() + \"%\");\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t// Now we may have more than one result, so lets pass with a while\n\t\t\t// using method next on the result\n\t\t\twhile (rs.next()) {\n\t\t\t\t// The result wont return a Plant Object, so we first make it happen\n\t\t\t\tPlant p = createPlant(rs);\n\t\t\t\t// Now we can pass the resulting plant in his object format\n\t\t\t\tpl.add(p);\n\t\t\t}\n\t\t\trs.close();\n\t\t} finally {\n\t\t\t// If the Statement or the Connection, hasn't been closed, we close it\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t\treturn pl;\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasAprovadasFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_APROVACION, Planta.class);\n\t\tquery.setParameter(\"aprovacion\", 1);\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorGeneroFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_GENERO, Planta.class);\n\t\tquery.setParameter(\"genero\", \"carnivoras\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "List<ProductionPlanDTO> findAll();", "@GetMapping(\"/findAll\")\n public List<LabTest> findAll(){\n return labTestService.getLabTests();\n }", "@Test\n\tpublic void testSuppServices() {\n\t\tList<SuppServices> suppServices = suppServicesService.selectList();\n\n\t\tfor (SuppServices supp : suppServices) {\n\n\t\t\tSystem.out.println(supp);\n\t\t}\n\t}", "private void populatePlantList(){\n\n for (Document doc : getPlantList()) {\n String picture = doc.getString(\"picture_url\");\n String name = doc.getString(\"plant_name\");\n String description = doc.getString(\"description\");\n ArrayList sunlightArray = doc.get(\"sunlight\", ArrayList.class);\n String min_sun = sunlightArray.get(0).toString();\n String max_sun = sunlightArray.get(1).toString();\n ArrayList temperatureArray = doc.get(\"temperature\", ArrayList.class);\n String min_temp = temperatureArray.get(0).toString();\n String max_temp = temperatureArray.get(1).toString();\n ArrayList humidityArray = doc.get(\"humidity\", ArrayList.class);\n String min_humidity = humidityArray.get(0).toString();\n String max_humidity = humidityArray.get(1).toString();\n\n listOfPlants.add(new RecyclerViewPlantItem(picture, name, description, min_sun, max_sun, min_temp, max_temp, min_humidity, max_humidity));\n }\n }", "@Test\n\tpublic void findAll() {\n\t\tList<Farm> list = (List<Farm>) farmRepository.findAll();\n\n\t\tSystem.out.println(\"info:\"+ list);\n\t\tassert(true);\n\n\t}", "@Test\n public void selectAll() {\n List<ProductCategory>productCategories=categoryService.selectAll();\n for (ProductCategory productCategory:productCategories\n ) {\n System.out.println(productCategory);\n }\n }", "public DBViewAllPilot() {\n\t\ttry {\n\t\tstatement = connection.createStatement(); \n\t\tviewAll(); //call the viewAll function; \n\t\t\n\t}catch(SQLException ex) {\n\t\tSystem.out.println(\"Database connection failed DBViewAllAircraft\"); \n\t}\n}", "@Test\n\tvoid testDeletePlant() {\n\t\tList<Plant> plant = service.deletePlant(50);\n\t\tassertFalse(plant.isEmpty());\n\t}", "protected void listTenants() {\n if (!MULTITENANT_FEATURE_ENABLED.contains(dbType)) {\n return;\n }\n Db2Adapter adapter = new Db2Adapter(connectionPool);\n try (ITransaction tx = TransactionFactory.openTransaction(connectionPool)) {\n try {\n GetTenantList rtListGetter = new GetTenantList(adminSchemaName);\n List<TenantInfo> tenants = adapter.runStatement(rtListGetter);\n \n System.out.println(TenantInfo.getHeader());\n tenants.forEach(t -> System.out.println(t.toString()));\n } catch (DataAccessException x) {\n // Something went wrong, so mark the transaction as failed\n tx.setRollbackOnly();\n throw x;\n }\n }\n }", "private void findPlantsList() {\n try {\n\n RemoteMongoCollection<Document> plants = mongoDbSetup.getCollection(getString(R.string.eye_plant_plants));\n RemoteMongoIterable<Document> plantIterator = plants.find();\n\n final ArrayList<Document> docsToUser = new ArrayList<>();\n\n plantIterator\n .forEach(document -> {\n docsToUser.add(document);\n setPlantList(docsToUser);\n })\n .addOnFailureListener(e -> Log.e(TAG, \"Error\" + e.getCause()))\n\n .addOnCompleteListener(task -> {\n\n if (getPlantList().size() == docsToUser.size() && getPlantList().size() != 0) {\n setUpRecyclerView();\n }\n });\n } catch (Throwable e) {\n Log.e(TAG, \"NullPointerException: \" + e.getMessage());\n }\n }", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "public static void showAllHouse(){\n ArrayList<House> houseList = getListFromCSV(FuncGeneric.EntityType.HOUSE);\n displayList(houseList);\n showServices();\n }", "public abstract List<LocationDto> viewAll();", "@Test\n\tpublic void getStudyGermplasmListFromDb() {\n\n\t\tfinal Session currentSession = Mockito.mock(Session.class);\n\t\tfinal Criteria mockCriteria = Mockito.mock(Criteria.class);\n\t\twhen(currentSession.createCriteria(ListDataProject.class)).thenReturn(mockCriteria);\n\t\twhen(mockCriteria.createAlias(\"list\", \"l\")).thenReturn(mockCriteria);\n\t\twhen(mockCriteria.add(any(SimpleExpression.class))).thenReturn(mockCriteria);\n\n\t\tfinal PodamFactory factory = new PodamFactoryImpl();\n\n\t\tfinal GermplasmList germplasmList = new GermplasmList();\n\t\tfinal ListDataProject listDataProject = new ListDataProject();\n\n\t\tfactory.populatePojo(germplasmList, GermplasmList.class);\n\t\tfactory.populatePojo(listDataProject, ListDataProject.class);\n\n\t\tlistDataProject.setList(germplasmList);\n\t\tfinal List<ListDataProject> queryResults = new ArrayList<ListDataProject>();\n\t\tqueryResults.add(listDataProject);\n\n\t\twhen(mockCriteria.list()).thenReturn(queryResults);\n\n\t\tfinal StudyGermplasmDto expectedGermplasm = this.getResultingStudyGermplasmDto(germplasmList, listDataProject);\n\n\t\tfinal StudyGermplasmListServiceImpl studyGermplasmListServiceImpl = new StudyGermplasmListServiceImpl(currentSession);\n\t\tfinal List<StudyGermplasmDto> actualGermplasmList = studyGermplasmListServiceImpl.getGermplasmList(2013);\n\n\t\tassertEquals(\"The two lists must be equal.\", Collections.<StudyGermplasmDto>singletonList(expectedGermplasm), actualGermplasmList);\n\t}", "@GetMapping(\"/api/laptops\")\n public List<Laptop> findAll(){\n\n return laptopRepository.findAll();\n }", "private void getPlanSkus() {\n\n List<PlanSkuVo> planList = new ArrayList<>();\n final Session session = sessionManager.getSession();\n\n\n PreparedStatement statement = session.prepare(\"SELECT * FROM PLANSKU\");\n BoundStatement boundStatement = statement.bind();\n ResultSet result = session.execute(boundStatement);\n\n if (result == null){\n log.info(\"No Planskus found\");\n// throw new NoDataAvailableException(\"There are no Plans available right now\");\n }\n else {\n log.info(\"Populating results for getPlanSkus\");\n result.forEach(row -> {\n PlanSkuVo planSkuVo = new PlanSkuVo(row.getString(\"product_id\"),\n row.getString(\"sku_id\"),\n row.getString(\"prod_desc\"),\n row.getString(\"prod_frenchname\"),\n row.getString(\"prod_name\"),\n row.getMap(\"sku_features\", String.class, String.class),\n row.getInt(\"sku_order\"));\n planList.add(planSkuVo);\n });\n\n ObjectMapper mapper = new ObjectMapper();\n String jsonInString =\"\";\n try {\n jsonInString = mapper.writeValueAsString(planList);\n } catch (JsonProcessingException e) {\n log.info(\"error in forming json \");\n }\n\n getSender().tell(jsonInString, ActorRef.noSender());\n }\n\n }", "public List<Dept> selectDeptByNameAndLoc(@Param(\"dname\")String dname, @Param(\"loc\")String loc);", "public find() {\n initComponents();\n loadTBL(\"select * from before_production order by date\");\n loadSupp();\n }", "@Test\n\t \t\n\t public void listAll() {\n\t \n\t List<Persona> list = personaDao.listPersons();\n\t \n\t Assert.assertNotNull(\"Error listado\", list);\n\n\t }", "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}", "public List queryTest() {\n\t\tList list = null;\n\t\tthis.init();\n\t\t try {\n\t\t\t list= sqlMap.queryForList(\"getAllTest\");\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 list;\n\t\t\n\t}", "@Override\n\tpublic List<TestDTO> getTest() {\n\t\t\n\t\t\n\t\treturn sessionTemplate.selectList(\"get_test\");\n\t}", "@Override\n\tpublic ProductBean view(String pname) {\n\t\treturn session.selectOne(namespace+\".view\", pname);\n\t}", "@Test\n public void shouldListExpectedPlan() {\n OrgPlansListPage thePlansPage = open(OrgPlansListPage.class, organization.getName());\n thePlansPage.entriesContainer().shouldHave(text(plan.getName()));\n }", "@Override\r\n\tpublic String selectTest() {\n\t\tString retVal = \"\";\r\n\t\t\r\n\t\tMybatisTestVo vo = mapper.selectTest();\r\n\t\t\r\n\t\tSystem.out.println(\"vo number : \" + vo.getMemberNo());\r\n\t\tSystem.out.println(\"vo name : \" + vo.getMemberName());\r\n\t\t\r\n\t\tretVal = vo.getMemberName();\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "@Test\n public void testJPA3ListAll (){\n Iterable<TruckInfo> trucklist = truckRepo.findAll();\n\n\n\n\n }", "@Test\n\t// @Disabled\n\tvoid testViewAllCustomer() {\n\t\tCustomer customer1 = new Customer(1, \"tom\", \"son\", \"951771122\", \"[email protected]\");\n\t\tCustomer customer2 = new Customer(2, \"jerry\", \"lee\", \"951998122\", \"[email protected]\");\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tcustomerList.add(customer2);\n\t\tMockito.when(custRep.findAll()).thenReturn(customerList);\n\t\tList<Customer> customer = custService.findAllCustomer();\n\t\tassertEquals(2, customer.size());\n\t}", "@Test\n public void testGetAllPharmacies() throws Exception {\n System.out.println(\"getAllPharmacies\");\n\n ManagePharmaciesController instance = new ManagePharmaciesController();\n LinkedList<PharmacyDTO> expResult= new LinkedList<>();\n LinkedList<PharmacyDTO> result = instance.getAllPharmacies();\n expResult.add(getPharmacyDTOTest(\"a\"));\n expResult.add(getPharmacyDTOTest(\"b\"));\n expResult.add(getPharmacyDTOTest(\"c\"));\n\n LinkedList<Pharmacy> resultDB = new LinkedList<>();\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"a\")));\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"b\")));\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"c\")));\n PharmacyDB db = Mockito.mock(PharmacyDB.class);\n PharmaDeliveriesApp.getInstance().getPharmacyService().setPharmacyDB(db);\n when(db.getAllPharmacies()).thenReturn(resultDB);\n result = instance.getAllPharmacies();\n Assertions.assertEquals(result.size(), expResult.size());\n Assertions.assertEquals(result.get(0).getName(), expResult.get(0).getName());\n Assertions.assertEquals(result.get(1).getName(), expResult.get(1).getName());\n Assertions.assertEquals(result.get(2).getName(), expResult.get(2).getName());\n \n// int i = 0;\n// for(PharmacyDTO p : result){\n// Assertions.assertEquals(p.getName(), expResult.get(i).getName());\n// i++;\n// }\n \n when(db.getAllPharmacies()).thenReturn(null);\n Assertions.assertNull(instance.getAllPharmacies());\n }", "@GetMapping(path=\"/showData\")\n public List<Person> showData() {\n Iterable<Person> myPerson = personRepository.findAll();\n List<Person> listOfPersons = new ArrayList<>();\n myPerson.forEach((Person person) -> {\n listOfPersons.add(person);\n });\n return listOfPersons;\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"department\"})\n public void _2_2_1_getAllDept() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n c_1.getId().toString()+\n \"/departments\")\n .header(AUTHORIZATION,ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.departments\",hasSize(4)));\n }", "@DisplayName(\"GET /drivers.json and save result to pojo\")\n @Test\n public void testDrivers(){\n JsonPath jp = get(\"/drivers.json\").jsonPath() ;\n Driver d1 = jp.getObject(\"MRData.DriverTable.Drivers[0]\", Driver.class) ;\n System.out.println(\"d1 = \" + d1);\n\n // Get all drivers as List<Driver>\n List<Driver> allDriver = jp.getList(\"MRData.DriverTable.Drivers\" , Driver.class) ;\n System.out.println(\"allDriver = \" + allDriver);\n\n // Print the name of all American drivers in this list\n for (Driver driver : allDriver) {\n if(driver.getNationality().equals(\"American\")){\n System.out.println(\"driver.getGivenName() = \" + driver.getGivenName());\n }\n }\n\n\n\n\n }", "@Override\r\n\t@Transactional\r\n\tpublic Planter viewPlanter(int planterId) throws ResourceNotFoundException {\r\n\t\tOptional<Planter> pl = planterRepo.findById(planterId);\r\n\t\tif(pl.isPresent()) {\r\n\t\t\treturn pl.get();\r\n\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new ResourceNotFoundException(\"No Planter found with the Id\");\r\n\t\t}\r\n\t}", "@Test\n public void getAllPersons() {\n List<Person> persons = personService.getAllPersons();\n\n //Assert\n assertEquals(\"Fulano\", persons.get(0).getFirstName());\n assertEquals(\"John\", persons.get(1).getFirstName());\n }", "@Override\n\tpublic List<Planification> listPlan() {\n\t\treturn dao.listPlan();\n\t}", "@Test\n\t// @Disabled\n\tvoid testViewCustomerbyVehicleLocation() {\n\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"[email protected]\");\n\t\tVehicle vehicle1 = new Vehicle(101, \"TN02J0666\", \"bus\", \"A/C\", \"prime\", \"chennai\", \"13\", 600.0, 8000.0);\n\t\tVehicle vehicle2 = new Vehicle(102, \"TN02J0776\", \"car\", \"nonA/C\", \"prime\", \"chennai\", \"13\", 600.0, 8000.0);\n\t\tList<Vehicle> vehicleList =new ArrayList<>();\n\t\tvehicleList.add(vehicle1);\n\t\tvehicleList.add(vehicle2);\n\t\tcustomer1.setVehicle(vehicleList);\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tMockito.when(custRep.findbyVehicleLocation(\"chennai\")).thenReturn(customerList);\n\t\tList<Customer> cust3 = custService.findbyVehicleLocation(\"chennai\");\n\t\tassertEquals(1, cust3.size());\n\t}", "public Plant(String plantName) {\n this.plantName = plantName;\n }", "@Test\r\n public void testSelectAll() {\r\n System.out.println(\"AbonentDAL selectAll\");\r\n AbonentDAL instance = new AbonentDAL();\r\n List<Abonent> result = instance.selectAll();\r\n assertTrue(result!=null && result.size()>0);\r\n }", "@Test(priority = 1, groups= {\"regression\",\"smoke\"})\r\n\tpublic void PrintHospitals()\r\n\t{\r\n\t\tlogger= report.createTest(\"Printing Hospitals as per requirement\");\r\n\t\tDisplayHospitalNames hp=Base.nextPage1();\r\n\t\thp.selectLocation();\r\n\t\thp.selectHospital();\r\n\t\thp.applyFilters();\r\n\t\thp.hospitals();\r\n\t\thp.Back();\r\n\t}", "@Override\n public List<Plan> listAll() {\n List<Plan> plans = new ArrayList<>();\n planRepository.findAll().forEach(plans::add);\n return plans;\n }", "List<Flight> findFlightByName(String name) throws DataAccessException;", "@Test\n public void retriveAllTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n List<Servizio> lista = manager.retriveAll();\n assertEquals(7,lista.size(),\"It should return a list of length 7\");\n }", "public Departmentdetails getDepartmentByName(String departmentName);", "@Test\n\tvoid findDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorfind = new DoctorDetail();\n\t\tdoctorfind.setSpecialist(\"cardioc\");\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).doctors(doctorfind.getSpecialist());\n\t\tmockMvc.perform(get(\"/doctor/find?specialist=/{specialist}\", \"cardioc\")).andExpect(status().isOk());\n\t}", "public List<Dept> list() {\n try {\n List<Dept> dept = new ArrayList<Dept>();\n PreparedStatement stmt = this.connection\n .prepareStatement(\"select * from dept_sr\"); //here\n\n ResultSet rs = stmt.executeQuery();\n\n while (rs.next()) {\n // adiciona a tarefa na lista\n dept.add(populateDept(rs));\n }\n\n rs.close();\n stmt.close();\n\n return dept;\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "@Test\n public void findAllEngineerPositions() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }", "public String viewDetailPlant(int index) {\n\t\tif(getListofplant().size() == 0){\n\t\t\treturn \"No Plant\";\n\t\t}\n\t\telse{\n\t\t\treturn getListofplant().get(index).viewDetail() + \" StatusWater : \" + getListofplant().get(index).getStatusWater() \n\t\t\t\t\t+ \" StatusHarvest : \" + getListofplant().get(index).getStatusHarvest();\n\t\t}\n\t}", "@Test\n\tvoid testGetDepartmentsByCrit() {\n\t\tDepartmentDAO ddao = new DepartmentDAO();\n\t\tList<Department> ls = ddao.getDepartmentsByCrit();\n\t\tIterator<Department> it = ls.iterator();\n\n\t\twhile (it.hasNext()) {\n\t\t\tDepartment dpt = it.next();\n\t\t\tSystem.out.println(dpt.getDepartment_name() + \" \" + dpt.getLocation_id() + \" \" + dpt.getManager_id());\n\t\t}\n\t\t// assertEquals(203, ls.get(0).getManager_id());\n\t}", "@Override\r\n public List<Dept> deptList() {\n return sqlSession.selectList(\"deptDAO.deptList\");\r\n }", "@Test\n public void findByNameShouldReturnCategory() {\n \n List<Doctor> doctors = drepository.findByName(\"Jim Morgan\");\n assertThat(doctors).hasSize(1);\n assertThat(doctors.get(0).getDoctorid()).isNotNull();\n }", "@Test \n public void GetTrustInfoFromWizardTest(){\n\tlogger.info(\"--------------------start--GetTrustInfoFromWizardTest---------------------------------------------------------------------------------------------------\");\n// \tList<District> list=districtService.GetCityListByProvinceCode(\"110000\");\n\tList<TrustInfo> list=trustManagementService.GetTrustInfoFromWizard(\"9\");\n\tfor (TrustInfo trustInfo : list) {\n\t\tlogger.info(\"查找结果getItemValue:\" + trustInfo.getItemValue()); \n\t\tlogger.info(\"查找结果getItemAliasValue:\" + trustInfo.getItemAliasValue()); \n\t}\n logger.info(\"--------------------end----GetTrustInfoFromWizardTest-------------------------------------------------------------------------------------------------\");\n }", "@Test public void shouldReturnTheToolIntTheListWhenSearchedByItsName() {\n\t\tgiven.imInTheMainPage();\n\t\twhen.searchByAToolName(TOOLS.ADPWEB.toolName());\n\t\tthen.mySearchWillReturnTheTools(TOOLS.ADPWEB);\n\t}", "@Test\r\n public void UserServiceTest_RetrievePresenter()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getPresenterList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@Test\n void getAllSuccess(){\n\n List<CompositionInstrument> compositionInstruments = genericDao.getAll();\n assertEquals(4, compositionInstruments.size());\n }", "public List<Departmentdetails> getDepartmentDetails();", "public java.util.List<PlanoSaude> findAll();", "@Test\n public void findAll() {\n // SalesRep:\n List<SalesRep> salesRepList = salesRepRepository.findAll();\n assertEquals(2, salesRepList.size());\n assertEquals(\"Pepe\", salesRepList.get(0).getName());\n // Leads:\n List<Lead> leadList = leadRepository.findAll();\n assertEquals(3, leadList.size());\n assertEquals(\"María\", leadList.get(0).getName());\n // Opportunities:\n List<Opportunity> opportunityList = opportunityRepository.findAll();\n assertEquals(3, opportunityList.size());\n assertEquals(5, opportunityList.get(0).getQuantity());\n // Account:\n List<Account> accountList = accountRepository.findAll();\n assertEquals(2, accountList.size());\n assertEquals(20, accountList.get(0).getEmployeeCount());\n }", "@Override\n\tpublic List<PersonVO> test() {\n\t\tSystem.out.println(\"Service 접근\");\n\t\treturn mongoDAO.test();\n\t}", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@GetMapping(value = \"/listTest\")\n public List<Test> listTest() {\n return testService.findAll();\n }", "@Test\r\n\tpublic void findAllMaterialCategoryTest() {\r\n\t\t// Your Code Here\r\n\r\n\t}", "@Test\r\n @Ignore\r\n public void testGetPlantoes() {\r\n System.out.println(\"getPlantoes\");\r\n EnfermeiroDaoImpl instance = new EnfermeiroDaoImpl();\r\n List<Enfermeiro> expResult = null;\r\n List<Enfermeiro> result = instance.getPlantoes();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n void getStations() {\r\n List<Station> stations = model.getStations();\r\n assertNotNull(stations);\r\n assertEquals(124, stations.size());\r\n assertEquals(stations.get(0).getName(), \"OakGrove\");\r\n assertEquals(stations.get(52).getName(), \"Prudential\");\r\n assertEquals(stations.get(123).getName(), \"Braintree\");\r\n }", "@Override\n public void showDiaryFromDB() {\n diaryPresenter.showDiaryFromDB();\n }", "public List getAllStu();", "public interface PlanDao extends JpaRepository<Plan, Integer> {\n List<Plan> findByQrPass(String pass);\n}", "@GetMapping(\"/households\")\n public ResultEntity<List<ItemDTO>> getAllHousehold()\n {\n\n return itemService.getItemsBySubCategory(ConstantUtil.TYPE_SALE_RENT,\"Household\");\n }", "@SneakyThrows\n public static void main(String[] args) {\n List<Developer> all = new DeveloperServiceImpl().findAll();\n System.out.println(all.size());\n System.out.println(all.get(50));\n\n// Developer developerServiceByID = developerService.findByID(1L);\n// System.out.println(developerServiceByID);\n// GetQueryServiceImpl getQueryServiceImpl = new GetQueryServiceImpl();\n//\n// // Новый разработчик\n// DeveloperServiceImpl developerService = new DeveloperServiceImpl();\n// developerService.create(Developer.builder()\n// .developerID(14L)\n// .companyID(2L)\n// .age(23L)\n// .name(\"Рыжий\")\n// .email(\"[email protected]\")\n// .gender(\"Male\")\n// .numberPhone(12345L)\n// .salary(1111L)\n// .build());\n\n // Новый проект\n// ProjectServiceImpl projectService = new ProjectServiceImpl();\n// projectService.create(Project.builder()\n// .id(4L)\n// .name(\"New Project\")\n// .cost(123456L)\n// .companyID(3L)\n// .customerID(1L)\n// .build());\n\n // Новый клиент\n// CustomerServiceImpl customerService = new CustomerServiceImpl();\n// customerService.create(Customer.builder()\n// .id(4L)\n// .name(\"Customer4\")\n// .budget(1000000L)\n// .companyID(2L)\n// .build());\n\n // изменить разработчика\n // default -(4,'Витя', 27, 'Male', '[email protected]', 8765434,1,5600),\n// developerService.update(4L, Developer.builder()\n// .name(\"newName\")\n// .age(33L)\n// .numberPhone(1234567L)\n// .companyID(1L)\n// .salary(600L)\n// .gender(\"Male\")\n// .email(\"[email protected]\")\n// .build());\n\n // удалить - разработчика/проект/клиента\n// developerService.delete(14L);\n// projectService.delete(4L);\n// customerService.delete(4L);\n\n // все юзеры 1-ого проекта по айди - done\n// System.out.println(getQueryServiceImpl.getDevelopersByProjectID(1L));\n// // сумма всех зарплат 1-ого проекта - done\n// System.out.println(getQueryServiceImpl.getSumSalariesByProjectID(1L));\n// // список всех Java - done\n// System.out.println(getQueryServiceImpl.getDevelopersByActivity(\"Java\"));\n// // список юзеров middle - done\n// System.out.println(getQueryServiceImpl.getDevelopersByLevel(\"middle\"));\n// //список проектов в формате: дата создания - название проекта - количество разработчиков на этом проекте.\n// System.out.println(getQueryServiceImpl.projectsWithCountDevelopers());\n\n\n// Map<Long, Developer> testMap = new HashMap<>();\n// Developer developer = Developer.builder()\n// .developerID(20L)\n// .name(\"User1\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer.getDeveloperID(), developer);\n//\n// Developer developer1 = Developer.builder()\n// .developerID(21L)\n// .name(\"User2\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer1.getDeveloperID(), developer1);\n//\n// Developer developer2 = Developer.builder()\n// .developerID(22L)\n// .name(\"User3\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer2.getDeveloperID(), developer2);\n//\n// System.out.println(testMap);\n// Stream<Developer> developerStream = testMap.values().stream();\n// Stream<Developer> developerStream1 = developerStream.filter((testMap1) -> developer.getName().contains(\"1\"));\n// System.out.println(developerStream);\n// System.out.println(Arrays.toString(developerStream1.toArray()));\n\n }", "List<VitalDTO> findAll();", "@Override\r\n\tpublic List<shopPet> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "@Test\r\n\tpublic void listAllTransformer() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\ttr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10));\r\n\t\ttr.save(new Transformer( null, \"Hubcap\", Team.AUTOBOT, 4,4,4,4,4,4,4,4));\r\n\t\ttr.save(new Transformer( null, \"Bluestreak\", Team.AUTOBOT, 6,6,7,9,5,2,9,7));\r\n\t\ttr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 1, 1, 1, 1, 1, 1, 1, 1));\r\n\t\ttr.save(new Transformer( null, \"Foo\", Team.DECEPTICON, 1, 1, 1, 1, 1, 1, 1, 1));\r\n\t\t\r\n\t\tmockMvc.perform(get(\"/transformers/\" ))\r\n\t\t\t\t.andExpect(status().isOk())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t.andExpect(jsonPath(\"$\").isArray())\r\n\t\t\t\t.andExpect(jsonPath(\"$\" , hasSize(5)))\r\n\t\t\t\t;\r\n\t\t\r\n\t\t\r\n\t}", "@Test\n public void getStationUsesStationDaoToRetrieveStationByName()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.getStation(SOME_NAME);\n\n verify(mockStationDao).getStation(anyString());\n }", "@Override\r\n\tpublic List prodAllseach() {\n\t\treturn adminDAO.seachProdAll();\r\n\t}", "@Test\n public void test2(){\n\n List<FitActivity> upper = fitActivityRepository.findAllByBodyPart(\"Upper\");\n for (FitActivity fitActivity : upper) {\n System.out.println(fitActivity.getName());\n\n }\n\n }", "@Transactional(readOnly = true)\n public List<TechPracticesDTO> findAll() {\n log.debug(\"Request to get all TechPractices\");\n return techPracticesRepository.findAll().stream()\n .map(techPracticesMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public void viewAll() {\n\t\ttry {\n\t\t\tString method = \"{call CAFDB.dbo.View_All_Pilot}\"; \n\t\t\tcallable = connection.prepareCall(method); \n\t\t\t\n\t\t\t//execute the query\n\t\t\tResultSet rs = callable.executeQuery(); \n\t\t\t\n\t\t\t/**\n\t\t\t * Output from View_All_Pilot:\n\t\t\t * 1 = PilotID - int\n\t\t\t * 2 = FirstName - varchar (string)\n\t\t\t * 3 = LastName - varchar (string)\n\t\t\t * 4 = DateOfBirth - date\n\t\t\t * 5 = EmployeeNumber - varchar (string)\n\t\t\t * 6 = DateOfHire - date \n\t\t\t * 7 = DateLeftCAF - date\n\t\t\t */\n\t\t\twhile(rs.next()) {\n\t\t\t\t//append to arraylists\n\t\t\t\tpilotID.add(rs.getInt(1)); \n\t\t\t\tfirstName.add(rs.getString(2)); \n\t\t\t\tlastName.add(rs.getString(3)); \n\t\t\t\tdob.add(rs.getDate(4));\n\t\t\t\temployeeNumber.add(rs.getString(5)); \n\t\t\t\tdateOfHire.add(rs.getDate(6)); \n\t\t\t\tdateLeftCAF.add(rs.getDate(7)); \t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch (SQLException ex) {\n\t\t\tLogger.getLogger(DBViewAllClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"view all clients could not be completed\"); \n\t\t}\n\t\t\n\t\t\n\t}", "@Test\n\tpublic void testfindHouseRoomWithBedsList(){\n\t\tSystem.out.println();\n\t}", "@Test\n public void testListProducts() {\n List<Product> allProducts = testDao.listProducts();\n\n // First check the general contents of the list\n assertNotNull(allProducts, \"The list of products must not null\");\n assertEquals(4, allProducts.size(),\"List of products should have 4 products.\");\n \n // Then the specifics\n// assertTrue(testDao.getAllMonsters().contains(firstMonster),\n// \"The list of monsters should include Vladmir.\");\n// assertTrue(testDao.getAllMonsters().contains(secondMonster),\n// \"The list of monsters should include Warwick.\");\n }", "@Test\n public void test3FindAll() {\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n List<SpecialityDTO> lista=(List<SpecialityDTO>)dao.findAll(); \n System.out.println(lista);\n assertTrue(!lista.isEmpty());\n }", "@Override\n\t//查询考试信息\n\tpublic List<TestSuite> publishedOut() {\n\t\tString hql=\"from TestSuite\";\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<TestSuite> list=(List<TestSuite>) this.getHibernateTemplate().find(hql);\n\t\tif (list.size()>0) {\n\t\t\treturn list;\n\t\t}else {\n\t\t\tSystem.out.println(\"查询失败!\");\n\t\t\treturn null;\n\t\t}\n\t}", "@Test\n\tpublic void testGetAllPatient() {\n\t\tfor (int i =0; i<10;i++){\n\t\t assertEquals(wraRestServer.listPatient().get(i).getId(),patientDao.getAll().get(i).getId());\n\t}\n\t}", "@Test\n void contextLoads() {\n\n List<BrandEntity> list=brandService.list(new QueryWrapper<BrandEntity>().eq(\"brand_id\",1));\n list.stream().forEach(item->{\n System.out.println(item);\n });\n }" ]
[ "0.7016748", "0.69380385", "0.6696785", "0.66837597", "0.64995795", "0.63183653", "0.62370765", "0.62369376", "0.6207595", "0.6092196", "0.5962542", "0.5938247", "0.5898643", "0.58418375", "0.58241564", "0.5823301", "0.5792906", "0.57630855", "0.5754405", "0.57506865", "0.5730946", "0.5680973", "0.5679867", "0.5662407", "0.5653286", "0.56522447", "0.55962104", "0.5595908", "0.5589649", "0.558518", "0.5573907", "0.5565371", "0.5565328", "0.55625904", "0.55534196", "0.5546032", "0.5532191", "0.55224526", "0.5520213", "0.55178076", "0.5490934", "0.5484508", "0.54822356", "0.54777354", "0.5468006", "0.54656357", "0.54654175", "0.546095", "0.5450579", "0.54475576", "0.54398906", "0.5431923", "0.5430032", "0.54247594", "0.54159075", "0.54120153", "0.5404049", "0.53775835", "0.537402", "0.5371175", "0.53704005", "0.53644466", "0.5356762", "0.53468883", "0.53383327", "0.5322364", "0.5319751", "0.53173167", "0.5308468", "0.5306637", "0.5300958", "0.530033", "0.52958775", "0.5290934", "0.52881575", "0.5285241", "0.52789783", "0.5278426", "0.52743554", "0.5274174", "0.52670246", "0.52548236", "0.5254303", "0.5242105", "0.5234013", "0.5232199", "0.52302635", "0.523001", "0.5225429", "0.5224987", "0.5223073", "0.5222982", "0.52209336", "0.52161634", "0.5215595", "0.52153003", "0.52057564", "0.5205461", "0.5203848", "0.5189514" ]
0.7246438
0
testing service layer method to view all the plants present in database using plant type
@Test void testGetAllByType() { List<Plant> plant = service.getAllByType("Shurbs"); String type = plant.get(0).getType(); assertEquals("Shurbs", type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid testgetAllPlants() {\n\t\tList<Plant> plantlist = service.getAllPlant();\n\t\tboolean result = true;\n\t\tif (plantlist.isEmpty()) {\n\t\t\tresult = false;\n\t\t}\n\t\tassertTrue(result);\n\t}", "@Override\r\n\tpublic List<Object[]> searchPlantDetails() {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public List<PlantDTO> fetchPlants(String filter);", "@Test\n\tvoid testGetPlant() {\n\t\tPlant plant = service.getPlant(53);\n\t\tassertNotEquals(\"Rose\", plant.getName());\n\t}", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "@Override\r\n\tpublic List<Object[]> plantAdvanceSearch(String plant) {\n\t\tString hql=null;\r\n\t\tif(plant.equalsIgnoreCase(\"ALL\"))\r\n\t\t{\r\n\t\t\thql=\"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t \r\n\t\t}\r\n\t\t\r\n\t\tif(!plant.equalsIgnoreCase(\"ALL\"))\r\n\t\t{\t\r\n\t\thql=\"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p where \"+plant;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t List<Object[]> list=getHibernateTemplate().find(hql);\r\n\t\r\n\t\t\treturn list;\t\r\n\t}", "@Test\n public void printPetDetailedListTest() {\n\n }", "public void viewDetailAllPlantCanHarvest() {\n\t\tint i = 1;\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\tif(!checkPlantCanHarvest()){\n\t\t\tSystem.out.println(\"No Plant\");\n\t\t}\n\t\telse{\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\tSystem.out.println( i + \" \" + p.viewDetail() + \" StatusWater : \" + p.getStatusWater()\n\t\t\t+ \" StatusHarvest : \" + p.getStatusHarvest());\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic List<Object[]> searchPlantDetails(int id) {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p where p.plantId=\"\r\n\t\t\t\t\t+ id + \"\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Override\r\n\tpublic List<Planter> viewPlanter(String planterShape) throws ResourceNotFoundException{\r\n\t\tList<Planter> plist = planterRepo.viewPlanter(planterShape);\r\n\t\tif(plist != null) {\r\n\t\t\treturn plist;\r\n\t\t}\r\n\t\tthrow new ResourceNotFoundException();\r\n\t}", "List<ProductionPlanDTO> findAll();", "public interface IPlantDAO {\n\n /**\n * Accept filter, text and return a collection of plants that contain that filter text\n * @param filter the text we want to match in our returned list of plants.\n * @return a list of plants that contain given filter text in either genus, species, cultivar or common name.\n */\n public List<PlantDTO> fetchPlants(String filter);\n\n\n}", "@Override\r\n\tpublic List<Planter> viewAllPlanters() {\r\n\t\t\r\n\t\treturn planterRepo.findAll();\r\n\t}", "public List<Plant> getPlants() throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tList<Plant> pl = new ArrayList<Plant>();\n\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\tstmt = conn.prepareStatement(\"SELECT * FROM garden\");\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tPlant p = createPlant(rs);\n\t\t\t\tpl.add(p);\n\t\t\t}\n\t\t} finally {\n\t\t\t// If the Statement or the Connection, hasn't been closed, we close it\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t\treturn pl;\n\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasAprovadasFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_APROVACION, Planta.class);\n\t\tquery.setParameter(\"aprovacion\", 1);\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "@Test\n\tvoid testAddPlant() {\n\t\tPlant plant = service.addPlant(new Plant(9.0, \"Hibiscus\", \"Skin Benefits\", 22.0, 8, 330.0, \"Shurbs\"));\n\t\tassertEquals(\"Hibiscus\", plant.getName());\n\n\t}", "public abstract List<LocationDto> viewAll();", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorFamiliaFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_FAMILIA, Planta.class);\n\t\tquery.setParameter(\"familia\", \"telepiatos\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 3);\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorGeneroFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_GENERO, Planta.class);\n\t\tquery.setParameter(\"genero\", \"carnivoras\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "@Test\n\t// @Disabled\n\tvoid testViewCustomerbyVehicleType() {\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"[email protected]\");\n\t\tVehicle vehicle1 = new Vehicle(101, \"TN02J0666\", \"car\", \"A/C\", \"prime\", \"goa\", \"13\", 600.0, 8000.0);\n\t\tVehicle vehicle2 = new Vehicle(102, \"TN02J0666\", \"car\", \"A/C\", \"prime\", \"goa\", \"13\", 600.0, 8000.0);\n\t\tList<Vehicle> vehicleList =new ArrayList<>();\n\t\tvehicleList.add(vehicle1);\n\t\tvehicleList.add(vehicle2);\n\t\tcustomer1.setVehicle(vehicleList);\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tMockito.when(custRep.findbyType(\"car\")).thenReturn(customerList);\n\t\tList<Customer> cust3 = custService.findbyType(\"car\");\n\t\tassertEquals(1, cust3.size());\n\t}", "@Test\n public void selectAll() {\n List<ProductCategory>productCategories=categoryService.selectAll();\n for (ProductCategory productCategory:productCategories\n ) {\n System.out.println(productCategory);\n }\n }", "@Test\n\tpublic void findAll() {\n\t\tList<Farm> list = (List<Farm>) farmRepository.findAll();\n\n\t\tSystem.out.println(\"info:\"+ list);\n\t\tassert(true);\n\n\t}", "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\r\n\tpublic List<Object[]> getPlantIds() {\n\r\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId,p.plantName from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Test\n\tpublic void testSuppServices() {\n\t\tList<SuppServices> suppServices = suppServicesService.selectList();\n\n\t\tfor (SuppServices supp : suppServices) {\n\n\t\t\tSystem.out.println(supp);\n\t\t}\n\t}", "@Test\r\n @Ignore\r\n public void testGetPlantoes() {\r\n System.out.println(\"getPlantoes\");\r\n EnfermeiroDaoImpl instance = new EnfermeiroDaoImpl();\r\n List<Enfermeiro> expResult = null;\r\n List<Enfermeiro> result = instance.getPlantoes();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public java.util.List<PlanoSaude> findAll();", "@Override\n\tpublic List<TestDTO> getTest() {\n\t\t\n\t\t\n\t\treturn sessionTemplate.selectList(\"get_test\");\n\t}", "protected void listTenants() {\n if (!MULTITENANT_FEATURE_ENABLED.contains(dbType)) {\n return;\n }\n Db2Adapter adapter = new Db2Adapter(connectionPool);\n try (ITransaction tx = TransactionFactory.openTransaction(connectionPool)) {\n try {\n GetTenantList rtListGetter = new GetTenantList(adminSchemaName);\n List<TenantInfo> tenants = adapter.runStatement(rtListGetter);\n \n System.out.println(TenantInfo.getHeader());\n tenants.forEach(t -> System.out.println(t.toString()));\n } catch (DataAccessException x) {\n // Something went wrong, so mark the transaction as failed\n tx.setRollbackOnly();\n throw x;\n }\n }\n }", "@GetMapping(\"/api/laptops\")\n public List<Laptop> findAll(){\n\n return laptopRepository.findAll();\n }", "@GetMapping(\"/findAll\")\n public List<LabTest> findAll(){\n return labTestService.getLabTests();\n }", "@Test\n\t \t\n\t public void listAll() {\n\t \n\t List<Persona> list = personaDao.listPersons();\n\t \n\t Assert.assertNotNull(\"Error listado\", list);\n\n\t }", "@Test\n\tpublic void getStudyGermplasmListFromDb() {\n\n\t\tfinal Session currentSession = Mockito.mock(Session.class);\n\t\tfinal Criteria mockCriteria = Mockito.mock(Criteria.class);\n\t\twhen(currentSession.createCriteria(ListDataProject.class)).thenReturn(mockCriteria);\n\t\twhen(mockCriteria.createAlias(\"list\", \"l\")).thenReturn(mockCriteria);\n\t\twhen(mockCriteria.add(any(SimpleExpression.class))).thenReturn(mockCriteria);\n\n\t\tfinal PodamFactory factory = new PodamFactoryImpl();\n\n\t\tfinal GermplasmList germplasmList = new GermplasmList();\n\t\tfinal ListDataProject listDataProject = new ListDataProject();\n\n\t\tfactory.populatePojo(germplasmList, GermplasmList.class);\n\t\tfactory.populatePojo(listDataProject, ListDataProject.class);\n\n\t\tlistDataProject.setList(germplasmList);\n\t\tfinal List<ListDataProject> queryResults = new ArrayList<ListDataProject>();\n\t\tqueryResults.add(listDataProject);\n\n\t\twhen(mockCriteria.list()).thenReturn(queryResults);\n\n\t\tfinal StudyGermplasmDto expectedGermplasm = this.getResultingStudyGermplasmDto(germplasmList, listDataProject);\n\n\t\tfinal StudyGermplasmListServiceImpl studyGermplasmListServiceImpl = new StudyGermplasmListServiceImpl(currentSession);\n\t\tfinal List<StudyGermplasmDto> actualGermplasmList = studyGermplasmListServiceImpl.getGermplasmList(2013);\n\n\t\tassertEquals(\"The two lists must be equal.\", Collections.<StudyGermplasmDto>singletonList(expectedGermplasm), actualGermplasmList);\n\t}", "@Test\n\t// @Disabled\n\tvoid testViewCustomerbyVehicleLocation() {\n\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"[email protected]\");\n\t\tVehicle vehicle1 = new Vehicle(101, \"TN02J0666\", \"bus\", \"A/C\", \"prime\", \"chennai\", \"13\", 600.0, 8000.0);\n\t\tVehicle vehicle2 = new Vehicle(102, \"TN02J0776\", \"car\", \"nonA/C\", \"prime\", \"chennai\", \"13\", 600.0, 8000.0);\n\t\tList<Vehicle> vehicleList =new ArrayList<>();\n\t\tvehicleList.add(vehicle1);\n\t\tvehicleList.add(vehicle2);\n\t\tcustomer1.setVehicle(vehicleList);\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tMockito.when(custRep.findbyVehicleLocation(\"chennai\")).thenReturn(customerList);\n\t\tList<Customer> cust3 = custService.findbyVehicleLocation(\"chennai\");\n\t\tassertEquals(1, cust3.size());\n\t}", "@Test\r\n public void testSelectAll() {\r\n System.out.println(\"AbonentDAL selectAll\");\r\n AbonentDAL instance = new AbonentDAL();\r\n List<Abonent> result = instance.selectAll();\r\n assertTrue(result!=null && result.size()>0);\r\n }", "@Test\n\tvoid testDeletePlant() {\n\t\tList<Plant> plant = service.deletePlant(50);\n\t\tassertFalse(plant.isEmpty());\n\t}", "private void populatePlantList(){\n\n for (Document doc : getPlantList()) {\n String picture = doc.getString(\"picture_url\");\n String name = doc.getString(\"plant_name\");\n String description = doc.getString(\"description\");\n ArrayList sunlightArray = doc.get(\"sunlight\", ArrayList.class);\n String min_sun = sunlightArray.get(0).toString();\n String max_sun = sunlightArray.get(1).toString();\n ArrayList temperatureArray = doc.get(\"temperature\", ArrayList.class);\n String min_temp = temperatureArray.get(0).toString();\n String max_temp = temperatureArray.get(1).toString();\n ArrayList humidityArray = doc.get(\"humidity\", ArrayList.class);\n String min_humidity = humidityArray.get(0).toString();\n String max_humidity = humidityArray.get(1).toString();\n\n listOfPlants.add(new RecyclerViewPlantItem(picture, name, description, min_sun, max_sun, min_temp, max_temp, min_humidity, max_humidity));\n }\n }", "@Test\n\t// @Disabled\n\tvoid testViewAllCustomer() {\n\t\tCustomer customer1 = new Customer(1, \"tom\", \"son\", \"951771122\", \"[email protected]\");\n\t\tCustomer customer2 = new Customer(2, \"jerry\", \"lee\", \"951998122\", \"[email protected]\");\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tcustomerList.add(customer2);\n\t\tMockito.when(custRep.findAll()).thenReturn(customerList);\n\t\tList<Customer> customer = custService.findAllCustomer();\n\t\tassertEquals(2, customer.size());\n\t}", "@Test()\n public void testGetExpensesByTypeAll() {\n\tString type = \"all types\";\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByType(type);\n\tassertEquals(4, expensesForDisplay.size(), 0);\n }", "private void findPlantsList() {\n try {\n\n RemoteMongoCollection<Document> plants = mongoDbSetup.getCollection(getString(R.string.eye_plant_plants));\n RemoteMongoIterable<Document> plantIterator = plants.find();\n\n final ArrayList<Document> docsToUser = new ArrayList<>();\n\n plantIterator\n .forEach(document -> {\n docsToUser.add(document);\n setPlantList(docsToUser);\n })\n .addOnFailureListener(e -> Log.e(TAG, \"Error\" + e.getCause()))\n\n .addOnCompleteListener(task -> {\n\n if (getPlantList().size() == docsToUser.size() && getPlantList().size() != 0) {\n setUpRecyclerView();\n }\n });\n } catch (Throwable e) {\n Log.e(TAG, \"NullPointerException: \" + e.getMessage());\n }\n }", "@Test\n void getAllSuccess(){\n\n List<CompositionInstrument> compositionInstruments = genericDao.getAll();\n assertEquals(4, compositionInstruments.size());\n }", "@Test\n public void testGetAllPharmacies() throws Exception {\n System.out.println(\"getAllPharmacies\");\n\n ManagePharmaciesController instance = new ManagePharmaciesController();\n LinkedList<PharmacyDTO> expResult= new LinkedList<>();\n LinkedList<PharmacyDTO> result = instance.getAllPharmacies();\n expResult.add(getPharmacyDTOTest(\"a\"));\n expResult.add(getPharmacyDTOTest(\"b\"));\n expResult.add(getPharmacyDTOTest(\"c\"));\n\n LinkedList<Pharmacy> resultDB = new LinkedList<>();\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"a\")));\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"b\")));\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"c\")));\n PharmacyDB db = Mockito.mock(PharmacyDB.class);\n PharmaDeliveriesApp.getInstance().getPharmacyService().setPharmacyDB(db);\n when(db.getAllPharmacies()).thenReturn(resultDB);\n result = instance.getAllPharmacies();\n Assertions.assertEquals(result.size(), expResult.size());\n Assertions.assertEquals(result.get(0).getName(), expResult.get(0).getName());\n Assertions.assertEquals(result.get(1).getName(), expResult.get(1).getName());\n Assertions.assertEquals(result.get(2).getName(), expResult.get(2).getName());\n \n// int i = 0;\n// for(PharmacyDTO p : result){\n// Assertions.assertEquals(p.getName(), expResult.get(i).getName());\n// i++;\n// }\n \n when(db.getAllPharmacies()).thenReturn(null);\n Assertions.assertNull(instance.getAllPharmacies());\n }", "@Test\n public void testJPA3ListAll (){\n Iterable<TruckInfo> trucklist = truckRepo.findAll();\n\n\n\n\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"department\"})\n public void _2_2_1_getAllDept() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n c_1.getId().toString()+\n \"/departments\")\n .header(AUTHORIZATION,ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.departments\",hasSize(4)));\n }", "List<VitalDTO> findAll();", "@Test\n public void test3FindAll() {\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n List<SpecialityDTO> lista=(List<SpecialityDTO>)dao.findAll(); \n System.out.println(lista);\n assertTrue(!lista.isEmpty());\n }", "@Test\n public void findAll() {\n // SalesRep:\n List<SalesRep> salesRepList = salesRepRepository.findAll();\n assertEquals(2, salesRepList.size());\n assertEquals(\"Pepe\", salesRepList.get(0).getName());\n // Leads:\n List<Lead> leadList = leadRepository.findAll();\n assertEquals(3, leadList.size());\n assertEquals(\"María\", leadList.get(0).getName());\n // Opportunities:\n List<Opportunity> opportunityList = opportunityRepository.findAll();\n assertEquals(3, opportunityList.size());\n assertEquals(5, opportunityList.get(0).getQuantity());\n // Account:\n List<Account> accountList = accountRepository.findAll();\n assertEquals(2, accountList.size());\n assertEquals(20, accountList.get(0).getEmployeeCount());\n }", "private void getPlanSkus() {\n\n List<PlanSkuVo> planList = new ArrayList<>();\n final Session session = sessionManager.getSession();\n\n\n PreparedStatement statement = session.prepare(\"SELECT * FROM PLANSKU\");\n BoundStatement boundStatement = statement.bind();\n ResultSet result = session.execute(boundStatement);\n\n if (result == null){\n log.info(\"No Planskus found\");\n// throw new NoDataAvailableException(\"There are no Plans available right now\");\n }\n else {\n log.info(\"Populating results for getPlanSkus\");\n result.forEach(row -> {\n PlanSkuVo planSkuVo = new PlanSkuVo(row.getString(\"product_id\"),\n row.getString(\"sku_id\"),\n row.getString(\"prod_desc\"),\n row.getString(\"prod_frenchname\"),\n row.getString(\"prod_name\"),\n row.getMap(\"sku_features\", String.class, String.class),\n row.getInt(\"sku_order\"));\n planList.add(planSkuVo);\n });\n\n ObjectMapper mapper = new ObjectMapper();\n String jsonInString =\"\";\n try {\n jsonInString = mapper.writeValueAsString(planList);\n } catch (JsonProcessingException e) {\n log.info(\"error in forming json \");\n }\n\n getSender().tell(jsonInString, ActorRef.noSender());\n }\n\n }", "public static void showAllHouse(){\n ArrayList<House> houseList = getListFromCSV(FuncGeneric.EntityType.HOUSE);\n displayList(houseList);\n showServices();\n }", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Test\n public void testViewRawMaterialWithSelectType1() throws Exception {\n System.out.println(\"viewRawMaterialWithSelectType\");\n Long factoryId = 1L;\n Collection<FactoryRawMaterialEntity> result = PurchaseOrderManagementModule.viewRawMaterialWithSelectType(factoryId);\n assertFalse(result.isEmpty());\n }", "@Test\n public void retriveAllTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n List<Servizio> lista = manager.retriveAll();\n assertEquals(7,lista.size(),\"It should return a list of length 7\");\n }", "public DBViewAllPilot() {\n\t\ttry {\n\t\tstatement = connection.createStatement(); \n\t\tviewAll(); //call the viewAll function; \n\t\t\n\t}catch(SQLException ex) {\n\t\tSystem.out.println(\"Database connection failed DBViewAllAircraft\"); \n\t}\n}", "@Test\r\n\tpublic void listAllTransformer() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\ttr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10));\r\n\t\ttr.save(new Transformer( null, \"Hubcap\", Team.AUTOBOT, 4,4,4,4,4,4,4,4));\r\n\t\ttr.save(new Transformer( null, \"Bluestreak\", Team.AUTOBOT, 6,6,7,9,5,2,9,7));\r\n\t\ttr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 1, 1, 1, 1, 1, 1, 1, 1));\r\n\t\ttr.save(new Transformer( null, \"Foo\", Team.DECEPTICON, 1, 1, 1, 1, 1, 1, 1, 1));\r\n\t\t\r\n\t\tmockMvc.perform(get(\"/transformers/\" ))\r\n\t\t\t\t.andExpect(status().isOk())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t.andExpect(jsonPath(\"$\").isArray())\r\n\t\t\t\t.andExpect(jsonPath(\"$\" , hasSize(5)))\r\n\t\t\t\t;\r\n\t\t\r\n\t\t\r\n\t}", "@GetMapping\n\tpublic List<PlantingArea> findAll() {\n\t\treturn plantAreaServ.findAll();\n\t}", "public List queryTest() {\n\t\tList list = null;\n\t\tthis.init();\n\t\t try {\n\t\t\t list= sqlMap.queryForList(\"getAllTest\");\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 list;\n\t\t\n\t}", "@GetMapping\n public ResponseEntity<List<TechnicianDTO>> findAll () {\n List<TechnicianDTO> listDTO = technicianService.findAll().stream()\n .map(obj -> new TechnicianDTO(obj)).collect(Collectors.toList());\n\n return ResponseEntity.ok().body(listDTO);\n }", "@Test\r\n\tpublic void findAllMaterialCategoryTest() {\r\n\t\t// Your Code Here\r\n\r\n\t}", "@Test\n public void getCoffeeByType() {\n Roaster roaster = new Roaster();\n roaster.setName(\"Roaster\");\n roaster.setStreet(\"123 Test Lane\");\n roaster.setCity(\"Crossvile\");\n roaster.setState(\"TN\");\n roaster.setPostal_code(\"38555\");\n roaster.setPhone(\"9312005591\");\n roaster.setEmail(\"[email protected]\");\n roaster.setNote(\"Test Note for Roaster\");\n roaster = roasterDao.addRoaster(roaster);\n\n // Create and add coffee to the database with roaster id\n Coffee coffee = new Coffee();\n coffee.setRoaster_id(roaster.getRoaster_id());\n coffee.setName(\"Starbucks House Blend\");\n coffee.setCount(10);\n coffee.setUnit_price(new BigDecimal(\"12.50\"));\n coffee.setDescription(\"Medium Brew Coffee\");\n coffee.setType(\"Regular\");\n coffeeDao.addCoffee(coffee);\n\n // Create and add coffee to the database with roaster2 id\n coffee = new Coffee();\n coffee.setRoaster_id(roaster.getRoaster_id());\n coffee.setName(\"Starbucks House Blend\");\n coffee.setCount(10);\n coffee.setUnit_price(new BigDecimal(\"12.50\"));\n coffee.setDescription(\"Medium Brew Coffee\");\n coffee.setType(\"Bold\");\n coffeeDao.addCoffee(coffee);\n\n // Create and add coffee to the database with roaster2 id\n coffee = new Coffee();\n coffee.setRoaster_id(roaster.getRoaster_id());\n coffee.setName(\"Starbucks House Blend\");\n coffee.setCount(10);\n coffee.setUnit_price(new BigDecimal(\"12.50\"));\n coffee.setDescription(\"Medium Brew Coffee\");\n coffee.setType(\"Bold\");\n coffeeDao.addCoffee(coffee);\n\n // Create a list with all coffee's with roaster1 id\n List<Coffee> coffeeList = coffeeDao.getCoffeeByType(\"Regular\");\n assertEquals(1, coffeeList.size());\n\n coffeeList = coffeeDao.getCoffeeByType(\"Bold\");\n assertEquals(2, coffeeList.size());\n }", "@Override\n\tpublic List<Planification> listPlan() {\n\t\treturn dao.listPlan();\n\t}", "@Test\r\n public void UserServiceTest_RetrievePresenter()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getPresenterList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@Override\n\tpublic List<PersonVO> test() {\n\t\tSystem.out.println(\"Service 접근\");\n\t\treturn mongoDAO.test();\n\t}", "@Override\n public List<Plan> listAll() {\n List<Plan> plans = new ArrayList<>();\n planRepository.findAll().forEach(plans::add);\n return plans;\n }", "@Test\r\n @Ignore\r\n public void testGetPlantoesDia() {\r\n System.out.println(\"getPlantoesDia\");\r\n Date dataDesejada = null;\r\n EnfermeiroDaoImpl instance = new EnfermeiroDaoImpl();\r\n List<Enfermeiro> expResult = null;\r\n List<Enfermeiro> result = instance.getPlantoesDia(dataDesejada);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@SneakyThrows\n public static void main(String[] args) {\n List<Developer> all = new DeveloperServiceImpl().findAll();\n System.out.println(all.size());\n System.out.println(all.get(50));\n\n// Developer developerServiceByID = developerService.findByID(1L);\n// System.out.println(developerServiceByID);\n// GetQueryServiceImpl getQueryServiceImpl = new GetQueryServiceImpl();\n//\n// // Новый разработчик\n// DeveloperServiceImpl developerService = new DeveloperServiceImpl();\n// developerService.create(Developer.builder()\n// .developerID(14L)\n// .companyID(2L)\n// .age(23L)\n// .name(\"Рыжий\")\n// .email(\"[email protected]\")\n// .gender(\"Male\")\n// .numberPhone(12345L)\n// .salary(1111L)\n// .build());\n\n // Новый проект\n// ProjectServiceImpl projectService = new ProjectServiceImpl();\n// projectService.create(Project.builder()\n// .id(4L)\n// .name(\"New Project\")\n// .cost(123456L)\n// .companyID(3L)\n// .customerID(1L)\n// .build());\n\n // Новый клиент\n// CustomerServiceImpl customerService = new CustomerServiceImpl();\n// customerService.create(Customer.builder()\n// .id(4L)\n// .name(\"Customer4\")\n// .budget(1000000L)\n// .companyID(2L)\n// .build());\n\n // изменить разработчика\n // default -(4,'Витя', 27, 'Male', '[email protected]', 8765434,1,5600),\n// developerService.update(4L, Developer.builder()\n// .name(\"newName\")\n// .age(33L)\n// .numberPhone(1234567L)\n// .companyID(1L)\n// .salary(600L)\n// .gender(\"Male\")\n// .email(\"[email protected]\")\n// .build());\n\n // удалить - разработчика/проект/клиента\n// developerService.delete(14L);\n// projectService.delete(4L);\n// customerService.delete(4L);\n\n // все юзеры 1-ого проекта по айди - done\n// System.out.println(getQueryServiceImpl.getDevelopersByProjectID(1L));\n// // сумма всех зарплат 1-ого проекта - done\n// System.out.println(getQueryServiceImpl.getSumSalariesByProjectID(1L));\n// // список всех Java - done\n// System.out.println(getQueryServiceImpl.getDevelopersByActivity(\"Java\"));\n// // список юзеров middle - done\n// System.out.println(getQueryServiceImpl.getDevelopersByLevel(\"middle\"));\n// //список проектов в формате: дата создания - название проекта - количество разработчиков на этом проекте.\n// System.out.println(getQueryServiceImpl.projectsWithCountDevelopers());\n\n\n// Map<Long, Developer> testMap = new HashMap<>();\n// Developer developer = Developer.builder()\n// .developerID(20L)\n// .name(\"User1\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer.getDeveloperID(), developer);\n//\n// Developer developer1 = Developer.builder()\n// .developerID(21L)\n// .name(\"User2\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer1.getDeveloperID(), developer1);\n//\n// Developer developer2 = Developer.builder()\n// .developerID(22L)\n// .name(\"User3\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer2.getDeveloperID(), developer2);\n//\n// System.out.println(testMap);\n// Stream<Developer> developerStream = testMap.values().stream();\n// Stream<Developer> developerStream1 = developerStream.filter((testMap1) -> developer.getName().contains(\"1\"));\n// System.out.println(developerStream);\n// System.out.println(Arrays.toString(developerStream1.toArray()));\n\n }", "public find() {\n initComponents();\n loadTBL(\"select * from before_production order by date\");\n loadSupp();\n }", "@Test\n public void testGetProductsByType() throws Exception {\n System.out.println(\"getProductsByType\");\n \n prs = dao.getProductsByType(p1.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p2.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p3.getType());\n assertTrue(prs.size() == 1);\n assertTrue(prs.contains(p3));\n \n prs = dao.getProductsByName(nonExisten.getType());\n assertTrue(prs.isEmpty());\n }", "@Test\n public void test() {\n List<CateDto> list = articleService.queryCates();\n System.out.println(list.size());\n }", "@GetMapping(\"/households\")\n public ResultEntity<List<ItemDTO>> getAllHousehold()\n {\n\n return itemService.getItemsBySubCategory(ConstantUtil.TYPE_SALE_RENT,\"Household\");\n }", "@Test\n public void shouldListExpectedPlan() {\n OrgPlansListPage thePlansPage = open(OrgPlansListPage.class, organization.getName());\n thePlansPage.entriesContainer().shouldHave(text(plan.getName()));\n }", "@DisplayName(\"GET /drivers.json and save result to pojo\")\n @Test\n public void testDrivers(){\n JsonPath jp = get(\"/drivers.json\").jsonPath() ;\n Driver d1 = jp.getObject(\"MRData.DriverTable.Drivers[0]\", Driver.class) ;\n System.out.println(\"d1 = \" + d1);\n\n // Get all drivers as List<Driver>\n List<Driver> allDriver = jp.getList(\"MRData.DriverTable.Drivers\" , Driver.class) ;\n System.out.println(\"allDriver = \" + allDriver);\n\n // Print the name of all American drivers in this list\n for (Driver driver : allDriver) {\n if(driver.getNationality().equals(\"American\")){\n System.out.println(\"driver.getGivenName() = \" + driver.getGivenName());\n }\n }\n\n\n\n\n }", "@Override\r\n public List<HarvestResponseDto> getAllHarvests(){\r\n return harvestRepository.findAll()\r\n .stream()\r\n .map(harvestMapper::mapToDto)\r\n .collect(Collectors.toList());\r\n }", "@GetMapping(path=\"/showData\")\n public List<Person> showData() {\n Iterable<Person> myPerson = personRepository.findAll();\n List<Person> listOfPersons = new ArrayList<>();\n myPerson.forEach((Person person) -> {\n listOfPersons.add(person);\n });\n return listOfPersons;\n }", "@Transactional(readOnly = true)\n public List<TechPracticesDTO> findAll() {\n log.debug(\"Request to get all TechPractices\");\n return techPracticesRepository.findAll().stream()\n .map(techPracticesMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Test\n public void testViewRawMaterialWithSelectType2() throws Exception {\n System.out.println(\"viewRawMaterialWithSelectType\");\n Long factoryId = 1L;\n Collection<FactoryRawMaterialEntity> result = PurchaseOrderManagementModule.viewRawMaterialWithSelectType(factoryId);\n assertFalse(result.isEmpty());\n }", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@GetMapping(path = \"/all\")\n public Set<PlacementViewDto> getAllPlacementData(@RequestParam(defaultValue = \"0\") String page) {\n return placementService.getPlacementDetails(page);\n }", "public List<Departmentdetails> getDepartmentDetails();", "@Test\n void findAll_API_TEST() throws Exception {\n\n //TEST DATA\n Pet pet_1 = new Pet();\n pet_1.setId(1);\n pet_1.setName(\"John\");\n\n Pet pet_2 = new Pet();\n pet_2.setId(2);\n pet_2.setName(\"John\");\n\n Pet pet_3 = new Pet();\n pet_3.setId(3);\n pet_3.setName(\"John\");\n\n given(petService.findAll()).willReturn(asList(pet_1, pet_2, pet_3));\n mvc.perform(get(\"/owners/*/pets\").accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$[0].id\").value(1))\n .andExpect(jsonPath(\"$[1].id\").value(2))\n .andExpect(jsonPath(\"$[2].id\").value(3));\n\n }", "@Test\n public void testGetAllLocations() throws Exception {\n\n mockMvc.perform(get(URL_PREFIX + \"/all\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(contentType))\n .andExpect(jsonPath(\"$\", hasSize(DB_LOCATION_NUMBER)))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(DB_LOCATION_ID.intValue())))\n .andExpect(jsonPath(\"$.[*].city\").value(hasItem(DB_LOCATION_CITY)))\n .andExpect(jsonPath(\"$.[*].cityArea\").value(hasItem(DB_LOCATION_CITY_AREA)))\n .andExpect(jsonPath(\"$.[*].street\").value(hasItem(DB_LOCATION_STREET)))\n .andExpect(jsonPath(\"$.[*].streetNumber\").value(hasItem(DB_LOCATION_STREET_NUMBER)))\n .andExpect(jsonPath(\"$.[*].state\").value(hasItem(DB_LOCATION_STATE)));\n }", "@Override\r\n\t@Transactional\r\n\tpublic Planter viewPlanter(int planterId) throws ResourceNotFoundException {\r\n\t\tOptional<Planter> pl = planterRepo.findById(planterId);\r\n\t\tif(pl.isPresent()) {\r\n\t\t\treturn pl.get();\r\n\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new ResourceNotFoundException(\"No Planter found with the Id\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<shopPet> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "@Test\n void contextLoads() {\n\n List<BrandEntity> list=brandService.list(new QueryWrapper<BrandEntity>().eq(\"brand_id\",1));\n list.stream().forEach(item->{\n System.out.println(item);\n });\n }", "@Test\n public void getAllPersons() {\n List<Person> persons = personService.getAllPersons();\n\n //Assert\n assertEquals(\"Fulano\", persons.get(0).getFirstName());\n assertEquals(\"John\", persons.get(1).getFirstName());\n }", "@Test\n public void testListProducts() {\n List<Product> allProducts = testDao.listProducts();\n\n // First check the general contents of the list\n assertNotNull(allProducts, \"The list of products must not null\");\n assertEquals(4, allProducts.size(),\"List of products should have 4 products.\");\n \n // Then the specifics\n// assertTrue(testDao.getAllMonsters().contains(firstMonster),\n// \"The list of monsters should include Vladmir.\");\n// assertTrue(testDao.getAllMonsters().contains(secondMonster),\n// \"The list of monsters should include Warwick.\");\n }", "@Test\n void contextLoads() {\n HotelNoteVO hotelNoteVO = hotelMapper.getSingleHotelCheckInNote(1,1);\n System.out.println(hotelMapper.getSingleHotelCheckInNote(1,1));\n }", "@Test\n public void given_devEnvironmentAndListStudent_when_callEndpointFindAll_then_returnListStudentAndStatus200() throws Exception {\n\n when(studentRepo.findAll()).thenReturn(STUDENT_LIST);\n\n RequestBuilder request = MockMvcRequestBuilders\n .get(\"/students\")\n .accept(MediaType.APPLICATION_JSON);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andExpect(content().json(gson.toJson(STUDENT_LIST),true))\n .andReturn();\n }", "@Test\n public void getTarjetaPrepagoTest()\n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity resultEntity = tarjetaPrepagoLogic.getTarjetaPrepago(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNumTarjetaPrepago(), resultEntity.getNumTarjetaPrepago());\n Assert.assertEquals(entity.getSaldo(), resultEntity.getSaldo(), 0.001);\n Assert.assertEquals(entity.getPuntos(), resultEntity.getPuntos(),0.001);\n }", "public interface LightTenantService {\n\n Result findAll();\n}", "@Test\r\n void getStations() {\r\n List<Station> stations = model.getStations();\r\n assertNotNull(stations);\r\n assertEquals(124, stations.size());\r\n assertEquals(stations.get(0).getName(), \"OakGrove\");\r\n assertEquals(stations.get(52).getName(), \"Prudential\");\r\n assertEquals(stations.get(123).getName(), \"Braintree\");\r\n }", "@GetMapping(value = \"/listTest\")\n public List<Test> listTest() {\n return testService.findAll();\n }", "@Test\n\tvoid findDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorfind = new DoctorDetail();\n\t\tdoctorfind.setSpecialist(\"cardioc\");\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).doctors(doctorfind.getSpecialist());\n\t\tmockMvc.perform(get(\"/doctor/find?specialist=/{specialist}\", \"cardioc\")).andExpect(status().isOk());\n\t}", "public interface QueryAllianceDao extends BaseMapper<Alliance> {\r\n//\r\n List<AllianceRecord> findAlliancePage(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime,\r\n @Param(\"leftNumber\") Integer leftNumber, @Param(\"rightNumber\") Integer rightNumber);\r\n //rpc分页列表\r\n List<AllianceRecord> findAlliancePageShip(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime);\r\n //根据userID查询当月的订单\r\n List<Map> getCurrentMonthOrderByUserId(@Param(\"id\") Long id);\r\n //根据userID 查询盟友信息\r\n AllianceRecord selectAllianceOneByUserId(@Param(\"id\") Long id);\r\n //查询自营商品\r\n public List<Map> getSelfProductByUserId(@Param(\"id\") Long id);\r\n //充值套餐\r\n @Select(\"select CONCAT('充值',value) as title,value from t_config_field where group_id=1\")\r\n List<JSONObject> getSetMeal();\r\n //查询邀请码\r\n Long selectUserIdByInvitationCode(@Param(\"invitationCode\") String invitationCode);\r\n\r\n //查询盟友详情\r\n AllianceRecord allianceDetails(@Param(\"id\") Long id);\r\n //查询电话号码是否存在\r\n @Select(\"select alliance_phone from t_alliance where alliance_phone=#{phone} \")\r\n String queryPhone(@Param(\"phone\") String phone);\r\n\r\n //查询自己的团队\r\n List<AllianceRecord> myTeam(Page<AllianceRecord> page,\r\n @Param(\"id\") Long id,\r\n @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search);\r\n //查询自己的订单总额\r\n @Select(\"select total_price as totalPrice,user_id as userId from t_order where id=#{orderId}\")\r\n public JSONObject queryOrderMoney(@Param(\"orderId\") Long orderId);\r\n\r\n //一周内加入的盟友\r\n @Select(\"select b.* from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId} and DATE_SUB(CURDATE(), INTERVAL 7 DAY)<b.alliance_ship_time\")\r\n public List<Alliance> queryWeekAlliance(@Param(\"userId\")Long userId);\r\n\r\n //一周内发货订单\r\n @Select(\"select * from t_order where user_id = 11 and status='DELIVERED_CONFIRM_PENDING' and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= created_date\\n\")\r\n public List<JSONObject> queryWeekOrderDeliver(@Param(\"userId\") Long userId);\r\n\r\n //一周内盟友下单\r\n @Select(\"select a.alliance_name as allianceName,o.* from t_order o,(select b.user_id,b.alliance_name from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId}\\n\" +\r\n \"and b.alliance_ship=0) as a where o.user_id = a.user_id and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= o.created_date and o.status='PAID_CONFIRM_PENDING'\")\r\n public List<JSONObject> queryWeekOrder(@Param(\"userId\") Long userId);\r\n\r\n //重置userID\r\n @Update(\"update t_alliance set user_id=null where id=#{id}\")\r\n Integer resetUserId(@Param(\"id\")Long id);\r\n\r\n //团队下单奖励\r\n\r\n //团队盟友升级\r\n\r\n //删除表的数据\r\n @Delete(\"delete from ${tableName}\")\r\n public Integer deleteTableData(@Param(\"tableName\") String tableName);\r\n //获取数据库json字段信息测试\r\n @Select(\"select JSON_EXTRACT(t_product_settlement_proportion.proportion, '$.value') from t_product_settlement_proportion\")\r\n public List<Float> getJson();\r\n\r\n //查询userid\r\n @Select(\"select id from t_user where phone=${phone}\")\r\n Long queryUserIdByPhone(@Param(\"phone\") String phone);\r\n //同步t_user real_name 和 alliance表 alliance_name\r\n @Update(\"update t_user set real_name=#{name} where phone=#{alliancePhone}\")\r\n Integer upUserRealNameByPhone(@Param(\"alliancePhone\") String alliancePhone,@Param(\"name\") String name);\r\n\r\n //获取所有盟友的id\r\n @Select(\"select id from t_alliance\")\r\n List<Long> getAllAllianceIds();\r\n}", "@Override\r\n\tpublic List<WarehouseInfo> selectAll(Page page) {\n\t\treturn warehouseDao.selectAll(page);\r\n\t}", "@Test\n public void getEspecieTest() {\n EspecieEntity entity = especieData.get(0);\n EspecieEntity resultEntity = especieLogic.getSpecies(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n }", "@RequestMapping(value = \"/myTreatments/\",\r\n method = RequestMethod.GET,\r\n produces = MediaType.APPLICATION_JSON_VALUE)\r\n public ResponseEntity<Iterable<Treatment>> findAllTreatment() {\r\n Iterable<Treatment> appointment = treatmentService.readAll();\r\n if (appointment == null) {\r\n return new ResponseEntity<Iterable<Treatment>>(HttpStatus.INTERNAL_SERVER_ERROR);\r\n }\r\n return new ResponseEntity<Iterable<Treatment>>(appointment, HttpStatus.OK);\r\n }", "@Override\n public List<GoodsIssuedDocument> viewGoodsIssuedDocument(Plant plant) {\n Query q = em.createQuery(\"SELECT s FROM GoodsIssuedDocument s WHERE s.confirm=FALSE AND s.plant.id=:plantId\");\n q.setParameter(\"plantId\", plant.getId());\n return q.getResultList();\n }", "public interface PlanDao extends JpaRepository<Plan, Integer> {\n List<Plan> findByQrPass(String pass);\n}", "@Test\n public void getVisitaTest() {\n VisitaEntity entity = data.get(0);\n VisitaEntity newEntity = VisitaPersistence.find(entity.getId());\n Assert.assertNotNull(newEntity);\n \n Assert.assertEquals(newEntity.getId(), entity.getId());\n Assert.assertArrayEquals(newEntity.getFotos().toArray(), entity.getFotos().toArray());\n Assert.assertEquals(newEntity.getOferta(), entity.getOferta());\n Assert.assertEquals(newEntity.getUsuario(), entity.getUsuario());\n Assert.assertEquals(newEntity.getComentario(), entity.getComentario());\n Assert.assertEquals(newEntity.getCalificacion(), entity.getCalificacion());\n }", "@Test\n @DisplayName(\"Testataan kaikkien tilausten haku\")\n void getAllReservations() {\n assertEquals(0, reservationsDao.getAllReservations().size());\n\n TablesEntity table1 = new TablesEntity();\n table1.setSeats(2);\n tablesDao.createTable(table1);\n // Test that returns the same number as created reservations\n ReservationsEntity firstReservation = new ReservationsEntity(\"amal\",\"46111222\", new Date(System.currentTimeMillis()), table1.getId(),new Time(1000),new Time(2000));\n reservationsDao.createReservation(firstReservation);\n\n TablesEntity table2 = new TablesEntity();\n table2.setSeats(2);\n tablesDao.createTable(table2);\n reservationsDao.createReservation(new ReservationsEntity(\"juho\", \"46555444\", new Date(System.currentTimeMillis()), table2.getId(), new Time(1000),new Time(2000)));\n\n List<ReservationsEntity> reservations = reservationsDao.getAllReservations();\n assertEquals(2, reservations.size());\n assertEquals(firstReservation, reservations.get(0));\n }" ]
[ "0.7125296", "0.6968046", "0.6892701", "0.6693658", "0.66355544", "0.6368087", "0.62341595", "0.62086624", "0.61791766", "0.614104", "0.6075296", "0.60629416", "0.59751654", "0.59543693", "0.59205043", "0.59143084", "0.59114563", "0.5850118", "0.58315176", "0.5800833", "0.5778934", "0.5776811", "0.5774311", "0.57582384", "0.5720688", "0.5712884", "0.5709758", "0.56977654", "0.5696632", "0.56824315", "0.567588", "0.56587565", "0.564658", "0.5639215", "0.56356025", "0.5632384", "0.56304413", "0.5629811", "0.5594289", "0.55932605", "0.55899966", "0.55777466", "0.55691934", "0.5568859", "0.5556447", "0.55498064", "0.55411243", "0.5535317", "0.5529247", "0.55160046", "0.55100894", "0.55088484", "0.5508511", "0.5500675", "0.5494494", "0.5468772", "0.5467266", "0.546441", "0.5464196", "0.54566866", "0.54542106", "0.544861", "0.54369813", "0.5426896", "0.542106", "0.542014", "0.541997", "0.5400525", "0.53921306", "0.5386199", "0.53852695", "0.53837186", "0.5377309", "0.53755486", "0.53567535", "0.5351907", "0.53473103", "0.53368163", "0.5331815", "0.53222615", "0.5320927", "0.532052", "0.53200626", "0.531588", "0.5314113", "0.5309953", "0.5302417", "0.5299455", "0.52991503", "0.52991354", "0.5293553", "0.5288581", "0.5287288", "0.5286796", "0.5273686", "0.52724886", "0.52627325", "0.5258567", "0.52518046", "0.52478427" ]
0.7032135
1
TODO Autogenerated method stub
@Override public Map<String, Object> getSectInfo(Map<String, Object> requestMap) { Map<String,Object> responseMap = new HashMap<>(); VoteSectInfoExample voteSectInfoExample = new VoteSectInfoExample(); Criteria criteria = voteSectInfoExample.createCriteria(); if (!StringUtils.isEmpty((String)requestMap.get("sectName"))){ criteria.andSectNameLike((String)requestMap.get("sectName")); } voteSectInfoExample.setOrderByClause("sect_name asc"); List<VoteSectInfo> list = voteSectInfoMapper.selectByExample(voteSectInfoExample); responseMap.put("listInfo", list); responseMap.put("status", true); return responseMap; }
{ "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 Map<String, Object> getBuildInfo(Map<String, Object> requestMap) { Map<String,Object> responseMap = new HashMap<>(); VoteHouseInfoExample voteHouseInfoExample = new VoteHouseInfoExample(); try { com.indihx.elecvote.entity.VoteHouseInfoExample.Criteria criteria = voteHouseInfoExample.createCriteria(); criteria.andSectNameEqualTo((String)requestMap.get("sectName")); voteHouseInfoExample.setOrderByClause("build_code asc"); voteHouseInfoExample.setDistinct(true); List<VoteHouseInfo> list = voteHouseInfoMapper.selectDistinctBuild(voteHouseInfoExample); responseMap.put("listInfo", list); responseMap.put("status", true); return responseMap; } catch (Exception e) { // TODO: handle exception logger.error("加载文件数据错误:"+ExceptionUtil.getErrorMsg(e)); throw new BusinessException("加载文件数据错误:"+ExceptionUtil.getErrorMsg(e)); } }
{ "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 Map<String, Object> getUnitInfo(Map<String, Object> requestMap) { Map<String,Object> responseMap = new HashMap<>(); VoteHouseInfoExample voteHouseInfoExample = new VoteHouseInfoExample(); try { com.indihx.elecvote.entity.VoteHouseInfoExample.Criteria criteria = voteHouseInfoExample.createCriteria(); criteria.andSectNameEqualTo((String)requestMap.get("sectName")); criteria.andBuildCodeEqualTo((String)requestMap.get("buildCode")); voteHouseInfoExample.setOrderByClause("build_code asc"); voteHouseInfoExample.setDistinct(true); List<VoteHouseInfo> list = voteHouseInfoMapper.selectDistinctUnit(voteHouseInfoExample); responseMap.put("listInfo", list); responseMap.put("status", true); return responseMap; } catch (Exception e) { // TODO: handle exception logger.error("加载文件数据错误:"+ExceptionUtil.getErrorMsg(e)); throw new BusinessException("加载文件数据错误:"+ExceptionUtil.getErrorMsg(e)); } }
{ "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 Map<String, Object> getFloorInfo(Map<String, Object> requestMap) { Map<String,Object> responseMap = new HashMap<>(); VoteHouseInfoExample voteHouseInfoExample = new VoteHouseInfoExample(); try { com.indihx.elecvote.entity.VoteHouseInfoExample.Criteria criteria = voteHouseInfoExample.createCriteria(); criteria.andSectNameEqualTo((String)requestMap.get("sectName")); criteria.andBuildCodeEqualTo((String)requestMap.get("buildCode")); criteria.andUnitCodeEqualTo((String)requestMap.get("unitCode")); voteHouseInfoExample.setOrderByClause("build_code asc"); voteHouseInfoExample.setDistinct(true); List<VoteHouseInfo> list = voteHouseInfoMapper.selectDistinctFloor(voteHouseInfoExample); responseMap.put("listInfo", list); responseMap.put("status", true); return responseMap; } catch (Exception e) { // TODO: handle exception logger.error("加载文件数据错误:"+ExceptionUtil.getErrorMsg(e)); throw new BusinessException("加载文件数据错误:"+ExceptionUtil.getErrorMsg(e)); } }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public Map<String, Object> getRoomInfo(Map<String, Object> requestMap) { Map<String,Object> responseMap = new HashMap<>(); VoteHouseInfoExample voteHouseInfoExample = new VoteHouseInfoExample(); try { com.indihx.elecvote.entity.VoteHouseInfoExample.Criteria criteria = voteHouseInfoExample.createCriteria(); criteria.andSectNameEqualTo((String)requestMap.get("sectName")); criteria.andBuildCodeEqualTo((String)requestMap.get("buildCode")); criteria.andUnitCodeEqualTo((String)requestMap.get("unitCode")); criteria.andFloorCodeEqualTo((String)requestMap.get("floorCode")); voteHouseInfoExample.setOrderByClause("build_code asc"); voteHouseInfoExample.setDistinct(true); List<VoteHouseInfo> list = voteHouseInfoMapper.selectDistinctRoom(voteHouseInfoExample); responseMap.put("listInfo", list); responseMap.put("status", true); return responseMap; } catch (Exception e) { // TODO: handle exception logger.error("加载文件数据错误:"+ExceptionUtil.getErrorMsg(e)); throw new BusinessException("加载文件数据错误:"+ExceptionUtil.getErrorMsg(e)); } }
{ "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
@Transactional(propagation=Propagation.REQUIRED,rollbackFor=Exception.class) @Override public Map<String, Object> bindHouseInfo(Map<String, Object> requestMap) { Map<String, Object> map = new HashMap<>(); map.put("status", false); /* VoteHouseInfo voteHouseInfo = new VoteHouseInfo(); voteHouseInfo.setLinkPhone((String)requestMap.get("linkPhone")); voteHouseInfo.setInfoStatus("01");*/ VoteHouseInfoExample voteHouseInfoExample = new VoteHouseInfoExample(); com.indihx.elecvote.entity.VoteHouseInfoExample.Criteria criteria = voteHouseInfoExample.createCriteria(); criteria.andSectNameEqualTo((String)requestMap.get("sectName")); criteria.andBuildCodeEqualTo((String)requestMap.get("buildCode")); criteria.andUnitCodeEqualTo((String) requestMap.get("unitCode")); criteria.andFloorCodeEqualTo((String)requestMap.get("floorCode")); criteria.andRoomCodeEqualTo((String)requestMap.get("roomCode")); criteria.andCertCodeEqualTo((String)requestMap.get("certCode")); List<VoteHouseInfo> list = voteHouseInfoMapper.selectByExample(voteHouseInfoExample); if (list.isEmpty()) { return map; } VoteHouseInfo houseInfo = list.get(0); VoteApplyInfoExample example = new VoteApplyInfoExample(); com.indihx.elecvote.entity.VoteApplyInfoExample.Criteria applyCriteria = example.createCriteria(); applyCriteria.andInfoIdEqualTo(houseInfo.getInfoId()); List<VoteApplyInfo> applyList = voteApplyInfoMapper.selectByExample(example); if (!applyList.isEmpty()) { logger.error("该房屋信息已经绑定过,不能继续绑定"); map.put("status", false); return map; } VoteApplyInfo voteApplyInfo = new VoteApplyInfo(); voteApplyInfo.setApplyId(new BigDecimal(primaryKey.getKeyBySequenceName("APPLY_ID_SEQ"))); voteApplyInfo.setInfoId(houseInfo.getInfoId()); voteApplyInfo.setRegisteDate(DateUtil.getSysDate()); voteApplyInfo.setRegisteTime(DateUtil.getSysTime()); voteApplyInfo.setOwnerName(houseInfo.getOwnerName()); voteApplyInfo.setCertCode(houseInfo.getCertCode()); voteApplyInfo.setLinkPhone((String)requestMap.get("linkPhone")); voteApplyInfo.setUserId((String)requestMap.get("openId")); int count = voteApplyInfoMapper.insertSelective(voteApplyInfo); if (count > 0) { map.put("status", true); } /* int count = voteHouseInfoMapper.updateByExampleSelective(voteHouseInfo, voteHouseInfoExample); if (count > 0) { map.put("status", true); }*/ return map; }
{ "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 Map<String, Object> getHouseInfoByOpenId(String openId) { List<VoteHouseInfo> listInfo = voteHouseInfoMapper.selectByOpenId(openId); Map<String, Object> map = new HashMap<>(); map.put("listInfo", listInfo); return map; }
{ "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 Map<String, Object> unbindHouseInfo(Map<String, Object> requestMap) { Map<String, Object> map = new HashMap<>(); map.put("status", false); String openId = (String)requestMap.get("openId"); String infoId = (String)requestMap.get("infoId"); logger.debug("openId: "+openId+" infoId: "+infoId); VoteApplyInfoExample voteApplyInfoExample = new VoteApplyInfoExample(); com.indihx.elecvote.entity.VoteApplyInfoExample.Criteria criteria = voteApplyInfoExample.createCriteria(); criteria.andUserIdEqualTo(openId); criteria.andInfoIdEqualTo(new BigDecimal(infoId)); int count = voteApplyInfoMapper.deleteByExample(voteApplyInfoExample); if (count > 0) { map.put("status", true); } return map; }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
/ access modifiers changed from: protected / renamed from: a
public void onEncodeSerialData(StreamWriter streamWriter) { this.transaction.mo44659c(streamWriter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public abstract String a();", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public void a() {\r\n }", "public void a() {\n ((a) this.a).a();\n }", "@Override\n public void b() {\n }", "public abstract void m15813a();", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "private abstract void privateabstract();", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public abstract void mo27464a();", "public abstract Object mo26777y();", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public abstract Object mo1771a();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void b() {\n\n\t}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "public void a() {\n }", "public void a() {\n }", "private stendhal() {\n\t}", "public void b() {\r\n }", "public abstract void mo30696a();", "public abstract void mo102899a();", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public abstract void mo3994a();", "public final void mo51373a() {\n }", "public abstract T a();", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public static void a() {\n\n }", "public void mo38117a() {\n }", "public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }", "public abstract void mo27386d();", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo4359a();", "public void m23075a() {\n }", "public void b() {\n }", "public void b() {\n }", "public abstract int a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "void m1864a() {\r\n }", "public abstract void afvuren();", "public abstract void mo27385c();", "@Override\n public void perish() {\n \n }", "public abstract void mo56925d();", "protected void h() {}", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public abstract void mo35054b();", "public String i() {\n/* 44 */ return this.a.toString();\n/* */ }", "public abstract void mo53562a(C18796a c18796a);", "@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public abstract void alimentarse();", "public void mo4359a() {\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract String mo118046b();", "protected void a(dh paramdh) {}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public abstract void mo45765b();", "public abstract BoundType a();", "public void mo2740a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public static a c() {\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }", "public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }", "public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }", "public abstract Object mo1185b();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo9848a() {\n }", "private final void i() {\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 abstract void mo6549b();", "public void mo6944a() {\n }", "public void mo12930a() {\n }", "public abstract void a(StringBuilder sb);", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public abstract void mo1184a(Object obj);", "public static void main(String[] args) {\r\n\t\t//A obj = new A(); //A cannot be resolved to a type...try to access the class A method in thz class -- error \r\n\t // obj.i = 80; //here..The field A.i is not visible...it, allow as to create the object, but still it is not allow as to access thev & m, bcoz if we dont specify anything-- default(V & M) so it only accessible within the package.\r\n\t\r\n\t // obj.j = 90; //The field A.j is not visible -- error, cant access since it is protected.\r\n\t // obj.flow(); //The method flow() from the type A is not visible, cant access since it is protected.\r\n\t \r\n\t B obj1 = new B(); //extended class A, so we can access its V and M here.\r\n\t obj1.j = 70;\r\n\t obj1.flow();\r\n\t \r\n\t A obj3 = new A(); // here no need to extend class A , just create obj for A class and access it, bcoz it is \"public\".\r\n\t obj3.D = 100;\r\n\t obj3.sub();\r\n\t}", "public void mo21825b() {\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public abstract boolean a();" ]
[ "0.75464964", "0.73093235", "0.71735907", "0.692263", "0.68435764", "0.6787232", "0.67364866", "0.6659923", "0.6635336", "0.6635336", "0.65571475", "0.65408033", "0.65371394", "0.6500136", "0.6494878", "0.6494545", "0.6485399", "0.6476603", "0.64670885", "0.6403744", "0.6394189", "0.63858354", "0.63791156", "0.6359318", "0.635862", "0.63452816", "0.6342364", "0.6338125", "0.6318679", "0.6308252", "0.6302185", "0.6302185", "0.6297184", "0.6286423", "0.6281061", "0.6277148", "0.62757826", "0.62720114", "0.6261936", "0.6259821", "0.62542534", "0.62433994", "0.6240186", "0.62257165", "0.62044704", "0.6188935", "0.61817116", "0.6180415", "0.6169017", "0.6164467", "0.6156291", "0.6156291", "0.6153341", "0.6152147", "0.61438286", "0.6107348", "0.6106999", "0.6105938", "0.61047196", "0.61005807", "0.60873705", "0.60854256", "0.60787046", "0.60570186", "0.6056411", "0.60460806", "0.6044947", "0.6044947", "0.6043863", "0.604216", "0.60415447", "0.6019007", "0.6006512", "0.6003148", "0.59860367", "0.59761965", "0.5969308", "0.5968431", "0.59634477", "0.5958228", "0.595593", "0.59471744", "0.5946021", "0.59442663", "0.59337384", "0.5933126", "0.59321463", "0.5931256", "0.5929537", "0.5924491", "0.59230584", "0.591813", "0.5916826", "0.5914802", "0.5913617", "0.59135664", "0.58989006", "0.5897495", "0.5892505", "0.5891249", "0.58905417" ]
0.0
-1
/ renamed from: a
public Transaction getTransaction() { return this.transaction; }
{ "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
The class holding records for this type
@Override public Class<CheckoutRecord> getRecordType() { return CheckoutRecord.class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "public Class<?> getRecordClass() \n\t{\n\t return recordClass ;\n\t}", "public DataRecord() {\n super(DataTable.DATA);\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "public Record() {\n data = new int[DatabaseManager.fieldNames.length];\n }", "@Override\n public Class<PgClassRecord> getRecordType() {\n return PgClassRecord.class;\n }", "@Override\n public Class<ModelRecord> getRecordType() {\n return ModelRecord.class;\n }", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "public ARecord() {\n super(A.A);\n }", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "public ObjectRecord() {\n\t\tsuper(org.jooq.test.hsqldb.generatedclasses.tables.Object.OBJECT);\n\t}", "public WERecordDataModel()\n\t{\n\t\tsuper();\n\t\tsetEqFileName(RECORD_NAME);\n\t\tinitMessages();\n\t}", "public Record toRecord() {\n return new Record().setColumns(this);\n }", "DataHRecordData() {}", "@Override\n public Class<ResourcesRecord> getRecordType() {\n return ResourcesRecord.class;\n }", "public GO_RecordType() {\n }", "@Override\n public Class<QsRecord> getRecordType() {\n return QsRecord.class;\n }", "public ItemRecord() {\n super(Item.ITEM);\n }", "public Record getRecord() {\n return record;\n }", "public Record getRecord() {\n return record;\n }", "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "@Override\n public Class<LinearmodelRecord> getRecordType() {\n return LinearmodelRecord.class;\n }", "@JsonProperty(\"Records\") abstract List<?> getRecords();", "public Item_Record() {\n super(Item_.ITEM_);\n }", "@Override\n public Class<MytableRecord> getRecordType() {\n return MytableRecord.class;\n }", "@Override\n protected Class<RecordType> getBoundType() {\n return RecordType.class;\n }", "@Override\n public Class<PatientRecord> getRecordType() {\n return PatientRecord.class;\n }", "public interface CollectionRecord {\n\n\t/**\n\t * Gets the id attribute of the CollectionRecord object\n\t *\n\t * @return The id value\n\t */\n\tpublic String getId();\n\n\n\t/**\n\t * Gets the setSpec attribute of the CollectionRecord object\n\t *\n\t * @return The setSpec value\n\t */\n\tpublic String getSetSpec();\n\n\n\t/**\n\t * Gets the metadataHandle attribute of the CollectionRecord object\n\t *\n\t * @param collectionSetSpec setSpec (e.g., \"dcc\")\n\t * @return The metadataHandle value\n\t * @exception Exception if there is a webservice error\n\t */\n\tpublic String getMetadataHandle(String collectionSetSpec) throws Exception;\n\n\n\t/**\n\t * Gets the handleServiceBaseUrl attribute of the CollectionRecord object\n\t *\n\t * @return The handleServiceBaseUrl value\n\t */\n\tpublic String getHandleServiceBaseUrl();\n\n\t/* \tpublic String getNativeFormat();\n\tpublic DcsDataRecord getDcsDataRecord();\n\tpublic MetaDataFramework getMetaDataFramework();\n\tpublic Document getLocalizedDocument(); */\n}", "@Override\n\tpublic Class<QuotesRecord> getRecordType() {\n\t\treturn QuotesRecord.class;\n\t}", "@Override\n public Class<AnalysisRecord> getRecordType() {\n return AnalysisRecord.class;\n }", "public Record() {\n this.symptoms = new LinkedHashSet<>();\n this.diagnoses = new LinkedHashSet<>();\n this.prescriptions = new LinkedHashSet<>();\n }", "public OpenERPRecordSet() {\r\n\t\trecords = new Vector<OpenERPRecord>();\r\n\t}", "@Override\n public Class<QuestionForBuddysRecord> getRecordType() {\n return QuestionForBuddysRecord.class;\n }", "public QuestionsRecord() {\n\t\tsuper(sooth.entities.tables.Questions.QUESTIONS);\n\t}", "public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }", "public GenericData.Record serialize() {\n return null;\n }", "public GenericTcalRecord() {\n this(-1);\n }", "public StudentRecord() {\n\t\tscores = new ArrayList<>();\n\t\taverages = new double[5];\n\t}", "@Override\n public Class<CarmodelRecord> getRecordType() {\n return CarmodelRecord.class;\n }", "@Override\n public Class<MemberRecord> getRecordType() {\n return MemberRecord.class;\n }", "public BookRecord() {\n super(Book.BOOK);\n }", "@Override\n public Class<SearchLogsRecord> getRecordType() {\n return SearchLogsRecord.class;\n }", "@Override\n public Class<EasytaxTaxationsRecord> getRecordType() {\n return EasytaxTaxationsRecord.class;\n }", "public SalesRecords() {\n super();\n }", "public SongRecord(){\n\t}", "@Override\n public Class<LangsRecord> getRecordType() {\n return LangsRecord.class;\n }", "public PersonRecord(){\n\t\tlistNames = new ArrayList<String>();\n\t}", "@Override\n public Class<RoomRecord> getRecordType() {\n return RoomRecord.class;\n }", "@Override\n public Class<CalcIndicatorAccRecordInstanceRecord> getRecordType() {\n return CalcIndicatorAccRecordInstanceRecord.class;\n }", "public ArrayList<Record> getRecords() {\r\n\t\treturn records;\r\n\t}", "@Override\n public Class<CourseRecord> getRecordType() {\n return CourseRecord.class;\n }", "@Override\n public Class<CabTripDataRecord> getRecordType() {\n return CabTripDataRecord.class;\n }", "@Override\n public Class<TripsRecord> getRecordType() {\n return TripsRecord.class;\n }", "public Item_Record(Integer _Id_, String name_, String description_, String code_, Double price_, Double retailPrice_, Double costPrice_, Object _Search_, String[] _Types_, String _LastModified_, Integer _Version_) {\n super(Item_.ITEM_);\n\n set(0, _Id_);\n set(1, name_);\n set(2, description_);\n set(3, code_);\n set(4, price_);\n set(5, retailPrice_);\n set(6, costPrice_);\n set(7, _Search_);\n set(8, _Types_);\n set(9, _LastModified_);\n set(10, _Version_);\n }", "@Override\r\n\tpublic List<T> getRecords() {\n\t\treturn null;\r\n\t}", "@Override\n public Class<StudentCourseRecord> getRecordType() {\n return StudentCourseRecord.class;\n }", "@Override\n public Class<ZTest1Record> getRecordType() {\n return ZTest1Record.class;\n }", "public OfcRecordRecord() {\n\t\tsuper(org.openforis.collect.persistence.jooq.tables.OfcRecord.OFC_RECORD);\n\t}", "public Class<gDBR> getRecordClass() \n {\n return this.rcdClass;\n }", "public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }", "@Override\n public Class<GchCarLifeBbsRecord> getRecordType() {\n return GchCarLifeBbsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<nesi.jobs.tables.records.HourlyRecordRecord> getRecordType() {\n\t\treturn nesi.jobs.tables.records.HourlyRecordRecord.class;\n\t}", "@Override\n public Class<AccountRecord> getRecordType() {\n return AccountRecord.class;\n }", "public ExperimentRecord() {\n super(Experiment.EXPERIMENT);\n }", "public MealRecord() {\n\t\tsuper(Meal.MEAL);\n\t}", "@Override\n public Class<StaffRecord> getRecordType() {\n return StaffRecord.class;\n }", "public LateComingRecord() {\n\t\t}", "@Override\n public Class<AssessmentStudenttrainingworkflowRecord> getRecordType() {\n return AssessmentStudenttrainingworkflowRecord.class;\n }", "public UsersRecord() {\n super(Users.USERS);\n }", "@Override\n public Class<MyMenuRecord> getRecordType() {\n return MyMenuRecord.class;\n }", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public AnswerRecord() {\n super(Answer.ANSWER);\n }", "public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}", "@Override\n public Class<JournalEntryLineRecord> getRecordType() {\n return JournalEntryLineRecord.class;\n }", "@Override\n public Class<CommentsRecord> getRecordType() {\n return CommentsRecord.class;\n }", "@Override\n public Class<SpeedAlertsHistoryRecord> getRecordType() {\n return SpeedAlertsHistoryRecord.class;\n }", "@Override\n public Class<RatingsRecord> getRecordType() {\n return RatingsRecord.class;\n }", "@Override\n public Class<TOpLogsRecord> getRecordType() {\n return TOpLogsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<net.user1.union.zz.common.model.tables.records.ZzcronRecord> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic RelationClass() {\n\t\t\n\t\tParser pars = new Parser(FILE_NAME); \t\t\t\t\t\t\t\n\t\tint bucketlength = 0;\n\t\tbucketlength = (int) (pars.getNumOfLines()*BUCKET_MULTIPLIER);\n\t\tbuckets = (Node<k,v>[]) new Node<?,?>[bucketlength];\n\t\tpars.process(this);\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "@Override\n\tpublic java.lang.Class<persistencia.tables.records.AsientoRecord> getRecordType() {\n\t\treturn persistencia.tables.records.AsientoRecord.class;\n\t}", "@Override\n public Class<StatsRecord> getRecordType() {\n return StatsRecord.class;\n }", "@Override\n\tpublic Class<QuestionRecord> getRecordType() {\n\t\treturn QuestionRecord.class;\n\t}", "public MetricSchemaRecord() { }", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "@Override\n public Class<DynamicSchemaRecord> getRecordType() {\n return DynamicSchemaRecord.class;\n }", "public PersonRecord() {}", "@Override\n\tpublic Class<RentalRecord> getRecordType() {\n\t\treturn RentalRecord.class;\n\t}", "public PagesRecord() {\n super(Pages.PAGES);\n }", "@Override\n public Class<AbsenceRecord> getRecordType() {\n return AbsenceRecord.class;\n }", "@Override\n public Class<RedpacketConsumingRecordsRecord> getRecordType() {\n return RedpacketConsumingRecordsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<jooq.model.tables.records.TBasicSalaryRecord> getRecordType() {\n\t\treturn jooq.model.tables.records.TBasicSalaryRecord.class;\n\t}", "public YearlyRecord() {\n this.wordToCount = new HashMap<String, Integer>();\n this.wordToRank = new HashMap<String, Integer>();\n this.countToWord = new HashMap<Integer, Set<String>>();\n }" ]
[ "0.68004626", "0.66954035", "0.64103794", "0.6398801", "0.6398801", "0.6398801", "0.6398801", "0.6393993", "0.6354873", "0.6192012", "0.61258304", "0.61258304", "0.61258304", "0.6104736", "0.60470754", "0.60470754", "0.60470754", "0.6040716", "0.6029211", "0.6020949", "0.6008978", "0.60082155", "0.6006576", "0.59716636", "0.59703285", "0.5949182", "0.5949182", "0.59396815", "0.59396815", "0.5936131", "0.5935658", "0.5895888", "0.5895527", "0.5893964", "0.5884042", "0.58751285", "0.58681023", "0.5865894", "0.5864961", "0.5855157", "0.5851545", "0.58495414", "0.58392423", "0.58338994", "0.58154637", "0.58069575", "0.57927567", "0.578939", "0.57841045", "0.5779981", "0.5753099", "0.5741735", "0.57333666", "0.57321835", "0.5731796", "0.57317585", "0.572287", "0.5720141", "0.5712233", "0.56939065", "0.56927073", "0.5685293", "0.56847894", "0.5683809", "0.56834316", "0.56828403", "0.56666017", "0.56607187", "0.56579894", "0.5648655", "0.56438047", "0.5620551", "0.561873", "0.5609984", "0.55931836", "0.55871445", "0.5586237", "0.55789423", "0.55779636", "0.55737203", "0.55702287", "0.55692416", "0.5561011", "0.5559403", "0.5543905", "0.5541634", "0.5536858", "0.5522634", "0.5517553", "0.5517258", "0.5512109", "0.5509594", "0.55070907", "0.5496529", "0.54921997", "0.5491354", "0.5486711", "0.5481696", "0.54758567", "0.5471066", "0.54659206" ]
0.0
-1
Create a CHECKOUT table reference
public Checkout() { this(DSL.name("CHECKOUT"), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "@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 Checkout(Name alias) {\n this(alias, CHECKOUT);\n }", "TABLE createTABLE();", "HealthCheck createHealthCheck(TableName tableName);", "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}", "TableInstance createTableInstance();", "public Checkout() {}", "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 }", "public Checkout(String alias) {\n this(DSL.name(alias), CHECKOUT);\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}", "public TableCreation(Table table) {\n this.table = table;\n }", "BTable createBTable();", "private void createTable() {\n table = new Table();\n table.bottom();\n table.setFillParent(true);\n }", "Table createTable();", "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}", "public static String tableName() {\r\n return \"TB_UPP_CHECK_STORE_DIVERGENCE\";\r\n }", "public void buildAccountStatus() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS account_status (user_id\"\n + \" TEXT UNIQUE, status INT, FOREIGN KEY (user_id) REFERENCES users\"\n + \"(id)\" + \" ON DELETE CASCADE ON UPDATE CASCADE);\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }", "private void createStressTestRowOutgoingTable(int payloadColumns) {\n Column[] defaultColumns = getDefaultStressTestRowColumns();\n Table table = new Table(STRESS_TEST_ROW_OUTGOING, defaultColumns);\n List<Column> payloads = getPayloadColumns(payloadColumns);\n\n table.addColumns(payloads);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "private String createStatusTable(ExportTask task, String studyId) throws BridgeExporterException,\n SynapseException {\n // Delegate table creation to SynapseHelper.\n long dataAccessTeamId = manager.getDataAccessTeamIdForStudy(studyId);\n long principalId = manager.getSynapsePrincipalId();\n String projectId = manager.getSynapseProjectIdForStudyAndTask(studyId, task);\n String tableName = getStatusTableName(studyId);\n String synapseTableId = synapseHelper.createTableWithColumnsAndAcls(COLUMN_LIST, dataAccessTeamId, principalId,\n projectId, tableName);\n\n // write back to DDB table\n manager.setSynapseTableIdToDdb(task, SynapseHelper.DDB_TABLE_SYNAPSE_META_TABLES,\n SynapseHelper.DDB_KEY_TABLE_NAME, getStatusTableName(studyId), synapseTableId);\n\n return synapseTableId;\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 checkOut() {\n\t}", "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() {\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 }", "public void doCreateTable();", "private void outputBuildTableFunction(PrintWriter out) {\n\t\t\n\t\tout.println(\" private void buildTable() {\");\n\t\t\n\t\tout.println(\" GrammarState[] graph;\");\n\t\t\n\t\tfor (String rulename : grammardef.getTable().keySet()) {\n\t\t\t\n\t\t\tout.println(\" table.put(\\\"\" + rulename + \"\\\", new HashMap<String, GrammarRule>());\");\n\t\t\t\n\t\t\tfor (String tokname : grammardef.getTable().get(rulename).keySet()) {\n\t\t\t\t\n\t\t\t\tGrammarRule rule = grammardef.getTable().get(rulename).get(tokname);\n\t\t\t\t\n\t\t\t\tString multi = rule.isMultiChild() ? \"true\" : \"false\";\n\t\t\t\tString sub = rule.isSubrule() ? \"true\" : \"false\";\n\t\t\t\t\n\t\t\t\tint i = 0;\n\t\t\t\tout.println(\" graph = new GrammarState[\" + rule.getGraph().size() + \"];\");\n\t\t\t\tfor (GrammarState state : rule.getGraph()) {\n\t\t\t\t\tout.println(\" graph[\" + (i++) + \"] = new GrammarState(\\\"\" + state.name + \"\\\", \" + state.type + \");\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tout.println(\" table.get(\\\"\" + rulename + \"\\\").put(\\\"\" + tokname + \"\\\", new GrammarRule(\\\"\" + rule.getName() + \"\\\", \" + multi + \", \" + sub + \", graph));\");\n\t\t\t\tout.println();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout.println(\" }\");\n\t\t\n\t}", "Table8 create(Table8 table8);", "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 }", "public void createTable() {\r\n\t\tclient.createTable();\r\n\t}", "int createTable(HbaseObj t);", "private static Instruction createGoToTableInstruction(final Short tableId) {\n\n\t\tLOG.info(\"createGoToTable table ID \" + tableId);\n\n\t\treturn new InstructionBuilder()\n\t\t\t\t.setInstruction(new GoToTableCaseBuilder()\n\t\t\t\t\t\t.setGoToTable(new GoToTableBuilder().setTableId(tableId).build()).build())\n\t\t\t\t.setKey(new InstructionKey(getInstructionKey())).setOrder(0).build();\n\n\t}", "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}", "tbls createtbls();", "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}", "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 }", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\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 }", "@SuppressWarnings(\"unchecked\")\n private void createTable() {\n table = (LinkedList<Item<V>>[])new LinkedList[capacity];\n for(int i = 0; i < table.length; i++) {\n table[i] = new LinkedList<>();\n }\n }", "public void checkOut() {\n\n }", "public void createNewTable() throws WoodsException{\n\t\t\tuserTable = new Table(tableName);\n\t\t\tDatabase.get().storeTable(tableName, userTable);\n\t\t}", "boolean createTable();", "void updateTapTableReferences(TableConfig cfgTable, boolean createOnly) throws ConfigurationException;", "private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }", "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 }", "FromTable createFromTable();", "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 createTapTable(TableConfig tableConfig) throws ConfigurationException;", "public static String AssetRef_CreateTable()\n\t{\n\t\tString str = \"create table assetref (\" \n\t\t\t\t+ \"id INTEGER PRIMARY KEY,\"\n\t\t\t\t+ \"uniqueId string,\"\n\t\t\t\t+ \"path string,\"\n\t\t\t\t+ \"name string,\"\n\t\t\t\t+ \"size int,\"\n\t\t\t\t+ \"lastChanged time\"\n\t\t\t\t+ \")\";\n\t\treturn str;\t\n\t}", "private static void manageTableCreation(int upperBound) {\r\n\t\tcreateTables(100, upperBound);\r\n\t\tcreateTables(200, upperBound);\r\n\t\tcreateTables(400, upperBound);\r\n\t\tcreateTables(600, upperBound);\r\n\t\tcreateTables(800, upperBound);\t\t\r\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 }", "@SuppressWarnings(\"unused\")\n private AddTable() {\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}", "@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 }", "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}", "private TableAccessET() {\n\n }", "private EstabelecimentoTable() {\n\t\t\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}", "TableFull createTableFull();", "protected void createTable() {\n table = (MapEntry<K, V>[]) new MapEntry[capacity]; // safe cast\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}", "public void buildOrderStatus() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS order_status (order_id TEXT, status INT,\"\n + \" time REAL, \"\n + \" FOREIGN KEY (order_id) REFERENCES orders(id)\"\n + \" ON DELETE CASCADE ON\"\n + \" UPDATE CASCADE);\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "@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}", "ExpRunTable createRunTable(String name, UserSchema schema, ContainerFilter cf);", "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 }", "@Override\n public void createTable() throws Exception {\n }", "Table getReferencedTable();", "public void CheckOut(){\n if (isIn == true){\n isIn = false;\n// System.out.println(name + \" has been checked out of the library.\");\n// }else\n// System.out.println(name + \" is already checked out.\");\n }\n }", "public void SerializeTable(ObjectOutputStream out) {\n\t\t\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 void testCreateTable2() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n props.setProperty(SqlDbManager.PARAM_DATASOURCE_DATABASENAME,\n\t\t new File(tempDirPath, \"db/TestSqlDbManager\")\n\t\t\t .getCanonicalPath());\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n createTable();\n }", "public void createTable(Connection connection) throws SQLException\n {\n\t// create the SQL for the table\n\tStringBuffer sbCreate = new StringBuffer();\n\tsbCreate.append(\" CREATE TABLE Credit \"); \n\tsbCreate.append(\" ( \");\n\tsbCreate.append(\" CID VARCHAR2(25), \"); \n\tsbCreate.append(\" Defaultcc VARCHAR2(25), \"); \n\tsbCreate.append(\" cc_number INTEGER, \"); \n\tsbCreate.append(\" EMAIL VARCHAR2(25), \");\n\tsbCreate.append(\" Expire_Date VARCHAR2(25), \");\n\tsbCreate.append(\" PRIMARY KEY (CID), \");\n\tsbCreate.append(\" FOREIGN KEY (EMAIL) \");\n\tsbCreate.append(\" REFERENCES CUSTOMER(EMAIL)\");\n\tsbCreate.append(\" ) \");\n \n\t// create the table\n\tStatement statement = null;\n\ttry {\n\t statement = connection.createStatement();\n\t statement.executeUpdate (sbCreate.toString());\n\t} catch (SQLException e) {\n\t throw e;\n\t} finally {\n\t statement.close();\n\t}\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\n\t\tdb.execSQL(\"CREATE TABLE \" + TABLE_NAME\n\t\t\t\t+ \" (\" + _ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" \n\t\t\t\t+ NAME_VALUE + \" TEXT NOT NULL);\");\t\n\t\tdb.execSQL(\"CREATE TABLE \" + TABLE_EXERCISE \n\t\t\t\t+ \" (\" + _ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" \n\t\t\t\t+ NAME_ID + \" INTEGER NOT NULL, \"\n\t\t\t\t+ WORKOUT_ID + \" INTEGER NOT NULL, \"\n\t\t\t\t+ COUNT_OF_REPS + \" INTEGER NOT NULL, \" \n\t\t\t\t+ REP_DURATION + \" INTEGER NOT NULL, \"\n\t\t\t\t+ REST_DURATION + \" INTEGER NOT NULL, \"\n\t\t\t\t+\"FOREIGN KEY(\"+WORKOUT_ID\n\t\t\t\t+\") REFERENCES \"+TABLE_WORKOUT+\"(\"+_ID+\"), \"\n\t\t\t\t+\"FOREIGN KEY(\"+NAME_ID\n\t\t\t\t+\") REFERENCES \"+TABLE_NAME+\"(\"+_ID+\"));\");\t\n\t\tdb.execSQL(\"CREATE TABLE \" + TABLE_WORKOUT\n\t\t\t\t+ \" (\" + _ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" \n\t\t\t\t+ DESCRIPTION + \" TEXT, \"\n\t\t\t\t+ WORKOUT_NAME + \" TEXT NOT NULL);\");\n\t\tdb.execSQL(\"INSERT INTO \"+TABLE_NAME+\"(\"+NAME_VALUE+\") VALUES (\"+\"'pull ups'\"+\");\");\n\t\tdb.execSQL(\"INSERT INTO \"+TABLE_NAME+\"(\"+NAME_VALUE+\") VALUES (\"+\"'push ups'\"+\");\");\n\t\tdb.execSQL(\"INSERT INTO \"+TABLE_NAME+\"(\"+NAME_VALUE+\") VALUES (\"+\"'press up'\"+\");\");\n\t\t\n\t\t\n\t}", "public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "UnpivotTable createUnpivotTable();", "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 }", "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}", "private static InstructionsBuilder createGoToNextTableInstruction(short thistable) {\n\t\t// Create an instruction allowing the interaction.\n\t\tList<Instruction> instructions = new ArrayList<Instruction>();\n\t\tinstructions.add(createGoToTableInstruction((thistable)));\n\t\tInstructionsBuilder isb = new InstructionsBuilder();\n\t\tisb.setInstruction(instructions);\n\t\treturn isb;\n\t}", "private EventHistoryTable() {}", "public TableDefinition(String tableName) {\n this.tableName = tableName;\n }", "protected void createTableRecordings() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Recordings (\" \t\t\t\t\t\t\t+\n\t\t\t\t\"artist_name\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"track_name\t\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"CONSTRAINT unique_track PRIMARY KEY (artist_name, track_name)\" \t+\n\t\t\t\t\");\"\n\t\t\t\t;\n\t\tcreateTable(query);\n\t}", "private void createTables() {\n\t\tStatement s = null;\n\t\ttry {\n\t\t\ts = conn.createStatement();\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString createString = \"CREATE TABLE targeteprs (\" +\n\t\t\t\t\t \"targetepr varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"processID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"operation varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"status varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"uniqueID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"correlationKey varchar(255) NOT NULL, \"+\n\t\t\t\t\t \"correlationValue varchar(255) NOT NULL)\";\n\t\t//System.out.println(\"CREATE: \" + createString);\n\t\tSystem.out.println(\"--> Created targetepr table.\");\n\t\ttry {\n\t\t\tthis.insertQuery(createString);\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\t\n\t\tcreateString = \"CREATE TABLE workflow (\" +\n\t\t\t\t\t \"uniqueID varchar(100) NOT NULL, \" +\n\t\t\t\t\t \"processID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"operation varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"status varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"correlationKey varchar(255) NOT NULL, \"+\n\t\t\t\t\t \"correlationValue varchar(255) NOT NULL)\";\n\t\t//System.out.println(\"CREATE: \" + createString);\n\t\tSystem.out.println(\"--> Created workflow table.\");\n\t\ttry {\n\t\t\tthis.insertQuery(createString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\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 }", "public abstract void checkedOut();", "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}", "public static String createstatementObservationTable(String email) {\n\t\treturn String.format(\n\t\t\t\t\"create table IF NOT EXISTS OBSERVATION%s (timestamp varchar(255), location varchar(255),confidence double)\",\n\t\t\t\temail);\n\t}", "String createNewTable(String name,\n String[] colNames, String[] colTypes) {\n\n try {\n if (tables.get(name) != null) {\n return \"ERROR: Table already exists\";\n\n }\n Table t = new Table(name, colNames, colTypes);\n tables.put(name, t);\n\n return \"\";\n } catch (NullPointerException e) {\n return \"ERROR: Malformed Table\";\n } catch (IllegalArgumentException e) {\n return \"ERROR: Malformed Table\";\n }\n\n\n }", "PivotTable createPivotTable();", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"BUDGETS\\\" (\" + //\n \"\\\"idBudget\\\" INTEGER PRIMARY KEY ,\" + // 0: id\n \"\\\"ID_USER\\\" INTEGER NOT NULL ,\" + // 1: idUser\n \"\\\"BUDGET_DATE\\\" INTEGER,\" + // 2: budgetDate\n \"\\\"ACTIVE\\\" INTEGER);\"); // 3: active\n }", "public static CloudTable createTable(CloudTableClient tableClient, String tableName) throws StorageException, RuntimeException, IOException, InvalidKeyException, IllegalArgumentException, URISyntaxException, IllegalStateException {\n CloudTable table = tableClient.getTableReference(tableName);\n try {\n if(table.exists())\n return table;\n else if (table.createIfNotExists() == false) {\n throw new IllegalStateException(String.format(\"Table with name \\\"%s\\\" already exists.\", tableName));\n }\n }\n catch (StorageException s) {\n if (s.getCause() instanceof java.net.ConnectException) {\n System.out.println(\"Caught connection exception from the client. If running with the default configuration please make sure you have started the storage emulator.\");\n }\n throw s;\n }\n\n return table;\n }", "@Override\r\n\tpublic void commit(String tableName) {\n\t}", "public String getCreateTemporaryTableString() {\n \t\treturn \"create table\";\n \t}", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"HEALTH_RECORD__STATUS\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY ,\" + // 0: id\n \"\\\"UPDATE_TYPE\\\" TEXT,\" + // 1: updateType\n \"\\\"PERSON_ID\\\" TEXT UNIQUE ,\" + // 2: personId\n \"\\\"MACHINE_NO\\\" TEXT,\" + // 3: machineNo\n \"\\\"NAME\\\" TEXT,\" + // 4: name\n \"\\\"RECORD_RESULT_CODE\\\" TEXT,\" + // 5: recordResultCode\n \"\\\"RECORD_RESULT_DESC\\\" TEXT);\"); // 6: recordResultDesc\n }", "public void createTable(Class<?> clz) {\n\t\tcreateTable(getWritableDatabase(), clz);\n\t}", "int createTable(@Param(\"tableName\") String tableName);", "public CreateTable(Object result) {\r\n this.result = result;\r\n columnNames = new String[1];\r\n columnNames[0] = \"Result\";\r\n tableData = new Object[1][1];\r\n tableData[0][0] = this.result;\r\n }", "private String generateSqlServerTemporaryTableName() {\n return \"temp\" + temporaryTableCounter.getAndIncrement();\n }", "Table getTable();" ]
[ "0.61897826", "0.5586242", "0.5561546", "0.5551247", "0.5548962", "0.55200106", "0.54111624", "0.5374146", "0.5362212", "0.5360875", "0.5328026", "0.5317023", "0.5256962", "0.5236888", "0.52298117", "0.52191067", "0.5218817", "0.5190571", "0.5184614", "0.5181919", "0.51756525", "0.5153341", "0.5134109", "0.5130009", "0.5121912", "0.5114058", "0.5090931", "0.50860876", "0.5063567", "0.50602615", "0.5046289", "0.5041436", "0.5006172", "0.49728107", "0.4972688", "0.4971734", "0.49702722", "0.49607477", "0.49577606", "0.4954827", "0.4942972", "0.4938468", "0.4891219", "0.48849133", "0.48825282", "0.48685023", "0.48643816", "0.48507965", "0.4846218", "0.4841939", "0.48374128", "0.48374054", "0.48374054", "0.48271188", "0.48176807", "0.48116082", "0.4808001", "0.4794829", "0.47923455", "0.47879624", "0.47661233", "0.4763558", "0.47617638", "0.47611436", "0.47597665", "0.47564515", "0.47493434", "0.47464892", "0.4734075", "0.47256374", "0.4724906", "0.47247836", "0.47242895", "0.4719323", "0.4705012", "0.4703502", "0.47030264", "0.4698276", "0.46940187", "0.46832472", "0.4676662", "0.46719286", "0.46612144", "0.46574712", "0.46388724", "0.46311945", "0.4630188", "0.46161875", "0.46133795", "0.4612321", "0.46116173", "0.46112236", "0.46098086", "0.46074995", "0.46072748", "0.460447", "0.46002242", "0.45969656", "0.4591171", "0.4575428" ]
0.60726285
1
Create an aliased CHECKOUT table reference
public Checkout(String alias) { this(DSL.name(alias), CHECKOUT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Checkout(Name alias) {\n this(alias, CHECKOUT);\n }", "Table getReferencedTable();", "public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }", "public String getNextTableSqlAlias() {\n return \"t\"+(aliasCounter++);\n }", "public Checkout() {\n this(DSL.name(\"CHECKOUT\"), null);\n }", "public Mytable(Name alias) {\n this(alias, MYTABLE);\n }", "public Syschecks(String alias) {\n this(alias, SYSCHECKS);\n }", "@Test\n public void testAliasedTableColumns()\n {\n assertEquals(\n runner.execute(\"SELECT * FROM orders AS t (a, b, c, d, e, f, g, h, i)\"),\n runner.execute(\"SELECT * FROM orders\"));\n }", "TableOrAlias createTableOrAlias();", "private void appendFullTableNameAndAlias(String stageName) {\n builder.append(getFullTableName(stageName)).append(AS).append(getTableAlias(stageName));\n }", "FromTableJoin createFromTableJoin();", "public String getReferencedTableName();", "public TableVersion(String alias) {\n this(DSL.name(alias), TABLE_VERSION);\n }", "public AgentTable(String alias) {\n this(alias, AGENT);\n }", "private static Instruction createGoToTableInstruction(final Short tableId) {\n\n\t\tLOG.info(\"createGoToTable table ID \" + tableId);\n\n\t\treturn new InstructionBuilder()\n\t\t\t\t.setInstruction(new GoToTableCaseBuilder()\n\t\t\t\t\t\t.setGoToTable(new GoToTableBuilder().setTableId(tableId).build()).build())\n\t\t\t\t.setKey(new InstructionKey(getInstructionKey())).setOrder(0).build();\n\n\t}", "UnpivotTable createUnpivotTable();", "public LoggingTable(String alias) {\n\t\tthis(alias, LOGGING);\n\t}", "public DiffPlanOutline() {\n\t\tsuper(\"DIFF_PLAN_OUTLINE\", org.jooq.examples.oracle.sys.Sys.SYS, org.jooq.examples.oracle.sys.packages.DbmsXplan.DBMS_XPLAN, org.jooq.impl.SQLDataType.VARCHAR);\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(SQL_TEXT);\n\t\taddInParameter(OUTLINE1);\n\t\taddInParameter(OUTLINE2);\n\t\taddInParameter(USER_NAME);\n\t}", "AliasStatement createAliasStatement();", "public static String tableName() {\r\n return \"TB_UPP_CHECK_STORE_DIVERGENCE\";\r\n }", "public TableVersion(Name alias) {\n this(alias, TABLE_VERSION);\n }", "public TableReference getFromTable() {\r\n return fromTable;\r\n }", "private String generateSqlServerTemporaryTableName() {\n return \"temp\" + temporaryTableCounter.getAndIncrement();\n }", "public String generateTemporaryTableName(String baseTableName) {\n \t\treturn \"HT_\" + baseTableName;\n \t}", "private void outputBuildTableFunction(PrintWriter out) {\n\t\t\n\t\tout.println(\" private void buildTable() {\");\n\t\t\n\t\tout.println(\" GrammarState[] graph;\");\n\t\t\n\t\tfor (String rulename : grammardef.getTable().keySet()) {\n\t\t\t\n\t\t\tout.println(\" table.put(\\\"\" + rulename + \"\\\", new HashMap<String, GrammarRule>());\");\n\t\t\t\n\t\t\tfor (String tokname : grammardef.getTable().get(rulename).keySet()) {\n\t\t\t\t\n\t\t\t\tGrammarRule rule = grammardef.getTable().get(rulename).get(tokname);\n\t\t\t\t\n\t\t\t\tString multi = rule.isMultiChild() ? \"true\" : \"false\";\n\t\t\t\tString sub = rule.isSubrule() ? \"true\" : \"false\";\n\t\t\t\t\n\t\t\t\tint i = 0;\n\t\t\t\tout.println(\" graph = new GrammarState[\" + rule.getGraph().size() + \"];\");\n\t\t\t\tfor (GrammarState state : rule.getGraph()) {\n\t\t\t\t\tout.println(\" graph[\" + (i++) + \"] = new GrammarState(\\\"\" + state.name + \"\\\", \" + state.type + \");\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tout.println(\" table.get(\\\"\" + rulename + \"\\\").put(\\\"\" + tokname + \"\\\", new GrammarRule(\\\"\" + rule.getName() + \"\\\", \" + multi + \", \" + sub + \", graph));\");\n\t\t\t\tout.println();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout.println(\" }\");\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}", "HealthCheck createHealthCheck(TableName tableName);", "@Test\n public void testRightOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG right outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_RIGHT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG RIGHT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }", "void updateTapTableReferences(TableConfig cfgTable, boolean createOnly) throws ConfigurationException;", "@Override\n protected ASTNode getTargetTableNode(ASTNode tree) {\n ASTNode tabName = (ASTNode)tree.getChild(0);\n assert tabName.getToken().getType() == HiveParser.TOK_TABNAME :\n \"Expected tablename as first child of \" + operation + \" but found \" + tabName.getName();\n return tabName;\n }", "protected void createExpandedNameTable( )\r\n {\r\n\r\n super.createExpandedNameTable();\r\n\r\n m_ErrorExt_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_EXT_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_SQLError_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_Message_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_MESSAGE, DTM.ELEMENT_NODE);\r\n\r\n m_Code_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CODE, DTM.ELEMENT_NODE);\r\n\r\n m_State_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_STATE, DTM.ELEMENT_NODE);\r\n\r\n m_SQLWarning_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_WARNING, DTM.ELEMENT_NODE);\r\n }", "public void setTableAlias( String talias ) {\n talias_ = talias;\n }", "public String getCreateTemporaryTableString() {\n \t\treturn \"create table\";\n \t}", "public void testOneTableSynAS() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName FROM AD_Table AS t WHERE t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t|0]\", fixture.toString());\n }", "private String buildStaticViewString(Stream strm, String name) {\n\t\tString viewString = \"CREATE TEMP TABLE \"+name;\n\t\tviewString += \" AS \";\n\t\tviewString += \"SELECT * FROM \" + generateStreamData(strm, name, false) + \";\\r\\n\";\n\t\treturn viewString;\n\t}", "private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }", "TableInstance createTableInstance();", "@Test\n public void testAliasesInFrom() throws Exception {\n String sql = \"SELECT myG.*, myH.b FROM g AS myG, h AS myH\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node meSymbolNode = verify(selectNode, Select.SYMBOLS_REF_NAME, 1, MultipleElementSymbol.ID);\n Node groupSymbolNode = verify(meSymbolNode, MultipleElementSymbol.GROUP_REF_NAME, GroupSymbol.ID);\n verifyProperty(groupSymbolNode, Symbol.NAME_PROP_NAME, \"myG\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"myH\", \"h\");\n \n verifySql(sql, fileNode);\n }", "void visit(final TableAlias tableAlias);", "public TableName name();", "@Test\n public void testRightJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG right join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_RIGHT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG RIGHT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }", "public static final String getAuthCollabOverKWTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authcollabkw_\" +shortname +\r\n\t\t\"(keyword varchar(255) NOT NULL, \" + \r\n\t\t\"author varchar(70) NOT NULL, \" + \r\n\t\t\" collabauth varchar(70) NOT NULL, \" +\r\n\t\t\"collabcnt int NOT NULL\" +\r\n\t\t\" ) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "public DynamicSchemaTable(String alias) {\n this(alias, DYNAMIC_SCHEMA);\n }", "public PgTablespace(String alias) {\n this(DSL.name(alias), PG_TABLESPACE);\n }", "public Table<Integer, Integer, String> getAnonymizedData();", "List<TargetTable> retrieveShortCadenceTargetTable(TargetTable ttable);", "public String getCreationSQL(final boolean quoteNames) {\n final StringBuilder sbSQL = new StringBuilder();\n sbSQL.append(\"CREATE TABLE \");\n sbSQL.append(PgDiffUtils.getQuotedName(name, quoteNames));\n sbSQL.append(\" (\\n\");\n \n for (PgColumn column : columns) {\n sbSQL.append(\"\\t\");\n sbSQL.append(column.getFullDefinition(quoteNames, false));\n sbSQL.append(\",\\n\");\n }\n \n sbSQL.setLength(sbSQL.length() - 2);\n sbSQL.append(\"\\n)\");\n \n if ((inherits != null) && (inherits.length() > 0)) {\n sbSQL.append(\"\\nINHERITS \");\n sbSQL.append(inherits);\n }\n \n sbSQL.append(';');\n \n for (PgColumn column : getColumnsWithStatistics()) {\n sbSQL.append(\"\\nALTER TABLE ONLY \");\n sbSQL.append(PgDiffUtils.getQuotedName(name, quoteNames));\n sbSQL.append(\" ALTER COLUMN \");\n sbSQL.append(\n PgDiffUtils.getQuotedName(column.getName(), quoteNames));\n sbSQL.append(\" SET STATISTICS \");\n sbSQL.append(column.getStatistics());\n sbSQL.append(';');\n }\n \n return sbSQL.toString();\n }", "private String getTableAlias(String stageName) {\n String tableAlias = stageToTableAliasMap.get(stageName);\n\n if (tableAlias == null) {\n throw new SQLEngineException(String.format(\"Unable to determine table alias for stage '%s'\", stageName));\n }\n\n return tableAlias;\n }", "public ATExpression base_tableExpression();", "AliasVariable createAliasVariable();", "Table getReferences();", "TABLE createTABLE();", "@Test\n public void testLeftOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG left outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_LEFT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG LEFT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }", "TableFull createTableFull();", "private TableAccessET() {\n\n }", "@Test(timeout = 4000)\n public void test042() throws Throwable {\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.innerJoin(\"alter materialized viewjcsh%4%|@v9\", stringArray0, \"create materialized viewjcsh%4%|@v9\", \"\", stringArray0);\n assertEquals(\"create materialized viewjcsh%4%|@v9 as on alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null\", string0);\n }", "FromTable createFromTable();", "private String createLabelTableSQL()\n\t{\n\t\treturn \"LABEL ON TABLE \" + getFullPath() + \" IS '\" + SQLToolbox.cvtToSQLFieldColHdg(function.getLabel()) + \"'\";\n\t}", "public static String getActualTableName(String utableName)\n {\n String tn = (DBFactory.TableNameMap != null)? DBFactory.TableNameMap.get(utableName) : null;\n return (tn != null)? tn : utableName;\n }", "String jobTableName();", "public PgTablespace(Name alias) {\n this(alias, PG_TABLESPACE);\n }", "protected void createSubQueryJoinTable() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Team -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Person -->\r\n createSelectClauseJoin(subQuery, queryRoot, right);\r\n Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, left);\r\n whereCondition = cb.and(whereCondition, createWhereByAssociation(queryJoinTable, queryRoot, right));\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n\r\n }", "private static InstructionsBuilder createGoToNextTableInstruction(short thistable) {\n\t\t// Create an instruction allowing the interaction.\n\t\tList<Instruction> instructions = new ArrayList<Instruction>();\n\t\tinstructions.add(createGoToTableInstruction((thistable)));\n\t\tInstructionsBuilder isb = new InstructionsBuilder();\n\t\tisb.setInstruction(instructions);\n\t\treturn isb;\n\t}", "public PgPublicationTables(Name alias) {\n this(alias, PG_PUBLICATION_TABLES);\n }", "private String getCloneSetLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET_LINK(\");\n \t\tbuilder.append(\"CLONE_SET_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"ADDED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"DELETED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CO_CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINKS TEXT NOT NULL\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "@Test\n public void testHiddenAliasesInFrom() throws Exception {\n String sql = \"SELECT myG.*, myH.b FROM g myG, h myH\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node meSymbolNode = verify(selectNode, Select.SYMBOLS_REF_NAME, 1, MultipleElementSymbol.ID);\n Node groupSymbolNode = verify(meSymbolNode, MultipleElementSymbol.GROUP_REF_NAME, GroupSymbol.ID);\n verifyProperty(groupSymbolNode, Symbol.NAME_PROP_NAME, \"myG\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"myH\", \"h\");\n\n verifySql(\"SELECT myG.*, myH.b FROM g AS myG, h AS myH\", fileNode);\n }", "TableId table();", "IndexNameReference createIndexNameReference();", "public Table asTable() {\n Table table = Table.create(this.name());\n for (Column<?> column : this.columns()) {\n table.addColumns(column);\n }\n return table;\n }", "@Test\n public void testFullOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG full outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_FULL_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG FULL OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }", "private String getCodeFragmentLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CODE_FRAGMENT_LINK(\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public SelectStatement as(TableAlias tableAlias) {\n\t\tSelectStatement stmt = copy();\n\t\tstmt.tableAlias = tableAlias;\n\t\treturn stmt;\n\t}", "private void createStressTestRowOutgoingTable(int payloadColumns) {\n Column[] defaultColumns = getDefaultStressTestRowColumns();\n Table table = new Table(STRESS_TEST_ROW_OUTGOING, defaultColumns);\n List<Column> payloads = getPayloadColumns(payloadColumns);\n\n table.addColumns(payloads);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "public void testOneTableSyn() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName FROM AD_Table t WHERE t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t|0]\", fixture.toString());\n }", "@Test\n public void testLeftJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG left outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_LEFT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG LEFT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }", "public T caseTableAlias(TableAlias object) {\n\t\treturn null;\n\t}", "Table createTable();", "@VisibleForTesting\n protected static String quoteAlias(String alias) {\n return String.format(\"`%s`\", alias);\n }", "String tableName2Name(String name);", "public PgPublicationTables(String alias) {\n this(DSL.name(alias), PG_PUBLICATION_TABLES);\n }", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "public void testTwoTableSyn() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName, c.AD_Column_ID, c.ColumnName FROM AD_Table as t, AD_Column AS c WHERE t.AD_Table_ID=c.AD_Table_ID AND t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t,AD_Column=c|0]\", fixture.toString());\n }", "@Test(enabled = false)\n public void testCreateTemporaryExternalTable() throws Exception {\n String tableName = tableName();\n String colName = columnName();\n String query = String.format(\"create TEMPORARY EXTERNAL table %s.%s(%s, %s)\", DEFAULT_DB , tableName , colName + \" int\", \"name string\");\n String tableQualifiedName = HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName, true);\n\n Configuration configuration = ApplicationProperties.get();\n configuration.setProperty(HiveHook.HOOK_HIVE_SKIP_ALL_TEMP_TABLES, true);\n runCommand(query);\n\n Thread.sleep(10000);\n\n try {\n atlasClientV2.getEntityByAttribute(HiveDataTypes.HIVE_TABLE.getName(), Collections.singletonMap(ATTRIBUTE_QUALIFIED_NAME, tableQualifiedName));\n } catch (AtlasServiceException e) {\n if (e.getStatus() == ClientResponse.Status.NOT_FOUND) {\n return;\n }\n }\n\n fail(String.format(\"Entity was not supposed to exist for typeName = %s, attributeName = %s, attributeValue = %s\", HiveDataTypes.HIVE_TABLE.getName(), ATTRIBUTE_QUALIFIED_NAME, tableQualifiedName));\n }", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "@Ignore(\"Disabled due to missing functionality in Oracle XE.\")\n @Test\n public void referencePartitionedTable() throws FlywayException {\n flyway.setLocations(\"migration/dbsupport/oracle/sql/refpart\");\n flyway.migrate();\n flyway.clean();\n flyway.migrate();\n }", "@Test\n public void testAliasInFrom() throws Exception {\n String sql = \"SELECT myG.a FROM g AS myG\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"myG.a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n \n verifySql(sql, fileNode);\n }", "private String getCommitTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table VCS_COMMIT(\");\n \t\tbuilder.append(\"VCS_COMMIT_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_IDENTIFIER TEXT,\");\n \t\tbuilder.append(\"AFTER_REVISION_IDENTIFIER TEXT\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public TableReference getTable() {\r\n return table;\r\n }", "@Override\r\n\tpublic String getTableName(String[] sql) {\n\t\treturn sql[2];\r\n\t}", "public static String AssetRef_CreateTable()\n\t{\n\t\tString str = \"create table assetref (\" \n\t\t\t\t+ \"id INTEGER PRIMARY KEY,\"\n\t\t\t\t+ \"uniqueId string,\"\n\t\t\t\t+ \"path string,\"\n\t\t\t\t+ \"name string,\"\n\t\t\t\t+ \"size int,\"\n\t\t\t\t+ \"lastChanged time\"\n\t\t\t\t+ \")\";\n\t\treturn str;\t\n\t}", "public Refund(Name alias) {\n this(alias, REFUND);\n }", "public String appendLockHint(LockOptions lockOptions, String tableName){\n \t\treturn tableName;\n \t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "public interface TableDefinition extends BaseColumns {\n\n String tableName();\n\n String createStatement();\n\n String dropStatement();\n \n}", "public String toString() {\n\t\treturn \"JoinTableSpec(\"+leftTable.toString()+\" INNER JOIN \"+rightTable.toString()\n\t\t\t\t+\" ON \"+leftCell.toString()+\" = \"+rightCell.toString()+\")\";\n\t}", "public DslExpression<T> as(String alias) {\n return as(ExpressionUtils.path(getType(), alias));\n }", "public void generateRef(PhpWriter out)\n throws IOException\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n objGen.generateVar(out);\n out.print(\".getFieldVar(env, \");\n out.printIntern(_name);\n out.print(\")\");\n }", "List<TargetTable> retrieveLongCadenceTargetTable(TargetTable ttable);", "@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}" ]
[ "0.5924073", "0.5098705", "0.50820035", "0.5071131", "0.50094", "0.5007164", "0.49854475", "0.49807757", "0.49759164", "0.49131972", "0.48691803", "0.48096415", "0.48051804", "0.47930044", "0.47577298", "0.4734907", "0.47324333", "0.4730588", "0.47196418", "0.46993187", "0.46882558", "0.4687776", "0.46808958", "0.46093887", "0.4609094", "0.45808575", "0.45545566", "0.45468566", "0.4530938", "0.45202252", "0.45179668", "0.4515591", "0.45134142", "0.45076665", "0.44995636", "0.44952285", "0.44935122", "0.44795787", "0.44756767", "0.44704694", "0.4466245", "0.44662097", "0.44505504", "0.44493762", "0.44430995", "0.44384784", "0.44374487", "0.44239703", "0.44236496", "0.44068873", "0.4399757", "0.4395652", "0.4389012", "0.43793824", "0.43741062", "0.43711585", "0.43661928", "0.4362368", "0.43574658", "0.43530986", "0.43467066", "0.4343949", "0.4341836", "0.43366066", "0.43297902", "0.4327393", "0.43265846", "0.4318982", "0.43158782", "0.43132943", "0.4300259", "0.4297625", "0.4296441", "0.42953962", "0.42926356", "0.42921582", "0.4290675", "0.42897403", "0.42864272", "0.4284885", "0.42846212", "0.42840117", "0.42791882", "0.42791316", "0.42665184", "0.42633152", "0.4252644", "0.42458734", "0.4245486", "0.42453846", "0.42406452", "0.42405447", "0.42394325", "0.42382145", "0.42293108", "0.4222557", "0.421596", "0.42131704", "0.4207265", "0.42065436" ]
0.5829866
1
Create an aliased CHECKOUT table reference
public Checkout(Name alias) { this(alias, CHECKOUT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Checkout(String alias) {\n this(DSL.name(alias), CHECKOUT);\n }", "Table getReferencedTable();", "public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }", "public String getNextTableSqlAlias() {\n return \"t\"+(aliasCounter++);\n }", "public Checkout() {\n this(DSL.name(\"CHECKOUT\"), null);\n }", "public Mytable(Name alias) {\n this(alias, MYTABLE);\n }", "public Syschecks(String alias) {\n this(alias, SYSCHECKS);\n }", "@Test\n public void testAliasedTableColumns()\n {\n assertEquals(\n runner.execute(\"SELECT * FROM orders AS t (a, b, c, d, e, f, g, h, i)\"),\n runner.execute(\"SELECT * FROM orders\"));\n }", "TableOrAlias createTableOrAlias();", "private void appendFullTableNameAndAlias(String stageName) {\n builder.append(getFullTableName(stageName)).append(AS).append(getTableAlias(stageName));\n }", "FromTableJoin createFromTableJoin();", "public String getReferencedTableName();", "public TableVersion(String alias) {\n this(DSL.name(alias), TABLE_VERSION);\n }", "public AgentTable(String alias) {\n this(alias, AGENT);\n }", "private static Instruction createGoToTableInstruction(final Short tableId) {\n\n\t\tLOG.info(\"createGoToTable table ID \" + tableId);\n\n\t\treturn new InstructionBuilder()\n\t\t\t\t.setInstruction(new GoToTableCaseBuilder()\n\t\t\t\t\t\t.setGoToTable(new GoToTableBuilder().setTableId(tableId).build()).build())\n\t\t\t\t.setKey(new InstructionKey(getInstructionKey())).setOrder(0).build();\n\n\t}", "UnpivotTable createUnpivotTable();", "public LoggingTable(String alias) {\n\t\tthis(alias, LOGGING);\n\t}", "public DiffPlanOutline() {\n\t\tsuper(\"DIFF_PLAN_OUTLINE\", org.jooq.examples.oracle.sys.Sys.SYS, org.jooq.examples.oracle.sys.packages.DbmsXplan.DBMS_XPLAN, org.jooq.impl.SQLDataType.VARCHAR);\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(SQL_TEXT);\n\t\taddInParameter(OUTLINE1);\n\t\taddInParameter(OUTLINE2);\n\t\taddInParameter(USER_NAME);\n\t}", "AliasStatement createAliasStatement();", "public static String tableName() {\r\n return \"TB_UPP_CHECK_STORE_DIVERGENCE\";\r\n }", "public TableVersion(Name alias) {\n this(alias, TABLE_VERSION);\n }", "public TableReference getFromTable() {\r\n return fromTable;\r\n }", "private String generateSqlServerTemporaryTableName() {\n return \"temp\" + temporaryTableCounter.getAndIncrement();\n }", "public String generateTemporaryTableName(String baseTableName) {\n \t\treturn \"HT_\" + baseTableName;\n \t}", "private void outputBuildTableFunction(PrintWriter out) {\n\t\t\n\t\tout.println(\" private void buildTable() {\");\n\t\t\n\t\tout.println(\" GrammarState[] graph;\");\n\t\t\n\t\tfor (String rulename : grammardef.getTable().keySet()) {\n\t\t\t\n\t\t\tout.println(\" table.put(\\\"\" + rulename + \"\\\", new HashMap<String, GrammarRule>());\");\n\t\t\t\n\t\t\tfor (String tokname : grammardef.getTable().get(rulename).keySet()) {\n\t\t\t\t\n\t\t\t\tGrammarRule rule = grammardef.getTable().get(rulename).get(tokname);\n\t\t\t\t\n\t\t\t\tString multi = rule.isMultiChild() ? \"true\" : \"false\";\n\t\t\t\tString sub = rule.isSubrule() ? \"true\" : \"false\";\n\t\t\t\t\n\t\t\t\tint i = 0;\n\t\t\t\tout.println(\" graph = new GrammarState[\" + rule.getGraph().size() + \"];\");\n\t\t\t\tfor (GrammarState state : rule.getGraph()) {\n\t\t\t\t\tout.println(\" graph[\" + (i++) + \"] = new GrammarState(\\\"\" + state.name + \"\\\", \" + state.type + \");\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tout.println(\" table.get(\\\"\" + rulename + \"\\\").put(\\\"\" + tokname + \"\\\", new GrammarRule(\\\"\" + rule.getName() + \"\\\", \" + multi + \", \" + sub + \", graph));\");\n\t\t\t\tout.println();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout.println(\" }\");\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}", "HealthCheck createHealthCheck(TableName tableName);", "@Test\n public void testRightOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG right outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_RIGHT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG RIGHT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }", "void updateTapTableReferences(TableConfig cfgTable, boolean createOnly) throws ConfigurationException;", "@Override\n protected ASTNode getTargetTableNode(ASTNode tree) {\n ASTNode tabName = (ASTNode)tree.getChild(0);\n assert tabName.getToken().getType() == HiveParser.TOK_TABNAME :\n \"Expected tablename as first child of \" + operation + \" but found \" + tabName.getName();\n return tabName;\n }", "protected void createExpandedNameTable( )\r\n {\r\n\r\n super.createExpandedNameTable();\r\n\r\n m_ErrorExt_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_EXT_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_SQLError_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_Message_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_MESSAGE, DTM.ELEMENT_NODE);\r\n\r\n m_Code_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CODE, DTM.ELEMENT_NODE);\r\n\r\n m_State_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_STATE, DTM.ELEMENT_NODE);\r\n\r\n m_SQLWarning_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_WARNING, DTM.ELEMENT_NODE);\r\n }", "public void setTableAlias( String talias ) {\n talias_ = talias;\n }", "public String getCreateTemporaryTableString() {\n \t\treturn \"create table\";\n \t}", "public void testOneTableSynAS() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName FROM AD_Table AS t WHERE t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t|0]\", fixture.toString());\n }", "private String buildStaticViewString(Stream strm, String name) {\n\t\tString viewString = \"CREATE TEMP TABLE \"+name;\n\t\tviewString += \" AS \";\n\t\tviewString += \"SELECT * FROM \" + generateStreamData(strm, name, false) + \";\\r\\n\";\n\t\treturn viewString;\n\t}", "private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }", "TableInstance createTableInstance();", "@Test\n public void testAliasesInFrom() throws Exception {\n String sql = \"SELECT myG.*, myH.b FROM g AS myG, h AS myH\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node meSymbolNode = verify(selectNode, Select.SYMBOLS_REF_NAME, 1, MultipleElementSymbol.ID);\n Node groupSymbolNode = verify(meSymbolNode, MultipleElementSymbol.GROUP_REF_NAME, GroupSymbol.ID);\n verifyProperty(groupSymbolNode, Symbol.NAME_PROP_NAME, \"myG\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"myH\", \"h\");\n \n verifySql(sql, fileNode);\n }", "void visit(final TableAlias tableAlias);", "public TableName name();", "@Test\n public void testRightJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG right join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_RIGHT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG RIGHT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }", "public static final String getAuthCollabOverKWTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authcollabkw_\" +shortname +\r\n\t\t\"(keyword varchar(255) NOT NULL, \" + \r\n\t\t\"author varchar(70) NOT NULL, \" + \r\n\t\t\" collabauth varchar(70) NOT NULL, \" +\r\n\t\t\"collabcnt int NOT NULL\" +\r\n\t\t\" ) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "public DynamicSchemaTable(String alias) {\n this(alias, DYNAMIC_SCHEMA);\n }", "public PgTablespace(String alias) {\n this(DSL.name(alias), PG_TABLESPACE);\n }", "public Table<Integer, Integer, String> getAnonymizedData();", "List<TargetTable> retrieveShortCadenceTargetTable(TargetTable ttable);", "public String getCreationSQL(final boolean quoteNames) {\n final StringBuilder sbSQL = new StringBuilder();\n sbSQL.append(\"CREATE TABLE \");\n sbSQL.append(PgDiffUtils.getQuotedName(name, quoteNames));\n sbSQL.append(\" (\\n\");\n \n for (PgColumn column : columns) {\n sbSQL.append(\"\\t\");\n sbSQL.append(column.getFullDefinition(quoteNames, false));\n sbSQL.append(\",\\n\");\n }\n \n sbSQL.setLength(sbSQL.length() - 2);\n sbSQL.append(\"\\n)\");\n \n if ((inherits != null) && (inherits.length() > 0)) {\n sbSQL.append(\"\\nINHERITS \");\n sbSQL.append(inherits);\n }\n \n sbSQL.append(';');\n \n for (PgColumn column : getColumnsWithStatistics()) {\n sbSQL.append(\"\\nALTER TABLE ONLY \");\n sbSQL.append(PgDiffUtils.getQuotedName(name, quoteNames));\n sbSQL.append(\" ALTER COLUMN \");\n sbSQL.append(\n PgDiffUtils.getQuotedName(column.getName(), quoteNames));\n sbSQL.append(\" SET STATISTICS \");\n sbSQL.append(column.getStatistics());\n sbSQL.append(';');\n }\n \n return sbSQL.toString();\n }", "private String getTableAlias(String stageName) {\n String tableAlias = stageToTableAliasMap.get(stageName);\n\n if (tableAlias == null) {\n throw new SQLEngineException(String.format(\"Unable to determine table alias for stage '%s'\", stageName));\n }\n\n return tableAlias;\n }", "public ATExpression base_tableExpression();", "AliasVariable createAliasVariable();", "Table getReferences();", "TABLE createTABLE();", "@Test\n public void testLeftOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG left outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_LEFT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG LEFT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }", "TableFull createTableFull();", "private TableAccessET() {\n\n }", "@Test(timeout = 4000)\n public void test042() throws Throwable {\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.innerJoin(\"alter materialized viewjcsh%4%|@v9\", stringArray0, \"create materialized viewjcsh%4%|@v9\", \"\", stringArray0);\n assertEquals(\"create materialized viewjcsh%4%|@v9 as on alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null\", string0);\n }", "FromTable createFromTable();", "private String createLabelTableSQL()\n\t{\n\t\treturn \"LABEL ON TABLE \" + getFullPath() + \" IS '\" + SQLToolbox.cvtToSQLFieldColHdg(function.getLabel()) + \"'\";\n\t}", "public static String getActualTableName(String utableName)\n {\n String tn = (DBFactory.TableNameMap != null)? DBFactory.TableNameMap.get(utableName) : null;\n return (tn != null)? tn : utableName;\n }", "String jobTableName();", "public PgTablespace(Name alias) {\n this(alias, PG_TABLESPACE);\n }", "protected void createSubQueryJoinTable() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Team -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Person -->\r\n createSelectClauseJoin(subQuery, queryRoot, right);\r\n Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, left);\r\n whereCondition = cb.and(whereCondition, createWhereByAssociation(queryJoinTable, queryRoot, right));\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n\r\n }", "private static InstructionsBuilder createGoToNextTableInstruction(short thistable) {\n\t\t// Create an instruction allowing the interaction.\n\t\tList<Instruction> instructions = new ArrayList<Instruction>();\n\t\tinstructions.add(createGoToTableInstruction((thistable)));\n\t\tInstructionsBuilder isb = new InstructionsBuilder();\n\t\tisb.setInstruction(instructions);\n\t\treturn isb;\n\t}", "public PgPublicationTables(Name alias) {\n this(alias, PG_PUBLICATION_TABLES);\n }", "private String getCloneSetLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET_LINK(\");\n \t\tbuilder.append(\"CLONE_SET_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"ADDED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"DELETED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CO_CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINKS TEXT NOT NULL\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "@Test\n public void testHiddenAliasesInFrom() throws Exception {\n String sql = \"SELECT myG.*, myH.b FROM g myG, h myH\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node meSymbolNode = verify(selectNode, Select.SYMBOLS_REF_NAME, 1, MultipleElementSymbol.ID);\n Node groupSymbolNode = verify(meSymbolNode, MultipleElementSymbol.GROUP_REF_NAME, GroupSymbol.ID);\n verifyProperty(groupSymbolNode, Symbol.NAME_PROP_NAME, \"myG\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"myH\", \"h\");\n\n verifySql(\"SELECT myG.*, myH.b FROM g AS myG, h AS myH\", fileNode);\n }", "TableId table();", "IndexNameReference createIndexNameReference();", "public Table asTable() {\n Table table = Table.create(this.name());\n for (Column<?> column : this.columns()) {\n table.addColumns(column);\n }\n return table;\n }", "@Test\n public void testFullOuterJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG full outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_FULL_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG FULL OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }", "private String getCodeFragmentLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CODE_FRAGMENT_LINK(\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public SelectStatement as(TableAlias tableAlias) {\n\t\tSelectStatement stmt = copy();\n\t\tstmt.tableAlias = tableAlias;\n\t\treturn stmt;\n\t}", "private void createStressTestRowOutgoingTable(int payloadColumns) {\n Column[] defaultColumns = getDefaultStressTestRowColumns();\n Table table = new Table(STRESS_TEST_ROW_OUTGOING, defaultColumns);\n List<Column> payloads = getPayloadColumns(payloadColumns);\n\n table.addColumns(payloads);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "public void testOneTableSyn() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName FROM AD_Table t WHERE t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t|0]\", fixture.toString());\n }", "@Test\n public void testLeftJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG left outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_LEFT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG LEFT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }", "public T caseTableAlias(TableAlias object) {\n\t\treturn null;\n\t}", "Table createTable();", "@VisibleForTesting\n protected static String quoteAlias(String alias) {\n return String.format(\"`%s`\", alias);\n }", "String tableName2Name(String name);", "public PgPublicationTables(String alias) {\n this(DSL.name(alias), PG_PUBLICATION_TABLES);\n }", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "public void testTwoTableSyn() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName, c.AD_Column_ID, c.ColumnName FROM AD_Table as t, AD_Column AS c WHERE t.AD_Table_ID=c.AD_Table_ID AND t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t,AD_Column=c|0]\", fixture.toString());\n }", "@Test(enabled = false)\n public void testCreateTemporaryExternalTable() throws Exception {\n String tableName = tableName();\n String colName = columnName();\n String query = String.format(\"create TEMPORARY EXTERNAL table %s.%s(%s, %s)\", DEFAULT_DB , tableName , colName + \" int\", \"name string\");\n String tableQualifiedName = HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName, true);\n\n Configuration configuration = ApplicationProperties.get();\n configuration.setProperty(HiveHook.HOOK_HIVE_SKIP_ALL_TEMP_TABLES, true);\n runCommand(query);\n\n Thread.sleep(10000);\n\n try {\n atlasClientV2.getEntityByAttribute(HiveDataTypes.HIVE_TABLE.getName(), Collections.singletonMap(ATTRIBUTE_QUALIFIED_NAME, tableQualifiedName));\n } catch (AtlasServiceException e) {\n if (e.getStatus() == ClientResponse.Status.NOT_FOUND) {\n return;\n }\n }\n\n fail(String.format(\"Entity was not supposed to exist for typeName = %s, attributeName = %s, attributeValue = %s\", HiveDataTypes.HIVE_TABLE.getName(), ATTRIBUTE_QUALIFIED_NAME, tableQualifiedName));\n }", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "@Ignore(\"Disabled due to missing functionality in Oracle XE.\")\n @Test\n public void referencePartitionedTable() throws FlywayException {\n flyway.setLocations(\"migration/dbsupport/oracle/sql/refpart\");\n flyway.migrate();\n flyway.clean();\n flyway.migrate();\n }", "@Test\n public void testAliasInFrom() throws Exception {\n String sql = \"SELECT myG.a FROM g AS myG\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"myG.a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n \n verifySql(sql, fileNode);\n }", "private String getCommitTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table VCS_COMMIT(\");\n \t\tbuilder.append(\"VCS_COMMIT_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_IDENTIFIER TEXT,\");\n \t\tbuilder.append(\"AFTER_REVISION_IDENTIFIER TEXT\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public TableReference getTable() {\r\n return table;\r\n }", "@Override\r\n\tpublic String getTableName(String[] sql) {\n\t\treturn sql[2];\r\n\t}", "public static String AssetRef_CreateTable()\n\t{\n\t\tString str = \"create table assetref (\" \n\t\t\t\t+ \"id INTEGER PRIMARY KEY,\"\n\t\t\t\t+ \"uniqueId string,\"\n\t\t\t\t+ \"path string,\"\n\t\t\t\t+ \"name string,\"\n\t\t\t\t+ \"size int,\"\n\t\t\t\t+ \"lastChanged time\"\n\t\t\t\t+ \")\";\n\t\treturn str;\t\n\t}", "public Refund(Name alias) {\n this(alias, REFUND);\n }", "public String appendLockHint(LockOptions lockOptions, String tableName){\n \t\treturn tableName;\n \t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "public interface TableDefinition extends BaseColumns {\n\n String tableName();\n\n String createStatement();\n\n String dropStatement();\n \n}", "public String toString() {\n\t\treturn \"JoinTableSpec(\"+leftTable.toString()+\" INNER JOIN \"+rightTable.toString()\n\t\t\t\t+\" ON \"+leftCell.toString()+\" = \"+rightCell.toString()+\")\";\n\t}", "public DslExpression<T> as(String alias) {\n return as(ExpressionUtils.path(getType(), alias));\n }", "public void generateRef(PhpWriter out)\n throws IOException\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n objGen.generateVar(out);\n out.print(\".getFieldVar(env, \");\n out.printIntern(_name);\n out.print(\")\");\n }", "List<TargetTable> retrieveLongCadenceTargetTable(TargetTable ttable);", "@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}" ]
[ "0.5829866", "0.5098705", "0.50820035", "0.5071131", "0.50094", "0.5007164", "0.49854475", "0.49807757", "0.49759164", "0.49131972", "0.48691803", "0.48096415", "0.48051804", "0.47930044", "0.47577298", "0.4734907", "0.47324333", "0.4730588", "0.47196418", "0.46993187", "0.46882558", "0.4687776", "0.46808958", "0.46093887", "0.4609094", "0.45808575", "0.45545566", "0.45468566", "0.4530938", "0.45202252", "0.45179668", "0.4515591", "0.45134142", "0.45076665", "0.44995636", "0.44952285", "0.44935122", "0.44795787", "0.44756767", "0.44704694", "0.4466245", "0.44662097", "0.44505504", "0.44493762", "0.44430995", "0.44384784", "0.44374487", "0.44239703", "0.44236496", "0.44068873", "0.4399757", "0.4395652", "0.4389012", "0.43793824", "0.43741062", "0.43711585", "0.43661928", "0.4362368", "0.43574658", "0.43530986", "0.43467066", "0.4343949", "0.4341836", "0.43366066", "0.43297902", "0.4327393", "0.43265846", "0.4318982", "0.43158782", "0.43132943", "0.4300259", "0.4297625", "0.4296441", "0.42953962", "0.42926356", "0.42921582", "0.4290675", "0.42897403", "0.42864272", "0.4284885", "0.42846212", "0.42840117", "0.42791882", "0.42791316", "0.42665184", "0.42633152", "0.4252644", "0.42458734", "0.4245486", "0.42453846", "0.42406452", "0.42405447", "0.42394325", "0.42382145", "0.42293108", "0.4222557", "0.421596", "0.42131704", "0.4207265", "0.42065436" ]
0.5924073
0
Metodo que obtiene los datos de los formularios
public HttpServletRequest getRequest() { return request; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readForm() {\n }", "public void limpiarCamposFormBusqueda() {\n\t}", "@Override\n\tpublic List<ERForm> getAllForms() {\nString sql = \"select * from project1.reimbursementInfo;\";\n\t\t\n\t\tPreparedStatement stmt;\n\t\t\n\t\tList<ERForm> allForms = new ArrayList<ERForm>();\n\t\t\n\t\ttry {\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tERForm form = new ERForm();\n\t\t\t\tform.setRID(rs.getInt(1));\n\t\t\t\tform.setUserName(rs.getString(2));\n\t\t\t\tform.setFullName(rs.getString(3));\n\t\t\t\tform.setTheDate(rs.getDate(4).toLocalDate());\n\t\t\t\tform.setEventStartDate(rs.getDate(5).toLocalDate());\n\t\t\t\tform.setTheLocation(rs.getString(6));\n\t\t\t\tform.setDescription(rs.getString(7));\n\t\t\t\tform.setTheCost(rs.getDouble(8));\n\t\t\t\tform.setGradingFormat(rs.getString(9));\n\t\t\t\tform.setPassingPercentage(rs.getString(10));\n\t\t\t\tform.setEventType(rs.getString(11));\n\t\t\t\tform.setFileName(rs.getString(12));\n\t\t\t\tform.setStatus(rs.getString(13));\n\t\t\t\tform.setReason(rs.getString(14));\n\t\t\t\tallForms.add(form);\n\t\t\t}\n\t\t\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}return allForms;\n\t}", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "public ArrayList<String> getDataFields() {\n\t\tif (containerType != null && \n\t\t\t\t!length.getText().toString().matches(\"\") &&\n\t\t\t\t!width.getText().toString().matches(\"\") && \n\t\t\t\t!height.getText().toString().matches(\"\")) {\n\t\t\t\n\t\t\tArrayList<String> dataFields = new ArrayList<String>();\n\t\t\tdataFields.add(containerType);\n\t\t\tdataFields.add(length.getText().toString());\n\t\t\tdataFields.add(width.getText().toString());\n\t\t\tdataFields.add(height.getText().toString());\n\t\t\treturn dataFields;\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tToast.makeText(context, \"Please enter data in all fields before saving\", Toast.LENGTH_SHORT).show();\n\t\t\treturn null;\n\t\t}\n\t}", "public abstract Collection<Pair<String,String>> getAllForms();", "@Override\n public List<FormInfo> getForms() {\n return forms;\n }", "protected RespostaFormularioPreenchido() {\n // for ORM\n }", "private void limpiarDatos() {\n\t\t\n\t}", "Fields fields();", "private void callFormDetailFunctions() {\n ArrayList<Item> items = new ArrayList<>();\n items.addAll(computers);\n items.addAll(printers);\n getBuildingNames(items);\n getBrandNames(items);\n getOSNames(computers);\n setAdapters();\n }", "public List<ModelFormaPagamento> listarFormaPagamentos() {\n return entityManager.createQuery(\"FROM \" + ModelFormaPagamento.class.getName()).getResultList();\n }", "private void loadForm() {\n CodingProxy icd9 = problem.getIcd9Code();\n \n if (icd9 != null) {\n txtICD.setText(icd9.getProxiedObject().getCode());\n }\n \n String narr = problem.getProviderNarrative();\n \n if (narr == null) {\n narr = icd9 == null ? \"\" : icd9.getProxiedObject().getDisplay();\n }\n \n String probId = problem.getNumberCode();\n \n if (probId == null || probId.isEmpty()) {\n probId = getBroker().callRPC(\"BGOPROB NEXTID\", PatientContext.getActivePatient().getIdElement().getIdPart());\n }\n \n String pcs[] = probId.split(\"\\\\-\", 2);\n lblPrefix.setValue(pcs[0] + \" - \");\n txtID.setValue(pcs.length < 2 ? \"\" : pcs[1]);\n txtNarrative.setText(narr);\n datOnset.setValue(problem.getOnsetDate());\n \n if (\"P\".equals(problem.getProblemClass())) {\n radPersonal.setSelected(true);\n } else if (\"F\".equals(problem.getProblemClass())) {\n radFamily.setSelected(true);\n } else if (\"I\".equals(problem.getStatus())) {\n radInactive.setSelected(true);\n } else {\n radActive.setSelected(true);\n }\n \n int priority = NumberUtils.toInt(problem.getPriority());\n cboPriority.setSelectedIndex(priority < 0 || priority > 5 ? 0 : priority);\n loadNotes();\n }", "public void loadForm() {\n if (!selectedTipo.equals(\"accion\")) {\n this.renderPaginaForm = true;\n } else {\n this.renderPaginaForm = false;\n }\n if (selectedTipo.equals(null) || selectedTipo.equals(\"menu\")) {\n this.renderGrupoForm = false;\n } else {\n this.renderGrupoForm = true;\n }\n populateListaObjetos();\n }", "@Override\n\tpublic Object[] obtenerDatos() {\n\t\tObject[] datos = new Object[2];\n\t\t\n\t\tdatos[0] = this.jComboBoxPeliculas.getSelectedItem();\n\t\tdatos[1] = this.jComboBoxValoraciones.getSelectedItem();\n\t\t\n\t\treturn datos;\n\t}", "public FrmFerramentas() throws IOException {\n initComponents();\n SelecionaLocal();\n //PreencheLook();\n }", "public void getDadosDosCampos2() {\n EditText campoModeloCelular = findViewById(R.id.CampoModeloCelular);\n RadioButton campoNumeroChip1 = findViewById(R.id.radioButtonNumChip1);\n RadioButton campoNumeroChip2 = findViewById(R.id.radioButtonNumChip2);\n EditText numeroDoChip1 = findViewById(R.id.EditTextNumChip1);\n EditText numeroDoChip2 = findViewById(R.id.EditTextNumChip2);\n EditText campoIMEI1 = findViewById(R.id.campoIMEI1);\n EditText campoIMEI2 = findViewById(R.id.campoIMEI2);\n\n //instanciando o celular\n Celular novoCelular = new Celular();\n\n novoCelular.setModelo(campoModeloCelular.getText().toString());\n novoCelular.setChip1(campoNumeroChip1.getText().toString());\n novoCelular.setChip2(campoNumeroChip2.getText().toString());\n novoCelular.setImei1(campoIMEI1.getText().toString());\n novoCelular.setImei2(campoIMEI2.getText().toString());\n\n CelularDAO daoC = new CelularDAO();\n\n CelularDAO.Cel_cadastrado = novoCelular;\n\n UsuarioDAO.user_cadastrado.setCelularP(novoCelular);\n\n UsuarioDAO.dao.inserir(UsuarioDAO.user_cadastrado);\n\n\n\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "public static List<Field> field_list(String form_Name, String mode) {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<Field> fields = new ArrayList<Field>();\n\t \n\n\t try {\n\t \tPreparedStatement statement;\n\t \tif(mode == \"specific\") {\n\t\t statement = connection.prepareStatement(\"SELECT * FROM template_fields WHERE form_name = '\"+form_Name+\"'\");\n\t \t}\n\t \telse {\n\t \t\tstatement = connection.prepareStatement(\"SELECT * form_name FROM template_fields\");\n\t \t}\n\t \tResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t int fieldId = rs.getInt(\"field_id\");\n\t String fieldName = rs.getString(\"field_name\");\n\t String formName = rs.getString(\"form_name\");\n\t String fieldType = rs.getString(\"field_type\");\n\t String fieldValue = rs.getString(\"field_value\");\n\t String fieldMandatory = rs.getString(\"field_mandatory\");\n\t \t PreparedStatement fieldstmt = connection.prepareStatement(\"SELECT * FROM radio_fields WHERE field_id = '\"+fieldId+\"' AND form_name = '\"+form_Name+\"'\");\n\t ResultSet fieldrs = fieldstmt.executeQuery();\n\t List<String> itemList = new ArrayList<String>();\n\t while(fieldrs.next()) {\n\t \titemList.add(fieldrs.getString(\"radio_value\"));\n\t \tSystem.out.println(\"fieldID\" + fieldId + \": \" + fieldrs.getString(\"radio_value\"));\n\t }\n\t String[] fieldRadios = new String[itemList.size()];\n\t fieldRadios = itemList.toArray(fieldRadios);\n\t fieldstmt.close();\n\n\t \n\t Field field = new Field(formName, fieldId, fieldName, fieldType, fieldValue, fieldMandatory, fieldRadios);\n\t System.out.println(fieldRadios);\n\t System.out.println(\"MADA: \" + field.getTheMandatory());\n\t System.out.println(\"field:\" + field.getTheName());\n\t \n\t fields.add(field);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException e) {\n\t e.printStackTrace();\n\t }\n\n\t return fields;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }", "public static List<String> form_list() {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<String> forms = new ArrayList<String>();\n\n\t try {\n\t PreparedStatement statement = connection.prepareStatement(\"SELECT DISTINCT form_name FROM template_fields\");\n\t ResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t String form = rs.getString(\"form_name\");\n\t forms.add(form);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException ex) {\n\t ex.printStackTrace();\n\t }\n\n\t return forms;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }", "private void getDataFromView() throws EmptyTextFieldException, EmptyChoiceBoxException, NumberSmallerOneException {\n\n date = _view.getDate().getValue();\n title = _view.getTitle().getText();\n function = _view.getFunction().getText();\n protagonist = _view.getProtagonist().getText();\n source = _view.getSource().getText();\n references = _view.getReferences().getText();\n description = _view.getDescription().getText();\n checkForEmptyFields();\n\n priority = _view.getPriorityMap().get(_view.getPriority().getValue());\n classification = _view.getClassificationMap().get(_view.getClassification().getValue());\n checkForEmptyChoiceBox();\n\n id = Integer.parseInt(_view.getId().getText());\n ftr = Integer.parseInt(_view.getFtr().getText());\n det = Integer.parseInt(_view.getDet().getText());\n checkForNumbersSmallerOne();\n }", "private void cargarDatosDefault() {\n\t\tPersonasJSON personas = new PersonasJSON();\n\t\tpersonas = personas.leerJSON(\"src/datosJSON/Personas.JSON\");\n\t\t\n\t\tfor(int i=0 ; i<personas.getCantidadPersonas(); i++) {\n\t\t\t\n\t\t\tString nombre = personas.getPersona(i).getNombre();\n\t\t\tint deporte = personas.getPersona(i).getDeporte();\n\t\t\tint musica = personas.getPersona(i).getMusica();\n\t\t\tint espectaculo = personas.getPersona(i).getEspectaculo();\n\t\t\tint ciencia = personas.getPersona(i).getCiencia();\n\t\t\t\n\t\t\tmodel.addRow(new String[]{ nombre, String.valueOf(deporte), String.valueOf(musica),\n\t\t\t\t\tString.valueOf(espectaculo), String.valueOf(ciencia) });\n\t\t}\n\t\t\n\t\tdatos.addAll(personas.getTodasLasPersonas());\n\t\t\n\t}", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "public void cargarDatos() {\n \n if(drogasIncautadoList==null){\n return;\n }\n \n \n \n List<Droga> datos = drogasIncautadoList;\n\n Object[][] matriz = new Object[datos.size()][4];\n \n for (int i = 0; i < datos.size(); i++) {\n \n \n //System.out.println(s[0]);\n \n matriz[i][0] = datos.get(i).getTipoDroga();\n matriz[i][1] = datos.get(i).getKgDroga();\n matriz[i][2] = datos.get(i).getQuetesDroga();\n matriz[i][3] = datos.get(i).getDescripcion();\n \n }\n Object[][] data = matriz;\n String[] cabecera = {\"Tipo Droga\",\"KG\", \"Quetes\", \"Descripción\"};\n dtm = new DefaultTableModel(data, cabecera);\n tableDatos.setModel(dtm);\n }", "private void cargaDatosBasicos(Model model) {\r\n\t\t\tLong t1 = System.currentTimeMillis();\r\n\t\t\tAccionesMGCBusquedaForm form = null;\r\n\t\t\tLinkedHashMap<String, String> dias = UtilFechas.getDias();\r\n\t\t\tLinkedHashMap<String, String> meses = UtilFechas.getMeses();\r\n\t\t\tLinkedHashMap<String, String> anios = UtilFechas.getAnios();\r\n\t\t\tmodel.addAttribute(\"dias\", dias);\r\n\t\t\tmodel.addAttribute(\"meses\", meses);\r\n\t\t\tmodel.addAttribute(\"anios\", anios);\r\n\t\t\tif (!model.containsAttribute(\"formulario\")) {\r\n\t\t\t\tform = new AccionesMGCBusquedaForm();\r\n\t\t\t\tmodel.addAttribute(\"formulario\", form);\r\n\t\t\t} else {\r\n\t\t\t\tform = (AccionesMGCBusquedaForm) model.asMap().get(\"formulario\");\r\n\t\t\t}\r\n\t/* Se ajusta para mercado TTV \r\n\t\ttry {\r\n\t\t\t\tint tipoMercado = form.getTipoMercado() == IAcciones.TIPO_MERCADO_REPOS ? IMercadoDao.REPOS\r\n\t\t\t\t\t\t: IMercadoDao.ACCIONES;\r\n\t\t\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\t\tif (StringUtils.isNotEmpty(fechaConsulta)\r\n\t\t\t\t\t\t&& !fechaConsulta.equals(sdf.format(new Date()))) {\r\n\t\t\t\t\tcal.setTime(sdf.parse(fechaConsulta));\r\n\t\t\t\t}\r\n\t\t\t\tString mensajeHorario = this.mercadoDao.mercadoAbierto(cal,\r\n\t\t\t\t\t\ttipoMercado, true);\r\n\t\t\t\tmodel.addAttribute(\"horarioAcciones\", mensajeHorario);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlog.error(\"Error al cargar mensajeHorario\", e);\r\n\t\t\t}\r\n\t*/\r\n\t\t\ttry {\r\n\t\t\t\tint tipoMercado = IAccionesMGC.TIPO_MERCADO_REPOS_MGC; \r\n//\t\t\t\t? IMercadoDao.REPOS : IMercadoDao.ACCIONES ;\r\n\t\t\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\t\tif (StringUtils.isNotEmpty(fechaConsulta)\r\n\t\t\t\t\t\t&& !fechaConsulta.equals(sdf.format(new Date()))) {\r\n\t\t\t\t\tcal.setTime(sdf.parse(fechaConsulta));\r\n\t\t\t\t}\r\n\t\t\t\tString mensajeHorario = this.mercadoDao.mercadoAbierto(cal,\r\n\t\t\t\t\t\ttipoMercado, true);\r\n\t\t\t\tmodel.addAttribute(\"horarioAcciones\", mensajeHorario);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlog.error(\"Error al cargar mensajeHorario\", e);\r\n\t\t\t}\r\n\t//*\r\n\t\t\t\r\n\t\t\tLong t2 = System.currentTimeMillis();\r\n\t\t\tLong t = (t2 - t1) / 1000;\r\n\t\t\tlog\r\n\t\t\t\t\t.info(\"El tiempo en el método cargaDatosBasicos de ResumenAccionesMGCPortlet es =\"\r\n\t\t\t\t\t\t\t+ t);\r\n\t\t}", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "public void limparCampos() {\n\n // Limpa todos formularios.\n textoNome.setText(\"\");\n textoCPF.setText(\"\");\n comboGenero.setSelectedIndex(0);\n textoDataDeNascimento.setText(\"\");\n textoEnderecoLogradouro.setText(\"\");\n textoBairro.setText(\"\");\n textoComplemento.setText(\"\");\n textoNumero.setText(\"\");\n textoEmail.setText(\"\");\n textoTelefone.setText(\"\");\n textoCelular.setText(\"\");\n textoCEP.setText(\"\");\n textoDD_Celular.setText(\"\");\n textoDD_Telefone.setText(\"\");\n Icon imagemPerfil = new ImageIcon(\"src\\\\br\\\\com\\\\Grupo07\\\\Imagens\\\\perfil.jpg\");\n imagemCliente.setIcon(imagemPerfil);\n\n }", "public ingresarDatos() {\n initComponents();\n Validacion();\n \n }", "public void limpiarDatos() {\r\n FormularioUtil.limpiarComponentes(groupboxEditar, idsExcluyentes);\r\n tbxNro_identificacion.setValue(\"\");\r\n tbxNro_identificacion.setDisabled(false);\r\n deshabilitarCampos(true);\r\n\r\n }", "private void loadForm() {\n service.getReasons(refusalReasons);\n service.getVacEligibilty(vacElig);\n service.getVacSites(vacSites);\n service.getReactions(vacReactions);\n service.getOverrides(vacOverrides);\n updateComboValues();\n \n selPrv = \"\";\n selLoc = \"\";\n \n //datGiven.setDateConstraint(new SimpleDateConstraint(SimpleDateConstraint.NO_NEGATIVE, DateUtil.addDays(patient.getBirthDate(), -1, true), null, BgoConstants.TX_BAD_DATE_DOB));\n datGiven.setDateConstraint(getConstraintDOBDate());\n datEventDate.setConstraint(getConstraintDOBDate());\n radFacility.setLabel(service.getParam(\"Caption-Facility\", \"&Facility\"));\n if (immunItem != null) {\n \n txtVaccine.setValue(immunItem.getVaccineName());\n txtVaccine.setAttribute(\"ID\", immunItem.getVaccineID());\n txtVaccine.setAttribute(\"DATA\", immunItem.getVaccineID() + U + immunItem.getVaccineName());\n setEventType(immunItem.getEventType());\n \n radRefusal.setDisabled(!radRefusal.isChecked());\n radHistorical.setDisabled(!radHistorical.isChecked());\n radCurrent.setDisabled(!radCurrent.isChecked());\n \n visitIEN = immunItem.getVisitIEN();\n if (immunItem.getProvider() != null) {\n txtProvider.setText(FhirUtil.formatName(immunItem.getProvider().getName()));\n txtProvider.setAttribute(\"ID\", immunItem.getProvider().getId().getIdPart());\n selPrv = immunItem.getProvider().getId().getIdPart() + U + U + immunItem.getProvider().getName();\n }\n switch (immunItem.getEventType()) {\n case REFUSAL:\n ListUtil.selectComboboxItem(cboReason, immunItem.getReason());\n txtComment.setText(immunItem.getComment());\n datEventDate.setValue(immunItem.getDate());\n break;\n case HISTORICAL:\n datEventDate.setValue(immunItem.getDate());\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n txtAdminNote.setText(immunItem.getAdminNotes());\n ZKUtil.disableChildren(fraDate, true);\n ZKUtil.disableChildren(fraHistorical, true);\n default:\n service.getLot(lotNumbers, getVaccineID());\n loadComboValues(cboLot, lotNumbers, comboRenderer);\n loadVaccination();\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n ListUtil.selectComboboxItem(cboLot, immunItem.getLot());\n ListUtil.selectComboboxItem(cboSite, StrUtil.piece(immunItem.getInjSite(), \"~\", 2));\n spnVolume.setText(immunItem.getVolume());\n datGiven.setDate(immunItem.getDate());\n datVIS.setValue(immunItem.isImmunization() ? immunItem.getVISDate() : null);\n ListUtil.selectComboboxItem(cboReaction, immunItem.getReaction());\n ListUtil.selectComboboxData(cboOverride, immunItem.getVacOverride());\n txtAdminNote.setText(immunItem.getAdminNotes());\n cbCounsel.setChecked(immunItem.wasCounseled());\n }\n } else {\n IUser user = UserContext.getActiveUser();\n Practitioner provider = new Practitioner();\n provider.setId(user.getLogicalId());\n provider.setName(FhirUtil.parseName(user.getFullName()));\n txtProvider.setValue(FhirUtil.formatName(provider.getName()));\n txtProvider.setAttribute(\"ID\", VistAUtil.parseIEN(provider)); //provider.getId().getIdPart());\n selPrv = txtProvider.getAttribute(\"ID\") + U + U + txtProvider.getValue();\n Location location = new Location();\n location.setName(\"\");\n location.setId(\"\");\n datGiven.setDate(getBroker().getHostTime());\n onClick$btnVaccine(null);\n \n if (txtVaccine.getValue().isEmpty()) {\n close(true);\n return;\n }\n \n Encounter encounter = EncounterContext.getActiveEncounter();\n if (!EncounterUtil.isPrepared(encounter)) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n if (isCategory(encounter, \"E\")) {\n setEventType(EventType.HISTORICAL);\n Date date = encounter == null ? null : encounter.getPeriod().getStart();\n datEventDate.setValue(DateUtil.stripTime(date == null ? getBroker().getHostTime() : date));\n radCurrent.setDisabled(true);\n txtLocation.setText(user.getSecurityDomain().getName());\n PromptDialog.showInfo(user.getSecurityDomain().getLogicalId());\n txtLocation.setAttribute(\"ID\", user.getSecurityDomain().getLogicalId());\n \n } else {\n if (isVaccineInactive()) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n setEventType(EventType.CURRENT);\n radCurrent.setDisabled(false);\n }\n }\n }\n selectItem(cboReason, NONESEL);\n }\n btnSave.setLabel(immunItem == null ? \"Add\" : \"Save\");\n btnSave.setTooltiptext(immunItem == null ? \"Add record\" : \"Save record\");\n txtVaccine.setFocus(true);\n }", "public FormDataBuku() { //method FormDataBuku dengan hak akses publik\n initComponents(); //adalah method yang di generate oleh netbeans secara default. Kemudian juga terlihat ada method getter dan setter untuk variabel userList\n }", "public void getData(AccessInputMeta in)\n\t{\n\t\tif (in.getFileName() !=null) \n\t\t{\n\t\t\twFilenameList.removeAll();\n\n\t\t\tfor (int i=0;i<in.getFileName().length;i++) \n\t\t\t{\n\t\t\t\twFilenameList.add(new String[] { in.getFileName()[i], in.getFileMask()[i] , in.getExludeFileMask()[i],in.getRequiredFilesDesc(in.getFileRequired()[i]), in.getRequiredFilesDesc(in.getIncludeSubFolders()[i])} );\n\t\t\t}\t\n\t\t\twFilenameList.removeEmptyRows();\n\t\t\twFilenameList.setRowNums();\n\t\t\twFilenameList.optWidth(true);\n\t\t}\n\t\twInclFilename.setSelection(in.includeFilename());\n\t\twInclTablename.setSelection(in.includeTablename());\n\t\twInclRownum.setSelection(in.includeRowNumber());\n\t\twAddResult.setSelection(in.isAddResultFile());\n\t\t\n\t\twFileField.setSelection(in.isFileField());\n\t\t\n\t\tif (in.getTableName()!=null) wTable.setText(in.getTableName());\n\t\tif (in.getFilenameField()!=null) wInclFilenameField.setText(in.getFilenameField());\n\t\tif (in.getDynamicFilenameField()!=null) wFilenameField.setText(in.getDynamicFilenameField());\n\t\t\n\t\t\n\t\tif (in.gettablenameField()!=null) wInclTablenameField.setText(in.gettablenameField());\n\t\tif (in.getRowNumberField()!=null) wInclRownumField.setText(in.getRowNumberField());\n\t\twResetRownum.setSelection(in.resetRowNumber());\n\t\twLimit.setText(\"\"+in.getRowLimit());\n\n\t\tlogDebug(BaseMessages.getString(PKG, \"AccessInputDialog.Log.GettingFieldsInfo\"));\n\t\tfor (int i=0;i<in.getInputFields().length;i++)\n\t\t{\n\t\t AccessInputField field = in.getInputFields()[i];\n\t\t \n if (field!=null)\n {\n \t\t\tTableItem item = wFields.table.getItem(i);\n \t\t\tString name = field.getName();\n \t\t\tString xpath\t= field.getColumn();\n \t\t\tString type = field.getTypeDesc();\n \t\t\tString format = field.getFormat();\n \t\t\tString length = \"\"+field.getLength();\n \t\t\tString prec = \"\"+field.getPrecision();\n \t\t\tString curr = field.getCurrencySymbol();\n \t\t\tString group = field.getGroupSymbol();\n \t\t\tString decim = field.getDecimalSymbol();\n \t\t\tString trim = field.getTrimTypeDesc();\n \t\t\tString rep = field.isRepeated()?BaseMessages.getString(PKG, \"System.Combo.Yes\"):BaseMessages.getString(PKG, \"System.Combo.No\");\n \t\t\t\n if (name !=null) item.setText( 1, name);\n if (xpath !=null) item.setText( 2, xpath);\n \t\t\tif (type !=null) item.setText( 3, type);\n \t\t\tif (format !=null) item.setText( 4, format);\n \t\t\tif (length !=null && !\"-1\".equals(length)) item.setText( 5, length);\n \t\t\tif (prec !=null && !\"-1\".equals(prec)) item.setText( 6, prec);\n \t\t\tif (curr !=null) item.setText( 7, curr);\n \t\t\tif (decim !=null) item.setText( 8, decim);\n \t\t\tif (group !=null) item.setText( 9, group);\n \t\t\tif (trim !=null) item.setText(10, trim);\n \t\t\tif (rep !=null) item.setText(11, rep); \n }\n\t\t}\n \n wFields.removeEmptyRows();\n wFields.setRowNums();\n wFields.optWidth(true);\n if(in.getShortFileNameField()!=null) wShortFileFieldName.setText(in.getShortFileNameField());\n if(in.getPathField()!=null) wPathFieldName.setText(in.getPathField());\n if(in.isHiddenField()!=null) wIsHiddenName.setText(in.isHiddenField());\n if(in.getLastModificationDateField()!=null) wLastModificationTimeName.setText(in.getLastModificationDateField());\n if(in.getUriField()!=null) wUriName.setText(in.getUriField());\n if(in.getRootUriField()!=null) wRootUriName.setText(in.getRootUriField());\n if(in.getExtensionField()!=null) wExtensionFieldName.setText(in.getExtensionField());\n if(in.getSizeField()!=null) wSizeFieldName.setText(in.getSizeField());\n\n\n\t\tsetIncludeFilename();\n\t\tsetIncludeTablename();\n\t\tsetIncludeRownum();\n\n\t\twStepname.selectAll();\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 void limpiarDatos() throws Exception {\r\n\t\tCollection<Component> collection = groupboxEditar.getFellows();\r\n\t\tfor (Component abstractComponent : collection) {\r\n\t\t\tif (abstractComponent instanceof Textbox) {\r\n\t\t\t\tif (!((Textbox) abstractComponent).getId().equals(\"tbxValue\")) {\r\n\t\t\t\t\t((Textbox) abstractComponent).setValue(\"\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Listbox) {\r\n\t\t\t\tif (!((Listbox) abstractComponent).getId().equals(\r\n\t\t\t\t\t\t\"lbxParameter\")) {\r\n\t\t\t\t\tif (((Listbox) abstractComponent).getItemCount() > 0) {\r\n\t\t\t\t\t\t((Listbox) abstractComponent).setSelectedIndex(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Doublebox) {\r\n\t\t\t\t((Doublebox) abstractComponent).setText(\"0.00\");\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Intbox) {\r\n\t\t\t\t((Intbox) abstractComponent).setText(\"\");\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Datebox) {\r\n\t\t\t\t((Datebox) abstractComponent).setValue(new Date());\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Checkbox) {\r\n\t\t\t\t((Checkbox) abstractComponent).setChecked(false);\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Radiogroup) {\r\n\t\t\t\t((Radio) ((Radiogroup) abstractComponent).getFirstChild())\r\n\t\t\t\t\t\t.setChecked(true);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void limpiarDatos() throws Exception {\r\n\t\tCollection<Component> collection = groupboxEditar.getFellows();\r\n\t\tfor (Component abstractComponent : collection) {\r\n\t\t\tif (abstractComponent instanceof Textbox) {\r\n\t\t\t\tif (!((Textbox) abstractComponent).getId().equals(\"tbxValue\")) {\r\n\t\t\t\t\t((Textbox) abstractComponent).setValue(\"\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Listbox) {\r\n\t\t\t\tif (!((Listbox) abstractComponent).getId().equals(\r\n\t\t\t\t\t\t\"lbxParameter\")) {\r\n\t\t\t\t\tif (((Listbox) abstractComponent).getItemCount() > 0) {\r\n\t\t\t\t\t\t((Listbox) abstractComponent).setSelectedIndex(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Doublebox) {\r\n\t\t\t\t((Doublebox) abstractComponent).setText(\"0.00\");\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Intbox) {\r\n\t\t\t\t((Intbox) abstractComponent).setText(\"\");\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Datebox) {\r\n\t\t\t\t((Datebox) abstractComponent).setValue(new Date());\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Checkbox) {\r\n\t\t\t\t((Checkbox) abstractComponent).setChecked(false);\r\n\t\t\t}\r\n\t\t\tif (abstractComponent instanceof Radiogroup) {\r\n\t\t\t\t((Radio) ((Radiogroup) abstractComponent).getFirstChild())\r\n\t\t\t\t\t\t.setChecked(true);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void PreencherFormulario(int acao) throws SQLException {\n \n Funcionario_id.setText(String.valueOf(acao)); \n obj_Funcionario = bd_Funcionario.getFuncionarioID(acao);\n campo_nome.setText(obj_Funcionario.getNome());\n campo_endereco.setText(obj_Funcionario.getEndereco());\n campo_bairro.setText(obj_Funcionario.getBairro());\n campo_estado.setText(obj_Funcionario.getUf());\n campo_cpf.setText(obj_Funcionario.getCpf());\n campo_idt.setText(obj_Funcionario.getIdt()); \n campo_login.setText(obj_Funcionario.getLogin());\n campo_senha.setText(obj_Funcionario.getSenha());\n campo_cidade.setText(obj_Funcionario.getCidade()); \n campo_numero.setText(obj_Funcionario.getNumero()); \n campo_cep.setText(String.valueOf((obj_Funcionario.getCep()==0)?\"\":obj_Funcionario.getCep()));\n campo_ddd.setText(String.valueOf((obj_Funcionario.getDdd()==0)?\"\":obj_Funcionario.getDdd()));\n campo_telefone.setText(String.valueOf((obj_Funcionario.getTelefone()==0)?\"\":obj_Funcionario.getTelefone()));\n \n Nivel_id.setText(String.valueOf(obj_Funcionario.getNivel().getNivel_id()));\n combo_nivel.setSelectedItem(obj_Funcionario.getNivel().getNome().toUpperCase());\n \n if(obj_Funcionario.getData_admissao()!=null){\n String strdata1 = new SimpleDateFormat(\"dd/MM/yyyy\").format(obj_Funcionario.getData_admissao());\n String vet1[] = strdata1.split(\"/\");\n campo_adm_dia.setText(vet1[0]);\n campo_adm_mes.setText(vet1[1]);\n campo_adm_ano.setText(vet1[2]);\n }\n /*\n if(!obj_Funcionario.getData_demissao().equals(\"0000-00-00\")){\n String strdata2 = new SimpleDateFormat(\"dd/MM/yyyy\").format(obj_Funcionario.getData_demissao());\n String vet2[] = strdata2.split(\"/\");\n campo_dm_dia.setText(vet2[0]);\n campo_dm_mes.setText(vet2[1]);\n campo_dm_ano.setText(vet2[2]);\n }\n * \n */ \n }", "private String[] getFields(){\n String[] fields = new String[entry.get(0).size()];\n\n for (int i = 0; i < entry.get(0).size(); i++){\n fields[i] = spinners[i].getSelectedItem().toString();\n }\n\n return fields;\n }", "public FormProduct() {\n initComponents();\n getData();\n }", "public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_parto his_parto = new His_parto();\r\n\t\t\t\this_parto.setCodigo_empresa(empresa.getCodigo_empresa());\r\n\t\t\t\this_parto.setCodigo_sucursal(sucursal.getCodigo_sucursal());\r\n\t\t\t\this_parto.setCodigo_historia(tbxCodigo_historia.getValue());\r\n\t\t\t\this_parto.setIdentificacion(tbxIdentificacion.getValue());\r\n\t\t\t\this_parto.setFecha_inicial(new Timestamp(dtbxFecha_inicial\r\n\t\t\t\t\t\t.getValue().getTime()));\r\n\t\t\t\this_parto.setConyugue(tbxConyugue.getValue());\r\n\t\t\t\this_parto.setId_conyugue(tbxId_conyugue.getValue());\r\n\t\t\t\this_parto.setEdad_conyugue(tbxEdad_conyugue.getValue());\r\n\t\t\t\this_parto.setEscolaridad_conyugue(tbxEscolaridad_conyugue\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setMotivo(tbxMotivo.getValue());\r\n\t\t\t\this_parto.setEnfermedad_actual(tbxEnfermedad_actual.getValue());\r\n\t\t\t\this_parto.setAntecedentes_familiares(tbxAntecedentes_familiares\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setPreeclampsia(rdbPreeclampsia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setHipertension(rdbHipertension.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setEclampsia(rdbEclampsia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setH1(rdbH1.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setH2(rdbH2.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setPostimadurez(rdbPostimadurez.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setRot_pre(rdbRot_pre.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setPolihidramnios(rdbPolihidramnios.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setRcui(rdbRcui.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setPelvis(rdbPelvis.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setFeto_macrosonico(rdbFeto_macrosonico\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setIsoinmunizacion(rdbIsoinmunizacion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setAo(rdbAo.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setCirc_cordon(rdbCirc_cordon.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setPostparto(rdbPostparto.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setDiabetes(rdbDiabetes.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setCardiopatia(rdbCardiopatia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setAnemias(rdbAnemias.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEnf_autoinmunes(rdbEnf_autoinmunes\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setEnf_renales(rdbEnf_renales.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setInf_urinaria(rdbInf_urinaria.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setEpilepsia(rdbEpilepsia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto\r\n\t\t\t\t\t\t.setTbc(rdbTbc.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setMiomas(rdbMiomas.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setHb(rdbHb.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setFumadora(rdbFumadora.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setInf_puerperal(rdbInf_puerperal.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setInfertilidad(rdbInfertilidad.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setMenarquia(tbxMenarquia.getValue());\r\n\t\t\t\this_parto.setCiclos(tbxCiclos.getValue());\r\n\t\t\t\this_parto.setVida_marital(tbxVida_marital.getValue());\r\n\t\t\t\this_parto.setVida_obstetrica(tbxVida_obstetrica.getValue());\r\n\t\t\t\this_parto.setNo_gestaciones(lbxNo_gestaciones.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setParto(lbxParto.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setAborto(lbxAborto.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setCesarias(lbxCesarias.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setFecha_um(new Timestamp(dtbxFecha_um.getValue()\r\n\t\t\t\t\t\t.getTime()));\r\n\t\t\t\this_parto.setUm(tbxUm.getValue());\r\n\t\t\t\this_parto.setFep(tbxFep.getValue());\r\n\t\t\t\this_parto.setGemerales(lbxGemerales.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setMalformados(lbxMalformados.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setNacidos_vivos(lbxNacidos_vivos.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setNacidos_muertos(lbxNacidos_muertos\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setPreterminos(lbxPreterminos.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setMedico(chbMedico.isChecked());\r\n\t\t\t\this_parto.setEnfermera(chbEnfermera.isChecked());\r\n\t\t\t\this_parto.setAuxiliar(chbAuxiliar.isChecked());\r\n\t\t\t\this_parto.setPartera(chbPartera.isChecked());\r\n\t\t\t\this_parto.setOtros(chbOtros.isChecked());\r\n\t\t\t\this_parto.setControlado(rdbControlado.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setLugar_consulta(rdbLugar_consulta.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setNo_consultas(lbxNo_consultas.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setEspecialistas(chbEspecialistas.isChecked());\r\n\t\t\t\this_parto.setGeneral(chbGeneral.isChecked());\r\n\t\t\t\this_parto.setPartera_consulta(chbPartera_consulta.isChecked());\r\n\t\t\t\this_parto.setSangrado_vaginal(rdbSangrado_vaginal\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setCefalias(rdbCefalias.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEdema(rdbEdema.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEpigastralgia(rdbEpigastralgia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setVomitos(rdbVomitos.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setTinutus(rdbTinutus.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEscotomas(rdbEscotomas.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setInfeccion_urinaria(rdbInfeccion_urinaria\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setInfeccion_vaginal(rdbInfeccion_vaginal\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setOtros_embarazo(tbxOtros_embarazo.getValue());\r\n\t\t\t\this_parto.setCardiaca(tbxCardiaca.getValue());\r\n\t\t\t\this_parto.setRespiratoria(tbxRespiratoria.getValue());\r\n\t\t\t\this_parto.setPeso(tbxPeso.getValue());\r\n\t\t\t\this_parto.setTalla(tbxTalla.getValue());\r\n\t\t\t\this_parto.setTempo(tbxTempo.getValue());\r\n\t\t\t\this_parto.setPresion(tbxPresion.getValue());\r\n\t\t\t\this_parto.setPresion2(tbxPresion2.getValue());\r\n\t\t\t\this_parto.setInd_masa(tbxInd_masa.getValue());\r\n\t\t\t\this_parto.setSus_masa(tbxSus_masa.getValue());\r\n\t\t\t\this_parto.setCabeza_cuello(tbxCabeza_cuello.getValue());\r\n\t\t\t\this_parto.setCardiovascular(tbxCardiovascular.getValue());\r\n\t\t\t\this_parto.setMamas(tbxMamas.getValue());\r\n\t\t\t\this_parto.setPulmones(tbxPulmones.getValue());\r\n\t\t\t\this_parto.setAbdomen(tbxAbdomen.getValue());\r\n\t\t\t\this_parto.setUterina(tbxUterina.getValue());\r\n\t\t\t\this_parto.setSituacion(tbxSituacion.getValue());\r\n\t\t\t\this_parto.setPresentacion(tbxPresentacion.getValue());\r\n\t\t\t\this_parto.setV_presentacion(tbxV_presentacion.getValue());\r\n\t\t\t\this_parto.setPosicion(tbxPosicion.getValue());\r\n\t\t\t\this_parto.setV_posicion(tbxV_posicion.getValue());\r\n\t\t\t\this_parto.setC_uterina(tbxC_uterina.getValue());\r\n\t\t\t\this_parto.setTono(tbxTono.getValue());\r\n\t\t\t\this_parto.setFcf(tbxFcf.getValue());\r\n\t\t\t\this_parto.setGenitales(tbxGenitales.getValue());\r\n\t\t\t\this_parto.setDilatacion(tbxDilatacion.getValue());\r\n\t\t\t\this_parto.setBorramiento(tbxBorramiento.getValue());\r\n\t\t\t\this_parto.setEstacion(tbxEstacion.getValue());\r\n\t\t\t\this_parto.setMembranas(tbxMembranas.getValue());\r\n\t\t\t\this_parto.setExtremidades(tbxExtremidades.getValue());\r\n\t\t\t\this_parto.setSnc(tbxSnc.getValue());\r\n\t\t\t\this_parto.setObservacion(tbxObservacion.getValue());\r\n\t\t\t\this_parto.setCodigo_consulta_pyp(lbxCodigo_consulta_pyp\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setFinalidad_cons(lbxFinalidad_cons.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setCausas_externas(lbxCausas_externas\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setTipo_disnostico(lbxTipo_disnostico\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setTipo_principal(tbxTipo_principal.getValue());\r\n\t\t\t\this_parto.setTipo_relacionado_1(tbxTipo_relacionado_1\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setTipo_relacionado_2(tbxTipo_relacionado_2\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setTipo_relacionado_3(tbxTipo_relacionado_3\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setTratamiento(tbxTratamiento.getValue());\r\n\r\n\t\t\t\tdatos.put(\"codigo_historia\", his_parto);\r\n\t\t\t\tdatos.put(\"accion\", tbxAccion.getText());\r\n\r\n\t\t\t\this_parto = getServiceLocator().getHis_partoService().guardar(\r\n\t\t\t\t\t\tdatos);\r\n\r\n\t\t\t\tif (tbxAccion.getText().equalsIgnoreCase(\"registrar\")) {\r\n\t\t\t\t\taccionForm(true, \"modificar\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tMessagebox.show(\"Los datos se guardaron satisfactoriamente\",\r\n\t\t\t\t\t\t\"Informacion ..\", Messagebox.OK,\r\n\t\t\t\t\t\tMessagebox.INFORMATION);\r\n\r\n\t\t\t}\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\r\n\t}", "private void fillData() {\n String[] from = new String[] {\n NOMBRE_OBJETO,\n DESCRIPCION,\n TEXTURA\n };\n // Campos de la interfaz a los que mapeamos\n int[] to = new int[] {\n R.id.txtNombreObjeto,\n R.id.txtDescripcion,\n R.id.imgIconoObjeto\n };\n getLoaderManager().initLoader(OBJETOS_LOADER, null, this);\n ListView lvObjetos = (ListView) findViewById(R.id.listaObjetos);\n adapter = new SimpleCursorAdapter(this, R.layout.activity_tiendaobjetos_filaobjeto, null, from, to, 0);\n lvObjetos.setAdapter(adapter);\n }", "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 }", "public Form read() throws IOException {\r\n Form result = new Form();\r\n Parameter param = readNextParameter();\r\n \r\n while (param != null) {\r\n result.add(param);\r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n return result;\r\n }", "@Override\n\tprotected BaseSearchForm devuelveFormBusqueda() throws Exception {\n\t\tMantenimientoCRAMatrizDiasSearchForm form = new MantenimientoCRAMatrizDiasSearchForm();\n\t\treturn form;\n\t}", "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 }", "public String[] getTextFieldData() {\n\t\tString[] data = new String[6];\n\t\t\n\t\tdata[0] = monteurVoorNaamT.getText();\n\t\tdata[1] = monteurAchterNaamT.getText();\n\t\tdata[2] = monteurAdresT.getText();\n\t\tdata[3] = monteurWoonplaatsT.getText();\n\t\tdata[4] = monteurPostcodeT.getText();\n\t\tdata[5] = uurLoonT.getText();\n\n\t\treturn data;\n\t}", "private void recogerDatos() {\n\t\ttry {\n\t\t\tusuSelecc.setId(etId.getText().toString());\n\t\t\tusuSelecc.setName(etNombre.getText().toString());\n\t\t\tusuSelecc.setFirstName(etPApellido.getText().toString());\n\t\t\tusuSelecc.setLastName(etSApellido.getText().toString());\n\t\t\tusuSelecc.setEmail(etCorreo.getText().toString());\n\t\t\tusuSelecc.setCustomFields(etAuth.getText().toString());\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n\t\t\tmostrarException(e.getMessage());\n\t\t}\n\t}", "private void rellenarCampos() {\n\t\tjfad.lbModCurso.setVisible(true);\n\t\tper = modelo.obtenerPeriodo(\n\t\t\t\tInteger.parseInt(jfad.tPeriodos.getValueAt(jfad.tPeriodos.getSelectedRow(), 0).toString()));\n\t\tjfad.dPDiaIniMod.setDate(per.getDia_inicio());\n\t\tjfad.dPDiaFinMod.setDate(per.getDia_fin());\n\t\tjfad.tPHoraInicioMod.setTime(per.getHora_inicio());\n\t\tjfad.tPHoraFinMod.setTime(per.getHora_fin());\n\t\tString intervalo = per.getIntervalo().toString();\n\t\tSystem.out.println(intervalo);\n\t\tint intervalo2 = Integer.parseInt(intervalo.substring(3));\n\t\tjfad.spIntervaloMod.setValue(intervalo2);\n\t\tif (per.getHabilitado())\n\t\t\tjfad.checkHabilitado.setSelected(true);\n\t}", "public void mostrarDados() {\n txtId.setText(\"\" + lista.get(indice).getId());\n txtNome.setText(lista.get(indice).getNome());\n txtEmail.setText(lista.get(indice).getEmail());\n txtSenha.setText(lista.get(indice).getSenha());\n preencheTabela();\n }", "public void llenarDatos() {\n String nombre = \"\";\n String descripcion = \"\";\n try {\n ResultSet resultado = buscador.getResultSet(\"select nombre, descripcion from NODO where ID = \" + IDNodoPadre + \";\");\n if (resultado.next()) {\n nombre = resultado.getObject(\"nombre\").toString();\n descripcion = resultado.getObject(\"descripcion\").toString();\n }\n } catch (SQLException e) {\n System.out.println(\"*SQL Exception: *\" + e.toString());\n }\n campoNombre.setText(nombre);\n campoDescripcion.setText(descripcion);\n //Si esta asociada a categorias\n if(conCategorias)\n llenarComboCategoria();\n else{\n comboCategoria.setVisible(false);\n labelCategoria.setVisible(false);\n }\n }", "public Form_Rincian_Hitung() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n getData();\n }", "public FaMasterdata() {\n initComponents();\n \n load_buku();\n load_anggota();\n }", "public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_atencion_embarazada his_atencion_embarazada = new His_atencion_embarazada();\r\n\t\t\t\this_atencion_embarazada.setCodigo_empresa(empresa\r\n\t\t\t\t\t\t.getCodigo_empresa());\r\n\t\t\t\this_atencion_embarazada.setCodigo_sucursal(sucursal\r\n\t\t\t\t\t\t.getCodigo_sucursal());\r\n\t\t\t\this_atencion_embarazada.setCodigo_historia(tbxCodigo_historia\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setFecha_inicial(new Timestamp(\r\n\t\t\t\t\t\tdtbxFecha_inicial.getValue().getTime()));\r\n\t\t\t\this_atencion_embarazada.setCodigo_eps(tbxCodigo_eps.getValue());\r\n\t\t\t\this_atencion_embarazada.setCodigo_dpto(lbxCodigo_dpto\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCodigo_municipio(lbxCodigo_municipio\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setIdentificacion(tbxIdentificacion\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setDireccion(tbxMotivo.getValue());\r\n\t\t\t\this_atencion_embarazada.setTelefono(tbxTelefono.getValue());\r\n\t\t\t\this_atencion_embarazada.setSeleccion(rdbSeleccion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setGestaciones(lbxGestaciones\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setPartos(lbxPartos.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCesarias(lbxCesarias\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setAbortos(lbxAbortos.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setEspontaneo(lbxEspontaneo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setProvocado(lbxProvocado\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setNacido_muerto(lbxNacido_muerto\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setPrematuro(lbxPrematuro\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHijos_menos(lbxHijos_menos\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHijos_mayor(lbxHijos_mayor\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setMalformado(lbxMalformado\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHipertension(lbxHipertension\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setFecha_ultimo_parto(new Timestamp(\r\n\t\t\t\t\t\tdtbxFecha_ultimo_parto.getValue().getTime()));\r\n\t\t\t\this_atencion_embarazada.setCirugia(lbxCirugia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setOtro_antecedente(tbxOtro_antecedente\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setHemoclasificacion(lbxHemoclasificacion\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setRh(lbxRh.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setPeso(tbxPeso.getValue());\r\n\t\t\t\this_atencion_embarazada.setTalla(tbxTalla.getValue());\r\n\t\t\t\this_atencion_embarazada.setImc(tbxImc.getValue());\r\n\t\t\t\this_atencion_embarazada.setTa(tbxTa.getValue());\r\n\t\t\t\this_atencion_embarazada.setFc(tbxFc.getValue());\r\n\t\t\t\this_atencion_embarazada.setFr(tbxFr.getValue());\r\n\t\t\t\this_atencion_embarazada.setTemperatura(tbxTemperatura\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setCroomb(tbxCroomb.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setFecha_ultima_mestruacion(new Timestamp(\r\n\t\t\t\t\t\t\t\tdtbxFecha_ultima_mestruacion.getValue()\r\n\t\t\t\t\t\t\t\t\t\t.getTime()));\r\n\t\t\t\this_atencion_embarazada.setFecha_probable_parto(new Timestamp(\r\n\t\t\t\t\t\tdtbxFecha_probable_parto.getValue().getTime()));\r\n\t\t\t\this_atencion_embarazada.setEdad_gestacional(tbxEdad_gestacional\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setControl(lbxControl.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setNum_control(tbxNum_control\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setFetales(lbxFetales.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setFiebre(lbxFiebre.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setLiquido(lbxLiquido.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setFlujo(lbxFlujo.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setEnfermedad(lbxEnfermedad\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCual_enfermedad(tbxCual_enfermedad\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setCigarrillo(lbxCigarrillo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setAlcohol(lbxAlcohol.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCual_alcohol(tbxCual_alcohol\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setDroga(lbxDroga.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCual_droga(tbxCual_droga.getValue());\r\n\t\t\t\this_atencion_embarazada.setViolencia(lbxViolencia\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCual_violencia(tbxCual_violencia\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setToxoide(lbxToxoide.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setDosis(lbxDosis.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setObservaciones_gestion(tbxObservaciones_gestion\r\n\t\t\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setAltura_uterina(tbxAltura_uterina\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setCorelacion(chbCorelacion.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setEmbarazo_multiple(chbEmbarazo_multiple.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setTrasmision_sexual(chbTrasmision_sexual.isChecked());\r\n\t\t\t\this_atencion_embarazada.setAnomalia(rdbAnomalia\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setEdema_gestion(rdbEdema_gestion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setPalidez(rdbPalidez.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setConvulciones(rdbConvulciones\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setConciencia(rdbConciencia\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCavidad_bucal(rdbCavidad_bucal\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHto(tbxHto.getValue());\r\n\t\t\t\this_atencion_embarazada.setHb(tbxHb.getValue());\r\n\t\t\t\this_atencion_embarazada.setToxoplasma(tbxToxoplasma.getValue());\r\n\t\t\t\this_atencion_embarazada.setVdrl1(tbxVdrl1.getValue());\r\n\t\t\t\this_atencion_embarazada.setVdrl2(tbxVdrl2.getValue());\r\n\t\t\t\this_atencion_embarazada.setVih1(tbxVih1.getValue());\r\n\t\t\t\this_atencion_embarazada.setVih2(tbxVih2.getValue());\r\n\t\t\t\this_atencion_embarazada.setHepb(tbxHepb.getValue());\r\n\t\t\t\this_atencion_embarazada.setOtro(tbxOtro.getValue());\r\n\t\t\t\this_atencion_embarazada.setEcografia(tbxEcografia.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setClasificacion_gestion(rdbClasificacion_gestion\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setContracciones(lbxContracciones\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setNum_contracciones(lbxNum_contracciones\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHemorragia(lbxHemorragia\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setLiquido_vaginal(lbxLiquido_vaginal\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setColor_liquido(tbxColor_liquido\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setDolor_cabeza(lbxDolor_cabeza\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setVision(lbxVision.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setConvulcion(lbxConvulcion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setObservaciones_parto(tbxObservaciones_parto\r\n\t\t\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setContracciones_min(tbxContracciones_min.getValue());\r\n\t\t\t\this_atencion_embarazada.setFc_fera(tbxFc_fera.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setDilatacion_cervical(tbxDilatacion_cervical\r\n\t\t\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setPreentacion(rdbPreentacion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setOtra_presentacion(tbxOtra_presentacion.getValue());\r\n\t\t\t\this_atencion_embarazada.setEdema(rdbEdema.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setHemorragia_vaginal(lbxHemorragia_vaginal\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHto_parto(tbxHto_parto.getValue());\r\n\t\t\t\this_atencion_embarazada.setHb_parto(tbxHb_parto.getValue());\r\n\t\t\t\this_atencion_embarazada.setHepb_parto(tbxHepb_parto.getValue());\r\n\t\t\t\this_atencion_embarazada.setVdrl_parto(tbxVdrl_parto.getValue());\r\n\t\t\t\this_atencion_embarazada.setVih_parto(tbxVih_parto.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setClasificacion_parto(rdbClasificacion_parto\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setFecha_nac(new Timestamp(\r\n\t\t\t\t\t\tdtbxFecha_nac.getValue().getTime()));\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setIdentificacion_nac(tbxIdentificacion_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setSexo(lbxSexo.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setPeso_nac(tbxPeso_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setTalla_nac(tbxTalla_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setPc_nac(tbxPc_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setFc_nac(tbxFc_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setTemper_nac(tbxTemper_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setEdad(tbxEdad.getValue());\r\n\t\t\t\this_atencion_embarazada.setAdgar1(tbxAdgar1.getValue());\r\n\t\t\t\this_atencion_embarazada.setAdgar5(tbxAdgar5.getValue());\r\n\t\t\t\this_atencion_embarazada.setAdgar10(tbxAdgar10.getValue());\r\n\t\t\t\this_atencion_embarazada.setAdgar20(tbxAdgar20.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setObservaciones_nac(tbxObservaciones_nac.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setClasificacion_nac(rdbClasificacion_nac\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setReani_prematuro(chbReani_prematuro\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_meconio(chbReani_meconio\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_respiracion(chbReani_respiracion.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_hipotonico(chbReani_hipotonico\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_apnea(chbReani_apnea\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_jadeo(chbReani_jadeo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_deficultosa(chbReani_deficultosa.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_gianosis(chbReani_gianosis\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_bradicardia(chbReani_bradicardia.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_hipoxemia(chbReani_hipoxemia\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_estimulacion(chbReani_estimulacion\r\n\t\t\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_ventilacion(chbReani_ventilacion.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_comprensiones(chbReani_comprensiones\r\n\t\t\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_intubacion(chbReani_intubacion\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setMedicina(tbxMedicina.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setClasificacion_reani(rdbClasificacion_reani\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setRuptura(lbxRuptura.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setTiempo_ruptura(lbxTiempo_ruptura\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setLiquido_neo(tbxLiquido_neo\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setFiebre_neo(lbxFiebre_neo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setTiempo_neo(lbxTiempo_neo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCoricamniotis(tbxCoricamniotis\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setIntrauterina(rdbIntrauterina\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setMadre20(lbxMadre20.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setAlcohol_neo(chbAlcohol_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setDrogas_neo(chbDrogas_neo.isChecked());\r\n\t\t\t\this_atencion_embarazada.setCigarrillo_neo(chbCigarrillo_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setRespiracion_neo(rdbRespiracion_neo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setLlanto_neo(rdbLlanto_neo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setVetalidad_neo(rdbVetalidad_neo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setTaquicardia_neo(chbTaquicardia_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setBradicardia_neo(chbBradicardia_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setPalidez_neo(chbPalidez_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setCianosis_neo(chbCianosis_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setAnomalias_congenitas(lbxAnomalias_congenitas\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCual_anomalias(tbxCual_anomalias\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setLesiones(tbxLesiones.getValue());\r\n\t\t\t\this_atencion_embarazada.setOtras_alter(tbxOtras_alter\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setClasificacion_neo(rdbClasificacion_neo\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setAlarma(tbxAlarma.getValue());\r\n\t\t\t\this_atencion_embarazada.setConsulta_control(tbxConsulta_control\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setMedidas_preventiva(tbxMedidas_preventiva.getValue());\r\n\t\t\t\this_atencion_embarazada.setRecomendaciones(tbxRecomendaciones\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setDiagnostico(tbxDiagnostico\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setCodigo_diagnostico(tbxCodigo_diagnostico.getValue());\r\n\t\t\t\this_atencion_embarazada.setTratamiento(tbxTratamiento\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setRecomendacion_alimentacion(tbxRecomendacion_alimentacion\r\n\t\t\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setEvolucion_servicio(tbxEvolucion_servicio.getValue());\r\n\r\n\t\t\t\tdatos.put(\"codigo_historia\", his_atencion_embarazada);\r\n\t\t\t\tdatos.put(\"accion\", tbxAccion.getText());\r\n\r\n\t\t\t\this_atencion_embarazada = getServiceLocator()\r\n\t\t\t\t\t\t.getHis_atencion_embarazadaService().guardar(datos);\r\n\r\n\t\t\t\tif (tbxAccion.getText().equalsIgnoreCase(\"registrar\")) {\r\n\t\t\t\t\taccionForm(true, \"modificar\");\r\n\t\t\t\t}\r\n\t\t\t\t/*\r\n\t\t\t\t * else{ int result =\r\n\t\t\t\t * getServiceLocator().getHis_atencion_embarazadaService\r\n\t\t\t\t * ().actualizar(his_atencion_embarazada); if(result==0){ throw\r\n\t\t\t\t * new Exception(\r\n\t\t\t\t * \"Lo sentimos pero los datos a modificar no se encuentran en base de datos\"\r\n\t\t\t\t * ); } }\r\n\t\t\t\t */\r\n\r\n//\t\t\t\tcodigo_historia = his_atencion_embarazada.getCodigo_historia();\r\n\r\n\t\t\t\tMessagebox.show(\"Los datos se guardaron satisfactoriamente\",\r\n\t\t\t\t\t\t\"Informacion ..\", Messagebox.OK,\r\n\t\t\t\t\t\tMessagebox.INFORMATION);\r\n\r\n\t\t\t}\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\r\n\t}", "private void GetAllInfo() {\n\t\tjetztStunde = Integer.parseInt(jetztStdTxt.getText().toString());\n\t\tjetztMinute = Integer.parseInt(jetztMinTxt.getText().toString());\n\n\t\tschlafStunde = Integer.parseInt(schlafStdTxt.getText().toString());\n\t\tschlafMinute = Integer.parseInt(schlafMinTxt.getText().toString());\n\n\t}", "public FormImportar() {\n initComponents();\n }", "private void cargarDatos() {\r\n txtRucDni.setText(objVentas.getObjCliente().getStr_rucdni());\r\n txtCliente.setText(objVentas.getObjCliente().getStr_razonSocial());\r\n txtDocumento.setText(objVentas.getStr_numeroDocumento());\r\n txtMonto.setText(String.valueOf(Util.redondeo(objVentas.getDbTotal(), 2) ));\r\n txtPaga.requestFocus();\r\n setLocationRelativeTo(null);\r\n\r\n String arr[] = objVentas.getStr_numeroDocumento().split(\"-\");\r\n \r\n \r\n \r\n \r\n List<Ventas> listaVentaDetalle = new ArrayList<>();\r\n listaVentaDetalle = PaqueteBusinessDelegate.getFlujoCajaService().\r\n listarVenta(String.valueOf(gui.getLocal().getInt_idLocal()), Util.SINPAGO, objVentas.getStr_numeroDocumento(), 2);\r\n cargarTabla(listaVentaDetalle);\r\n \r\n int cantidadDocumentos;\r\n if (!this.gui.getListaConfig().get(0).getTipoImpresion().equals(Config.TICKETERA)){\r\n //Determinar la cantidad de productos por documentos\r\n cantidadDocumentos=(listaVentaDetalle.size()/10);\r\n log.info(\"Cantidad: \"+cantidadDocumentos);\r\n\r\n if(listaVentaDetalle.size()%10!=0)\r\n cantidadDocumentos++;\r\n }else{\r\n cantidadDocumentos = 1;\r\n }\r\n \r\n \r\n log.info(\"Cantidad: \"+cantidadDocumentos);\r\n \r\n// System.out.println(\"local : \"+objVentas.getObjLocal().getInt_idLocal()+\" tD :\"+arr[2].trim());\r\n txtNroDocumento.setText(PaqueteBusinessDelegate.getVentasService().\r\n consultaSiguinteCorrelativo(objVentas.getObjLocal().getInt_idLocal(), arr[2].trim()));\r\n \r\n// System.out.println(\"consulta : \"+PaqueteBusinessDelegate.getVentasService().\r\n// consultaSiguinteCorrelativo(objVentas.getObjLocal().getInt_idLocal(), arr[2].trim()));\r\n String documento=txtNroDocumento.getText();\r\n String statico=txtNroDocumento.getText().split(\"/\")[0];\r\n// System.out.println(\"estatico : \"+statico);\r\n statico=statico.split(\"-\")[0].concat(\"-\").concat(statico.split(\"-\")[1]).concat(\"-\");\r\n \r\n\r\n if (cantidadDocumentos>1){\r\n for (int i=1;i<cantidadDocumentos;i++){\r\n \r\n if (i<cantidadDocumentos)\r\n documento+=\";\";\r\n \r\n documento+=statico.concat(String.valueOf( Util.stringTOint(\r\n txtNroDocumento.getText().split(\"/\")[0].split(\"-\")[2])+i)).\r\n concat(\"/\").concat(txtNroDocumento.getText().split(\"/\")[1]);\r\n\r\n \r\n log.info(\"NRO: \"+documento);\r\n }\r\n txtNroDocumento.setText(documento);\r\n }\r\n \r\n \r\n \r\n \r\n }", "private void getDataView() {\n demanda = Double.parseDouble(jSpinner1.getValue().toString());\n costoPedido = Double.parseDouble(jSpinner2.getValue().toString());\n costoUnitario = Double.parseDouble(jSpinner3.getValue().toString());\n costoMantenimiento = Double.parseDouble(jSpinner4.getValue().toString());\n }", "@Override\n\t@Transactional(propagation = Propagation.SUPPORTS)\n\t@SuppressWarnings(\"unchecked\")\n\tpublic List<Form> getAll() {\n\t\treturn entityManager.createNamedQuery(\"Form.findAll\").getResultList();\n\t}", "public Result inicioGenerarLibro(){\n ContabilidadDTO dto = new ContabilidadDTO();\n dto.tipoLibro = new Parametro(\"\",\"LVEN\",\"\");\n //dto.tipoLibro.id.codigo =\"LVEN\";\n dto.anio = new Parametro(\"\",\"2018\",\"\");\n //dto.anio.id.codigo =\"2018\";\n dto.mes = new Parametro(\"\",\"3\",\"\");\n //dto.mes.id.codigo =\"3\"; //Simpre debe ser el mes anterior al actual\n\n Form<ContabilidadDTO> contabilidadDTOForm = formFactory.form(ContabilidadDTO.class).fill(dto);\n\n/*\n EbeanServer db = DBConnectionUtil.getDBServerFacturador();\n List<BandejaFactura> lista = db.find(BandejaFactura.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (BandejaFactura x:lista) {\n System.out.println(x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class)\n .where().ilike(\"CVNT_NUM_DOCUMENTO\", \"F002-00000213\")\n .findList();\n for (ControlVenta x:lista) {\n System.out.println(\"*********** \"+x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (ControlVenta x:lista) {\n System.out.println(x);\n }\n*/\n\n return ok(generadorLibrosContables.render(contabilidadDTOForm));\n }", "public FormInfo getForm (Student forWhom) {\n for (int i = 0; i < forms.size(); i++) {\n if (this.forms.get(i).getStudent().getNrMatricol().equals(forWhom.getNrMatricol())) {\n return this.forms.get(i);\n }\n }\n \n return null;\n }", "public void mostrarDatos(Ficha_epidemiologia_n3 obj) throws Exception {\n\t\tFicha_epidemiologia_n3 ficha_epidemiologia_n3 = (Ficha_epidemiologia_n3) obj;\n\t\ttry {\n\t\t\t\n\t\t\ttbxCodigo_ficha.setValue(ficha_epidemiologia_n3.getCodigo_ficha());\n\t\t\tdtbxFecha_ficha.setValue(ficha_epidemiologia_n3.getFecha_ficha());\n \n \t\t\ttbxNro_identificacion.setValue(ficha_epidemiologia_n3.getNro_identificacion());\n\n\t\t\t obtenerAdmision(admision);\n\n\t\t\t\tFormularioUtil.deshabilitarComponentes(groupboxEditar, true,new String[] { });\n\t\t\t\t\n\t\t\t\t\n\t\t\tUtilidades.seleccionarRadio(rdbConoce_y_o_ha_sido_picado_por_pito,\n\t\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t\t.getConoce_y_o_ha_sido_picado_por_pito());\n\t\t\tUtilidades.seleccionarRadio(rdbTransfuciones_sanguineas,\n\t\t\t\t\tficha_epidemiologia_n3.getTransfuciones_sanguineas());\n\t\t\tUtilidades.seleccionarRadio(rdbSometido_transplante,\n\t\t\t\t\tficha_epidemiologia_n3.getSometido_transplante());\n\t\t\tUtilidades.seleccionarRadio(rdbHijo_de_madre_cero_positiva,\n\t\t\t\t\tficha_epidemiologia_n3.getHijo_de_madre_cero_positiva());\n\t\t\tUtilidades.seleccionarRadio(rdbEmbarazo_actual,\n\t\t\t\t\tficha_epidemiologia_n3.getEmbarazo_actual());\n\t\t\tUtilidades.seleccionarRadio(rdbHa_sido_donante,\n\t\t\t\t\tficha_epidemiologia_n3.getHa_sido_donante());\n\t\t\tUtilidades.seleccionarRadio(rdbTipo_techo,\n\t\t\t\t\tficha_epidemiologia_n3.getTipo_techo());\n\t\t\tUtilidades.seleccionarRadio(rdbTipo_paredes,\n\t\t\t\t\tficha_epidemiologia_n3.getTipo_paredes());\n\t\t\tUtilidades.seleccionarRadio(rdbEstrato_socio_economico,\n\t\t\t\t\tficha_epidemiologia_n3.getEstrato_socio_economico());\n\t\t\tUtilidades.seleccionarRadio(rdbEstado_clinico,\n\t\t\t\t\tficha_epidemiologia_n3.getEstado_clinico());\n\t\t\tUtilidades.seleccionarRadio(rdbClasificacion_de_caso,\n\t\t\t\t\tficha_epidemiologia_n3.getClasificacion_de_caso());\n\t\t\tchbFiebre\n\t\t\t\t\t.setChecked(ficha_epidemiologia_n3.getFiebre().equals(\"S\") ? true\n\t\t\t\t\t\t\t: false);\n\t\t\tchbDolor_toracico_cronico.setChecked(ficha_epidemiologia_n3\n\t\t\t\t\t.getDolor_toracico_cronico().equals(\"S\") ? true : false);\n\t\t\tchbDisnea\n\t\t\t\t\t.setChecked(ficha_epidemiologia_n3.getDisnea().equals(\"S\") ? true\n\t\t\t\t\t\t\t: false);\n\t\t\tchbPalpitaciones.setChecked(ficha_epidemiologia_n3\n\t\t\t\t\t.getPalpitaciones().equals(\"S\") ? true : false);\n\t\t\tchbMialgias.setChecked(ficha_epidemiologia_n3.getMialgias().equals(\n\t\t\t\t\t\"S\") ? true : false);\n\t\t\tchbArtralgias.setChecked(ficha_epidemiologia_n3.getArtralgias()\n\t\t\t\t\t.equals(\"S\") ? true : false);\n\t\t\tchbEdema_facial.setChecked(ficha_epidemiologia_n3.getEdema_facial()\n\t\t\t\t\t.equals(\"S\") ? true : false);\n\t\t\tchbEdema_miembros_inferiores.setChecked(ficha_epidemiologia_n3\n\t\t\t\t\t.getEdema_miembros_inferiores().equals(\"S\") ? true : false);\n\t\t\tchbDerrame_pericardico.setChecked(ficha_epidemiologia_n3\n\t\t\t\t\t.getDerrame_pericardico().equals(\"S\") ? true : false);\n\t\t\tchbHepatoesplenomegalia.setChecked(ficha_epidemiologia_n3\n\t\t\t\t\t.getHepatoesplenomegalia().equals(\"S\") ? true : false);\n\t\t\tchbAdenopatias.setChecked(ficha_epidemiologia_n3.getAdenopatias()\n\t\t\t\t\t.equals(\"S\") ? true : false);\n\t\t\tchbChagoma.setChecked(ficha_epidemiologia_n3.getChagoma().equals(\n\t\t\t\t\t\"S\") ? true : false);\n\t\t\tchbFalla_cardiaca.setChecked(ficha_epidemiologia_n3\n\t\t\t\t\t.getFalla_cardiaca().equals(\"S\") ? true : false);\n\t\t\tchbPalpitacion_taquicardia.setChecked(ficha_epidemiologia_n3\n\t\t\t\t\t.getPalpitacion_taquicardia().equals(\"S\") ? true : false);\n\t\t\tchbDolor_toracico_agudo.setChecked(ficha_epidemiologia_n3\n\t\t\t\t\t.getDolor_toracico_agudo().equals(\"S\") ? true : false);\n\t\t\tchbBrandicardia.setChecked(ficha_epidemiologia_n3.getBrandicardia()\n\t\t\t\t\t.equals(\"S\") ? true : false);\n\t\t\tchbSincope_o_presincope.setChecked(ficha_epidemiologia_n3\n\t\t\t\t\t.getSincope_o_presincope().equals(\"S\") ? true : false);\n\t\t\tchbHipotension.setChecked(ficha_epidemiologia_n3.getHipotension()\n\t\t\t\t\t.equals(\"S\") ? true : false);\n\t\t\tchbDisfagia.setChecked(ficha_epidemiologia_n3.getDisfagia().equals(\n\t\t\t\t\t\"S\") ? true : false);\n\t\t\n\t\t\tUtilidades.seleccionarRadio(rdbMicrohematocrito_examen_fresco,\n\t\t\t\t\tficha_epidemiologia_n3.getMicrohematocrito_examen_fresco());\n\t\t\tUtilidades.seleccionarRadio(rdbStrout,\n\t\t\t\t\tficha_epidemiologia_n3.getStrout());\n\t\t\tUtilidades.seleccionarRadio(rdbElisa_igg_chagas,\n\t\t\t\t\tficha_epidemiologia_n3.getElisa_igg_chagas());\n\t\t\tUtilidades.seleccionarRadio(rdbIfi_igg_chagas,\n\t\t\t\t\tficha_epidemiologia_n3.getIfi_igg_chagas());\n\t\t\tUtilidades.seleccionarRadio(rdbHai_chagas,\n\t\t\t\t\tficha_epidemiologia_n3.getHai_chagas());\n\t\t\tUtilidades.seleccionarRadio(rdbElectrocardiograma,\n\t\t\t\t\tficha_epidemiologia_n3.getElectrocardiograma());\n\t\t\tUtilidades.seleccionarRadio(rdbEcocardiograma,\n\t\t\t\t\tficha_epidemiologia_n3.getEcocardiograma());\n\t\t\tUtilidades.seleccionarRadio(rdbRayos_x_de_torax_indice_toracico,\n\t\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t\t.getRayos_x_de_torax_indice_toracico());\n\t\t\tUtilidades.seleccionarRadio(rdbHolter,\n\t\t\t\t\tficha_epidemiologia_n3.getHolter());\n\t\t\tUtilidades.seleccionarRadio(rdbTratamiento_etiologico,\n\t\t\t\t\tficha_epidemiologia_n3.getTratamiento_etiologico());\n\t\t\tUtilidades.seleccionarRadio(rdbTratamiento_sintomatico,\n\t\t\t\t\tficha_epidemiologia_n3.getTratamiento_sintomatico());\n\t\t\tUtilidades.seleccionarRadio(rdbPosible_via_transmision,\n\t\t\t\t\tficha_epidemiologia_n3.getPosible_via_transmision());\n\t\t\tchbRomana\n\t\t\t\t\t.setChecked(ficha_epidemiologia_n3.getRomana().equals(\"S\") ? true\n\t\t\t\t\t\t\t: false);\n\t\t\t// tbxCodigo.setValue(ficha_epidemiologia_n3.getCodigo());\n\t\t\ttbxResultado1.setValue(ficha_epidemiologia_n3.getResultado1());\n\t\t\ttbxResultado2.setValue(ficha_epidemiologia_n3.getResultado2());\n\t\t\tibxSemanas_de_embarazo.setValue(ficha_epidemiologia_n3\n\t\t\t\t\t.getSemanas_de_embarazo());\n\t\t\tibxNumero_familiares_con_changa.setValue(ficha_epidemiologia_n3\n\t\t\t\t\t.getNumero_familiares_con_changa());\n\t\t\tchbConstipacion_cronica.setChecked(ficha_epidemiologia_n3\n\t\t\t\t\t.getConstipacion_cronica().equals(\"S\") ? true : false);\n\n\t\t\t// Mostramos la vista //\n\t\t\ttbxAccion.setText(\"modificar\");\n\t\t\taccionForm(true, tbxAccion.getText());\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "private void createForm(ArrayList<HashMap<String, String>> data) {\n\t\tLayoutInflater inflater = LayoutInflater.from(IPropertyRegistrationActivity.this);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT,\n\t\t\t\tandroid.widget.LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\tparams.topMargin = 10;\n\n\t\tfields = data;\n\t\tLinearLayout layout = null;\n\t\tint len = fields.size();\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tfinal HashMap<String, String> field = fields.get(j);\n\t\t\tView fieldView = inflater.inflate(R.layout.iproperty_registration_dynamic_view_item, null);\n\n\t\t\tif (field.get(TYPE).equals(LABEL)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrLabel));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditArea));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\n\t\t\t\tif (field.get(VALUE).toString().trim().length() > 0) {\n\t\t\t\t\tedit.setText(field.get(VALUE));\n\t\t\t\t} else {\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tfinal ImageView imgMap;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditMap));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\timgMap = ((ImageView) layout.findViewById(R.id.imgMap));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.state))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getAdminArea().replace(address.getCountryName() == null ? \"\" : address.getCountryName(), \"\")\n\t\t\t\t\t\t\t\t.replace(address.getPostalCode() == null ? \"\" : address.getPostalCode(), \"\"));\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(NAME).equalsIgnoreCase(getString(R.string.city_town))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getSubAdminArea());\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\timgMap.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditMap = edit;\n\t\t\t\t\t\tIntent intent = new Intent(IPropertyRegistrationActivity.this, IjoomerMapAddress.class);\n\t\t\t\t\t\tstartActivityForResult(intent, GET_ADDRESS_FROM_MAP);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(SELECT)) {\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrSpin));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tfinal Spinner spn;\n\t\t\t\tspn = ((Spinner) layout.findViewById(R.id.txtValue));\n\t\t\t\tspn.setAdapter(IjoomerUtilities.getSpinnerAdapter(field));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.country))) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tString country = address.getCountryName();\n\t\t\t\t\t\tint selectedIndex = 0;\n\t\t\t\t\t\tJSONArray jsonArray = null;\n\n\t\t\t\t\t\tjsonArray = new JSONArray(field.get(OPTIONS));\n\t\t\t\t\t\tint optionSize = jsonArray.length();\n\t\t\t\t\t\tfor (int k = 0; k < optionSize; k++) {\n\t\t\t\t\t\t\tJSONObject options = (JSONObject) jsonArray.get(k);\n\n\t\t\t\t\t\t\tif (options.getString(VALUE).equalsIgnoreCase(country)) {\n\t\t\t\t\t\t\t\tselectedIndex = k;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tspn.setSelection(selectedIndex);\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tspn.setSelection(0);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getDateDialog(((IjoomerEditText) v).getText().toString(), true, new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\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});\n\n\t\t\t} else if (field.get(TYPE).equals(TIME)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getTimeDialog(((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\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});\n\n\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getMultiSelectionDialog(field.get(NAME), field.get(OPTIONS), ((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\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});\n\t\t\t}\n\n\t\t\tif (field.get(REQUIRED).equalsIgnoreCase(\"1\")) {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME) + \" *\");\n\t\t\t} else {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t}\n\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\n\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrReadOnly));\n\t\t\tlayout.setVisibility(View.VISIBLE);\n\n\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t((IjoomerEditText) layout.findViewById(R.id.txtValue)).setText(field.get(VALUE));\n\t\t\tfieldView.setTag(field);\n\t\t\tlnr_form.addView(fieldView, params);\n\t\t}\n\t}", "public String inputForm() {\n return inputDataTraveler.validateData();\n }", "public void mostrarDatos(Ficha_epidemiologia_n13 obj)throws Exception{\n\t\tFicha_epidemiologia_n13 ficha_epidemiologia_n13 = (Ficha_epidemiologia_n13)obj;\n\t\ttry{\n\t\t\ttbxCodigo_ficha.setValue(ficha_epidemiologia_n13.getCodigo_ficha());\n\t\t\ttbxIdentificacion.setValue(ficha_epidemiologia_n13.getIdentificacion());\n\t\t\t\n\t\t\tobtenerAdmision(admision);\n\n\t\t\tFormularioUtil.deshabilitarComponentes(groupboxEditar, true,new String[] { });\n\t\t\t\n\t\t\t\n\t\t\tdtbxFecha_creacion.setValue(ficha_epidemiologia_n13.getFecha_creacion());\n\t\t\tchbFiebre.setChecked(ficha_epidemiologia_n13.getFiebre());\n\t\t\tchbMialgias.setChecked(ficha_epidemiologia_n13.getMialgias());\n\t\t\tchbCefalea.setChecked(ficha_epidemiologia_n13.getCefalea());\n\t\t\tchbArtralgias.setChecked(ficha_epidemiologia_n13.getArtralgias());\n\t\t\tchbVomito.setChecked(ficha_epidemiologia_n13.getVomito());\n\t\t\tchbNausea.setChecked(ficha_epidemiologia_n13.getNausea());\n\t\t\tchbDolor_retrocular.setChecked(ficha_epidemiologia_n13.getDolor_retrocular());\n\t\t\tchbHiperemia_conjuntival.setChecked(ficha_epidemiologia_n13.getHiperemia_conjuntival());\n\t\t\tchbSecrecion_conjuntival.setChecked(ficha_epidemiologia_n13.getSecrecion_conjuntival());\n\t\t\tchbDolor_pantorrillas.setChecked(ficha_epidemiologia_n13.getDolor_pantorrillas());\n\t\t\tchbDiarrea.setChecked(ficha_epidemiologia_n13.getDiarrea());\n\t\t\tchbDolor_abdominal.setChecked(ficha_epidemiologia_n13.getDolor_abdominal());\n\t\t\tchbHemoptisis.setChecked(ficha_epidemiologia_n13.getHemoptisis());\n\t\t\tchbMelenas.setChecked(ficha_epidemiologia_n13.getMelenas());\n\t\t\tchbEpistaxis.setChecked(ficha_epidemiologia_n13.getEpistaxis());\n\t\t\tchbErupcion.setChecked(ficha_epidemiologia_n13.getErupcion());\n\t\t\tchbHematuria.setChecked(ficha_epidemiologia_n13.getHematuria());\n\t\t\tchbTomiquete_postiva.setChecked(ficha_epidemiologia_n13.getTomiquete_postiva());\n\t\t\tchbEsplenomegalia.setChecked(ficha_epidemiologia_n13.getEsplenomegalia());\n\t\t\tchbSignos_meningeos.setChecked(ficha_epidemiologia_n13.getSignos_meningeos());\n\t\t\tchbDisnea.setChecked(ficha_epidemiologia_n13.getDisnea());\n\t\t\tchbTos.setChecked(ficha_epidemiologia_n13.getTos());\n\t\t\tchbInsuficiencia_respiratoria.setChecked(ficha_epidemiologia_n13.getInsuficiencia_respiratoria());\n\t\t\tchbHepatomeglia.setChecked(ficha_epidemiologia_n13.getHepatomeglia());\n\t\t\tchbIctericia.setChecked(ficha_epidemiologia_n13.getIctericia());\n\t\t\tchbInsuficiencia_hepatica.setChecked(ficha_epidemiologia_n13.getInsuficiencia_hepatica());\n\t\t\tchbInsuficiencia_renal.setChecked(ficha_epidemiologia_n13.getInsuficiencia_renal());\n\t\t\tUtilidades.seleccionarRadio(rdbVacuna_fiebre_amarilla, ficha_epidemiologia_n13.getVacuna_fiebre_amarilla());\n\t\t\tibxDosis_fiebre_amarilla.setValue((ficha_epidemiologia_n13.getDosis_fiebre_amarilla() != null && !ficha_epidemiologia_n13.getDosis_fiebre_amarilla().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n13.getDosis_fiebre_amarilla()) : null);\n\t\t\tUtilidades.seleccionarRadio(rdbVacuna_hepatitis_a, ficha_epidemiologia_n13.getVacuna_hepatitis_a());\n\t\t\tibxDosis_hepatitis_a.setValue((ficha_epidemiologia_n13.getDosis_hepatitis_a() != null && !ficha_epidemiologia_n13.getDosis_hepatitis_a().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n13.getDosis_hepatitis_a()) : null);\n\t\t\tUtilidades.seleccionarRadio(rdbVacuna_hepatitis_b, ficha_epidemiologia_n13.getVacuna_hepatitis_b());\n\t\t\tibxDosis_hepatitis_b.setValue((ficha_epidemiologia_n13.getDosis_hepatitis_b() != null && !ficha_epidemiologia_n13.getDosis_hepatitis_b().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n13.getDosis_hepatitis_b()) : null);\n\t\t\tUtilidades.seleccionarRadio(rdbVacuna_leptospirosis, ficha_epidemiologia_n13.getVacuna_leptospirosis());\n\t\t\tibxDosis_leptospirosis.setValue((ficha_epidemiologia_n13.getDosis_leptospirosis() != null && !ficha_epidemiologia_n13.getDosis_leptospirosis().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n13.getDosis_leptospirosis()) : null);\n\t\t\tchbPerros.setChecked(ficha_epidemiologia_n13.getPerros());\n\t\t\tchbGatos.setChecked(ficha_epidemiologia_n13.getGatos());\n\t\t\tchbBovinos.setChecked(ficha_epidemiologia_n13.getBovinos());\n\t\t\tchbEquinos.setChecked(ficha_epidemiologia_n13.getEquinos());\n\t\t\tchbPorcions.setChecked(ficha_epidemiologia_n13.getPorcions());\n\t\t\tchbNinguno.setChecked(ficha_epidemiologia_n13.getNinguno());\n\t\t\tchbOtros_animal.setChecked(ficha_epidemiologia_n13.getOtros_animal());\n\t\t\t\n\t\t\tif(ficha_epidemiologia_n13.getOtros_animal()){\n\t\t\t\tlbCual_otro.setVisible(true);\n\t\t\t\ttbxCual_otro.setVisible(true);\n\t\t\t\ttbxCual_otro.setValue(ficha_epidemiologia_n13.getCual_otro());\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tlbCual_otro.setVisible(false);\n\t\t\t\ttbxCual_otro.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tUtilidades.seleccionarRadio(rdbContacto_animales, ficha_epidemiologia_n13.getContacto_animales());\n\t\t\tUtilidades.seleccionarRadio(rdbRatas_domicilio, ficha_epidemiologia_n13.getRatas_domicilio());\n\t\t\tUtilidades.seleccionarRadio(rdbRatas_trabajo, ficha_epidemiologia_n13.getRatas_trabajo());\n\t\t\tchbAcueducto.setChecked(ficha_epidemiologia_n13.getAcueducto());\n\t\t\tchbPozo.setChecked(ficha_epidemiologia_n13.getPozo());\n\t\t\tchbRio.setChecked(ficha_epidemiologia_n13.getRio());\n\t\t\tchbTanque_almacenamiento.setChecked(ficha_epidemiologia_n13.getTanque_almacenamiento());\n\t\t\tUtilidades.seleccionarRadio(rdbAlcantarillas, ficha_epidemiologia_n13.getAlcantarillas());\n\t\t\tUtilidades.seleccionarRadio(rdbInundaciones, ficha_epidemiologia_n13.getInundaciones());\n\t\t\tUtilidades.seleccionarRadio(rdbContacto_aguas_estancadas, ficha_epidemiologia_n13.getContacto_aguas_estancadas());\n\t\t\tUtilidades.seleccionarRadio(rdbAntecedentes_deportivos, ficha_epidemiologia_n13.getAntecedentes_deportivos());\n\t\t\tUtilidades.seleccionarRadio(rdbDisposicion_residuos, ficha_epidemiologia_n13.getDisposicion_residuos());\n\t\t\tUtilidades.seleccionarRadio(rdbTiempo_almacenamiento, ficha_epidemiologia_n13.getTiempo_almacenamiento());\n\t\t\tUtilidades.seleccionarRadio(rdbPersonas_sintomatologia, ficha_epidemiologia_n13.getPersonas_sintomatologia());\n\t\t\tchbLeucocitosis.setChecked(ficha_epidemiologia_n13.getLeucocitosis());\n\t\t\tchbLeucopenia.setChecked(ficha_epidemiologia_n13.getLeucopenia());\n\t\t\tchbNeutrofilia.setChecked(ficha_epidemiologia_n13.getNeutrofilia());\n\t\t\tchbNeutropenia.setChecked(ficha_epidemiologia_n13.getNeutropenia());\n\t\t\tchbLinfocitocis.setChecked(ficha_epidemiologia_n13.getLinfocitocis());\n\t\t\tchbTrombocitosis.setChecked(ficha_epidemiologia_n13.getTrombocitosis());\n\t\t\tchbTrombocitopenia.setChecked(ficha_epidemiologia_n13.getTrombocitopenia());\n\t\t\tchbHemoconcentracion.setChecked(ficha_epidemiologia_n13.getHemoconcentracion());\n\t\t\tchbAlteracion_trasaminasas.setChecked(ficha_epidemiologia_n13.getAlteracion_trasaminasas());\n\t\t\tchbAlteracion_bilirrubinas.setChecked(ficha_epidemiologia_n13.getAlteracion_bilirrubinas());\n\t\t\tchbAlteracion_bun.setChecked(ficha_epidemiologia_n13.getAlteracion_bun());\n\t\t\tchbAlteracion_creatinina.setChecked(ficha_epidemiologia_n13.getAlteracion_creatinina());\n\t\t\tchbCpk_elevada.setChecked(ficha_epidemiologia_n13.getCpk_elevada());\n\t\t\tUtilidades.seleccionarRadio(rdbDengue, ficha_epidemiologia_n13.getDengue());\n\t\t\tUtilidades.seleccionarRadio(rdbMalaria, ficha_epidemiologia_n13.getMalaria());\n\t\t\tUtilidades.seleccionarRadio(rdbHepatitis_a, ficha_epidemiologia_n13.getHepatitis_a());\n\t\t\tUtilidades.seleccionarRadio(rdbHepatitis_b, ficha_epidemiologia_n13.getHepatitis_b());\n\t\t\tUtilidades.seleccionarRadio(rdbHepatitis_c, ficha_epidemiologia_n13.getHepatitis_c());\n\t\t\tUtilidades.seleccionarRadio(rdbFiebre_amarilla, ficha_epidemiologia_n13.getFiebre_amarilla());\n\t\t\tUtilidades.seleccionarRadio(rdbTipo_muestra, ficha_epidemiologia_n13.getTipo_muestra());\n\t\t\tUtilidades.seleccionarRadio(rdbDestino_muestra, ficha_epidemiologia_n13.getDestino_muestra());\n\n\t\t\tif( ficha_epidemiologia_n13.getDestino_muestra().equals(\"O\")){\n\t\t\t\trowMuestra.setVisible(true);\n\t\t\t\tlbOtra_muestra.setVisible(true);\n\t\t\t\ttbxOtra_muestra.setVisible(true);\n\t\t\t\ttbxOtra_muestra.setValue(ficha_epidemiologia_n13.getOtra_muestra());\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\trowMuestra.setVisible(false);\n\t\t\t\tlbOtra_muestra.setVisible(false);\n\t\t\t\ttbxOtra_muestra.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\tUtilidades.seleccionarRadio(rdbCultivo, ficha_epidemiologia_n13.getCultivo());\n\t\t\tUtilidades.seleccionarRadio(rdbHistoquimica, ficha_epidemiologia_n13.getHistoquimica());\n\t\t\tUtilidades.seleccionarRadio(rdbPcr, ficha_epidemiologia_n13.getPcr());\n\t\t\tUtilidades.seleccionarRadio(rdbElisa, ficha_epidemiologia_n13.getElisa());\n\t\t\tUtilidades.seleccionarRadio(rdbMicroaglutinacion, ficha_epidemiologia_n13.getMicroaglutinacion());\n\t\t\tUtilidades.seleccionarRadio(rdbPareadas, ficha_epidemiologia_n13.getPareadas());\n\t\t\tdtbxFecha_muestra1.setValue(ficha_epidemiologia_n13.getFecha_muestra1());\n\t\t\tdtbxFecha_muestra2.setValue(ficha_epidemiologia_n13.getFecha_muestra2());\n\t\t\tUtilidades.seleccionarRadio(rdbIdentificacion_serogrupos, ficha_epidemiologia_n13.getIdentificacion_serogrupos());\n\t\t\t\n\t\t\tif( ficha_epidemiologia_n13.getIdentificacion_serogrupos().equals(\"O\")){\n\t\t\t\trowSerogrupo.setVisible(true);\n\t\t\t\tlOtro_serogrupo.setVisible(true);\n\t\t\t\ttbxOtro_serogrupo.setVisible(true);\n\t\t\t\ttbxOtro_serogrupo.setValue(ficha_epidemiologia_n13.getOtro_serogrupo());\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\trowSerogrupo.setVisible(false);\n\t\t\t\tlOtro_serogrupo.setVisible(false);\n\t\t\t\ttbxOtro_serogrupo.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttbxTitulo_muestra1.setValue(ficha_epidemiologia_n13.getTitulo_muestra1());\n\t\t\ttbxTitulo_muestra2.setValue(ficha_epidemiologia_n13.getTitulo_muestra2());\n\t\t\tUtilidades.seleccionarRadio(rdbTratamiento, ficha_epidemiologia_n13.getTratamiento());\n\t\t\ttbxCual_tratamiento.setValue(ficha_epidemiologia_n13.getCual_tratamiento());\n\t\t\ttbxTratamiento_antibiotico.setValue(ficha_epidemiologia_n13.getTratamiento_antibiotico());\n\t\t\tibxDosis.setValue((ficha_epidemiologia_n13.getDosis() != null && !ficha_epidemiologia_n13.getDosis().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n13.getDosis()) : null);\n\t\t\t\n\t\t\tibxTiempo.setValue((ficha_epidemiologia_n13.getTiempo() != null && !ficha_epidemiologia_n13.getTiempo().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n13.getTiempo()) : null);\n\t\t\ttbxCodigo_medico.setValue(ficha_epidemiologia_n13.getCodigo_medico());\n\t\t\t\n\t\t\t//Mostramos la vista //\n\t\t\ttbxAccion.setText(\"modificar\");\n\t\t\taccionForm(true, tbxAccion.getText());\n\t\t}catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\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 }", "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}" ]
[ "0.6760637", "0.6647674", "0.65822953", "0.6434747", "0.6432996", "0.64078444", "0.6259696", "0.6194113", "0.6139566", "0.6102759", "0.60852206", "0.60525537", "0.6008446", "0.60076684", "0.6001814", "0.5998213", "0.59964085", "0.59957415", "0.59846705", "0.5941919", "0.5941352", "0.5932787", "0.59177005", "0.5892766", "0.58725345", "0.58697474", "0.5866155", "0.5855751", "0.5852552", "0.58505464", "0.5844171", "0.5843007", "0.58370465", "0.5836241", "0.5836241", "0.58358794", "0.5826442", "0.582373", "0.57960683", "0.57822764", "0.57737637", "0.57519853", "0.57288605", "0.5727033", "0.5720003", "0.57148093", "0.5714232", "0.5709713", "0.57044125", "0.57020366", "0.5701582", "0.5699775", "0.56964785", "0.5690453", "0.56838626", "0.567934", "0.56719106", "0.56713045", "0.56672853", "0.56630063", "0.56606174", "0.5657766", "0.56572044", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5650158", "0.5649339", "0.56483287" ]
0.0
-1
Metodo que obtiene los datos del HashMap
public HashMap getDatos() { return datos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<IMapData<Integer, String>> getHashMapData() {\n List<IMapData<Integer, String>> data = new ArrayList<>();\n\n data.add(this.getHashMapData1());\n data.add(this.getHashMapData2());\n\n return data;\n }", "public HashMap getMetaData() ;", "HashMap<String, Object[]> getUbicaciones();", "private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "public Map<String, Object> getInfo();", "public Map<String, String> getData() {\n if (data == null) data = new HashMap<>();\n return data;\n }", "public HashMap<Long, String> getData() {\n\t\treturn data;\n\t}", "private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "public Map<String, Integer> getDataMap() {\n\t\tMap<String, Integer> dataMap = new HashMap<>();\n\t\tdataMap.putAll(temperature.getDataMap());\n\t\tdataMap.putAll(wind.getDataMap());\n\t\tdataMap.putAll(precipitation.getDataMap());\n\t\tdataMap.putAll(condition.getDataMap());\n\t\tdataMap.putAll(hazard.getDataMap());\n\t\tdataMap.putAll(wave.getDataMap());\n\t\t\n\t\treturn dataMap;\n\t}", "public final HashMap<Integer, T> getData() {\n\t\treturn this.data;\n\t}", "public static void getHashMapValues() {\n\t\tMap<Integer, String> map = createHashMap();\n\t\t\n\t\t//Get value from key.\n\t\tSystem.out.println(\"Map value for key 1: \" + map.get(1));\n\n\t\t\n\t\t//2. using custom object as key\n\t\tMap<Account, String> accountMap = createAccountMap();\n\t\t\n\t\tAccount account = new Account(\"John\", 1, 100);\n\t\t\n\t\tSystem.out.println(\"**********Get value from Map:*********** \");\n\t\tSystem.out.println(\"Map Value for key as Account: \"\n\t\t\t\t+ accountMap.get(account));\n\t}", "java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();", "void setHashMap();", "public static Map<String, String> getMapping() {\r\n\t\treturn data.get();\r\n\t}", "public void setDatos(HashMap datos) {\r\n this.datos = datos;\r\n }", "protected final Map<String, Object> getAllData() throws IOException, InterruptedException {\n final Map<String, Object> res = new HashMap<String, Object>(this.getRg().getCommonData());\r\n // plus les données de ce generateur en particulier\r\n res.putAll(this.getData());\r\n return res;\r\n }", "public HashMap<K,V> listAll();", "@Override\n\tpublic Map<String, Object> readAllHitos() {\n\t\treturn hitosDao.readAllHitos();\n\t}", "public LinkedHashMap<Integer, Data> getData(){\r\n\t\treturn data;\r\n\t}", "@Override\n\tpublic List<Map<String, String>> getData() throws Exception{\n\t\tqueryForList(\"\", null);\n\t\treturn null;\n\t}", "@Override\n public Map<String, String> get() {\n\n Map<String, String> hugoMap = Maps.newHashMap();\n try {\n final CSVParser parser = new CSVParser(this.reader, CSVFormat.TDF.withHeader());\n for (CSVRecord record : parser) {\n\n hugoMap.put(record.get(0), record.get(1));\n }\n\n } catch (IOException e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n return hugoMap;\n }", "public HashMap<String, String[]> readDictionary (){\n\t\tHashMap<String, String[]> hashmap = new HashMap<String, String[]>();\n\t\t\n\t\treturn (HashMap<String, String[]>) readDictionary(hashmap);\n\t}", "public HashMap<Integer,T> loadPost() throws IOException, SQLException, ClassNotFoundException;", "Map getAspectDatas();", "public Map<String, Object> getData() {\n\t\treturn this.data;\n\t}", "public Map<String, Object> getCurrentData() throws Exception;", "public ArrayList<HashMap<String, String>> getData() {\n\t\treturn this.data;\n\t}", "Map<String, Object> getStats();", "public Map<String, Object> getInfoMap()\n {\n Map<String, Object> paramMap = new HashMap<String, Object>();\n this.putInMap(paramMap);\n return paramMap;\n }", "@Override\n public Map<String, Class> getDictionary() {\n synchronized (mapper) {\n LinkedHashMap<String, Class> dictionary = new LinkedHashMap<>();\n mapper.fillDictionary(null, dictionary);\n return dictionary;\n }\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "public Map<String, String> dataretrivefromemployeetable() throws SQLException, ClassNotFoundException {\n\t\tClass.forName(driver);\r\n\t\t\r\n\t\t//Connection with database\r\n\t\tcon = DriverManager.getConnection(url,username,password);\r\n\t\t\r\n\t\t//create statment \t\t\r\n\t\tstm = con.createStatement();\r\n\t\t\r\n\t\t//execution of sql query and save resultset\r\n\t\trs = stm.executeQuery(mssqlstmt);\r\n\t\t\r\n\t\t//initialize map object that would be returned\r\n\t\tdata = new HashMap<>();\r\n\r\n\t\twhile (rs.next()) {\r\n\t\t\tString username = rs.getString(\"username\");\r\n\t\t\tString password = rs.getString(\"password\");\r\n\t\t\tdata.put(username, password);\r\n\t\t}\r\n\t\t\r\n\t\t//resultset closing\r\n\t\trs.close();\r\n\t\t//statement closing\r\n\t\tstm.close();\r\n\t\t//closing connection\r\n\t\tcon.close();\r\n\t\t\r\n/*\t\tdata.put(\"parveen1\", \"123\");\r\n\t\tdata.put(\"parveen2\", \"123\");\r\n\t\tdata.put(\"parveen3\", \"123\");\r\n*/\t\t\r\n\t\treturn data;\r\n\t}", "public HashMap<String, NeonValue> getMap();", "public Map<String, Counter> getMap(){\n\t\treturn map;\n\t}", "private Map<String, List<String>> getDictionary() {\n\t\tMap<String, List<String>> dictMap = dictionary.getMultiValueDict();\n\t\treturn dictMap;\n\t}", "void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);", "@Override\n\tpublic HashMap<String, String> getData() {\n\t\treturn dataSourceApi.getData();\n\t}", "protected abstract Map<String, Serializable> getEventKeyAndIdMap();", "public HashMap<String, String> getSomeDaydata(int day) {\n\t\tif(day >= 0 && day <=4){\n\t\t\ttry {\n\t\t\t\tHashMap<String, String> day2Map = new HashMap<String, String>();\n\t\t\t\tJsonObject day2Object = this.jsonForecastArray.get(day).getAsJsonObject();\n\t\t\t\tday2Map.put(\"日期\", day2Object.get(\"date\").getAsString());\n\t\t\t\tday2Map.put(\"最高温\", day2Object.get(\"high\").getAsString());\n\t\t\t\tday2Map.put(\"最低温\", day2Object.get(\"low\").getAsString());\n\t\t\t\tday2Map.put(\"风力\", day2Object.get(\"fengli\").getAsString());\n\t\t\t\tday2Map.put(\"天气\", day2Object.get(\"type\").getAsString());\n\t\t\t\treturn day2Map;\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(\"WeatherRequest Class\", \"Hashmap hasn't init\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Test\n\tpublic void testHashMap() {\n\n\t\t/*\n\t\t * Creates an empty HashMap object with default initial capacity 16 and default\n\t\t * fill ratio \"0.75\".\n\t\t */\n\t\tHashMap hm = new HashMap();\n\t\thm.put(\"evyaan\", 700);\n\t\thm.put(\"varun\", 100);\n\t\thm.put(\"dolly\", 300);\n\t\thm.put(\"vaishu\", 400);\n\t\thm.put(\"vaishu\", 300);\n\t\thm.put(null, 500);\n\t\thm.put(null, 600);\n\t\t// System.out.println(hm);\n\n\t\tCollection values = hm.values();\n//\t\tSystem.out.println(values);\n\n\t\tSet entrySet = hm.entrySet();\n\t\t// System.out.println(entrySet);\n\n\t\tIterator iterator = entrySet.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry entry = (Map.Entry) iterator.next();\n\t\t\t// System.out.println(entry.getKey()+\":\"+entry.getValue());\n\t\t}\n\n\t}", "public static HashMap<String, Integer> getHashMap() {\n String query;\n HashMap<String, Integer> catID = new HashMap<String, Integer>();\n\n try {\n Connection con = Database.createDBconnection();\n Statement stmt = con.createStatement();\n query = \"SELECT category_id, category FROM category;\";\n ResultSet rs = stmt.executeQuery(query);\n\n while(rs.next()) {\n catID.put(rs.getString(\"category\"), rs.getInt(\"category_id\"));\n }\n\n Database.closeDBconnection(con);\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return catID;\n }", "@Override\n\tpublic Map<String, Object> readHitos(int id) {\n\t\treturn hitosDao.readHitos(id);\n\t}", "public Map<Integer, Data> getDataMap() {\n Map<Integer, Data> result = new HashMap<Integer, Data>();\n for (Integer varIndex : _dataMap.keySet()) {\n List<Data> dataList = _dataMap.get(varIndex);\n result.put(varIndex, dataList.get(dataList.size() - 1));\n }\n return result;\n }", "public Map getProperties();", "@Override\n\tpublic void getStat(Map<String, String> map) {\n\t\t\n\t}", "Map getIDPEXDataMap();", "protected abstract Map<String, Map<String, Object>> getData(String columnFamilyName);", "public static Map<String, Person> GetPersons()\n {\n List<Person> persons = dataWraper.getAll(FrekenBok.class);\n Map<String, Person> personMap = new HashMap<>();\n\n persons.forEach( (i)->\n personMap.put(i.GetName(), i)\n );\n\n persons = dataWraper.getAll(LitleBoy.class);\n persons.forEach( (i)->\n personMap.put(i.GetName(), i)\n );\n\n return personMap;\n }", "public Map<String, Object> getInfoMap() {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tthis.putInMap(paramMap);\n\t\treturn paramMap;\n\t}", "public HashMap<Integer, ArrayList<String>> getInfo() {\n\t\treturn infoList;\n\t}", "public Map<String, String> getValueData(){\n\t\treturn valueCache;\n\t}", "public HashMap<String, T> getStorage();", "protected Map<String, T> getDatumCache() {\n\t\treturn datumCache;\n\t}", "java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();", "public abstract Map<String, Protein> getProteins();", "public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }", "public Map<String, Object> getMapData(int iusid, int timeperiodid);", "java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();", "public HashMap<HLID, ArrayList<HLID>> getMapping() {\n\t\treturn mapping;\n\t\t// HashMap<HLActivity, ArrayList<HLActivity>> returnHashMap = new\n\t\t// HashMap<HLActivity,ArrayList<HLActivity>>();\n\t\t// // TODO Anne: check and remove\n\t\t// //Iterator<Entry<HLTransition, ArrayList<HLTransition>>> it =\n\t\t// mapping.entrySet().iterator();\n\t\t// Iterator<Entry<String, ArrayList<String>>> it =\n\t\t// mapping.entrySet().iterator();\n\t\t// while (it.hasNext()) {\n\t\t// Entry entry = it.next();\n\t\t// HLActivity castKey = (HLActivity) entry.getKey();\n\t\t// ArrayList<HLActivity> castValue = (ArrayList<HLActivity>)\n\t\t// entry.getValue();\n\t\t// returnHashMap.put(castKey, castValue);\n\t\t// }\n\t\t// return returnHashMap;\n\t}", "public abstract Map<String, Object> getAttributes();", "HashMap <String, Command> getMap();", "Map<Integer, String> getMetaLocal();", "HashMap<Value, HashSet<Value>> getLayerDatasetDescriptions();", "Map<String, String> mo14888a();", "@Override\n public Map<String, Tuple2<String, String>> get() {\n\n Map<String, Tuple2<String, String>> ensemblMap = Maps.newHashMap();\n try {\n final CSVParser parser = new CSVParser(this.reader, CSVFormat.TDF.withHeader());\n for (CSVRecord record : parser) {\n ensemblMap\n .put(record.get(\"Ensembl\"), new Tuple2(record.get(\"Symbol\"), record.get(\"Entrez\")));\n }\n\n } catch (IOException e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n\n return ensemblMap;\n\n }", "public abstract Map getAttributes();", "public Map<String, Integer> getDataBosses() {\r\n\t\treturn dataBosses;\r\n\t}", "public List<KeyValuePair<Key, Value>> getData() {\r\n\t\t\tdata.reset();\r\n\t\t\treturn data;\r\n\t\t}", "@Override\n public HashMap<String, String> get_hashMap() {\n HashMap<String, String> temp = super.get_hashMap();\n\n temp.put(TAG.TYPE, String.valueOf(this.type));\n temp.put(TAG.SIZE, String.valueOf(this.size));\n temp.put(TAG.TAG, this.tag);\n temp.put(TAG.SPEED_BURROW, String.valueOf(this.burrow_speed));\n temp.put(TAG.SPEED_CLIMBING, String.valueOf(this.climbing_speed));\n temp.put(TAG.SPEED_FLYING, String.valueOf(this.flying_speed));\n temp.put(TAG.SPEED_SWIMMING, String.valueOf(this.swimming_speed));\n\n temp.put(TAG.CHALLENGE_RATING, String.valueOf(this.challenge_rating));\n temp.put(TAG.SENSES_VECTOR, String.valueOf(this.senses));\n temp.put(TAG.EXPERIENCE_POINTS, String.valueOf(this.experience_points));\n\n return temp;\n }", "public HashMap<String, String> getMap() {\n return _map;\n }", "Map getSPEXDataMap();", "private IMapData<Integer, String> getLinkedHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }", "public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}", "HashMap<String, Double> getPortfolioData(String date);", "@Override\n\tpublic Map<String, Object> datos(String username) {\n\t\tString SQL=\"select u.idusuario,p.nombre,p.apellidos,p.edad,p.telefono,p.correo,p.dni,r.nomrol from persona as p, usuario as u, trabajador as t,rol as r where u.idusuario=t.idusuario and t.idrol =r.idrol and p.idpersona =u.idpersona and u.username = ? \";\n\t\t\t\tMap<String,Object> map = jdbc.queryForMap(SQL,username);\n\t\treturn map;\n\t}", "public String[] get()\n {\n return hashmap;\n }", "java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();", "Map getIDPSTDDataMap();", "public Map<Integer, Integer> getMemoryDataMap(){\n return dataMemory.getMemoryMap();\n }", "public abstract Map<String, Serializable> toMap();", "@Override\r\n\tpublic HashMap<String, String> getGeunTaeData(HashMap<String, String> params) {\n\t\treturn sqlsession.selectOne(\"GeuntaeMgnt.getGeunTaeData\",params);\r\n\t}", "void getValues(long id, Map<String,Object> record);", "Map<String, ?> getOutputData();", "private void getDictionary(){\r\n // TODO: read Dictionary\r\n try{\r\n lstDictionary.clear();\r\n for(int i = 0; i < IConfig.LABEL_COUNT; i++){\r\n lstDictionary.add(new HashMap<>());\r\n DictionaryReader dictionaryReader = new DictionaryReader(lstDictionary.get(i), IConfig.DICTIONARY_URL[i]);\r\n dictionaryReader.read();\r\n }\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "public void readUserMap(){\n DatabaseReference usersRef = FirebaseDatabase.getInstance().getReference().child(\"users\");\n usersRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n GenericTypeIndicator<HashMap<String, User>> hash = new GenericTypeIndicator<HashMap<String, User>>() {};\n users = dataSnapshot.getValue(hash);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "@Override\n public List<IMapData<Integer, String>> getLinkedHashMapData() {\n List<IMapData<Integer, String>> data = new ArrayList<>();\n\n data.add(this.getLinkedHashMapData1());\n data.add(this.getLinkedHashMapData2());\n\n return data;\n }", "public static void main(String[] args) {\n HashMap<Integer, String> Hm = new HashMap<Integer, String>();\n Hm.put(0, \"USA\");\n Hm.put(1, \"UK\");\n Hm.put(2, \"India\");\n Hm.put(3, \"Maldives\");\n \n Set sn=Hm.entrySet();\n Iterator i= sn.iterator(); \n while(i.hasNext()) {\n Map.Entry mp=(Map.Entry)i.next();\n System.out.println(mp.getKey());\n System.out.println(mp.getValue());\n }\n \n\t}", "public Map<String , String> getMapFieldAge() throws AncestryException {\n\t\tMap<String , String> mapFieldAge = new HashMap<String , String>();\n\t\tConnection con = null;\n\t\tPreparedStatement pst = null;\n\t\tResultSet rs = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT fieldname , detail_field FROM fieldnamelist WHERE fieldtype =3 GROUP BY fieldname , detail_field\";\n\t\t\tcon = db.getConnectByProject(project);\n\t\t\tpst = con.prepareStatement(sql);\n\t\t\trs = JdbcHelper.statementToResultset(con, pst, sql);\n\t\t\twhile(rs.next()) {\n\t\t\t\tmapFieldAge.put(rs.getString(\"fieldname\"), rs.getString(\"detail_field\"));\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tthrow new AncestryException(\"getMapFieldAge : \" + e.toString() ,e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.closeAll(rs, pst, con);\n\t\t}\n\t\treturn mapFieldAge;\n\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n HashMap<String,MapElements> testing1 = new HashMap<String, MapElements>();\n\n for(DataSnapshot snapshot:dataSnapshot.getChildren())\n {\n Log.d(TAG, \"SNAPSHOT \"+snapshot.getKey());\n String Key = snapshot.getKey();\n\n //Log.d(TAG, \"SPECIFIC\" +snapshot.child(Key).getValue().toString());\n\n }\n }", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "@Override\r\n\tpublic Account getAccountHashmap(String accnum) {\n\t\treturn dataMap.get(accnum);\r\n\t}", "public HashMap<String, Object> getHashMap() {\n return JsonSerializable.toMap(this.propertyBag);\n }", "public Map<String, Object> getAttrs();", "public static Map getInfo(String key) throws Exception {\r\n return (Hashtable) Listener.cachedContent.get(key);\r\n }", "public Dictionary<String, Object> getProperties();", "Map<String, Object> getAllMetadata();", "private void fillData() {\n\t\tfor(Entry<String, HashMap<String, Double>> entry : m.map.entrySet()) {\n\t\t\tfor(Entry<String, Double> subEntry : entry.getValue().entrySet()) {\n\t\t\t\tMappingData item = new MappingData(entry.getKey(), subEntry.getKey(), subEntry.getValue());\n\t\t\t\tdataList.add(item);\n\t\t\t}\n\t\t}\n\t}", "public java.util.Map<java.lang.Integer, java.lang.Integer> getInfoMap() {\n return internalGetInfo().getMap();\n }", "public abstract String fetchSnpData(HashMap<String,String> paramMap) throws RetrievalException;" ]
[ "0.73345846", "0.7175683", "0.7097269", "0.70332295", "0.69945663", "0.6798243", "0.67705166", "0.67391646", "0.6540857", "0.6469484", "0.643365", "0.63774633", "0.6289932", "0.6282377", "0.62779903", "0.6236512", "0.62326455", "0.6212611", "0.62122613", "0.6189971", "0.61698633", "0.6166249", "0.61598724", "0.61421174", "0.6123826", "0.61129457", "0.6108222", "0.60880727", "0.6085546", "0.6037667", "0.6023379", "0.6006312", "0.6005839", "0.60052", "0.59909964", "0.59901214", "0.5985277", "0.59833294", "0.59785396", "0.5967401", "0.59651953", "0.59570706", "0.59563154", "0.59405786", "0.59135646", "0.59117985", "0.5905516", "0.58990854", "0.5895181", "0.5888062", "0.5883655", "0.58836234", "0.5872351", "0.5862277", "0.58603275", "0.5850635", "0.5849714", "0.5846639", "0.5846146", "0.58458036", "0.5843962", "0.5843071", "0.5841665", "0.5835109", "0.5832702", "0.5831977", "0.58296126", "0.58227515", "0.5821139", "0.58189183", "0.5813688", "0.5812563", "0.5787411", "0.5786534", "0.5783929", "0.57834685", "0.5780466", "0.5780106", "0.5773516", "0.5773398", "0.57562995", "0.57556623", "0.57503146", "0.5748178", "0.574745", "0.57460445", "0.5745194", "0.57423544", "0.5733793", "0.57319057", "0.5725223", "0.57201105", "0.5719464", "0.5717118", "0.57146484", "0.57115257", "0.57110775", "0.57050514", "0.5703547", "0.57009757" ]
0.76527435
0
Metodo que asigna los datos en el HashMap
public void setDatos(HashMap datos) { this.datos = datos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setHashMap();", "public HashMap getDatos() {\r\n return datos;\r\n }", "HashMap<String, Object[]> getUbicaciones();", "private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "BaseDatosMemoria() {\n baseDatos = new HashMap<>();\n secuencias = new HashMap<>();\n }", "public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}", "private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "@Override\n public List<IMapData<Integer, String>> getHashMapData() {\n List<IMapData<Integer, String>> data = new ArrayList<>();\n\n data.add(this.getHashMapData1());\n data.add(this.getHashMapData2());\n\n return data;\n }", "public HashMap getMetaData() ;", "public HashMap<Integer,T> loadPost() throws IOException, SQLException, ClassNotFoundException;", "public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}", "public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }", "public void EstaticCache(){\n LinkedHashMap<String, String> ParticionAux = new LinkedHashMap <String,String>();\n Cache.add(ParticionAux);\n for (int i = 0; i < Estatico.length; i++) {\n \n Cache.get(0).put(Estatico[i], ResEstatico[i]);\n // System.out.println(\"===== Particion de Cache N°\"+ParticionAux.values()+\" =====\");\n \n }\n //this.Cache.add(ParticionAux); // carga el hashMap en una particion del cache\n //System.out.println(\"===== Particion de Cache AQUIAQUI\"+Cache.get(0).values()+\" =====\");\n // ParticionAux.clear(); // limpia el Hashmap aux\n }", "public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }", "public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }", "public void setMetaData(HashMap pMetaData) ;", "public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "private void init() {\n\t\tmap = new LinkedHashMap<String, HeaderData>();\r\n\t\tList<HeaderData> list = config.getColumns();\r\n\t\tfor(HeaderData info: list){\r\n\t\t\tString id = info.getId();\r\n\t\t\tif(id == null) throw new IllegalArgumentException(\"Null id found for \"+info.getClass().getName());\r\n\t\t\t// Map the id to info\r\n\t\t\tmap.put(info.getId(), info);\r\n\t\t}\r\n\t}", "@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }", "public abstract void setData(Map<ID, T> data);", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "private void fillData() {\n\t\tfor(Entry<String, HashMap<String, Double>> entry : m.map.entrySet()) {\n\t\t\tfor(Entry<String, Double> subEntry : entry.getValue().entrySet()) {\n\t\t\t\tMappingData item = new MappingData(entry.getKey(), subEntry.getKey(), subEntry.getValue());\n\t\t\t\tdataList.add(item);\n\t\t\t}\n\t\t}\n\t}", "void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);", "public Map<String, Object> getInfo();", "public void initDatabase(HashMap<String, Object> diccionario){\n // Primero comprobamos que el fichero no existe, si existe perfecto ya que simplemente vamos metiendo datos\n File file = new File(fichero_database);\n FileWriter writer = null;\n if(!file.exists()){\n try{\n writer = new FileWriter(file);\n //crea un buffer o flujo intermedio antes de escribir directamente en el archivo\n BufferedWriter bfwriter = new BufferedWriter(writer);\n Iterator it = diccionario.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry)it.next();\n bfwriter.write(pair.getKey() + \",\" );\n it.remove(); // para evitar ConcurrentModificationException\n }\n bfwriter.write(\"\\n\" );\n bfwriter.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (writer != null) {\n try {//cierra el flujo principal\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n\n }", "public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "protected final Map<String, Object> getAllData() throws IOException, InterruptedException {\n final Map<String, Object> res = new HashMap<String, Object>(this.getRg().getCommonData());\r\n // plus les données de ce generateur en particulier\r\n res.putAll(this.getData());\r\n return res;\r\n }", "public Arbre(HashMap<String, String> data) throws ExcepcionArbolIncompleto {\n String[] strings = {\"codi\", \"posicioX_ETRS89\", \"posicioY_ETRS89\", \"latitud_WGS84\", \"longitud_WGS84\", \"tipusElement\", \"espaiVerd\", \"adreca\", \"alcada\", \"catEspecieId\", \"nomCientific\", \"nomEsp\", \"nomCat\", \"categoriaArbrat\", \"ampladaVorera\", \"plantacioDT\", \"tipAigua\", \"tipReg\", \"tipSuperf\", \"tipSuport\", \"cobertaEscocell\", \"midaEscocell\", \"voraEscocell\"};\n List<String> infoArbol = new ArrayList<>(Arrays.asList(strings));\n\n for (String s : infoArbol) {\n if (!data.containsKey(s)) {\n throw new ExcepcionArbolIncompleto();\n }\n }\n\n this.codi = data.get(\"codi\");\n this.posicioX_ETRS89 = data.get(\"posicioX_ETRS89\").equals(\"NO HAY DATOS REGISTRADOS\") ? 0 : Double.parseDouble(data.get(\"posicioX_ETRS89\"));\n this.posicioY_ETRS89 = data.get(\"posicioY_ETRS89\").equals(\"NO HAY DATOS REGISTRADOS\") ? 0 : Double.parseDouble(data.get(\"posicioY_ETRS89\"));\n this.latitud_WGS84 = data.get(\"latitud_WGS84\").equals(\"NO HAY DATOS REGISTRADOS\") ? 0 : Double.parseDouble(data.get(\"latitud_WGS84\"));\n this.longitud_WGS84 = data.get(\"longitud_WGS84\").equals(\"NO HAY DATOS REGISTRADOS\") ? 0 : Double.parseDouble(data.get(\"longitud_WGS84\"));\n this.tipusElement = data.get(\"tipusElement\");\n this.espaiVerd = data.get(\"espaiVerd\");\n this.adreca = data.get(\"adreca\");\n this.alcada = data.get(\"alcada\");\n this.catEspecieId = data.get(\"catEspecieId\").equals(\"NO HAY DATOS REGISTRADOS\") ? 0 : Integer.parseInt(data.get(\"catEspecieId\"));\n this.nomCientific = data.get(\"nomCientific\");\n this.nomEsp = data.get(\"nomEsp\");\n this.nomCat = data.get(\"nomCat\");\n this.categoriaArbrat = data.get(\"categoriaArbrat\");\n this.ampladaVorera = data.get(\"ampladaVorera\");\n this.plantacioDT = data.get(\"plantacioDT\");\n this.tipAigua = data.get(\"tipAigua\");\n this.tipReg = data.get(\"tipReg\");\n this.tipSuperf = data.get(\"tipSuperf\");\n this.tipSuport = data.get(\"tipSuport\");\n this.cobertaEscocell = data.get(\"cobertaEscocell\");\n this.midaEscocell = data.get(\"midaEscocell\");\n this.voraEscocell = data.get(\"voraEscocell\");\n }", "public abstract Map<String, Serializable> toMap();", "public Map<String, Integer> getDataMap() {\n\t\tMap<String, Integer> dataMap = new HashMap<>();\n\t\tdataMap.putAll(temperature.getDataMap());\n\t\tdataMap.putAll(wind.getDataMap());\n\t\tdataMap.putAll(precipitation.getDataMap());\n\t\tdataMap.putAll(condition.getDataMap());\n\t\tdataMap.putAll(hazard.getDataMap());\n\t\tdataMap.putAll(wave.getDataMap());\n\t\t\n\t\treturn dataMap;\n\t}", "public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getString(\"username\"),\n rs.getString(\"password\"),\n rs.getBoolean(\"log\"),\n rs.getBoolean(\"medicine\"),\n rs.getBoolean(\"appointment\"),\n rs.getBoolean(\"caseAccess\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "private void setUpHashMap(int number)\n {\n switch (number)\n {\n case 1:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n break;\n }\n case 2:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }\n case 3:\n {\n this.hourly.put(\"Today\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Day After Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }default:\n break;\n }\n }", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}", "private DataCache() {\n this.people = new HashMap<>();\n this.events = new HashMap<>();\n this.personEvents = new HashMap<>();\n this.currentPersonEvents = new HashMap<>();\n this.eventTypes = new ArrayList<>();\n this.childrenMap = new HashMap<>();\n this.maleSpouse = new HashSet<>();\n this.femaleSpouse = new HashSet<>();\n this.paternalAncestorsMales = new HashSet<>();\n this.paternalAncestorsFemales = new HashSet<>();\n this.maternalAncestorsMales = new HashSet<>();\n this.maternalAncestorsFemales = new HashSet<>();\n }", "private void createHisMap(Customer customer)\n {\n hisMap= new HashMap<>();\n idFile.open(\"history.txt\");\n String line=idFile.getNextLine();\n String name = customer.getUsername();\n specificLine=-1;\n int i=0;\n while (line!=null)\n {\n int j=0;\n String[] fields = line.split(\",\");\n if(fields[0].equals(name))\n {\n specificLine=i;\n }\n\n String[] fields2 = fields[1].split(\"%\");\n\n\n while (j<fields2.length)\n {\n if(hisMap.get(fields[0])==null)\n {\n hisMap.put(fields[0],new ArrayList<>());\n hisMap.get(fields[0]).add(fields2[j]);\n\n }\n else\n {\n hisMap.get(fields[0]).add(fields2[j]);\n }\n j++;\n }\n\n line=idFile.getNextLine();\n i++;\n }\n if(specificLine== -1)\n specificLine=i;\n }", "public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "Map getAspectDatas();", "public void save(HashMap<Integer, T> data) {\n\t\tthis.data.putAll(data);\n\t}", "public void initialilzeMapEntry(String file){\n\t\tmap.put(file, new LinkedList<HashMap<Integer, Integer>>());\n\t}", "public HashMap<String, String> toHashMap() {\n\n // Parse if needed\n run();\n\n if (cachedMap == null) {\n cachedMap = new LinkedHashMap<String, String>();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\");\n\n cachedMap.put(\"File name\", fileName);\n cachedMap.put(\"File size\", \"\" + fileSize);\n cachedMap.put(\"PDF version\", pdfVersion);\n cachedMap.put(\"Page count\", \"\" + numberOfPages);\n cachedMap.put(\"Page size\", \"\" + mediaBoxWidthInPoints + \" x \"\n + mediaBoxHeightInPoints + \" points\");\n cachedMap.put(\"Page width\", \"\" + mediaBoxWidthInPoints);\n cachedMap.put(\"Page height\", \"\" + mediaBoxHeightInPoints);\n cachedMap.put(\"Page layout\", pageLayout);\n cachedMap.put(\"Title\", title);\n cachedMap.put(\"Author\", author);\n cachedMap.put(\"Subject\", subject);\n cachedMap.put(\"PDF producer\", producer);\n cachedMap.put(\"Content creator\", contentCreator);\n if (creationDate != null) {\n cachedMap.put(\"Creation date\",\n dateFormat.format(creationDate.getTime()));\n } else {\n cachedMap.put(\"Creation date\", \"\");\n }\n if (modificationDate != null) {\n cachedMap.put(\"Modification date\",\n dateFormat.format(modificationDate.getTime()));\n } else {\n cachedMap.put(\"Modification date\", \"\");\n }\n\n // \"Others\"\n cachedMap.put(\"Encrypted\", \"\" + isEncrypted);\n cachedMap.put(\"Keywords\", keywords);\n cachedMap.put(\"Media box width\", \"\" + mediaBoxWidthInPoints);\n cachedMap.put(\"Media box height\", \"\" + mediaBoxHeightInPoints);\n cachedMap.put(\"Crop box width\", \"\" + cropBoxWidthInPoints);\n cachedMap.put(\"Crop box height\", \"\" + cropBoxHeightInPoints);\n \n if(permissions != null) {\n cachedMap.put(\"Can Print\", Boolean.toString(permissions.canPrint()));\n cachedMap.put(\"Can Modify\", Boolean.toString(permissions.canModify()));\n cachedMap.put(\"Can Extract\", Boolean.toString(permissions.canExtractContent()));\n cachedMap.put(\"Can Modify Annotations\", Boolean.toString(permissions.canModifyAnnotations()));\n cachedMap.put(\"Can Fill Forms\", Boolean.toString(permissions.canFillInForm()));\n cachedMap.put(\"Can Extract for Accessibility\", Boolean.toString(permissions.canExtractForAccessibility()));\n cachedMap.put(\"Can Assemble\", Boolean.toString(permissions.canAssembleDocument()));\n cachedMap.put(\"Can Print Degraded\", Boolean.toString(permissions.canPrintDegraded()));\n }\n }\n\n return cachedMap;\n }", "@SuppressWarnings(\"unchecked\")\r\n private void newMap() throws IOException, ClassNotFoundException {\r\n this.music_map.clear();\r\n if (needNewMap()) {\r\n if (!save_file.exists()) {\r\n System.out.println(\"DIZIONARIO NON PRESENTE\");\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n\r\n this.setTarget();\r\n\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n } else {\r\n System.out.println(\"DIZIONARIO NON AGGIORNATO\");\r\n if (!UtilFunctions.newDictionaryRequest(this.save_file, this.music_root)) {\r\n System.out.println(\"AGGIORNAMENTO DIZIONARIO RIFIUTATO\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n } else {\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n this.setTarget();\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n }\r\n }\r\n } else {\r\n System.out.println(\"DIZIONARIO GIA' PRESENTE\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n }\r\n }", "public HashMap<String, T> getStorage();", "public HashMap<Long, String> getData() {\n\t\treturn data;\n\t}", "private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}", "public Map<String, String> getData() {\n if (data == null) data = new HashMap<>();\n return data;\n }", "@Override\r\n\tpublic void setInfo(Object datos) {\n\t\t\r\n\t}", "protected abstract Map<String, Serializable> getEventKeyAndIdMap();", "public MyHashMap() {\n map = new HashMap();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void loadMap(){\r\n\t\t//Datei anlegen, falls nicht vorhanden\r\n\t\ttry {\r\n\t\t\tFile file = new File(homeFileLocation);\r\n\t\t\tif(!file.exists()){\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t\tSystem.out.println(\"Created new File.\");\r\n\r\n\t\t\t\t//Leere Map schreiben\r\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(homeFileLocation));\r\n\t\t\t\toos.writeObject(new HashMap<String, String>());\r\n\t\t\t\toos.flush();\r\n\t\t\t\toos.close();\r\n\r\n\t\t\t\tSystem.out.println(\"Wrote empty HashMap.\");\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\t//Map laden\r\n\t\ttry {\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(homeFileLocation));\r\n\t\t\tthis.map = (HashMap<String, String>) ois.readObject();\r\n\t\t\tois.close();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void getHashMapValues() {\n\t\tMap<Integer, String> map = createHashMap();\n\t\t\n\t\t//Get value from key.\n\t\tSystem.out.println(\"Map value for key 1: \" + map.get(1));\n\n\t\t\n\t\t//2. using custom object as key\n\t\tMap<Account, String> accountMap = createAccountMap();\n\t\t\n\t\tAccount account = new Account(\"John\", 1, 100);\n\t\t\n\t\tSystem.out.println(\"**********Get value from Map:*********** \");\n\t\tSystem.out.println(\"Map Value for key as Account: \"\n\t\t\t\t+ accountMap.get(account));\n\t}", "private Map<String, Object> analysisMap(ArrayList<String> data) {\n Map<String, Object> map = new HashMap<>();\n map.put(DAILY, data);\n return map;\n }", "public MyFinalTableModel(Map<String, Double> map) {\n\n\t\tdata = new Object[map.size()][2];\n\n\t\tint idx = 0;\n\n\t\tfor (String key : map.keySet()) {\n\n\t\t\tdata[idx][0] = key;\n\t\t\tdata[idx][1] = map.get(key);\n\t\t\tidx++;\n\n\t\t}\n\n\t}", "private void inicializarFiltros() {\r\n filtros = new HashMap<String, String>();\r\n filtros.put(\"parametroNombre\", null);\r\n filtros.put(\"parametroApellido\", null);\r\n filtros.put(\"parametroDocumento\", null);\r\n filtros.put(\"parametroTipoDocumento\", null);\r\n filtros.put(\"parametroCorreo\", null);\r\n filtros.put(\"parametroUsuario\", null);\r\n filtros.put(\"parametroEstado\", null);\r\n filtros.put(\"parametroGenero\", null);\r\n agregarFiltrosAdicionales();\r\n }", "public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }", "public abstract void putAll(AbstractIntHashMap map);", "private void loadDummyDataHashMap(DatabaseReference friendsReference) {\n friendsReference.setValue(DummyData.getDummyDataAsHashMap());\n }", "public MapSum() {\n map = new HashMap<>();\n }", "public HashMap<String, NeonValue> getMap();", "public void setGuiHashMap() {\n\n gameMap.setGetGuiHashMapParameter(\"author\",\"Default authorName\");\n gameMap.setGetGuiHashMapParameter(\"warn\",\"Default warning\");\n gameMap.setGetGuiHashMapParameter(\"image\",\"Default image\");\n gameMap.setGetGuiHashMapParameter(\"wrap\",\"Default wrapping\");\n gameMap.setGetGuiHashMapParameter(\"scroll\",\"Default scrolling\");\n }", "private void populateDictionary() throws IOException {\n populateDictionaryByLemmatizer();\n// populateDictionaryBySynonyms();\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"TortId\", this.TortId);\n this.setParamSimple(map, prefix + \"TortTitle\", this.TortTitle);\n this.setParamSimple(map, prefix + \"TortPlat\", this.TortPlat);\n this.setParamSimple(map, prefix + \"TortURL\", this.TortURL);\n this.setParamSimple(map, prefix + \"PubTime\", this.PubTime);\n this.setParamSimple(map, prefix + \"Author\", this.Author);\n this.setParamSimple(map, prefix + \"DetectTime\", this.DetectTime);\n this.setParamSimple(map, prefix + \"ObtainStatus\", this.ObtainStatus);\n this.setParamSimple(map, prefix + \"RightStatus\", this.RightStatus);\n this.setParamSimple(map, prefix + \"BlockStatus\", this.BlockStatus);\n this.setParamSimple(map, prefix + \"TortNum\", this.TortNum);\n this.setParamSimple(map, prefix + \"ObtainNote\", this.ObtainNote);\n this.setParamSimple(map, prefix + \"WorkTitle\", this.WorkTitle);\n this.setParamSimple(map, prefix + \"TortSite\", this.TortSite);\n this.setParamSimple(map, prefix + \"ICP\", this.ICP);\n this.setParamSimple(map, prefix + \"RightNote\", this.RightNote);\n this.setParamSimple(map, prefix + \"ObtainType\", this.ObtainType);\n this.setParamSimple(map, prefix + \"BlockNote\", this.BlockNote);\n this.setParamSimple(map, prefix + \"WorkId\", this.WorkId);\n this.setParamSimple(map, prefix + \"WorkName\", this.WorkName);\n this.setParamSimple(map, prefix + \"AuthStatus\", this.AuthStatus);\n this.setParamSimple(map, prefix + \"CommStatus\", this.CommStatus);\n this.setParamSimple(map, prefix + \"EvidenceStatus\", this.EvidenceStatus);\n this.setParamSimple(map, prefix + \"IsProducer\", this.IsProducer);\n this.setParamSimple(map, prefix + \"IsOverseas\", this.IsOverseas);\n this.setParamSimple(map, prefix + \"IPLoc\", this.IPLoc);\n\n }", "public ObservableHashMap()\n {\n super();\n }", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "public void setData(Map<E, String> data) {\n\t\tthis.data = data;\n\t}", "public MyHashMap() {\n hashMap = new ArrayList<>();\n }", "@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "@Override\n public HashMap<String, String> get_hashMap() {\n HashMap<String, String> temp = super.get_hashMap();\n\n temp.put(TAG.TYPE, String.valueOf(this.type));\n temp.put(TAG.SIZE, String.valueOf(this.size));\n temp.put(TAG.TAG, this.tag);\n temp.put(TAG.SPEED_BURROW, String.valueOf(this.burrow_speed));\n temp.put(TAG.SPEED_CLIMBING, String.valueOf(this.climbing_speed));\n temp.put(TAG.SPEED_FLYING, String.valueOf(this.flying_speed));\n temp.put(TAG.SPEED_SWIMMING, String.valueOf(this.swimming_speed));\n\n temp.put(TAG.CHALLENGE_RATING, String.valueOf(this.challenge_rating));\n temp.put(TAG.SENSES_VECTOR, String.valueOf(this.senses));\n temp.put(TAG.EXPERIENCE_POINTS, String.valueOf(this.experience_points));\n\n return temp;\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"Title\", this.Title);\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Type\", this.Type);\n this.setParamSimple(map, prefix + \"Description\", this.Description);\n this.setParamSimple(map, prefix + \"Schema\", this.Schema);\n this.setParamSimple(map, prefix + \"CmsProject\", this.CmsProject);\n this.setParamSimple(map, prefix + \"PkgId\", this.PkgId);\n this.setParamSimple(map, prefix + \"SchemaVersion\", this.SchemaVersion);\n this.setParamSimple(map, prefix + \"CreatorId\", this.CreatorId);\n this.setParamSimple(map, prefix + \"CreatedAt\", this.CreatedAt);\n this.setParamSimple(map, prefix + \"UpdatedAt\", this.UpdatedAt);\n this.setParamSimple(map, prefix + \"EnvId\", this.EnvId);\n this.setParamSimple(map, prefix + \"DataSourceVersion\", this.DataSourceVersion);\n this.setParamArrayObj(map, prefix + \"AppUsageList.\", this.AppUsageList);\n this.setParamSimple(map, prefix + \"PublishedAt\", this.PublishedAt);\n this.setParamArraySimple(map, prefix + \"ChildDataSourceIds.\", this.ChildDataSourceIds);\n this.setParamSimple(map, prefix + \"Fun\", this.Fun);\n this.setParamSimple(map, prefix + \"ScfStatus\", this.ScfStatus);\n this.setParamSimple(map, prefix + \"Methods\", this.Methods);\n this.setParamArraySimple(map, prefix + \"ChildDataSourceNames.\", this.ChildDataSourceNames);\n this.setParamSimple(map, prefix + \"IsNewDataSource\", this.IsNewDataSource);\n this.setParamSimple(map, prefix + \"ViewId\", this.ViewId);\n this.setParamSimple(map, prefix + \"Configuration\", this.Configuration);\n this.setParamSimple(map, prefix + \"TemplateCode\", this.TemplateCode);\n this.setParamSimple(map, prefix + \"Source\", this.Source);\n this.setParamSimple(map, prefix + \"PublishVersion\", this.PublishVersion);\n this.setParamSimple(map, prefix + \"PublishViewId\", this.PublishViewId);\n this.setParamSimple(map, prefix + \"SubType\", this.SubType);\n this.setParamSimple(map, prefix + \"AuthStatus\", this.AuthStatus);\n this.setParamObj(map, prefix + \"AuthInfo.\", this.AuthInfo);\n\n }", "public Map<String, Object> getCurrentData() throws Exception;", "public static Map<Taso, Opintokokonaisuus> lueOpintokokonaisuudet(String tiedosto) throws Exception {\n FileInputStream sisaanF = new FileInputStream(tiedosto);\n ObjectInputStream sisaan = new ObjectInputStream(sisaanF);\n \n Map<Taso, Opintokokonaisuus> luettu = null;\n \n try {\n luettu = (Map<Taso, Opintokokonaisuus>)sisaan.readObject();\n } catch (Exception e){\n luettu = new HashMap<Taso, Opintokokonaisuus>();\n }\n \n\n return luettu;\n }", "@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n news = (HashMap<String, String>) dataSnapshot.getValue();\n handleHashMap();\n fillNews();\n\n\n }", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getHome_aDataFromMap((Map<String,Object>) dataSnapshot.getValue());\n }", "public MyHashMap() {\n\n }", "public void \n\tsetData(\n\t\t\tString key, \n\t\t\tObject value) \n\t{\n\t\ttry{\n\t\t\tthis_mon.enter();\n\n\t\t\tif (user_data == null) {\n\t\t\t\tuser_data = new HashMap();\n\t\t\t}\n\t\t\tif (value == null) {\n\t\t\t\tif (user_data.containsKey(key))\n\t\t\t\t\tuser_data.remove(key);\n\t\t\t} else {\n\t\t\t\tuser_data.put(key, value);\n\t\t\t}\n\t\t}finally{\n\t\t\tthis_mon.exit();\n\t\t}\n\t}", "public void setTempoHashMap(HashMap<Integer, Integer> tempoHashMap){\n\t\tthis.tempoHashMap = tempoHashMap;\n\t}", "@Override\n public Map<String, XPathValue> getArticleMetaMap() {\n return EbscoMap;\n }", "public Map<String, Object> map() {\n Map<String, Object> tomcatInstanceMap = new HashMap<>();\n tomcatInstanceMap.put(\"instanceUUID\", tomcatInstanceUUID);\n tomcatInstanceMap.put(\"instanceName\", instanceName);\n tomcatInstanceMap.put(\"environmentName\", environmentName);\n tomcatInstanceMap.put(\"tomcatVersion\", tomcatVersion);\n tomcatInstanceMap.put(\"destinationFolder\", destinationFolder.getAbsolutePath());\n tomcatInstanceMap.put(\"compressed\", compressed);\n tomcatInstanceMap.put(\"primaryPort\", primaryPort);\n tomcatInstanceMap.put(\"protocolPrimaryPort\", protocolPrimaryPort);\n tomcatInstanceMap.put(\"shutdownPort\", shutdownPort);\n tomcatInstanceMap.put(\"ajpPort\", ajpPort);\n tomcatInstanceMap.put(\"secureInstance\", secureInstance);\n tomcatInstanceMap.put(\"securePort\", securePort);\n tomcatInstanceMap.put(\"protocolSecurePort\", protocolSecurePort);\n tomcatInstanceMap.put(\"keystoreSourceFilename\", keystoreSourceFilename);\n tomcatInstanceMap.put(\"keystoreCredentials\", keystoreCredentials);\n tomcatInstanceMap.put(\"jvmOptionXms\", jvmOptionXms);\n tomcatInstanceMap.put(\"jvmOptionXmx\", jvmOptionXmx);\n tomcatInstanceMap.put(\"jvmOptionXss\", jvmOptionXss);\n tomcatInstanceMap.put(\"jvmOptionXXMaxMetaspaceSize\", jvmOptionXXMaxMetaspaceSize);\n tomcatInstanceMap.put(\"jvmOptions\", jvmOptions);\n tomcatInstanceMap.put(\"instanceManagement\", instanceManagement);\n /**\n * Serialize our Instance Management Properties\n */\n List<Map<String,String>> instanceManagementPropertiesMapList =\n new ArrayList<>(instanceManagementProperties.size());\n for(TomcatInstanceProperty tomcatInstanceProperty : instanceManagementProperties) {\n instanceManagementPropertiesMapList.add(tomcatInstanceProperty.map());\n }\n tomcatInstanceMap.put(\"instanceManagementProperties\", instanceManagementPropertiesMapList);\n /**\n * Serialize our Instance Properties\n */\n List<Map<String,String>> instancePropertiesMapList =\n new ArrayList<>(instanceProperties.size());\n for(TomcatInstanceProperty tomcatInstanceProperty : instanceProperties) {\n instancePropertiesMapList.add(tomcatInstanceProperty.map());\n }\n tomcatInstanceMap.put(\"instanceProperties\", instancePropertiesMapList);\n /**\n * Return the Map for Persisting as YAML.\n */\n return tomcatInstanceMap;\n }", "@Override\n public Set<Map.Entry<String,Pacote>> entrySet() {\n \n //resultado\n Set<Map.Entry<String,Pacote>> r = new HashSet<>();\n \n \n Pacote p;\n \n try {\n \n conn = Connect.connect();// abrir uma conecção\n \n // querie que obtem os dados para poder\n PreparedStatement stm = conn.prepareStatement(\"SELECT nomePacote, preco FROM Pacote WHERE visivel=TRUE;\");\n \n // agora executa a querie\n ResultSet rs = stm.executeQuery();\n \n //percorrer o resultado\n while (rs.next()) {\n p = new Pacote(rs.getString(\"nomePacote\"),rs.getDouble(\"preco\"));\n \n \n /*\n AGORA FALTA OS METUDOS PARA PREENCHER A LISTA DAS CONFIGURAÇÕES\n */\n \n this.addComponentes(p);\n \n \n \n r.add(new AbstractMap.SimpleEntry(p.getNome(),p));\n }\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn); // fechar a connecção\n }\n return r;\n }", "Map getIDPEXDataMap();", "void setMap(Map aMap);", "private IMapData<Integer, String> getLinkedHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"c\"),\n KeyValueNode.make(1, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "public Map<String, String> dataretrivefromemployeetable() throws SQLException, ClassNotFoundException {\n\t\tClass.forName(driver);\r\n\t\t\r\n\t\t//Connection with database\r\n\t\tcon = DriverManager.getConnection(url,username,password);\r\n\t\t\r\n\t\t//create statment \t\t\r\n\t\tstm = con.createStatement();\r\n\t\t\r\n\t\t//execution of sql query and save resultset\r\n\t\trs = stm.executeQuery(mssqlstmt);\r\n\t\t\r\n\t\t//initialize map object that would be returned\r\n\t\tdata = new HashMap<>();\r\n\r\n\t\twhile (rs.next()) {\r\n\t\t\tString username = rs.getString(\"username\");\r\n\t\t\tString password = rs.getString(\"password\");\r\n\t\t\tdata.put(username, password);\r\n\t\t}\r\n\t\t\r\n\t\t//resultset closing\r\n\t\trs.close();\r\n\t\t//statement closing\r\n\t\tstm.close();\r\n\t\t//closing connection\r\n\t\tcon.close();\r\n\t\t\r\n/*\t\tdata.put(\"parveen1\", \"123\");\r\n\t\tdata.put(\"parveen2\", \"123\");\r\n\t\tdata.put(\"parveen3\", \"123\");\r\n*/\t\t\r\n\t\treturn data;\r\n\t}", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"Cluster\", this.Cluster);\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Runtime\", this.Runtime);\n this.setParamSimple(map, prefix + \"ModelUri\", this.ModelUri);\n this.setParamSimple(map, prefix + \"Cpu\", this.Cpu);\n this.setParamSimple(map, prefix + \"Memory\", this.Memory);\n this.setParamSimple(map, prefix + \"Gpu\", this.Gpu);\n this.setParamSimple(map, prefix + \"GpuMemory\", this.GpuMemory);\n this.setParamSimple(map, prefix + \"CreateTime\", this.CreateTime);\n this.setParamSimple(map, prefix + \"UpdateTime\", this.UpdateTime);\n this.setParamSimple(map, prefix + \"ScaleMode\", this.ScaleMode);\n this.setParamObj(map, prefix + \"Scaler.\", this.Scaler);\n this.setParamObj(map, prefix + \"Status.\", this.Status);\n this.setParamSimple(map, prefix + \"AccessToken\", this.AccessToken);\n this.setParamSimple(map, prefix + \"ConfigId\", this.ConfigId);\n this.setParamSimple(map, prefix + \"ConfigName\", this.ConfigName);\n this.setParamSimple(map, prefix + \"ServeSeconds\", this.ServeSeconds);\n this.setParamSimple(map, prefix + \"ConfigVersion\", this.ConfigVersion);\n this.setParamSimple(map, prefix + \"ResourceGroupId\", this.ResourceGroupId);\n this.setParamArrayObj(map, prefix + \"Exposes.\", this.Exposes);\n this.setParamSimple(map, prefix + \"Region\", this.Region);\n this.setParamSimple(map, prefix + \"ResourceGroupName\", this.ResourceGroupName);\n this.setParamSimple(map, prefix + \"Description\", this.Description);\n this.setParamSimple(map, prefix + \"GpuType\", this.GpuType);\n this.setParamSimple(map, prefix + \"LogTopicId\", this.LogTopicId);\n\n }", "private IMapData<Integer, String> getLinkedHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "private Map<String, Object> createDefaultMap() {\n Map<String, Object> result = new LinkedHashMap<>();\n result.put(\"stream_speed0\", 1);\n result.put(\"stream_start0\", 0);\n result.put(\"stream_end0\", 7);\n result.put(\"stream_speed1\", -2);\n result.put(\"stream_start1\", 15);\n result.put(\"stream_end1\", 19);\n\n result.put(\"fish_quantity\", numFishes);\n result.put(\"fish_reproduction\", 3);\n result.put(\"fish_live\", 10);\n result.put(\"fish_speed\", 2);\n result.put(\"fish_radius\", 4);\n\n result.put(\"shark_quantity\", numSharks);\n result.put(\"shark_live\", 20);\n result.put(\"shark_hungry\", 7);\n result.put(\"shark_speed\", 2);\n result.put(\"shark_radius\", 5);\n\n return result;\n }", "@Override\n public void init(HashMap<String, Object> map) {\n this.title = (String) map.get(\"title\");\n this.url = (String) map.get(\"url\");\n }", "private Map<String,Object> getParams(String nombre , int id){\n\t\t\tMap <String,Object> mapa;\n\t\t\tmapa = new HashMap<String,Object>();\n\t\t\t//Pasar parametros en de JasperReport\n\t\t\tmapa.put(\"alumnoNombre\", nombre);\n\t\t\tmapa.put(\"alumnoId\", id);\n\t\t\t\n\t\t\treturn mapa;\n\t\t\t\n\t\t}", "private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }", "@Override\n public void putAll(Map<? extends String,? extends Pacote> t) {\n for(Pacote p : t.values()) {\n this.put(p.getNome(), p);\n }\n }", "public abstract Map<Integer, QuantDataset> updatedDatasets();", "public ControladorArchivos() {\n diccionarioEncriptado = new HashMap<>();\n llenarDiccionario();\n for (Map.Entry<String, String> entry : diccionarioEncriptado.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n System.out.println(key);\n }\n }", "@Override\n public HashMap<String, Object> toMap() {\n\n HashMap<String,Object> hashMap=new HashMap<>();\n hashMap.put(ApodClientAPI.APOD_START_DATE,APOD_START_DATE);\n hashMap.put(ApodClientAPI.APOD_END_DATE,APOD_END_DATE);\n hashMap.put(ApodClientAPI.APOD_API_KEY,ApodClientAPI.APOD_API_KEY_VALUE);\n\n\n return hashMap;\n }", "HashMap<String, Double> getPortfolioData(String date);", "protected void setMetdata(HashMap<PageMetadataEnum,String> m ){\r\n\t\tthis.metadata = m; \r\n\t}", "abstract Map<String, Integer> mapOfNamesToSalary();", "public Map toMap(Map<String, Object> map) {\n return super.toMap(map);\n }" ]
[ "0.7294693", "0.7049627", "0.67333573", "0.65234387", "0.6430347", "0.64203423", "0.63889915", "0.63323706", "0.63159513", "0.6305959", "0.6218228", "0.61508834", "0.6144829", "0.6116879", "0.6093151", "0.6086096", "0.604139", "0.6039573", "0.5997021", "0.59867233", "0.598352", "0.59606606", "0.5935473", "0.59116167", "0.5904055", "0.5889579", "0.5854708", "0.58460087", "0.5845685", "0.58304703", "0.5825458", "0.5822842", "0.57955915", "0.5770928", "0.5747735", "0.57374734", "0.5704128", "0.57028633", "0.5694074", "0.56919", "0.56894696", "0.56729877", "0.56729144", "0.5670438", "0.5666318", "0.5647157", "0.5636569", "0.5621265", "0.5620869", "0.56196773", "0.5616888", "0.561486", "0.5608529", "0.5591224", "0.55873454", "0.5585913", "0.5582373", "0.5580905", "0.55783874", "0.5576382", "0.5556443", "0.5555341", "0.55473995", "0.55441606", "0.5542673", "0.55391216", "0.5532694", "0.55251545", "0.55209607", "0.55134594", "0.5511408", "0.5500347", "0.54910284", "0.5486686", "0.54842746", "0.54740006", "0.5472696", "0.54656607", "0.54612166", "0.54600644", "0.54594076", "0.5442408", "0.5441609", "0.5441139", "0.5438901", "0.54378134", "0.54326415", "0.54317474", "0.54283124", "0.54277694", "0.5421441", "0.5420614", "0.54083765", "0.54037565", "0.5400525", "0.5396936", "0.5394661", "0.5394423", "0.53936577", "0.53905445" ]
0.7168077
1
TODO Autogenerated method stub
public void updateVentureCheckList(VentureChecklist ventureChecklist) { Sl = "UPDATE venture_checklist SET ventureChecklistContent = ? WHERE memberAccount= ? AND mapSubClassID = ?"; try { conn = dataSource.getConnection(); smt = conn.prepareStatement(Sl); smt.setString(1, ventureChecklist.getContent()); smt.setString(2, ventureChecklist.getAccount()); smt.setInt(3, ventureChecklist.getClassID()); smt.executeUpdate(); rs.close(); smt.close(); } catch (SQLException e) { throw new RuntimeException(e); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) {} } } }
{ "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 List<MapClass> getMapClassList(MapClass mapClass) { List<MapClass> mapClassList = new ArrayList<MapClass>(); //String Sl = "SELECT * FROM map_class LEFT JOIN venture_checklist ON map_class.mapClassID = venture_checklist.mapClassID WHERE mapID = ?"; Sl1 = "SELECT * FROM map_class WHERE mapID = ?"; Sl2 = "SELECT MAX(mapClassID) AS now FROM venture_checklist WHERE memberAccount = ? " + "GROUP BY memberAccount"; boolean now = false; try { conn = dataSource.getConnection(); smt = conn.prepareStatement(Sl1); smt.setInt(1, mapClass.getId()); rs1 = smt.executeQuery(); while(rs1.next()){ MapClass mapClass2 = new MapClass(); mapClass2.setId(rs1.getInt("mapID")); mapClass2.setClassID(rs1.getInt("mapClassID")); mapClass2.setName(rs1.getString("mapClassName")); mapClass2.setUrl(rs1.getString("mapClassUrl")); mapClass2.setCss(rs1.getString("mapClassCss")); if(now == false){ now = true; smt = conn.prepareStatement(Sl2); smt.setString(1, mapClass.getAccount()); rs2 = smt.executeQuery(); while(rs2.next()){ mapClass2.setNow(rs2.getInt("now")); if(mapClass2.getNow()<13){ String Sl3 = "SELECT * FROM product WHERE memberAccount = ?"; smt = conn.prepareStatement(Sl3); smt.setString(1, mapClass.getAccount()); ResultSet rs3 = smt.executeQuery(); if(rs3.next()){ mapClass2.setNow(13); } } } } mapClassList.add(mapClass2); } rs1.close(); rs2.close(); smt.close(); } catch (SQLException e) { throw new RuntimeException(e); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) {} } } return mapClassList; }
{ "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 void insertHumanResourceContent(HumanResourceContent humanResourceContent) { Sl = "INSERT INTO human_resource_content (memberAccount, M0, M1, M2, M3, M4, M5, M6, M7, M8, M9," + "M10, M11, M12, R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12," + "S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, O0, O1, O2, O3, O4, O5, O6, O7, O8, O9," + "O10, O11, O12, total0, total1, total2, total3, total4, total5, total6, total7, " + "total8, total9, total10, total11, total12) " + "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?," + " ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; try { System.out.println("123456"); conn = dataSource.getConnection(); smt = conn.prepareStatement(Sl); smt.setString(1, humanResourceContent.getAccount()); smt.setInt(2, humanResourceContent.getM0()); smt.setInt(3, humanResourceContent.getM1()); smt.setInt(4, humanResourceContent.getM2()); smt.setInt(5, humanResourceContent.getM3()); smt.setInt(6, humanResourceContent.getM4()); smt.setInt(7, humanResourceContent.getM5()); smt.setInt(8, humanResourceContent.getM6()); smt.setInt(9, humanResourceContent.getM7()); smt.setInt(10, humanResourceContent.getM8()); smt.setInt(11, humanResourceContent.getM9()); smt.setInt(12, humanResourceContent.getM10()); smt.setInt(13, humanResourceContent.getM11()); smt.setInt(14, humanResourceContent.getM12()); smt.setInt(15, humanResourceContent.getR0()); smt.setInt(16, humanResourceContent.getR1()); smt.setInt(17, humanResourceContent.getR2()); smt.setInt(18, humanResourceContent.getR3()); smt.setInt(19, humanResourceContent.getR4()); smt.setInt(20, humanResourceContent.getR5()); smt.setInt(21, humanResourceContent.getR6()); smt.setInt(22, humanResourceContent.getR7()); smt.setInt(23, humanResourceContent.getR8()); smt.setInt(24, humanResourceContent.getR9()); smt.setInt(25, humanResourceContent.getR10()); smt.setInt(26, humanResourceContent.getR11()); smt.setInt(27, humanResourceContent.getR12()); smt.setInt(28, humanResourceContent.getS0()); smt.setInt(29, humanResourceContent.getS1()); smt.setInt(30, humanResourceContent.getS2()); smt.setInt(31, humanResourceContent.getS3()); smt.setInt(32, humanResourceContent.getS4()); smt.setInt(33, humanResourceContent.getS5()); smt.setInt(34, humanResourceContent.getS6()); smt.setInt(35, humanResourceContent.getS7()); smt.setInt(36, humanResourceContent.getS8()); smt.setInt(37, humanResourceContent.getS9()); smt.setInt(38, humanResourceContent.getS10()); smt.setInt(39, humanResourceContent.getS11()); smt.setInt(40, humanResourceContent.getS12()); smt.setInt(41, humanResourceContent.getO0()); smt.setInt(42, humanResourceContent.getO1()); smt.setInt(43, humanResourceContent.getO2()); smt.setInt(44, humanResourceContent.getO3()); smt.setInt(45, humanResourceContent.getO4()); smt.setInt(46, humanResourceContent.getO5()); smt.setInt(47, humanResourceContent.getO6()); smt.setInt(48, humanResourceContent.getO7()); smt.setInt(49, humanResourceContent.getO8()); smt.setInt(50, humanResourceContent.getO9()); smt.setInt(51, humanResourceContent.getO10()); smt.setInt(52, humanResourceContent.getO11()); smt.setInt(53, humanResourceContent.getO12()); smt.setInt(54, humanResourceContent.getTotal0()); smt.setInt(55, humanResourceContent.getTotal1()); smt.setInt(56, humanResourceContent.getTotal2()); smt.setInt(57, humanResourceContent.getTotal3()); smt.setInt(58, humanResourceContent.getTotal4()); smt.setInt(59, humanResourceContent.getTotal5()); smt.setInt(60, humanResourceContent.getTotal6()); smt.setInt(61, humanResourceContent.getTotal7()); smt.setInt(62, humanResourceContent.getTotal8()); smt.setInt(63, humanResourceContent.getTotal9()); smt.setInt(64, humanResourceContent.getTotal10()); smt.setInt(65, humanResourceContent.getTotal11()); smt.setInt(66, humanResourceContent.getTotal12()); smt.executeUpdate(); smt.close(); } catch (SQLException e) { throw new RuntimeException(e); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) {} } } }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
public HumanResourceContent getHumanResourceContentByMember(Member member) { Sl = "SELECT * FROM human_resource_content WHERE memberAccount = ?"; HumanResourceContent humanResourceContent = new HumanResourceContent(); try { conn = dataSource.getConnection(); smt = conn.prepareStatement(Sl); smt.setString(1, member.getAccount()); rs = smt.executeQuery(); if(rs.next()){ humanResourceContent.setM0(rs.getInt("M0")); humanResourceContent.setM1(rs.getInt("M1")); humanResourceContent.setM2(rs.getInt("M2")); humanResourceContent.setM3(rs.getInt("M3")); humanResourceContent.setM4(rs.getInt("M4")); humanResourceContent.setM5(rs.getInt("M5")); humanResourceContent.setM6(rs.getInt("M6")); humanResourceContent.setM7(rs.getInt("M7")); humanResourceContent.setM8(rs.getInt("M8")); humanResourceContent.setM9(rs.getInt("M9")); humanResourceContent.setM10(rs.getInt("M10")); humanResourceContent.setM11(rs.getInt("M11")); humanResourceContent.setM12(rs.getInt("M12")); humanResourceContent.setR0(rs.getInt("R0")); humanResourceContent.setR1(rs.getInt("R1")); humanResourceContent.setR2(rs.getInt("R2")); humanResourceContent.setR3(rs.getInt("R3")); humanResourceContent.setR4(rs.getInt("R4")); humanResourceContent.setR5(rs.getInt("R5")); humanResourceContent.setR6(rs.getInt("R6")); humanResourceContent.setR7(rs.getInt("R7")); humanResourceContent.setR8(rs.getInt("R8")); humanResourceContent.setR9(rs.getInt("R9")); humanResourceContent.setR10(rs.getInt("R10")); humanResourceContent.setR11(rs.getInt("R11")); humanResourceContent.setR12(rs.getInt("R12")); humanResourceContent.setS0(rs.getInt("S0")); humanResourceContent.setS1(rs.getInt("S1")); humanResourceContent.setS2(rs.getInt("S2")); humanResourceContent.setS3(rs.getInt("S3")); humanResourceContent.setS4(rs.getInt("S4")); humanResourceContent.setS5(rs.getInt("S5")); humanResourceContent.setS6(rs.getInt("S6")); humanResourceContent.setS7(rs.getInt("S7")); humanResourceContent.setS8(rs.getInt("S8")); humanResourceContent.setS9(rs.getInt("S9")); humanResourceContent.setS10(rs.getInt("S10")); humanResourceContent.setS11(rs.getInt("S11")); humanResourceContent.setS12(rs.getInt("S12")); humanResourceContent.setO0(rs.getInt("O0")); humanResourceContent.setO1(rs.getInt("O1")); humanResourceContent.setO2(rs.getInt("O2")); humanResourceContent.setO3(rs.getInt("O3")); humanResourceContent.setO4(rs.getInt("O4")); humanResourceContent.setO5(rs.getInt("O5")); humanResourceContent.setO6(rs.getInt("O6")); humanResourceContent.setO7(rs.getInt("O7")); humanResourceContent.setO8(rs.getInt("O8")); humanResourceContent.setO9(rs.getInt("O9")); humanResourceContent.setO10(rs.getInt("O10")); humanResourceContent.setO11(rs.getInt("O11")); humanResourceContent.setO12(rs.getInt("O12")); humanResourceContent.setTotal0(rs.getInt("total0")); humanResourceContent.setTotal1(rs.getInt("total1")); humanResourceContent.setTotal2(rs.getInt("total2")); humanResourceContent.setTotal3(rs.getInt("total3")); humanResourceContent.setTotal4(rs.getInt("total4")); humanResourceContent.setTotal5(rs.getInt("total5")); humanResourceContent.setTotal6(rs.getInt("total6")); humanResourceContent.setTotal7(rs.getInt("total7")); humanResourceContent.setTotal8(rs.getInt("total8")); humanResourceContent.setTotal9(rs.getInt("total9")); humanResourceContent.setTotal10(rs.getInt("total10")); humanResourceContent.setTotal11(rs.getInt("total11")); humanResourceContent.setTotal12(rs.getInt("total12")); } smt.executeQuery(); rs.close(); smt.close(); } catch (SQLException e) { throw new RuntimeException(e); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) {} } } return humanResourceContent; }
{ "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 boolean checkHumanResourceContentByMember(Member member) { Sl = "SELECT * FROM human_resource_content WHERE memberAccount=?"; try { conn = dataSource.getConnection(); smt = conn.prepareStatement(Sl); smt.setString(1, member.getAccount()); rs = smt.executeQuery(); if(rs.next()){ smt.setString(1, member.getAccount()); return true; } smt.executeQuery(); rs.close(); smt.close(); } catch (SQLException e) { throw new RuntimeException(e); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) {} } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void 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 void updateHumanResourceContentByMember( HumanResourceContent humanResourceContent) { String Sl = "UPDATE human_resource_content SET memberAccount=?, M0=?, M1=?, M2=?, M3=?, M4=?, " + "M5=?, M6=?, M7=?, M8=?, M9=?, M10=?, M11=?, M12=?, R0=?, R1=?, R2=?, R3=?, R4=?, " + "R5=?, R6=?, R7=?, R8=?, R9=?, R10=?, R11=?, R12=?, S0=?, S1=?, S2=?, S3=?, S4=?, " + "S5=?, S6=?, S7=?, S8=?, S9=?, S10=?, S11=?, S12=?, O0=?, O1=?, O2=?, O3=?, O4=?, " + "O5=?, O6=?, O7=?, O8=?, O9=?, O10=?, O11=?, O12=?, total0=?, total1=?, total2=?, total3=?, total4=?, " + "total5=?, total6=?, total7=?, total8=?, total9=?, total10=?, total11=?, total12=? " + "WHERE memberAccount = ?"; try { conn = dataSource.getConnection(); smt = conn.prepareStatement(Sl); smt.setString(1,humanResourceContent.getAccount()); smt.setInt(2,humanResourceContent.getM0()); smt.setInt(3, humanResourceContent.getM1()); smt.setInt(4, humanResourceContent.getM2()); smt.setInt(5, humanResourceContent.getM3()); smt.setInt(6, humanResourceContent.getM4()); smt.setInt(7, humanResourceContent.getM5()); smt.setInt(8, humanResourceContent.getM6()); smt.setInt(9, humanResourceContent.getM7()); smt.setInt(10, humanResourceContent.getM8()); smt.setInt(11, humanResourceContent.getM9()); smt.setInt(12, humanResourceContent.getM10()); smt.setInt(13, humanResourceContent.getM11()); smt.setInt(14, humanResourceContent.getM12()); smt.setInt(15, humanResourceContent.getR0()); smt.setInt(16, humanResourceContent.getR1()); smt.setInt(17, humanResourceContent.getR2()); smt.setInt(18, humanResourceContent.getR3()); smt.setInt(19, humanResourceContent.getR4()); smt.setInt(20, humanResourceContent.getR5()); smt.setInt(21, humanResourceContent.getR6()); smt.setInt(22, humanResourceContent.getR7()); smt.setInt(23, humanResourceContent.getR8()); smt.setInt(24, humanResourceContent.getR9()); smt.setInt(25, humanResourceContent.getR10()); smt.setInt(26, humanResourceContent.getR11()); smt.setInt(27, humanResourceContent.getR12()); smt.setInt(28, humanResourceContent.getS0()); smt.setInt(29, humanResourceContent.getS1()); smt.setInt(30, humanResourceContent.getS2()); smt.setInt(31, humanResourceContent.getS3()); smt.setInt(32, humanResourceContent.getS4()); smt.setInt(33, humanResourceContent.getS5()); smt.setInt(34, humanResourceContent.getS6()); smt.setInt(35, humanResourceContent.getS7()); smt.setInt(36, humanResourceContent.getS8()); smt.setInt(37, humanResourceContent.getS9()); smt.setInt(38, humanResourceContent.getS10()); smt.setInt(39, humanResourceContent.getS11()); smt.setInt(40, humanResourceContent.getS12()); smt.setInt(41, humanResourceContent.getO0()); smt.setInt(42, humanResourceContent.getO1()); smt.setInt(43, humanResourceContent.getO2()); smt.setInt(44, humanResourceContent.getO3()); smt.setInt(45, humanResourceContent.getO4()); smt.setInt(46, humanResourceContent.getO5()); smt.setInt(47, humanResourceContent.getO6()); smt.setInt(48, humanResourceContent.getO7()); smt.setInt(49, humanResourceContent.getO8()); smt.setInt(50, humanResourceContent.getO9()); smt.setInt(51, humanResourceContent.getO10()); smt.setInt(52, humanResourceContent.getO11()); smt.setInt(53, humanResourceContent.getO12()); smt.setInt(54, humanResourceContent.getTotal0()); smt.setInt(55, humanResourceContent.getTotal1()); smt.setInt(56, humanResourceContent.getTotal2()); smt.setInt(57, humanResourceContent.getTotal3()); smt.setInt(58, humanResourceContent.getTotal4()); smt.setInt(59, humanResourceContent.getTotal5()); smt.setInt(60, humanResourceContent.getTotal6()); smt.setInt(61, humanResourceContent.getTotal7()); smt.setInt(62, humanResourceContent.getTotal8()); smt.setInt(63, humanResourceContent.getTotal9()); smt.setInt(64, humanResourceContent.getTotal10()); smt.setInt(65, humanResourceContent.getTotal11()); smt.setInt(66, humanResourceContent.getTotal12()); smt.setString(67,humanResourceContent.getAccount()); smt.executeUpdate(); smt.close(); } catch (SQLException e) { throw new RuntimeException(e); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) {} } } }
{ "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 double getVentureChecklistPercent(Member member1) { double mapSubclassCount; double mySubclassCount; double percentCount; Sl1 = "SELECT COUNT(*) AS count FROM map_subclass WHERE mapClassID=?"; try { conn = dataSource.getConnection(); smt = conn.prepareStatement(Sl1); smt.setString(1, member1.getSetPercent()); System.out.println("getSetPercent()="+member1.getSetPercent()); rs1 = smt.executeQuery(); if(rs1.next()){ mapSubclassCount=rs1.getInt("count"); System.out.println("mapSubclassCount="+mapSubclassCount); Sl2 = "SELECT COUNT(*) AS count FROM venture_checklist WHERE mapClassID=? AND memberAccount =? "; smt = conn.prepareStatement(Sl2); smt.setString(1, member1.getSetPercent()); smt.setString(2, member1.getAccount()); rs2 = smt.executeQuery(); if(rs2.next()){ mySubclassCount=rs2.getInt("count"); //System.out.println("mySubclassCount="+mySubclassCount); percentCount = mySubclassCount/mapSubclassCount; //System.out.println("percentCount="+(mySubclassCount/mapSubclassCount)); return percentCount; } } smt.executeQuery(); rs1.close(); rs2.close(); smt.close(); } catch (SQLException e) { throw new RuntimeException(e); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) {} } } 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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
public boolean checkVentureCheckListByMemberSubID(String account, int id) { Sl = "SELECT * FROM venture_checklist WHERE memberAccount=? AND mapSubClassID=?"; try { conn = dataSource.getConnection(); smt = conn.prepareStatement(Sl); smt.setString(1, account); smt.setInt(2, id); rs = smt.executeQuery(); if(rs.next()){ return true; } smt.executeQuery(); rs.close(); smt.close(); } catch (SQLException e) { throw new RuntimeException(e); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) {} } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void 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
convenience overload for the most common UTF8 misinterpretation
public static boolean isUTF8MisInterpreted( String input ) { return isUTF8MisInterpreted( input, "Windows-1252" ) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testInvalidTextValueWithBrokenUTF8() throws Exception\n {\n final byte[] input = readResource(\"/data/clusterfuzz-cbor-35979.cbor\");\n try (JsonParser p = MAPPER.createParser(input)) {\n assertToken(JsonToken.VALUE_STRING, p.nextToken());\n p.getText();\n fail(\"Should not pass\");\n } catch (StreamReadException e) {\n verifyException(e, \"Truncated UTF-8 character in Short Unicode Name (36 bytes)\");\n }\n\n }", "@Override\n public boolean isUnicode()\n {\n return true;\n }", "@Test\n\tpublic void test_ReadUtf8String_bad_data() throws IOException {\n\t\tBinaryReader br = br(true, -22, -87, 'A', 0);\n\t\tassertEquals(\"\\ufffdA\" /* unicode replacement char, 'A'*/, br.readUtf8String(0));\n\t}", "private static String guessAppropriateEncoding(CharSequence contents) {\n\t\tfor (int i = 0; i < contents.length(); i++) {\n\t\t\tif (contents.charAt(i) > 0xFF) {\n\t\t\t\treturn \"UTF-8\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private static String guessAppropriateEncoding(CharSequence contents) {\n\t\tfor (int i = 0; i < contents.length(); i++) {\n\t\t\tif (contents.charAt(i) > 0xFF) {\n\t\t\t\treturn \"UTF-8\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public interface ExtraEncoding {\n \n /**\n * Converts an Unicode string to a byte array according to some encoding.\n * @param text the Unicode string\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */ \n public byte[] charToByte(String text, String encoding);\n \n /**\n * Converts an Unicode char to a byte array according to some encoding.\n * @param char1 the Unicode char\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */ \n public byte[] charToByte(char char1, String encoding);\n \n /**\n * Converts a byte array to an Unicode string according to some encoding.\n * @param b the input byte array\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */\n public String byteToChar(byte b[], String encoding); \n}", "@Override\n public void setCharacterEncoding(String arg0) {\n\n }", "@Override // com.google.protobuf.Utf8.Processor\n public int encodeUtf8(CharSequence in, byte[] out, int offset, int length) {\n char c;\n int utf16Length = in.length();\n int i = 0;\n int limit = offset + length;\n while (i < utf16Length && i + offset < limit && (c = in.charAt(i)) < 128) {\n out[offset + i] = (byte) c;\n i++;\n }\n if (i == utf16Length) {\n return offset + utf16Length;\n }\n int j = offset + i;\n while (i < utf16Length) {\n char c2 = in.charAt(i);\n if (c2 < 128 && j < limit) {\n out[j] = (byte) c2;\n j++;\n } else if (c2 < 2048 && j <= limit - 2) {\n int j2 = j + 1;\n out[j] = (byte) ((c2 >>> 6) | 960);\n j = j2 + 1;\n out[j2] = (byte) ((c2 & '?') | 128);\n } else if ((c2 < 55296 || 57343 < c2) && j <= limit - 3) {\n int j3 = j + 1;\n out[j] = (byte) ((c2 >>> '\\f') | 480);\n int j4 = j3 + 1;\n out[j3] = (byte) (((c2 >>> 6) & 63) | 128);\n out[j4] = (byte) ((c2 & '?') | 128);\n j = j4 + 1;\n } else if (j <= limit - 4) {\n if (i + 1 != in.length()) {\n i++;\n char low = in.charAt(i);\n if (Character.isSurrogatePair(c2, low)) {\n int codePoint = Character.toCodePoint(c2, low);\n int j5 = j + 1;\n out[j] = (byte) ((codePoint >>> 18) | PageId.FINGERPRINT_ENROLLING_VALUE);\n int j6 = j5 + 1;\n out[j5] = (byte) (((codePoint >>> 12) & 63) | 128);\n int j7 = j6 + 1;\n out[j6] = (byte) (((codePoint >>> 6) & 63) | 128);\n j = j7 + 1;\n out[j7] = (byte) ((codePoint & 63) | 128);\n }\n }\n throw new UnpairedSurrogateException(i - 1, utf16Length);\n } else if (55296 > c2 || c2 > 57343 || (i + 1 != in.length() && Character.isSurrogatePair(c2, in.charAt(i + 1)))) {\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + c2 + \" at index \" + j);\n } else {\n throw new UnpairedSurrogateException(i, utf16Length);\n }\n i++;\n }\n return j;\n }", "@Override\n public String getCharacterEncoding() {\n return null;\n }", "@Test\n\tpublic void test_ReadUtf8String() throws IOException {\n\t\tBinaryReader br = br(true, -22, -87, -107, -61, -65, 0);\n\t\tassertEquals(\"\\uaa55\\u00ff\", br.readUtf8String(0));\n\t}", "protected String getUTF8Str(String str) throws UnsupportedEncodingException {\n return new String(str.getBytes(\"iso-8859-1\"), \"utf-8\");\r\n }", "public EncodeAndDecodeStrings() {}", "public boolean hasUnicodeRepresentation();", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "public abstract int partialIsValidUtf8(int i, byte[] bArr, int i2, int i3);", "public static String isoToUTF8(String value) throws Exception{\n \treturn value;\n\t}", "@Test\n public void matchUTF8Postfix() throws Exception {\n tags.put(TAGK, \"Здравей'_хора\");\n TagVFilter filter = new TagVWildcardFilter(TAGK, \n \"*хора\");\n assertTrue(filter.match(tags).join());\n }", "public static String guessAppropriateEncoding(CharSequence contents) {\n for (int i = 0; i < contents.length(); i++) {\n if (contents.charAt(i) > 0xFF) {\n return \"UTF-8\";\n }\n }\n return null;\n }", "public abstract int partialIsValidUtf8Direct(int i, ByteBuffer byteBuffer, int i2, int i3);", "public String readUTF() throws IOException;", "public abstract void encodeUtf8Direct(CharSequence charSequence, ByteBuffer byteBuffer);", "@Test\n\tpublic void test_ReadNextUtf8String() throws IOException {\n\t\tBinaryReader br = br(true, -22, -87, -107, -61, -65, 0, -22, -87, -107, 0);\n\t\tassertEquals(\"\\uaa55\\u00ff\", br.readNextUtf8String());\n\t\tassertEquals(\"\\uaa55\", br.readNextUtf8String());\n\t}", "public final void encodeUtf8Default(CharSequence in, ByteBuffer out) {\n int inLength = in.length();\n int outIx = out.position();\n int inIx = 0;\n while (inIx < inLength) {\n try {\n char c = in.charAt(inIx);\n if (c >= 128) {\n break;\n }\n out.put(outIx + inIx, (byte) c);\n inIx++;\n } catch (IndexOutOfBoundsException e) {\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + in.charAt(inIx) + \" at index \" + (out.position() + Math.max(inIx, (outIx - out.position()) + 1)));\n }\n }\n if (inIx == inLength) {\n out.position(outIx + inIx);\n return;\n }\n int outIx2 = outIx + inIx;\n while (inIx < inLength) {\n char c2 = in.charAt(inIx);\n if (c2 < 128) {\n out.put(outIx2, (byte) c2);\n } else if (c2 < 2048) {\n int outIx3 = outIx2 + 1;\n try {\n out.put(outIx2, (byte) ((c2 >>> 6) | AtomsProto.Atom.MEDIAMETRICS_AUDIORECORD_REPORTED_FIELD_NUMBER));\n out.put(outIx3, (byte) ((c2 & '?') | 128));\n outIx2 = outIx3;\n } catch (IndexOutOfBoundsException e2) {\n outIx = outIx3;\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + in.charAt(inIx) + \" at index \" + (out.position() + Math.max(inIx, (outIx - out.position()) + 1)));\n }\n } else if (c2 < 55296 || 57343 < c2) {\n int outIx4 = outIx2 + 1;\n out.put(outIx2, (byte) ((c2 >>> '\\f') | AtomsProto.Atom.BACK_GESTURE_REPORTED_REPORTED_FIELD_NUMBER));\n outIx2 = outIx4 + 1;\n out.put(outIx4, (byte) (((c2 >>> 6) & 63) | 128));\n out.put(outIx2, (byte) ((c2 & '?') | 128));\n } else {\n if (inIx + 1 != inLength) {\n inIx++;\n char low = in.charAt(inIx);\n if (Character.isSurrogatePair(c2, low)) {\n int codePoint = Character.toCodePoint(c2, low);\n int outIx5 = outIx2 + 1;\n try {\n out.put(outIx2, (byte) ((codePoint >>> 18) | PageId.FINGERPRINT_ENROLLING_VALUE));\n int outIx6 = outIx5 + 1;\n out.put(outIx5, (byte) (((codePoint >>> 12) & 63) | 128));\n int outIx7 = outIx6 + 1;\n out.put(outIx6, (byte) (((codePoint >>> 6) & 63) | 128));\n out.put(outIx7, (byte) ((codePoint & 63) | 128));\n outIx2 = outIx7;\n } catch (IndexOutOfBoundsException e3) {\n outIx = outIx5;\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + in.charAt(inIx) + \" at index \" + (out.position() + Math.max(inIx, (outIx - out.position()) + 1)));\n }\n }\n }\n throw new UnpairedSurrogateException(inIx, inLength);\n }\n inIx++;\n outIx2++;\n }\n out.position(outIx2);\n }", "@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for decoding\\t and...\\n\";\n\n assertEquals(\"encode/decode\", test,\n Encodings.decodeEscapes(Encodings.encodeEscapes(test)));\n assertEquals(\"encode/decode\", \"\",\n Encodings.decodeEscapes(Encodings.encodeEscapes(null)));\n }", "public static String convertFromUTF8(String s) {\n String out = null;\n try {\n out = new String(s.getBytes(\"ISO-8859-1\"), \"UTF-8\");\n } catch (Exception e) {\n\n return null;\n }\n return out;\n }", "private static void appendMultibyte(Reader r, StringBuilder s) throws IOException {\n int b = decodeHex(r.read()) << 4 | decodeHex(r.read());\n int u, n;\n if (b < 0x80) { u = b; n = 1; }\n else if (b < 0xe0) { u = b & 0x1f; n = 2; }\n else if (b < 0xf0) { u = b & 0x0f; n = 3; }\n else if (b < 0xf8) { u = b & 0x07; n = 4; }\n else throw new HttpStatusException(STATUS_BAD_REQUEST, \"Invalid UTF-8 octet in %HH code\");\n for (int i = 1; i < n; ++i) {\n if (r.read() != '%') throw new HttpStatusException(STATUS_BAD_REQUEST, \"Invalid UTF-8 sequence in %HH codes\");\n b = decodeHex(r.read()) << 4 | decodeHex(r.read());\n if ((b & 0xc0) != 0x80) throw new HttpStatusException(STATUS_BAD_REQUEST, \"Invalid UTF-8 octet in %HH code\");\n u = u << 6 | b &0x3f;\n }\n if (u < 0x10000) s.append((char) u);\n else {\n s.append((char) (0xd800 + (u >>> 10)));\n s.append((char) (0xdc00 + (u & 0x3ff)));\n }\n }", "@Test\r\n public void testInvalidEncodings() {\r\n assertThatInputIsInvalid(\"NIX\");\r\n assertThatInputIsInvalid(\"UTF-9\");\r\n assertThatInputIsInvalid(\"ISO-8859-42\");\r\n }", "@Test\n void test7BitEncoding() throws Exception {\n ascii_cp1251_lcid1049.guess7BitEncoding();\n ascii_cp1251_lcid1049.setReturnNullOnMissingChunk(true);\n ascii_utf_8_cp1252_lcid1031.guess7BitEncoding();\n ascii_utf_8_cp1252_lcid1031.setReturnNullOnMissingChunk(true);\n ascii_utf_8_cp1252_lcid1031_html.guess7BitEncoding();\n ascii_utf_8_cp1252_lcid1031_html.setReturnNullOnMissingChunk(true);\n htmlbodybinary_cp1251.guess7BitEncoding();\n htmlbodybinary_cp1251.setReturnNullOnMissingChunk(true);\n htmlbodybinary_utf_8.guess7BitEncoding();\n htmlbodybinary_utf_8.setReturnNullOnMissingChunk(true);\n\n assertEquals(\"Subject автоматически Subject\", ascii_cp1251_lcid1049.getSubject());\n assertEquals(\"Body автоматически Body\", ascii_cp1251_lcid1049.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"windows-1251\\\\\\\"><body>HTML автоматически</body></html>\", ascii_cp1251_lcid1049.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", ascii_utf_8_cp1252_lcid1031.getSubject());\n assertEquals(\"Body öäü Body\", ascii_utf_8_cp1252_lcid1031.getTextBody());\n assertNull(ascii_utf_8_cp1252_lcid1031.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", ascii_utf_8_cp1252_lcid1031_html.getSubject());\n assertEquals(\"Body öäü Body\", ascii_utf_8_cp1252_lcid1031_html.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"utf-8\\\\\\\"><body>HTML öäü</body></html>\", ascii_utf_8_cp1252_lcid1031_html.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", htmlbodybinary_cp1251.getSubject());\n assertNull(htmlbodybinary_cp1251.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"utf-8\\\\\\\"><body>HTML автоматически</body></html>\", htmlbodybinary_cp1251.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", htmlbodybinary_utf_8.getSubject());\n assertNull(htmlbodybinary_utf_8.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"utf-8\\\\\\\"><body>HTML öäü</body></html>\", htmlbodybinary_utf_8.getHtmlBody());\n }", "@Test\n public void testunicode32() {\n assertEquals(\"\\uD834\\uDD1E\", JsonReader.read(\"\\\"\\\\uD834\\\\uDD1E\\\"\"));\n }", "@Override // com.google.protobuf.Utf8.Processor\n public void encodeUtf8Direct(CharSequence in, ByteBuffer out) {\n encodeUtf8Default(in, out);\n }", "static zzco m26833e() {\n return new zzco(\"Protocol message had invalid UTF-8.\");\n }", "public abstract int encodeUtf8(CharSequence charSequence, byte[] bArr, int i, int i2);", "@Override // com.google.protobuf.Utf8.Processor\n public void encodeUtf8Direct(CharSequence in, ByteBuffer out) {\n char c;\n long j;\n long outIx;\n long outLimit;\n long outIx2;\n char c2;\n long address = addressOffset(out);\n long outIx3 = ((long) out.position()) + address;\n long outLimit2 = ((long) out.limit()) + address;\n int inLimit = in.length();\n if (((long) inLimit) <= outLimit2 - outIx3) {\n int inIx = 0;\n while (true) {\n c = 128;\n j = 1;\n if (inIx < inLimit) {\n char c3 = in.charAt(inIx);\n if (c3 >= 128) {\n break;\n }\n UNSAFE.putByte(outIx3, (byte) c3);\n inIx++;\n outIx3 = 1 + outIx3;\n } else {\n break;\n }\n }\n if (inIx == inLimit) {\n out.position((int) (outIx3 - address));\n return;\n }\n while (inIx < inLimit) {\n char c4 = in.charAt(inIx);\n if (c4 < c && outIx3 < outLimit2) {\n UNSAFE.putByte(outIx3, (byte) c4);\n outLimit = outLimit2;\n outIx3 += j;\n c2 = 128;\n outIx = 1;\n outIx2 = address;\n } else if (c4 >= 2048 || outIx3 > outLimit2 - 2) {\n outIx2 = address;\n if ((c4 < 55296 || 57343 < c4) && outIx3 <= outLimit2 - 3) {\n long outIx4 = outIx3 + 1;\n UNSAFE.putByte(outIx3, (byte) ((c4 >>> '\\f') | 480));\n long outIx5 = outIx4 + 1;\n UNSAFE.putByte(outIx4, (byte) (((c4 >>> 6) & 63) | 128));\n UNSAFE.putByte(outIx5, (byte) ((c4 & '?') | 128));\n outLimit = outLimit2;\n outIx3 = outIx5 + 1;\n c2 = 128;\n outIx = 1;\n } else if (outIx3 <= outLimit2 - 4) {\n if (inIx + 1 != inLimit) {\n inIx++;\n char low = in.charAt(inIx);\n if (Character.isSurrogatePair(c4, low)) {\n int codePoint = Character.toCodePoint(c4, low);\n outLimit = outLimit2;\n long outIx6 = outIx3 + 1;\n UNSAFE.putByte(outIx3, (byte) ((codePoint >>> 18) | PageId.FINGERPRINT_ENROLLING_VALUE));\n long outIx7 = outIx6 + 1;\n UNSAFE.putByte(outIx6, (byte) (((codePoint >>> 12) & 63) | 128));\n long outIx8 = outIx7 + 1;\n c2 = 128;\n UNSAFE.putByte(outIx7, (byte) (((codePoint >>> 6) & 63) | 128));\n outIx = 1;\n outIx3 = outIx8 + 1;\n UNSAFE.putByte(outIx8, (byte) ((codePoint & 63) | 128));\n }\n }\n throw new UnpairedSurrogateException(inIx - 1, inLimit);\n } else if (55296 > c4 || c4 > 57343 || (inIx + 1 != inLimit && Character.isSurrogatePair(c4, in.charAt(inIx + 1)))) {\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + c4 + \" at index \" + outIx3);\n } else {\n throw new UnpairedSurrogateException(inIx, inLimit);\n }\n } else {\n outIx2 = address;\n long outIx9 = outIx3 + 1;\n UNSAFE.putByte(outIx3, (byte) ((c4 >>> 6) | 960));\n outIx3 = outIx9 + 1;\n UNSAFE.putByte(outIx9, (byte) ((c4 & '?') | 128));\n outLimit = outLimit2;\n c2 = 128;\n outIx = 1;\n }\n inIx++;\n c = c2;\n address = outIx2;\n outLimit2 = outLimit;\n j = outIx;\n }\n out.position((int) (outIx3 - address));\n return;\n }\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + in.charAt(inLimit - 1) + \" at index \" + out.limit());\n }", "public void convertToUTF8() {\n FileInputStream istream = null;\n Writer out = null;\n try {\n istream = new FileInputStream(path);\n BufferedInputStream in = new BufferedInputStream(istream);\n CharsetDecoder charsetDecoder = Charset.forName(\"UTF-8\").newDecoder();\n charsetDecoder.onMalformedInput(CodingErrorAction.REPLACE);\n charsetDecoder.onUnmappableCharacter(CodingErrorAction.REPLACE);\n Reader inputReader = new InputStreamReader(in, charsetDecoder);\n StringWriter writer = new StringWriter();\n IOUtils.copy(inputReader, writer);\n String theString = writer.toString();\n FileUtils.deleteQuietly(new File(path));\n out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"UTF-8\"));\n out.write(theString);\n out.close();\n// System.out.println(\"\");\n } catch (FileNotFoundException ex) {\n logger.error(\"Error converting the file to utf8\", ex);\n } catch (IOException ex) {\n logger.error(\"Error converting the file to utf8\", ex);\n } finally {\n try {\n if (out != null) {\n out.close();\n }\n if (istream != null) {\n istream.close();\n }\n } catch (IOException ex) {\n logger.error(\"Error converting the file to utf8\", ex);\n }\n }\n\n }", "protected ISO8859_1()\r\n {\r\n }", "@Override\n\tpublic String getCharacterEncoding() {\n\t\treturn null;\n\t}", "private String UTF8Encode(String s) {\n\n\n s = s.replace(\"\\r\\n\", \"\\n\");\n int[] utftext = new int[s.length() * 3];\n int utftextlen = 0;\n for (int n = 0; n < s.length(); n++) {\n int c = s.charAt(n);\n if (c < 128) {\n utftext[utftextlen++] = c;\n Log.e(\"utf\", n + \" try:\" + c);\n } else if ((c > 127) && (c < 2048)) {\n utftext[utftextlen++] = (c >> 6) | 192;\n utftext[utftextlen++] = (c & 63) | 128;\n Log.e(\"utf\", n + \" try:\" + ((c >> 6) | 192));\n Log.e(\"utf\", n + \" try:\" + ((c & 63) | 128));\n } else {\n utftext[utftextlen++] = (c >> 12) | 224;\n utftext[utftextlen++] = ((c >> 6) & 63) | 128;\n utftext[utftextlen++] = (c & 63) | 128;\n Log.e(\"utf\", n + \" try:\" + ((c >> 12) | 224));\n Log.e(\"utf\", n + \" try:\" + (((c >> 6) & 63) | 128));\n Log.e(\"utf\", n + \" try:\" + ((c & 63) | 128));\n }\n\n }\n int i = 0;\n char chr1, chr2, chr3;\n int enc1, enc2, enc3, enc4;\n StringBuilder string = new StringBuilder();\n while (i < utftextlen) {\n chr1 = (char) utftext[i++];\n chr2 = (char) utftext[i++];\n chr3 = (char) utftext[i++];\n enc1 = chr1 >> 2;\n enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n enc4 = chr3 & 63;\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n string.append(_keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4));\n }\n string.append(\"\");\n return string.toString();\n }", "@Test\n\tpublic void testUTF8() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF8_FILE), \"UTF-8\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "public void testIsFirstUtf8Byte() {\n checkIsFirstUtf8Byte(\"0\"); // First 2 bits: 00\n checkIsFirstUtf8Byte(\"A\"); // First 2 bits: 01\n \n checkIsFirstUtf8Byte(\"\\u00A2\"); // 2 bytes in UTF-8.\n checkIsFirstUtf8Byte(\"\\u20AC\"); // 3 bytes in UTF-8.\n checkIsFirstUtf8Byte(\"\\uD852\\uDF62\"); // 4 bytes in UTF-8. (surrogate pair)\n }", "public CodePointIterator asUtf8String() {\n if (! hasNext()) {\n return CodePointIterator.EMPTY;\n }\n return new Utf8DecodingIterator(this);\n }", "@Test\n\tpublic void testSpecialChars() {\n\t\tString ff = XStreamUtils.serialiseToXml(\"Form feed: \\f\");\n\t\tSystem.out.println(ff);\n\t\tObject s = XStreamUtils.serialiseFromXml(\"<S>&#xc;</S>\");\n\t\tSystem.out.println(ff);\n\t}", "@Override\n\t\tpublic String getCharacterEncoding() {\n\t\t\treturn null;\n\t\t}", "@Test\n public void testEncodingNegative()\n {\n byte[] orginalBytes = sensitiveString.getBytes();\n byte[] encoded = StateUtils.encode(orginalBytes);\n encoded[1] = (byte) 9;\n try\n {\n byte[] decoded = StateUtils.decode(encoded);\n Assertions.assertFalse(Arrays.equals(decoded, orginalBytes));\n }\n catch (Exception e)\n {\n // do nothing\n }\n }", "String decodeString();", "@Test\r\n public void testValidEncodings() {\r\n assertThatInputIsValid(\"\");\r\n assertThatInputIsValid(\"UTF8\");\r\n assertThatInputIsValid(\"UTF-8\");\r\n assertThatInputIsValid(\"CP1252\");\r\n assertThatInputIsValid(\"ISO-8859-1\");\r\n assertThatInputIsValid(\"ISO-8859-5\");\r\n assertThatInputIsValid(\"ISO-8859-9\");\r\n }", "UnescapeTransliterator(String ID, char[] spec)\n/* */ {\n/* 131 */ super(ID, null);\n/* 132 */ this.spec = spec;\n/* */ }", "public interface UnicodeConstants {\n\n /** Refers to unnormalized Unicode: */\n static final byte NORM_UNNORMALIZED = 0;\n /** Refers to Normalization Form C: */\n static final byte NORM_NFC = 1;\n /** Refers to Normalization Form KC: */\n static final byte NORM_NFKC = 2;\n /** Refers to Normalization Form D: */\n static final byte NORM_NFD = 3;\n /** Refers to Normalization Form KD: */\n static final byte NORM_NFKD = 4;\n /** Refers to Normalization Form THDL, which is NFD except for\n <code>U+0F77</code> and <code>U+0F79</code>, which are\n normalized according to NFKD. This is the One True\n Normalization Form, as it leaves no precomposed codepoints and\n does not normalize <code>U+0F0C</code>. */\n static final byte NORM_NFTHDL = 5;\n\n\n /** for those times when you need a char to represent a\n non-existent codepoint */\n static final char EW_ABSENT = '\\u0000';\n\n\n //\n // the thirty consonants, in alphabetical order:\n //\n\n /** first letter of the alphabet: */\n static final char EWC_ka = '\\u0F40';\n\n static final char EWC_kha = '\\u0F41';\n static final char EWC_ga = '\\u0F42';\n static final char EWC_nga = '\\u0F44';\n static final char EWC_ca = '\\u0F45';\n static final char EWC_cha = '\\u0F46';\n static final char EWC_ja = '\\u0F47';\n static final char EWC_nya = '\\u0F49';\n static final char EWC_ta = '\\u0F4F';\n static final char EWC_tha = '\\u0F50';\n static final char EWC_da = '\\u0F51';\n static final char EWC_na = '\\u0F53';\n static final char EWC_pa = '\\u0F54';\n static final char EWC_pha = '\\u0F55';\n static final char EWC_ba = '\\u0F56';\n static final char EWC_ma = '\\u0F58';\n static final char EWC_tsa = '\\u0F59';\n static final char EWC_tsha = '\\u0F5A';\n static final char EWC_dza = '\\u0F5B';\n static final char EWC_wa = '\\u0F5D';\n static final char EWC_zha = '\\u0F5E';\n static final char EWC_za = '\\u0F5F';\n /** Note the irregular name. The Extended Wylie representation is\n <code>'a</code>. */\n static final char EWC_achung = '\\u0F60';\n static final char EWC_ya = '\\u0F61';\n static final char EWC_ra = '\\u0F62';\n static final char EWC_la = '\\u0F63';\n static final char EWC_sha = '\\u0F64';\n static final char EWC_sa = '\\u0F66';\n static final char EWC_ha = '\\u0F67';\n /** achen, the 30th consonant (and, some say, the fifth vowel) DLC NOW FIXME: rename to EWC_achen */\n static final char EWC_a = '\\u0F68';\n\n\n /** In the word for father, \"pA lags\", there is an a-chung (i.e.,\n <code>\\u0F71</code>). This is the constant for that little\n guy. */\n static final char EW_achung_vowel = '\\u0F71';\n\n\n /* Four of the five vowels, some say, or, others say, \"the four\n vowels\": */\n /** \"gi gu\", the 'i' sound in the English word keep: */\n static final char EWV_i = '\\u0F72';\n /** \"zhabs kyu\", the 'u' sound in the English word tune: */\n static final char EWV_u = '\\u0F74';\n /** \"'greng bu\" (also known as \"'greng po\", and pronounced <i>dang-bo</i>), the 'a' sound in the English word gate: */\n static final char EWV_e = '\\u0F7A';\n /** \"na ro\", the 'o' sound in the English word bone: */\n static final char EWV_o = '\\u0F7C';\n\n\n /** subscribed form of EWC_wa, also known as wa-btags */\n static final char EWSUB_wa_zur = '\\u0FAD';\n /** subscribed form of EWC_ya */\n static final char EWSUB_ya_btags = '\\u0FB1';\n /** subscribed form of EWC_ra */\n static final char EWSUB_ra_btags = '\\u0FB2';\n /** subscribed form of EWC_la */\n static final char EWSUB_la_btags = '\\u0FB3';\n}", "private byte[] getUTF8Bytes(String input) {\n\t\treturn input.getBytes(StandardCharsets.UTF_8);\n\t}", "String readUTF(byte data[], int off, int len)\n {\n StringBuffer buf = new StringBuffer();\n for (int end = off + len; off < end;)\n {\n int ch = data[off++] & 0xFF;\n switch (ch >> 4)\n {\n case 0:\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n case 6:\n case 7:\n // 0xxxxxxx\n break;\n case 12:\n case 13:\n if (off >= len)\n {\n return null;\n }\n // 110x xxxx 10xx xxxx\n ch = ((ch & 0x1F) << 6) | (data[off++] & 0x3F);\n break;\n case 14:\n if (off + 2 >= len)\n {\n return null;\n }\n // 1110 xxxx 10xx xxxx 10xx xxxx\n ch = ((ch & 0x0f) << 12) | ((data[off++] & 0x3F) << 6) | (data[off++] & 0x3F);\n break;\n default:\n if (off + 1 >= len)\n {\n return null;\n }\n // 10xx xxxx, 1111 xxxx\n ch = ((ch & 0x3F) << 4) | (data[off++] & 0x0f);\n break;\n }\n buf.append((char) ch);\n }\n return buf.toString();\n }", "public static boolean isValidUtf8(byte[] bytes, int off, int len) {\n int end = off + len;\n checkPositionIndexes(off, end, bytes.length);\n // Look for the first non-ASCII character.\n for (int i = off; i < end; i++) {\n if (bytes[i] < 0) {\n return isValidUtf8NonAscii(bytes, i, end);\n }\n }\n return true;\n }", "public URLCodec() {\n/* 104 */ this(\"UTF-8\");\n/* */ }", "public static String GetUtfString(String strTran) throws UnsupportedEncodingException {\n\n if(strTran.equals(new String(strTran.getBytes(\"iso8859-1\"), \"iso8859-1\")))\n {\n strTran=new String(strTran.getBytes(\"iso8859-1\"),\"utf-8\");\n }\n return strTran;\n }", "@Override // com.google.protobuf.Utf8.Processor\n public int encodeUtf8(CharSequence in, byte[] out, int offset, int length) {\n char c;\n long j;\n long j2;\n long outLimit;\n String str;\n String str2;\n char c2;\n long outIx = (long) (ARRAY_BASE_OFFSET + offset);\n long outLimit2 = ((long) length) + outIx;\n int inLimit = in.length();\n String str3 = \" at index \";\n String str4 = \"Failed writing \";\n if (inLimit > length || out.length - length < offset) {\n throw new ArrayIndexOutOfBoundsException(str4 + in.charAt(inLimit - 1) + str3 + (offset + length));\n }\n int inIx = 0;\n while (true) {\n c = 128;\n j = 1;\n if (inIx < inLimit) {\n char c3 = in.charAt(inIx);\n if (c3 >= 128) {\n break;\n }\n UNSAFE.putByte(out, outIx, (byte) c3);\n inIx++;\n outIx = 1 + outIx;\n } else {\n break;\n }\n }\n if (inIx == inLimit) {\n return (int) (outIx - ((long) ARRAY_BASE_OFFSET));\n }\n while (inIx < inLimit) {\n char c4 = in.charAt(inIx);\n if (c4 < c && outIx < outLimit2) {\n UNSAFE.putByte(out, outIx, (byte) c4);\n str2 = str3;\n outIx += j;\n j2 = 1;\n outLimit = outLimit2;\n str = str4;\n c2 = 128;\n } else if (c4 >= 2048 || outIx > outLimit2 - 2) {\n if (c4 >= 55296 && 57343 >= c4) {\n str2 = str3;\n str = str4;\n } else if (outIx <= outLimit2 - 3) {\n str2 = str3;\n str = str4;\n long outIx2 = outIx + 1;\n UNSAFE.putByte(out, outIx, (byte) ((c4 >>> '\\f') | 480));\n long outIx3 = outIx2 + 1;\n UNSAFE.putByte(out, outIx2, (byte) (((c4 >>> 6) & 63) | 128));\n UNSAFE.putByte(out, outIx3, (byte) ((c4 & '?') | 128));\n outLimit = outLimit2;\n outIx = outIx3 + 1;\n c2 = 128;\n j2 = 1;\n } else {\n str2 = str3;\n str = str4;\n }\n if (outIx <= outLimit2 - 4) {\n if (inIx + 1 != inLimit) {\n inIx++;\n char low = in.charAt(inIx);\n if (Character.isSurrogatePair(c4, low)) {\n int codePoint = Character.toCodePoint(c4, low);\n outLimit = outLimit2;\n long outIx4 = outIx + 1;\n UNSAFE.putByte(out, outIx, (byte) ((codePoint >>> 18) | PageId.FINGERPRINT_ENROLLING_VALUE));\n long outIx5 = outIx4 + 1;\n UNSAFE.putByte(out, outIx4, (byte) (((codePoint >>> 12) & 63) | 128));\n long outIx6 = outIx5 + 1;\n c2 = 128;\n UNSAFE.putByte(out, outIx5, (byte) (((codePoint >>> 6) & 63) | 128));\n j2 = 1;\n UNSAFE.putByte(out, outIx6, (byte) ((codePoint & 63) | 128));\n outIx = outIx6 + 1;\n }\n }\n throw new UnpairedSurrogateException(inIx - 1, inLimit);\n } else if (55296 > c4 || c4 > 57343 || (inIx + 1 != inLimit && Character.isSurrogatePair(c4, in.charAt(inIx + 1)))) {\n throw new ArrayIndexOutOfBoundsException(str + c4 + str2 + outIx);\n } else {\n throw new UnpairedSurrogateException(inIx, inLimit);\n }\n } else {\n long outIx7 = outIx + 1;\n UNSAFE.putByte(out, outIx, (byte) ((c4 >>> 6) | 960));\n UNSAFE.putByte(out, outIx7, (byte) ((c4 & '?') | 128));\n str2 = str3;\n outIx = outIx7 + 1;\n j2 = 1;\n outLimit = outLimit2;\n str = str4;\n c2 = 128;\n }\n inIx++;\n c = c2;\n str3 = str2;\n str4 = str;\n outLimit2 = outLimit;\n j = j2;\n }\n return (int) (outIx - ((long) ARRAY_BASE_OFFSET));\n }", "@Test void testHexCharLiteralOutsideRangeFails() {\n final String sql = \"^_unicode'cg'^XCF\";\n final String expected = \"Unknown character set 'unicode'\";\n expr(sql).fails(expected);\n }", "String getEncoding();", "@Test\n\tpublic final void testRussianMacronOverI() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n\t\tassertSingleResult(\"2099904\", fldName, \"istorīi\");\n\t\tassertSingleResult(\"2099904\", fldName, \"istorii\");\n\t\t// i have no idea if these should work, or how it should look here\n//\t\tassertSingleDocWithValue(\"2099904\", fldName, \"istorī\");\n//\t\tassertSingleDocWithValue(\"2099904\", fldName, \"istori\");\n\t}", "public static String convertToUTF8(String s) {\n String out = null;\n try {\n out = new String(s.getBytes(\"UTF-8\"), \"ISO-8859-1\");\n } catch (java.io.UnsupportedEncodingException e) {\n return null;\n }\n return out;\n }", "public abstract String read_wstring();", "public String decode(String str, String charsetName) throws DecoderException, UnsupportedEncodingException {\n/* 276 */ if (str == null) {\n/* 277 */ return null;\n/* */ }\n/* 279 */ return new String(decode(StringUtils.getBytesUsAscii(str)), charsetName);\n/* */ }", "private void readEncoding(BufferedReader reader) throws IOException {\n String encoding = reader.readLine();\r\n if ( ! AbstractUtf8Message.UTF8_ENCODING_HEADER_STRING.equals(encoding)) {\r\n throw new IOException(\"Expected UTF-8 header when decoding UTF-8 message\");\r\n }\r\n }", "public static String toUnicodeLocaleType(String keyword, String value) {\n/* 1258 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private static String decode(String s) {\n\t\tint length = s.length();\n\t\tStringBuilder str = new StringBuilder(length);\n\t\tMatcher matcher = PATTERN.matcher(s);\n\t\tint offset = 0;\n\t\tbyte[] bb = null;\n\t\twhile (matcher.find(offset)) {\n\t\t\tint count = matcher.groupCount();\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tString match = matcher.group(0);\n\t\t\t\tint num = match.length() / 3;\n\t\t\t\tif (bb == null || bb.length < num) {\n\t\t\t\t\tbb = new byte[num];\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\t\tint head = j * 3 + 1;\n\t\t\t\t\tint tail = head + 2;\n\t\t\t\t\tbb[j] = (byte)Integer.parseInt(match.substring(head, tail), 16);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tString text = new String(bb, \"UTF-8\");\n\t\t\t\t\tstr.append(s.substring(offset, matcher.start()));\n\t\t\t\t\tstr.append(text);\n\t\t\t\t}\n\t\t\t\tcatch (UnsupportedEncodingException e) {\n\t\t\t\t\t// NOTE: This should *never* be thrown because all\n\t\t\t\t\t// JVMs are required to support UTF-8. I mean,\n\t\t\t\t\t// the strings in the .class file are all in\n\t\t\t\t\t// a modified UTF-8, for pete's sake! :)\n\t\t\t\t}\n\t\t\t}\n\t\t\toffset = matcher.end();\n\t\t}\n\t\tif (offset < length) {\n\t\t\tstr.append(s.substring(offset));\n\t\t}\n\t\treturn str.toString();\n\t}", "public abstract char read_wchar();", "protected byte[] stringToByte_8859_1(String str) throws SaslException {\n char[] buffer = str.toCharArray();\n try {\n if (useUTF8) {\n for (int i = 0; i < buffer.length; i++) {\n if (buffer[i] > 'ÿ') {\n return str.getBytes(\"UTF8\");\n }\n }\n }\n return str.getBytes(\"8859_1\");\n } catch (UnsupportedEncodingException e) {\n throw new SaslException(\"cannot encode string in UTF8 or 8859-1 (Latin-1)\", e);\n }\n }", "void writeUTF(String s) throws IOException;", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n StringReader stringReader0 = new StringReader(\"kE4X 9\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1), 66, 1279);\n char char0 = javaCharStream0.readChar();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals('k', char0);\n }", "void VNItoUnicode()\r\n\t{\r\n\t\tif (html) {\r\n\t\t\tHTMLtoANSI();\r\n\t\t\tprepareMetaTag();\r\n\r\n\t\t\t// Replace fonts\r\n\t\t\tstr = replaceString(str, \"VNI Times\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Times\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Couri\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Centur\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Brush\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Helve\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Helve\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Aptima\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Aptima\", SANS_SERIF);\r\n\t\t}\r\n\r\n\t\t// Part 1\r\n\t\tstr = str.replace('\\u00D1', '\\u0110'); // DD\r\n\t\tstr = str.replace('\\u00F1', '\\u0111'); // dd\r\n\t\tstr = str.replace('\\u00D3', '\\u0128'); // I~\r\n\t\tstr = str.replace('\\u00F3', '\\u0129'); // i~\r\n\t\tstr = str.replace('\\u00D2', '\\u1ECA'); // I.\r\n\t\tstr = str.replace('\\u00F2', '\\u1ECB'); // i.\r\n\t\tstr = str.replace('\\u00C6', '\\u1EC8'); // I?\r\n\t\tstr = str.replace('\\u00E6', '\\u1EC9'); // i?\r\n\t\tstr = str.replace('\\u00CE', '\\u1EF4'); // Y.\r\n\t\tstr = str.replace('\\u00EE', '\\u1EF5'); // y.\r\n\r\n\t\t// Part 2\r\n\t\t// Transform \"O\\u00C2\" -> \"\\u00C6\" to later transform back to \"\\u00D4\" in Part 3\r\n\t\tfinal String[] VNI_char = {\"O\\u00C2\", \"o\\u00E2\", \"y\\u00F5\", \"Y\\u00D5\",\r\n\t\t\t\t\"y\\u00FB\", \"Y\\u00DB\", \"y\\u00F8\", \"Y\\u00D8\", \"\\u00F6\\u00EF\",\r\n\t\t\t\t\"\\u00D6\\u00CF\", \"\\u00F6\\u00F5\", \"\\u00D6\\u00D5\", \"\\u00F6\\u00FB\",\r\n\t\t\t\t\"\\u00D6\\u00DB\", \"\\u00F6\\u00F8\", \"\\u00D6\\u00D8\", \"\\u00F6\\u00F9\",\r\n\t\t\t\t\"\\u00D6\\u00D9\", \"u\\u00FB\", \"U\\u00DB\", \"u\\u00EF\", \"U\\u00CF\",\r\n\t\t\t\t\"\\u00F4\\u00EF\", \"\\u00D4\\u00CF\", \"\\u00F4\\u00F5\", \"\\u00D4\\u00D5\",\r\n\t\t\t\t\"\\u00F4\\u00FB\", \"\\u00D4\\u00DB\", \"\\u00F4\\u00F8\", \"\\u00D4\\u00D8\",\r\n\t\t\t\t\"\\u00F4\\u00F9\", \"\\u00D4\\u00D9\", \"o\\u00E4\", \"O\\u00C4\",\r\n\t\t\t\t\"o\\u00E3\", \"O\\u00C3\", \"o\\u00E5\", \"O\\u00C5\", \"o\\u00E0\",\r\n\t\t\t\t\"O\\u00C0\", \"o\\u00E1\", \"O\\u00C1\", \"o\\u00FB\", \"O\\u00DB\",\r\n\t\t\t\t\"o\\u00EF\", \"O\\u00CF\", \"e\\u00E4\", \"E\\u00C4\", \"e\\u00E3\",\r\n\t\t\t\t\"E\\u00C3\", \"e\\u00E5\", \"E\\u00C5\", \"e\\u00E0\", \"E\\u00C0\",\r\n\t\t\t\t\"e\\u00E1\", \"E\\u00C1\", \"e\\u00F5\", \"E\\u00D5\", \"e\\u00FB\",\r\n\t\t\t\t\"E\\u00DB\", \"e\\u00EF\", \"E\\u00CF\", \"a\\u00EB\", \"A\\u00CB\",\r\n\t\t\t\t\"a\\u00FC\", \"A\\u00DC\", \"a\\u00FA\", \"A\\u00DA\", \"a\\u00E8\",\r\n\t\t\t\t\"A\\u00C8\", \"a\\u00E9\", \"A\\u00C9\", \"a\\u00E4\", \"A\\u00C4\",\r\n\t\t\t\t\"a\\u00E3\", \"A\\u00C3\", \"a\\u00E5\", \"A\\u00C5\", \"a\\u00E0\",\r\n\t\t\t\t\"A\\u00C0\", \"a\\u00E1\", \"A\\u00C1\", \"a\\u00FB\", \"A\\u00DB\",\r\n\t\t\t\t\"a\\u00EF\", \"A\\u00CF\", \"u\\u00F5\", \"U\\u00D5\", \"a\\u00EA\",\r\n\t\t\t\t\"A\\u00CA\", \"y\\u00F9\", \"u\\u00F9\", \"u\\u00F8\", \"o\\u00F5\",\r\n\t\t\t\t\"o\\u00F9\", \"o\\u00F8\", \"e\\u00E2\", \"e\\u00F9\", \"e\\u00F8\",\r\n\t\t\t\t\"a\\u00F5\", \"a\\u00E2\", \"a\\u00F9\", \"a\\u00F8\", \"Y\\u00D9\",\r\n\t\t\t\t\"U\\u00D9\", \"U\\u00D8\", \"O\\u00D5\", \"O\\u00D9\", \"O\\u00D8\",\r\n\t\t\t\t\"E\\u00C2\", \"E\\u00D9\", \"E\\u00D8\", \"A\\u00D5\", \"A\\u00C2\",\r\n\t\t\t\t\"A\\u00D9\", \"A\\u00D8\"};\r\n\t\tfinal String[] Unicode_char = {\"\\u00C6\", \"\\u00E6\", \"\\u1EF9\", \"\\u1EF8\",\r\n\t\t\t\t\"\\u1EF7\", \"\\u1EF6\", \"\\u1EF3\", \"\\u1EF2\", \"\\u1EF1\", \"\\u1EF0\",\r\n\t\t\t\t\"\\u1EEF\", \"\\u1EEE\", \"\\u1EED\", \"\\u1EEC\", \"\\u1EEB\", \"\\u1EEA\",\r\n\t\t\t\t\"\\u1EE9\", \"\\u1EE8\", \"\\u1EE7\", \"\\u1EE6\", \"\\u1EE5\", \"\\u1EE4\",\r\n\t\t\t\t\"\\u1EE3\", \"\\u1EE2\", \"\\u1EE1\", \"\\u1EE0\", \"\\u1EDF\", \"\\u1EDE\",\r\n\t\t\t\t\"\\u1EDD\", \"\\u1EDC\", \"\\u1EDB\", \"\\u1EDA\", \"\\u1ED9\", \"\\u1ED8\",\r\n\t\t\t\t\"\\u1ED7\", \"\\u1ED6\", \"\\u1ED5\", \"\\u1ED4\", \"\\u1ED3\", \"\\u1ED2\",\r\n\t\t\t\t\"\\u1ED1\", \"\\u1ED0\", \"\\u1ECF\", \"\\u1ECE\", \"\\u1ECD\", \"\\u1ECC\",\r\n\t\t\t\t\"\\u1EC7\", \"\\u1EC6\", \"\\u1EC5\", \"\\u1EC4\", \"\\u1EC3\", \"\\u1EC2\",\r\n\t\t\t\t\"\\u1EC1\", \"\\u1EC0\", \"\\u1EBF\", \"\\u1EBE\", \"\\u1EBD\", \"\\u1EBC\",\r\n\t\t\t\t\"\\u1EBB\", \"\\u1EBA\", \"\\u1EB9\", \"\\u1EB8\", \"\\u1EB7\", \"\\u1EB6\",\r\n\t\t\t\t\"\\u1EB5\", \"\\u1EB4\", \"\\u1EB3\", \"\\u1EB2\", \"\\u1EB1\", \"\\u1EB0\",\r\n\t\t\t\t\"\\u1EAF\", \"\\u1EAE\", \"\\u1EAD\", \"\\u1EAC\", \"\\u1EAB\", \"\\u1EAA\",\r\n\t\t\t\t\"\\u1EA9\", \"\\u1EA8\", \"\\u1EA7\", \"\\u1EA6\", \"\\u1EA5\", \"\\u1EA4\",\r\n\t\t\t\t\"\\u1EA3\", \"\\u1EA2\", \"\\u1EA1\", \"\\u1EA0\", \"\\u0169\", \"\\u0168\",\r\n\t\t\t\t\"\\u0103\", \"\\u0102\", \"\\u00FD\", \"\\u00FA\", \"\\u00F9\", \"\\u00F5\",\r\n\t\t\t\t\"\\u00F3\", \"\\u00F2\", \"\\u00EA\", \"\\u00E9\", \"\\u00E8\", \"\\u00E3\",\r\n\t\t\t\t\"\\u00E2\", \"\\u00E1\", \"\\u00E0\", \"\\u00DD\", \"\\u00DA\", \"\\u00D9\",\r\n\t\t\t\t\"\\u00D5\", \"\\u00D3\", \"\\u00D2\", \"\\u00CA\", \"\\u00C9\", \"\\u00C8\",\r\n\t\t\t\t\"\\u00C3\", \"\\u00C2\", \"\\u00C1\", \"\\u00C0\"};\r\n\r\n\t\tstr = replaceString(str, VNI_char, Unicode_char);\r\n\r\n\t\t// Part 3\r\n\t\tstr = str.replace('\\u00D4', '\\u01A0'); // O+\r\n\t\tstr = str.replace('\\u00F4', '\\u01A1'); // o+\r\n\t\tstr = str.replace('\\u00D6', '\\u01AF'); // U+\r\n\t\tstr = str.replace('\\u00F6', '\\u01B0'); // u+\r\n\t\tstr = str.replace('\\u00C6', '\\u00D4'); // O^\r\n\t\tstr = str.replace('\\u00E6', '\\u00F4'); // o^\r\n\t}", "static C2395k m11991j() {\n return new C2395k(\"Protocol message had invalid UTF-8.\");\n }", "protected abstract int getSurrogateOffset(char paramChar1, char paramChar2);", "java.lang.String getS8();", "public static String convertToUTF8(String s) {\n\n String out = null;\n\n try {\n\n out = new String(s.getBytes(\"UTF-8\"), \"ISO-8859-1\");\n\n } catch (java.io.UnsupportedEncodingException e) {\n\n return null;\n }\n\n return out;\n }", "private static int partialIsValidUtf8NonAscii(byte[] bytes, int index, int limit) {\n while (index < limit) {\n int index2 = index + 1;\n byte b = bytes[index];\n if (b >= 0) {\n index = index2;\n } else if (b < -32) {\n if (index2 >= limit) {\n return b;\n }\n if (b >= -62) {\n index = index2 + 1;\n if (bytes[index2] > -65) {\n }\n }\n return -1;\n } else if (b < -16) {\n if (index2 >= limit - 1) {\n return Utf8.incompleteStateFor(bytes, index2, limit);\n }\n int index3 = index2 + 1;\n byte b2 = bytes[index2];\n if (b2 <= -65 && ((b != -32 || b2 >= -96) && (b != -19 || b2 < -96))) {\n index = index3 + 1;\n if (bytes[index3] > -65) {\n }\n }\n return -1;\n } else if (index2 >= limit - 2) {\n return Utf8.incompleteStateFor(bytes, index2, limit);\n } else {\n int index4 = index2 + 1;\n byte b3 = bytes[index2];\n if (b3 <= -65 && (((b << 28) + (b3 + 112)) >> 30) == 0) {\n int index5 = index4 + 1;\n if (bytes[index4] <= -65) {\n index = index5 + 1;\n if (bytes[index5] > -65) {\n }\n }\n }\n return -1;\n }\n }\n return 0;\n }", "@Test\n public void Test8484()\n {\n String s = \"\\u9FE1\\uCEF3\\u2798\\uAAB6\\uDA7C\";\n Collator coll = Collator.getInstance();\n CollationKey collKey = coll.getCollationKey(s); \n logln(\"Pass: \" + collKey.toString() + \" generated OK.\");\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n StringReader stringReader0 = new StringReader(\"V&H#2E6u%Ql&dI\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2, 2);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"V\", token0.toString());\n }", "public void setCharacterEncoding(String s) {\n\n\t}", "private static java.lang.String m25224a(java.lang.String r7, java.lang.String r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"\";\n r1 = \"\\\\?\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r2 = 1;\n if (r1 <= r2) goto L_0x0033;\n L_0x000c:\n r7 = r7[r2];\n r1 = \"&\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r3 = 0;\n r4 = r0;\n r0 = 0;\n L_0x0018:\n if (r0 >= r1) goto L_0x0032;\n L_0x001a:\n r5 = r7[r0];\n r6 = \"=\";\n r5 = r5.split(r6);\n r6 = r5.length;\n if (r6 <= r2) goto L_0x002f;\n L_0x0025:\n r6 = r5[r3];\n r6 = r6.equals(r8);\n if (r6 == 0) goto L_0x002f;\n L_0x002d:\n r4 = r5[r2];\n L_0x002f:\n r0 = r0 + 1;\n goto L_0x0018;\n L_0x0032:\n r0 = r4;\n L_0x0033:\n r7 = \"UTF-8\";\t Catch:{ Exception -> 0x003a }\n r7 = java.net.URLDecoder.decode(r0, r7);\t Catch:{ Exception -> 0x003a }\n goto L_0x003b;\n L_0x003a:\n r7 = r0;\n L_0x003b:\n return r7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.leanplum.messagetemplates.BaseMessageDialog.a(java.lang.String, java.lang.String):java.lang.String\");\n }", "public final void mo9808a(String str, C3703c cVar) {\n f9103b.log(Level.WARNING, \"Converting ill-formed UTF-16. Your Protocol Buffer will not round trip correctly!\", cVar);\n byte[] bytes = str.getBytes(C3594b0.f8972a);\n try {\n mo9814c(bytes.length);\n mo9652a(bytes, 0, bytes.length);\n } catch (IndexOutOfBoundsException e) {\n throw new C3674d(e);\n } catch (C3674d e2) {\n throw e2;\n }\n }", "@Test\n public void someTests() {\n StringPair[] spvalues = new StringPair[]{\n new StringPair(\"\\u00C6neid\", \"AEneid\"),\n new StringPair(\"\\u00e9tude\", \"etude\"),\n // Chinese\n new StringPair(\"\\u5317\\u4eb0\", \"Bei Jing \"),\n // Canadian syllabics\n new StringPair(\"\\u1515\\u14c7\\u14c7\", \"shanana\"),\n // Cherokee\n new StringPair(\"\\u13d4\\u13b5\\u13c6\", \"taliqua\"),\n // Syriac\n new StringPair(\"\\u0726\\u071b\\u073d\\u0710\\u073a\", \"ptu'i\"),\n //Devangari\n new StringPair(\"\\u0905\\u092d\\u093f\\u091c\\u0940\\u0924\", \"abhijiit\"),\n // Bengali\n new StringPair(\"\\u0985\\u09ad\\u09bf\\u099c\\u09c0\\u09a4\", \"abhijiit\"),\n //Malayalaam\n new StringPair(\"\\u0d05\\u0d2d\\u0d3f\\u0d1c\\u0d40\\u0d24\", \"abhijiit\"),\n /*\n * Malayalaam. The correct transliteration is \"malayaalam\", but\n * since junidecode is context insentitive this is the best we can\n * do.\n */\n new StringPair(\"\\u0d2e\\u0d32\\u0d2f\\u0d3e\\u0d32\\u0d2e\\u0d4d\", \"mlyaalm\"),\n // Japanese\n new StringPair(\"\\u3052\\u3093\\u307e\\u3044\\u8336\", \"genmaiCha \")\n };\n for (StringPair sp : spvalues) {\n String decoded = Junidecode.unidecode(sp.getLeft());\n assertEquals(sp.getRight(), decoded);\n sevenBitPurity(decoded);\n }\n }", "String getSupportedEncoding(String acceptableEncodings);", "protected static String guessXMLEncoding(String document){\r\n\t\tString encoding = \"UTF-8\";\r\n\t\t\r\n\t\tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\ttry {\r\n\t\t\tlog.println(\"GUESSING ENCODING...\");\r\n\t\t\tString parts[] = document.split(\"\\\"\");\r\n\t\t\tfor(int i = 0; i < parts.length; i++){\r\n\t\t\t\tif(parts[i].equalsIgnoreCase(\" encoding=\")){\r\n\t\t\t\t\tencoding = parts[i + 1];\r\n\t\t\t\t\tlog.println(\"ENCODING FOUND TO BE: \" + encoding);\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\tcatch(Throwable t){\r\n\t\t\tif (log != null) t.printStackTrace(log);\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t}\r\n\t\treturn encoding;\r\n\t}", "public static void verifyUtf8andTransactionsHelper() {\r\n\r\n //hibernate not ok yet, try next time starting up\r\n if (!GrouperDdlUtils.okToUseHibernate()) {\r\n return;\r\n }\r\n \r\n\r\n // Property configuration.detect.utf8.problems wasn't functioning as intended. Discourage its use\r\n if (!isBlank(GrouperConfig.retrieveConfig().propertyValueString(\"configuration.detect.utf8.problems\"))) {\r\n String error = \"Warning: grouper property configuration.detect.utf8.problems is no longer used. Instead, \"\r\n + \"set configuration.detect.utf8.file.problems and configuration.detect.utf8.db.problems\";\r\n LOG.warn(error);\r\n System.out.println(error);\r\n\r\n }\r\n\r\n boolean detectTransactionProblems = GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.detect.db.transaction.problems\", true);\r\n\r\n boolean detectUtf8FileProblems = GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.detect.utf8.file.problems\", true);\r\n\r\n boolean detectUtf8DbProblems = GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.detect.utf8.db.problems\", true);\r\n\r\n boolean detectCaseSensitiveProblems = GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.detect.db.caseSensitive.problems\", true);\r\n\r\n if (!detectUtf8FileProblems && !detectUtf8DbProblems && !detectTransactionProblems && !detectCaseSensitiveProblems) {\r\n return;\r\n }\r\n\r\n final String someUtfString = \"ٹٺٻټكلل\";\r\n\r\n /* Do the contents of grouper/conf/grouperUtf8.txt match the hard-coded string above? */\r\n if (detectUtf8FileProblems) {\r\n boolean utfProblems = false;\r\n String theStringFromFile = null;\r\n try {\r\n theStringFromFile = GrouperUtil.readResourceIntoString(\"grouperUtf8.txt\", false);\r\n } catch (Exception e) {\r\n String error = \"Error: Cannot read string from resource grouperUtf8.txt\";\r\n LOG.error(error, e);\r\n System.out.println(error);\r\n e.printStackTrace();\r\n utfProblems = true;\r\n }\r\n if (!utfProblems && !StringUtils.equals(theStringFromFile, someUtfString)) {\r\n String error = \"Error: Cannot properly read UTF-8 string from resource: grouperUtf8.txt: '\" + theStringFromFile\r\n + \"'\";\r\n\r\n String fileEncoding = System.getProperty(\"file.encoding\");\r\n if (fileEncoding == null || !fileEncoding.toLowerCase().startsWith(\"utf\")) {\r\n error += \", make sure you pass in the JVM switch -Dfile.encoding=utf-8 (currently is '\" \r\n + fileEncoding + \"')\";\r\n }\r\n\r\n fileEncoding = GrouperConfig.retrieveConfig().propertyValueString(\"grouper.default.fileEncoding\");\r\n if (fileEncoding == null || !fileEncoding.toLowerCase().startsWith(\"utf\")) {\r\n error += \", make sure you have grouper.default.fileEncoding set to UTF-8 in the grouper.properties (or leave it out since the default should be UTF-8)\";\r\n }\r\n\r\n LOG.error(error);\r\n System.out.println(error);\r\n utfProblems = true;\r\n }\r\n if (!utfProblems & GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.display.utf8.success.message\", false)) {\r\n System.out.println(\"Grouper can read UTF-8 characters correctly from files\");\r\n }\r\n }\r\n\r\n /* Check for case-insensitive selects. The row in grouper_ddl is object_name='Grouper'. If it can be found\r\n * with object_name='GROUPER', the database is not case-sensitive */\r\n if (detectCaseSensitiveProblems) {\r\n Hib3GrouperDdl grouperDdl = GrouperDdlUtils.retrieveDdlByNameFromDatabase(\"GROUPER\");\r\n\r\n if (grouperDdl != null) {\r\n String error = \"Error: Queries in your database seem to be case insensitive, \"\r\n + \"this can be a problem for Grouper, if you are using MySQL you should use a bin collation\";\r\n LOG.error(error);\r\n System.out.println(error);\r\n } else if (GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.display.db.caseSensitive.success.message\", false)) {\r\n System.out.println(\"Your database can handle case sensitive queries correctly\");\r\n }\r\n }\r\n\r\n /* Check for both DB transactions and UTF-8 support. Insert a new entry in grouper_ddl, with\r\n * object_name = grouperUtf_{random uuid} and history = {a UTF string}. When read back, is the history\r\n * still the original string? */\r\n if (!HibernateSession.isReadonlyMode()) {\r\n //this shouldnt exist, just make sure\r\n GrouperDdlUtils.deleteUtfDdls();\r\n\r\n final String id = GrouperUuid.getUuid();\r\n final String name = \"grouperUtf_\" + id;\r\n\r\n Hib3GrouperDdl grouperDdl = GrouperDdlUtils.storeAndReadUtfString(someUtfString, id, name);\r\n \r\n //lets check transactions\r\n if (detectTransactionProblems) {\r\n Hib3GrouperDdl grouperDdlNew = GrouperDdlUtils.retrieveDdlByIdFromDatabase(id);\r\n if (grouperDdlNew != null) {\r\n \r\n String error = \"Error: Your database does not seem to support transactions, Grouper requires a transactional database\";\r\n LOG.error(error);\r\n System.out.println(error);\r\n \r\n //delete it again\r\n GrouperDdlUtils.deleteDdlById(id);\r\n \r\n } else if (GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.display.transaction.success.message\", false)) {\r\n System.out.println(\"Your database can handle transactions correctly\");\r\n }\r\n }\r\n\r\n //check reading a utf8 string\r\n if (detectUtf8DbProblems) {\r\n\r\n boolean utfProblems = false;\r\n\r\n if (grouperDdl == null) {\r\n String error = \"Error: Why is grouperDdl utf null???\";\r\n LOG.error(error);\r\n System.out.println(error);\r\n utfProblems = true;\r\n } else {\r\n if (!StringUtils.equals(grouperDdl.getHistory(), someUtfString)) {\r\n String error = \"Error: Cannot properly read UTF-8 string from database: '\" + grouperDdl.getHistory()\r\n + \"', make sure your database has UTF-8 tables and perhaps a hibernate.connection.url in grouper.hibernate.properties\";\r\n LOG.error(error);\r\n System.out.println(error);\r\n utfProblems = true;\r\n }\r\n }\r\n if (!utfProblems & GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.display.utf8.success.message\", false)) {\r\n System.out.println(\"The grouper database can handle UTF-8 characters correctly\");\r\n }\r\n }\r\n }\r\n }", "public final void encodeUtf8(CharSequence in, ByteBuffer out) {\n if (out.hasArray()) {\n int offset = out.arrayOffset();\n out.position(Utf8.encode(in, out.array(), out.position() + offset, out.remaining()) - offset);\n } else if (out.isDirect()) {\n encodeUtf8Direct(in, out);\n } else {\n encodeUtf8Default(in, out);\n }\n }", "@Override\n\t\tprotected boolean handleIrregulars(String s) {\n\t\t\treturn false;\n\t\t}", "private static char unescapeNonASCIIChar(String str) {\n\t\treturn (char) Integer.parseInt(str.substring(2, 4), 16);\n\t}", "@Test\n\tpublic final void testUmlaut() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n\t\t// U - upper case\n\t\tassertSingleResult(\"2797607\", fldName, \"Über\");\n\t\tassertSingleResult(\"2797607\", fldName, \"über\");\n\t\tassertSingleResult(\"2797607\", fldName, \"uber\");\n\t\t// u - lower case\n\t\tassertSingleResult(\"2797607\", fldName, \"Fragwürdigkeit\");\n\t\tassertSingleResult(\"2797607\", fldName, \"Fragwurdigkeit\");\n\t\t// o - lower case\n\t\tassertSingleResult(\"2797607\", fldName, \"Murtomäki\");\n\t\tassertSingleResult(\"2797607\", fldName, \"Murtomaki\");\n\t}", "EncodingEnum getEncoding();", "@Test\n public void Test4216006() throws Exception {\n boolean caughtException = false;\n try {\n new RuleBasedCollator(\"\\u00e0<a\\u0300\");\n }\n catch (ParseException e) {\n caughtException = true;\n }\n if (!caughtException) {\n throw new Exception(\"\\\"a<a\\\" collation sequence didn't cause parse error!\");\n }\n\n RuleBasedCollator collator = new RuleBasedCollator(\"&a<\\u00e0=a\\u0300\");\n //commented by Kevin 2003/10/21 \n //for \"FULL_DECOMPOSITION is not supported here.\" in ICU4J DOC\n //collator.setDecomposition(Collator.FULL_DECOMPOSITION);\n collator.setStrength(Collator.IDENTICAL);\n\n String[] tests = {\n \"a\\u0300\", \"=\", \"\\u00e0\",\n \"\\u00e0\", \"=\", \"a\\u0300\"\n };\n\n compareArray(collator, tests);\n }", "public interface Encoding {\n\t/**\n\t * Encoding a string.\n\t * \n\t * @param source\n\t * @return The encoded string\n\t * @throws Exception\n\t */\n\tpublic String encode(String source) throws Exception;\n\n\t/**\n\t * Decoding a string.\n\t * \n\t * @param source\n\t * @return The decoded string\n\t * @throws Exception\n\t */\n\tpublic String decode(String source) throws Exception;\n\n}", "@Override\n\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\n\t}", "public interface Encoding {\n String encode(String encodeValue);\n String decode(String encodedValue);\n}", "@Test\n\tpublic void testJsonEncoding() throws IOException {\n\t\tvalidateEncodingHandling(\"UTF16BE.json\", Charsets.UTF_16BE, \"The\\uD801\\uDC37 Na\\uD834\\uDD1Em\\uD834\\uDD1Ee\\uD801\\uDC37\");\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.ISO_8859_1, \"³ for ?, ¿ for ?\");\n\t\t// Reading ISO8859-1 as UTF8 will result in mapping errors. This is expected and can't be avoided if the wrong encoding has been specified.\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.UTF_8, \"� for ?, � for ?\");\n\t}", "public static void main(String[] args) {\n\n \tString str = \"123abc你好efc\";\n\n \tString reg = \"[\\u4e00-\\u9fa5]\";\n\n \tPattern pat = Pattern.compile(reg); \n\n \tMatcher mat=pat.matcher(str); \n\n \tString repickStr = mat.replaceAll(\"\");\n\n \tSystem.out.println(\"去中文后:\"+repickStr);\n\n}", "public String getUtf(){\n return utf;\n }", "private static int partialIsValidUtf8(byte[] r11, long r12, int r14) {\n /*\n // Method dump skipped, instructions count: 172\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.protobuf.Utf8.UnsafeProcessor.partialIsValidUtf8(byte[], long, int):int\");\n }", "@Override\n\t\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\t\n\t\t}", "public void testSetEncoding_Normal() throws Exception {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n h.setEncoding(\"iso-8859-1\");\n assertEquals(\"iso-8859-1\", h.getEncoding());\n LogRecord r = new LogRecord(Level.INFO, \"\\u6881\\u884D\\u8F69\");\n h.publish(r);\n h.flush();\n\n byte[] bytes = encoder.encode(\n CharBuffer.wrap(\"MockFormatter_Head\" + \"\\u6881\\u884D\\u8F69\"))\n .array();\n assertTrue(Arrays.equals(bytes, aos.toByteArray()));\n }", "public void mo1949a(String str) throws cf {\r\n try {\r\n byte[] bytes = str.getBytes(\"UTF-8\");\r\n m10262a(bytes, 0, bytes.length);\r\n } catch (UnsupportedEncodingException e) {\r\n throw new cf(\"UTF-8 not supported!\");\r\n }\r\n }", "public void setNChar()\n/* */ {\n/* 1168 */ this.isNChar = true;\n/* */ }", "private static int partialIsValidUtf8(long r11, int r13) {\n /*\n // Method dump skipped, instructions count: 170\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.protobuf.Utf8.UnsafeProcessor.partialIsValidUtf8(long, int):int\");\n }", "public String encode(String str, String charsetName) throws UnsupportedEncodingException {\n/* 230 */ if (str == null) {\n/* 231 */ return null;\n/* */ }\n/* 233 */ return StringUtils.newStringUsAscii(encode(str.getBytes(charsetName)));\n/* */ }" ]
[ "0.65922976", "0.65109247", "0.64923954", "0.6367582", "0.6367582", "0.6302799", "0.63024634", "0.6248446", "0.6244951", "0.6216444", "0.6103441", "0.60766613", "0.6071652", "0.60471565", "0.6038799", "0.60324055", "0.6008986", "0.59955096", "0.5962932", "0.5960486", "0.5933589", "0.5918974", "0.5907689", "0.59055233", "0.58839804", "0.58541936", "0.5835796", "0.5829009", "0.5816574", "0.581354", "0.5791623", "0.5789657", "0.5783031", "0.57811445", "0.5778606", "0.57511216", "0.5743751", "0.5734759", "0.5733529", "0.56672245", "0.565874", "0.5658062", "0.5621342", "0.5620884", "0.5615376", "0.55722106", "0.55649894", "0.55580187", "0.5554285", "0.55455804", "0.5545465", "0.5540016", "0.5500246", "0.54934853", "0.54859656", "0.54834056", "0.5478644", "0.54743606", "0.5473878", "0.5469421", "0.5464184", "0.5463146", "0.54494697", "0.5444454", "0.54361624", "0.54296076", "0.54278743", "0.5427429", "0.54171824", "0.5412072", "0.5409929", "0.5407852", "0.5398238", "0.5393135", "0.5378467", "0.5374871", "0.5371003", "0.5369436", "0.5358663", "0.5355581", "0.5343627", "0.53241104", "0.53208524", "0.5320079", "0.53067577", "0.53053284", "0.5304902", "0.5300601", "0.52979827", "0.5294604", "0.52839774", "0.52799624", "0.52760524", "0.5274414", "0.52737695", "0.52735394", "0.5271764", "0.5260416", "0.52566373", "0.5253872" ]
0.6353035
5
define symbols in this scope
public void enterFile(CymbolParser.FileContext ctx) { globals = new GlobalScope(null); currentScope = globals; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void define(Symbol sym);", "@Override\n public void define(Symbol symbol) {\n }", "@Override\n public void define(Symbol symbol) {\n }", "public SymbolTable() {\n\t\tclassScope = new Hashtable<String, Values>();\n\t\tsubScope = new Hashtable<String, Values>();\n\t\tcurrScope = classScope;\n\t\tsubArgIdx = 0;\n\t\tsubVarIdx = 0;\n\t\tclassStaticIdx = 0;\n\t\tclassFieldIdx = 0;\n\t}", "@SuppressWarnings(\"unused\")\n private void initSymbolTable() {\n MethodType I_V = new MethodType(Type.Int, Type.Void);\n MethodType I_R = new MethodType(Type.Int, Type.Real);\n MethodType I_S = new MethodType(Type.Int, Type.String);\n MethodType I_D = new MethodType(Type.Int, Type.NodeSet);\n MethodType R_I = new MethodType(Type.Real, Type.Int);\n MethodType R_V = new MethodType(Type.Real, Type.Void);\n MethodType R_R = new MethodType(Type.Real, Type.Real);\n MethodType R_D = new MethodType(Type.Real, Type.NodeSet);\n MethodType R_O = new MethodType(Type.Real, Type.Reference);\n MethodType I_I = new MethodType(Type.Int, Type.Int);\n MethodType D_O = new MethodType(Type.NodeSet, Type.Reference);\n MethodType D_V = new MethodType(Type.NodeSet, Type.Void);\n MethodType D_S = new MethodType(Type.NodeSet, Type.String);\n MethodType D_D = new MethodType(Type.NodeSet, Type.NodeSet);\n MethodType A_V = new MethodType(Type.Node, Type.Void);\n MethodType S_V = new MethodType(Type.String, Type.Void);\n MethodType S_S = new MethodType(Type.String, Type.String);\n MethodType S_A = new MethodType(Type.String, Type.Node);\n MethodType S_D = new MethodType(Type.String, Type.NodeSet);\n MethodType S_O = new MethodType(Type.String, Type.Reference);\n MethodType B_O = new MethodType(Type.Boolean, Type.Reference);\n MethodType B_V = new MethodType(Type.Boolean, Type.Void);\n MethodType B_B = new MethodType(Type.Boolean, Type.Boolean);\n MethodType B_S = new MethodType(Type.Boolean, Type.String);\n MethodType D_X = new MethodType(Type.NodeSet, Type.Object);\n MethodType R_RR = new MethodType(Type.Real, Type.Real, Type.Real);\n MethodType I_II = new MethodType(Type.Int, Type.Int, Type.Int);\n MethodType B_RR = new MethodType(Type.Boolean, Type.Real, Type.Real);\n MethodType B_II = new MethodType(Type.Boolean, Type.Int, Type.Int);\n MethodType S_SS = new MethodType(Type.String, Type.String, Type.String);\n MethodType S_DS = new MethodType(Type.String, Type.Real, Type.String);\n MethodType S_SR = new MethodType(Type.String, Type.String, Type.Real);\n MethodType O_SO = new MethodType(Type.Reference, Type.String, Type.Reference);\n\n MethodType D_SS =\n new MethodType(Type.NodeSet, Type.String, Type.String);\n MethodType D_SD =\n new MethodType(Type.NodeSet, Type.String, Type.NodeSet);\n MethodType B_BB =\n new MethodType(Type.Boolean, Type.Boolean, Type.Boolean);\n MethodType B_SS =\n new MethodType(Type.Boolean, Type.String, Type.String);\n MethodType S_SD =\n new MethodType(Type.String, Type.String, Type.NodeSet);\n MethodType S_DSS =\n new MethodType(Type.String, Type.Real, Type.String, Type.String);\n MethodType S_SRR =\n new MethodType(Type.String, Type.String, Type.Real, Type.Real);\n MethodType S_SSS =\n new MethodType(Type.String, Type.String, Type.String, Type.String);\n\n /*\n * Standard functions: implemented but not in this table concat().\n * When adding a new function make sure to uncomment\n * the corresponding line in <tt>FunctionAvailableCall</tt>.\n */\n\n // The following functions are inlined\n\n _symbolTable.addPrimop(\"current\", A_V);\n _symbolTable.addPrimop(\"last\", I_V);\n _symbolTable.addPrimop(\"position\", I_V);\n _symbolTable.addPrimop(\"true\", B_V);\n _symbolTable.addPrimop(\"false\", B_V);\n _symbolTable.addPrimop(\"not\", B_B);\n _symbolTable.addPrimop(\"name\", S_V);\n _symbolTable.addPrimop(\"name\", S_A);\n _symbolTable.addPrimop(\"generate-id\", S_V);\n _symbolTable.addPrimop(\"generate-id\", S_A);\n _symbolTable.addPrimop(\"ceiling\", R_R);\n _symbolTable.addPrimop(\"floor\", R_R);\n _symbolTable.addPrimop(\"round\", R_R);\n _symbolTable.addPrimop(\"contains\", B_SS);\n _symbolTable.addPrimop(\"number\", R_O);\n _symbolTable.addPrimop(\"number\", R_V);\n _symbolTable.addPrimop(\"boolean\", B_O);\n _symbolTable.addPrimop(\"string\", S_O);\n _symbolTable.addPrimop(\"string\", S_V);\n _symbolTable.addPrimop(\"translate\", S_SSS);\n _symbolTable.addPrimop(\"string-length\", I_V);\n _symbolTable.addPrimop(\"string-length\", I_S);\n _symbolTable.addPrimop(\"starts-with\", B_SS);\n _symbolTable.addPrimop(\"format-number\", S_DS);\n _symbolTable.addPrimop(\"format-number\", S_DSS);\n _symbolTable.addPrimop(\"unparsed-entity-uri\", S_S);\n _symbolTable.addPrimop(\"key\", D_SS);\n _symbolTable.addPrimop(\"key\", D_SD);\n _symbolTable.addPrimop(\"id\", D_S);\n _symbolTable.addPrimop(\"id\", D_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"function-available\", B_S);\n _symbolTable.addPrimop(\"element-available\", B_S);\n _symbolTable.addPrimop(\"document\", D_S);\n _symbolTable.addPrimop(\"document\", D_V);\n\n // The following functions are implemented in the basis library\n _symbolTable.addPrimop(\"count\", I_D);\n _symbolTable.addPrimop(\"sum\", R_D);\n _symbolTable.addPrimop(\"local-name\", S_V);\n _symbolTable.addPrimop(\"local-name\", S_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"namespace-uri\", S_D);\n _symbolTable.addPrimop(\"substring\", S_SR);\n _symbolTable.addPrimop(\"substring\", S_SRR);\n _symbolTable.addPrimop(\"substring-after\", S_SS);\n _symbolTable.addPrimop(\"substring-before\", S_SS);\n _symbolTable.addPrimop(\"normalize-space\", S_V);\n _symbolTable.addPrimop(\"normalize-space\", S_S);\n _symbolTable.addPrimop(\"system-property\", S_S);\n\n // Extensions\n _symbolTable.addPrimop(\"nodeset\", D_O);\n _symbolTable.addPrimop(\"objectType\", S_O);\n _symbolTable.addPrimop(\"cast\", O_SO);\n\n // Operators +, -, *, /, % defined on real types.\n _symbolTable.addPrimop(\"+\", R_RR);\n _symbolTable.addPrimop(\"-\", R_RR);\n _symbolTable.addPrimop(\"*\", R_RR);\n _symbolTable.addPrimop(\"/\", R_RR);\n _symbolTable.addPrimop(\"%\", R_RR);\n\n // Operators +, -, * defined on integer types.\n // Operators / and % are not defined on integers (may cause exception)\n _symbolTable.addPrimop(\"+\", I_II);\n _symbolTable.addPrimop(\"-\", I_II);\n _symbolTable.addPrimop(\"*\", I_II);\n\n // Operators <, <= >, >= defined on real types.\n _symbolTable.addPrimop(\"<\", B_RR);\n _symbolTable.addPrimop(\"<=\", B_RR);\n _symbolTable.addPrimop(\">\", B_RR);\n _symbolTable.addPrimop(\">=\", B_RR);\n\n // Operators <, <= >, >= defined on int types.\n _symbolTable.addPrimop(\"<\", B_II);\n _symbolTable.addPrimop(\"<=\", B_II);\n _symbolTable.addPrimop(\">\", B_II);\n _symbolTable.addPrimop(\">=\", B_II);\n\n // Operators <, <= >, >= defined on boolean types.\n _symbolTable.addPrimop(\"<\", B_BB);\n _symbolTable.addPrimop(\"<=\", B_BB);\n _symbolTable.addPrimop(\">\", B_BB);\n _symbolTable.addPrimop(\">=\", B_BB);\n\n // Operators 'and' and 'or'.\n _symbolTable.addPrimop(\"or\", B_BB);\n _symbolTable.addPrimop(\"and\", B_BB);\n\n // Unary minus.\n _symbolTable.addPrimop(\"u-\", R_R);\n _symbolTable.addPrimop(\"u-\", I_I);\n }", "public ScopedSymbol(String name){\r\n\t\tthis(name, Access.PUBLIC);\r\n\t}", "public SymbolTable() {\n scopes = new ArrayList<>();\n currentScopeLevel = NO_SCOPE;\n }", "public void setSymbolTable(SymbolTable st) {\n\t this.st = st;\n\t }", "public void setSymbol(Symbol symbol) {\r\n\t\tthis.symbol = symbol;\r\n\t}", "public interface Symbols {\n /* terminals */\n public static final int BAG = 68;\n public static final int RETRIEVE = 93;\n public static final int AS = 34;\n public static final int TIMES = 13;\n public static final int LCURLY = 54;\n public static final int TYPE = 58;\n public static final int LEAVESBY = 91;\n public static final int LOWEREQUALS = 33;\n public static final int LAZY_FAILURE = 97;\n public static final int CLOSEUNIQUEBY = 90;\n public static final int NAME = 7;\n public static final int ENUM = 70;\n public static final int FORSOME = 41;\n public static final int CATCH = 114;\n public static final int DATEPREC = 109;\n public static final int COMMA = 29;\n public static final int VIRTUAL = 99;\n public static final int RANDOM = 110;\n public static final int DOUBLE_LITERAL = 4;\n public static final int SUM = 48;\n public static final int THROW = 116;\n public static final int JOIN = 28;\n public static final int RPAREN = 19;\n public static final int ON_NAVIGATE = 106;\n public static final int STRUCT = 69;\n public static final int NOT_MATCH_STRING = 23;\n public static final int LPAREN = 18;\n public static final int NOW = 108;\n public static final int INTEGER_LITERAL = 2;\n public static final int NOT = 24;\n public static final int VIEW = 98;\n public static final int INSTANCE = 73;\n public static final int DIFFERENT = 21;\n public static final int DATE_LITERAL = 6;\n public static final int MIN = 43;\n public static final int THEN = 65;\n public static final int EXTERNAL = 67;\n public static final int RECORD = 57;\n public static final int SEROID = 120;\n public static final int REVERSE = 107;\n public static final int ON_UPDATE = 103;\n public static final int LOWER = 31;\n public static final int INSERTCOPY = 83;\n public static final int BOOLEAN_LITERAL = 5;\n public static final int TEMPORAL = 80;\n public static final int CLASS = 71;\n public static final int SEED = 101;\n public static final int IMPLEMENT = 95;\n public static final int MODULO = 17;\n public static final int UNIQUEREF = 47;\n public static final int PLUS = 10;\n public static final int FORALL = 42;\n public static final int DIVIDE = 14;\n public static final int EXISTS = 49;\n public static final int GREATEREQUALS = 32;\n public static final int WHILE = 84;\n public static final int UNION = 16;\n public static final int DELETE = 77;\n public static final int EXTENDS = 72;\n public static final int MODULE = 53;\n public static final int INTERFACE = 117;\n public static final int ASSIGN = 61;\n public static final int RSQUARE = 52;\n public static final int FOR = 86;\n public static final int DO = 85;\n public static final int SCHEMADEF = 96;\n public static final int MATCH_STRING = 22;\n public static final int GREATER = 30;\n public static final int RANGEAS = 119;\n public static final int MAX = 44;\n public static final int RETURN = 60;\n public static final int TRY = 113;\n public static final int ELSE = 66;\n public static final int DOTDOT = 50;\n public static final int BREAK = 87;\n public static final int DOT = 26;\n public static final int PERMANENT = 79;\n public static final int AVG = 45;\n public static final int TRANSACTION_ABORT = 112;\n public static final int STRING_LITERAL = 3;\n public static final int EOF = 0;\n public static final int SEMICOLON = 8;\n public static final int INTERSECT = 15;\n public static final int LSQUARE = 51;\n public static final int WHERE = 27;\n public static final int COUNT = 25;\n public static final int LOCAL = 81;\n public static final int IMPORT = 56;\n public static final int IS = 59;\n public static final int UNIQUE = 46;\n public static final int IN = 36;\n public static final int OR = 39;\n public static final int error = 1;\n public static final int HYPHEN = 11;\n public static final int LEAVESUNIQUEBY = 92;\n public static final int FINALLY = 115;\n public static final int CONTINUE = 88;\n public static final int INSTANCEOF = 74;\n public static final int IF = 64;\n public static final int CONTAINS = 37;\n public static final int COLON = 9;\n public static final int SUBTRACT = 12;\n public static final int CREATE = 78;\n public static final int DEREF = 62;\n public static final int FOREACH = 63;\n public static final int REF = 75;\n public static final int ON_DELETE = 104;\n public static final int DESEROID = 121;\n public static final int CLOSEBY = 89;\n public static final int RENAME = 122;\n public static final int UPDATE = 94;\n public static final int INSERT = 82;\n public static final int OBJECTS = 100;\n public static final int AND = 40;\n public static final int SESSION = 76;\n public static final int ON_RETRIEVE = 102;\n public static final int GROUPAS = 35;\n public static final int ON_NEW = 105;\n public static final int ORDERBY = 38;\n public static final int DISTINCT = 118;\n public static final int RCURLY = 55;\n public static final int EQUALS = 20;\n public static final int TRANSACTION_CAPABLE = 111;\n}", "public abstract String getSymbol();", "public void setSymbol(String symbol) {\n this.symbol = symbol;\n }", "void addScope() {\n\t\tlist.addFirst(new HashMap<String, Sym>());\n\t}", "String getSymbol();", "void setSymbol(Environment environment, Character newSymbol);", "public interface ITerminalSymbols {\n\n\tint TokenNameWHITESPACE = 1000;\n\tint TokenNameCOMMENT_LINE = 1001;\n\tint TokenNameCOMMENT_BLOCK = 1002;\n\tint TokenNameCOMMENT_JAVADOC = 1003;\n\n\tint TokenNameIdentifier = 5;\n\tint TokenNameabstract = 98;\n\n /**\n * \"assert\" token (added in J2SE 1.4).\n */\n\tint TokenNameassert = 118;\n\tint TokenNameboolean = 18;\n\tint TokenNamebreak = 119;\n\tint TokenNamebyte = 19;\n\tint TokenNamecase = 211;\n\tint TokenNamecatch = 225;\n\tint TokenNamechar = 20;\n\tint TokenNameclass = 165;\n\tint TokenNamecontinue = 120;\n\tint TokenNamedefault = 212;\n\tint TokenNamedo = 121;\n\tint TokenNamedouble = 21;\n\tint TokenNameelse = 213;\n\tint TokenNameextends = 243;\n\tint TokenNamefalse = 37;\n\tint TokenNamefinal = 99;\n\tint TokenNamefinally = 226;\n\tint TokenNamefloat = 22;\n\tint TokenNamefor = 122;\n\tint TokenNameif = 123;\n\tint TokenNameimplements = 268;\n\tint TokenNameimport = 191;\n\tint TokenNameinstanceof = 65;\n\tint TokenNameint = 23;\n\tint TokenNameinterface = 180;\n\tint TokenNamelong = 24;\n\tint TokenNamenative = 100;\n\tint TokenNamenew = 32;\n\tint TokenNamenull = 38;\n\tint TokenNamepackage = 214;\n\tint TokenNameprivate = 101;\n\tint TokenNameprotected = 102;\n\tint TokenNamepublic = 103;\n\tint TokenNamereturn = 124;\n\tint TokenNameshort = 25;\n\tint TokenNamestatic = 94;\n\tint TokenNamestrictfp = 104;\n\tint TokenNamesuper = 33;\n\tint TokenNameswitch = 125;\n\tint TokenNamesynchronized = 85;\n\tint TokenNamethis = 34;\n\tint TokenNamethrow = 126;\n\tint TokenNamethrows = 227;\n\tint TokenNametransient = 105;\n\tint TokenNametrue = 39;\n\tint TokenNametry = 127;\n\tint TokenNamevoid = 26;\n\tint TokenNamevolatile = 106;\n\tint TokenNamewhile = 117;\n\tint TokenNameIntegerLiteral = 40;\n\tint TokenNameLongLiteral = 41;\n\tint TokenNameFloatingPointLiteral = 42;\n\tint TokenNameDoubleLiteral = 43;\n\tint TokenNameCharacterLiteral = 44;\n\tint TokenNameStringLiteral = 45;\n\tint TokenNamePLUS_PLUS = 1;\n\tint TokenNameMINUS_MINUS = 2;\n\tint TokenNameEQUAL_EQUAL = 35;\n\tint TokenNameLESS_EQUAL = 66;\n\tint TokenNameGREATER_EQUAL = 67;\n\tint TokenNameNOT_EQUAL = 36;\n\tint TokenNameLEFT_SHIFT = 14;\n\tint TokenNameRIGHT_SHIFT = 11;\n\tint TokenNameUNSIGNED_RIGHT_SHIFT = 12;\n\tint TokenNamePLUS_EQUAL = 168;\n\tint TokenNameMINUS_EQUAL = 169;\n\tint TokenNameMULTIPLY_EQUAL = 170;\n\tint TokenNameDIVIDE_EQUAL = 171;\n\tint TokenNameAND_EQUAL = 172;\n\tint TokenNameOR_EQUAL = 173;\n\tint TokenNameXOR_EQUAL = 174;\n\tint TokenNameREMAINDER_EQUAL = 175;\n\tint TokenNameLEFT_SHIFT_EQUAL = 176;\n\tint TokenNameRIGHT_SHIFT_EQUAL = 177;\n\tint TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL = 178;\n\tint TokenNameOR_OR = 80;\n\tint TokenNameAND_AND = 79;\n\tint TokenNamePLUS = 3;\n\tint TokenNameMINUS = 4;\n\tint TokenNameNOT = 71;\n\tint TokenNameREMAINDER = 9;\n\tint TokenNameXOR = 63;\n\tint TokenNameAND = 62;\n\tint TokenNameMULTIPLY = 8;\n\tint TokenNameOR = 70;\n\tint TokenNameTWIDDLE = 72;\n\tint TokenNameDIVIDE = 10;\n\tint TokenNameGREATER = 68;\n\tint TokenNameLESS = 69;\n\tint TokenNameLPAREN = 7;\n\tint TokenNameRPAREN = 86;\n\tint TokenNameLBRACE = 110;\n\tint TokenNameRBRACE = 95;\n\tint TokenNameLBRACKET = 15;\n\tint TokenNameRBRACKET = 166;\n\tint TokenNameSEMICOLON = 64;\n\tint TokenNameQUESTION = 81;\n\tint TokenNameCOLON = 154;\n\tint TokenNameCOMMA = 90;\n\tint TokenNameDOT = 6;\n\tint TokenNameEQUAL = 167;\n\tint TokenNameEOF = 158;\n\tint TokenNameERROR = 309;\n\n /**\n * \"enum\" keyword (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameenum = 400;\n\n /**\n * \"@\" token (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameAT = 401;\n\n /**\n * \"...\" token (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameELLIPSIS = 402;\n\n\t/**\n\t * @since 3.1\n\t */\n\tint TokenNameconst = 403;\n\n\t/**\n\t * @since 3.1\n\t */\n\tint TokenNamegoto = 404; // goto not found in Java ? :)\n\n\t/**\n\t * @since 3.10\n\t */\n\tint TokenNameARROW = 405;\n\t/**\n\t * @since 3.10\n\t */\n\tint TokenNameCOLON_COLON = 406;\n\t\n\t\n}", "@Override\n public String getSymbol() {\n return SYMBOL;\n }", "public String getSymbol() {\n }", "protected void setSymbol(char c){\r\n\t\tthis.symbol = c;\r\n\t}", "public Symbol(Hashtable symbols,String name,int value,int type) {\n\tthis.name = name;\n\tthis.value = value;\n\tthis.type = type;\n\tmdefs = new Vector();\n\tif (symbols != null) symbols.put(name,this);\n }", "public ScopedSymbol(String name, Access access){\r\n\t\tObjects.nonNull(name);\r\n\t\tObjects.nonNull(access);\r\n\t\tthis.name = name;\r\n\t\tthis.access = access;\r\n\t}", "public void setSymbol(char symbol) {\n\t\tthis.symbol = symbol;\n\t}", "public Symbol(String _name) {\n\t\tsetName(_name);\n\t}", "public String getSymbol(){\n return this.symbol;\n }", "@Override\n\t public Set<Symbol> getSymbols() {\n\t return Collections.unmodifiableSet(symbols);\n\t }", "public String getSymbol( )\n {\n return symbol;\n }", "public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public void set_context(VariableSymbolTable context);", "public Symbol getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public String getSymbol() {\n return this.symbol ;\n }", "SymTable() {\n\t\tmap = new HashMap<String, Sym>();\n\t\tlist.add(map);\n\t}", "public String getSymbol() {\n return symbol;\n }", "private void onSymbol(final Attributes attributes) throws SAXException\r\n\t{\r\n\t\tString name = attributes.getValue(\"name\");\r\n\t\tint size = getInt(attributes, \"size\", 1);\r\n\t\tString loc = attributes.getValue(\"loc\");\r\n\t\tString decl = attributes.getValue(\"decl\");\r\n\r\n SymbolOwnership ownership = readOwnership(decl);\r\n\t\t\r\n\t\tif(loc == null)\r\n\t\t{\r\n\t\t\tthrow new SAXException(\"Symbol declaration missing 'loc' location information\");\r\n\t\t}\r\n\t\tif(\"rom\".equals(loc))\r\n\t\t{\r\n\t\t\tRomLocation rom = new RomLocation(name, ownership);\r\n\t\t\tif(!\"none\".equals(decl))\r\n\t\t\t{\r\n\t\t\t\tm_model.registerExternalMethod(rom);\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint page = readPage(loc);\r\n\r\n\t\tm_variable = new Variable(name, ownership, page, size);\r\n\t\tm_model.addVariable(m_variable);\r\n\t}", "public String getSymbol() {\n\t\treturn symbol;\n\t}", "public String getSymbol() {\n return symbol;\n }", "private HashSet < Symbol > getUsedSymbols ()\n {\n HashSet < Symbol > symbols = new HashSet < Symbol > ();\n for ( LeafNode l : this.regexNode.getTokenNodes () )\n {\n if ( l instanceof TokenNode )\n {\n TokenNode t = ( TokenNode ) l;\n symbols.add ( new DefaultSymbol ( t.getName () ) );\n }\n }\n return symbols;\n }", "@Override public String symbol() {\n return symbol;\n }", "public static SymbolTable getInstance() { return instance ; }", "long getSymbol();", "private static void init () {\r\n\t\t// make sure they all have non-null entries\r\n\t\tName undef = new Name(\"undef\", 'u');\r\n\t\tArrays.fill(op_names, undef);\r\n\t\tArrays.fill(fn_names, undef);\r\n\t\tArrays.fill(cfn_names, undef);\r\n\t\tArrays.fill(rs_names, undef);\r\n\t\tArrays.fill(rt_names, undef);\r\n\r\n\t\tfor (int n = 0; n < 32; n++)\r\n\t\t\treg_nums[n] = \"$\".concat(Integer.toString(n));\r\n\r\n\t\top_names[OP_SPECIAL] = new Name(\"**spec\");\r\n\t\top_names[OP_REGIMM] = new Name(\"**regimm\");\r\n\t\top_names[OP_J] = new Name(\"j\", 'J');\r\n\t\top_names[OP_JAL] = new Name(\"jal\", 'J');\r\n\t\top_names[OP_BEQ] = new Name(\"beq\", 'r');\r\n\t\top_names[OP_BNE] = new Name(\"bne\", 'r');\r\n\t\top_names[OP_BLEZ] = new Name(\"blez\", 'r');\r\n\t\top_names[OP_BGTZ] = new Name(\"bgtz\", 'r');\r\n\t\top_names[OP_ADDIU] = new Name(\"addiu\", 'b');\r\n\t\top_names[OP_SLTI] = new Name(\"slti\", 'b');\r\n\t\top_names[OP_SLTIU] = new Name(\"sltiu\", 'b');\r\n\t\top_names[OP_ANDI] = new Name(\"andi\", 'b');\r\n\t\top_names[OP_ORI] = new Name(\"ori\", 'b');\r\n\t\top_names[OP_XORI] = new Name(\"xori\", 'b');\r\n\t\top_names[OP_LUI] = new Name(\"lui\", 'I');\r\n\t\top_names[OP_COP1] = new Name(\"**cop1\");\r\n\t\top_names[OP_SPEC2] = new Name(\"**spec2\");\r\n\t\top_names[OP_LB] = new Name(\"lb\", 'l');\r\n\t\top_names[OP_LH] = new Name(\"lh\", 'l');\r\n\t\top_names[OP_LWL] = new Name(\"lwl\", 'l');\r\n\t\top_names[OP_LW] = new Name(\"lw\", 'l');\r\n\t\top_names[OP_LBU] = new Name(\"lbu\", 'l');\r\n\t\top_names[OP_LHU] = new Name(\"lhu\", 'l');\r\n\t\top_names[OP_LWR] = new Name(\"lwr\", 'l');\r\n\t\top_names[OP_SB] = new Name(\"sb\", 's');\r\n\t\top_names[OP_SH] = new Name(\"sh\", 's');\r\n\t\top_names[OP_SWL] = new Name(\"swl\", 's');\r\n\t\top_names[OP_SW] = new Name(\"sw\", 's');\r\n\t\top_names[OP_SWR] = new Name(\"swr\", 's');\r\n\t\top_names[OP_LWC1] = new Name(\"lwc1\", 'L');\r\n\t\top_names[OP_SWC1] = new Name(\"swc1\", 'S');\r\n\r\n\t\tfn_names[FN_SLL] = new Name(\"sll\");\r\n\t\tfn_names[FN_SRL] = new Name(\"srl\");\r\n\t\tfn_names[FN_SRA] = new Name(\"sra\");\r\n\t\tfn_names[FN_SLLV] = new Name(\"sllv\");\r\n\t\tfn_names[FN_SRLV] = new Name(\"srlv\");\r\n\t\tfn_names[FN_SRAV] = new Name(\"srav\");\r\n\t\tfn_names[FN_JR] = new Name(\"jr\", 'j');\r\n\t\tfn_names[FN_JALR] = new Name(\"jalr\", 'j');\r\n\t\tfn_names[FN_MOVN] = new Name(\"movn\", 'u');\r\n\t\tfn_names[FN_SYSCALL] = new Name(\"**sys\");\r\n\t\tfn_names[FN_BREAK] = new Name(\"**break\");\r\n\t\tfn_names[FN_MFHI] = new Name(\"mfhi\");\r\n\t\tfn_names[FN_MFLO] = new Name(\"mflo\");\r\n\t\tfn_names[FN_MULT] = new Name(\"mult\");\r\n\t\tfn_names[FN_MULTU] = new Name(\"multu\");\r\n\t\tfn_names[FN_DIV] = new Name(\"div\");\r\n\t\tfn_names[FN_DIVU] = new Name(\"divu\");\r\n\t\tfn_names[FN_ADDU] = new Name(\"addu\", 'B');\r\n\t\tfn_names[FN_SUBU] = new Name(\"subu\", 'B');\r\n\t\tfn_names[FN_AND] = new Name(\"and\", 'B');\r\n\t\tfn_names[FN_OR] = new Name(\"or\", 'B');\r\n\t\tfn_names[FN_XOR] = new Name(\"xor\", 'B');\r\n\t\tfn_names[FN_NOR] = new Name(\"nor\", 'B');\r\n\t\tfn_names[FN_SLT] = new Name(\"slt\", 'B');\r\n\t\tfn_names[FN_SLTU] = new Name(\"sltu\", 'B');\r\n\r\n\t\trs_names[RS_MF] = new Name(\"mfc1\", '6');\r\n\t\trs_names[RS_CF] = new Name(\"cfc1\", '4');\r\n\t\trs_names[RS_MT] = new Name(\"mtc1\", '5');\r\n\t\trs_names[RS_CT] = new Name(\"ctc1\");\r\n\t\trs_names[RS_BC] = new Name(\"bc1\");\r\n\t\trs_names[RS_FMT_SINGLE] = new Name(\"**fmts\");\r\n\t\trs_names[RS_FMT_DOUBLE] = new Name(\"**fmtd\");\r\n\t\trs_names[RS_FMT_WORD] = new Name(\"**fmtw\");\r\n\r\n\t\tcfn_names[CFN_ADD_D] = new Name(\"add\", '3');\r\n\t\tcfn_names[CFN_SUB_D] = new Name(\"sub\", '3');\r\n\t\tcfn_names[CFN_MUL_D] = new Name(\"mul\", '3');\r\n\t\tcfn_names[CFN_DIV_D] = new Name(\"div\", '3');\r\n\t\tcfn_names[CFN_MOV_D] = new Name(\"mov\", '2'); // 2?\r\n\t\tcfn_names[CFN_NEG_D] = new Name(\"neg\", '2');\r\n\t\tcfn_names[CFN_CVTS] = new Name(\"cvts\", '2'); // all type 2\r\n\t\tcfn_names[CFN_CVTD] = new Name(\"cvtd\", '2');\r\n\t\tcfn_names[CFN_CVTW] = new Name(\"cvtw\", '2');\r\n\t\tcfn_names[CFN_FC_ULT] = new Name(\"ult\", 'c');\r\n\t\tcfn_names[CFN_FC_EQ] = new Name(\"eq\", 'c'); // all type c\r\n\t\tcfn_names[CFN_FC_LT] = new Name(\"lt\", 'c');\r\n\t\tcfn_names[CFN_FC_LE] = new Name(\"le\", 'c');\r\n\r\n\t\trt_names[RT_BLTZ] = new Name(\"bltz\", 'v');\r\n\t\trt_names[RT_BGEZ] = new Name(\"bgez\", 'v');\r\n\t\trt_names[RT_BLTZAL] = new Name(\"bltzal\", 'v');\r\n\t\trt_names[RT_BGEZAL] = new Name(\"bgezal\", 'v');\r\n\t}", "protected char getSymbol(){\r\n\t\treturn this.symbol;\r\n\t}", "@Override\n\tpublic void visitXdef(Xsymbol p) {\n\n\t}", "private void putSymbol(String symbol, String type, String eqn){\n System.out.println(symbol+ \" \"+ type + \" \"+ eqn);\n }", "public static void initSymbol(String fileName, Parser parser, SymbolTable symbol) {\n\n //add the R0,R1 ...\n for (int i = 0; i < 16; i++) {\n symbol.addEntry(\"R\" + i, i);\n }\n\n //add the save symbols\n symbol.addEntry(\"SCREEN\", 16384);\n symbol.addEntry(\"KBD\", 24576);\n symbol.addEntry(\"SP\", 0);\n symbol.addEntry(\"LCL\", 1);\n symbol.addEntry(\"ARG\", 2);\n symbol.addEntry(\"THIS\", 3);\n symbol.addEntry(\"THAT\", 4);\n\n int counterCommands = 0;\n List<String> symbolToAdd = new ArrayList<String>();\n //add the label command\n while (parser.hasMoreCommands()) {\n parser.advance();\n String type = parser.commandType();\n if (!type.equals(\"L_COMMAND\")) {\n if (symbolToAdd.size() > 0) {\n for (String s : symbolToAdd) {\n symbol.addEntry(s, counterCommands);\n }\n if (symbolToAdd.size() > 0) {\n symbolToAdd.subList(0, symbolToAdd.size()).clear();\n }\n }\n counterCommands++;\n }\n if (type.equals(\"L_COMMAND\")) {\n symbolToAdd.add(parser.symbol());\n }\n }\n\n }", "private Symbol(String label)\n {\n this.label = label;\n this.numArgs = 0;\n }", "public LexicalAnalyzer() {\n Symbol[] operatorSymbols = {Symbol.plus, Symbol.minus, Symbol.times, Symbol.slash,\n Symbol.eql, Symbol.neq, Symbol.lss, Symbol.leq, Symbol.gtr, Symbol.geq,\n Symbol.becomes};\n\n legalCharMap = new Hashtable<String, Symbol>();\n for (int i = 0; i < operatorSymbols.length; i++)\n legalCharMap.put(Condition.OperatorSet.get(i), operatorSymbols[i]);\n\n legalCharMap.put(\"(\", Symbol.lparen);\n legalCharMap.put(\")\", Symbol.rparen);\n legalCharMap.put(\"Identifier\", Symbol.ident);\n legalCharMap.put(\"Number\", Symbol.number);\n }", "public SymTab(){\n \tclasses = new HashMap<String, ClassNode>();\n \tmethods = new HashMap<String, MethodNode>();\n }", "public char getSymbol() {\n return symbol;\n }", "private Token symbol(TOKEN_TYPE t){\t\n\t\tntk++;\n\t\treturn new Token(t, yytext(), yyline+1, yycolumn+1); // yytext() é o lexema\n\t}", "public interface sym {\n /* terminals */\n public static final int SHORT = 47;\n public static final int ANDEQ = 94;\n public static final int IMPLEMENTS = 4;\n public static final int CONST = 27;\n public static final int BITNOT = 68;\n public static final int STRICTFP = 35;\n public static final int NOTEQ = 74;\n public static final int PLUSEQ = 90;\n public static final int RBRACK = 60;\n public static final int CATCH = 20;\n public static final int COMMA = 62;\n public static final int RBRACE = 58;\n public static final int THROW = 22;\n public static final int RPAREN = 56;\n public static final int LBRACK = 59;\n public static final int ANDAND = 75;\n public static final int NUMERO = 101;\n public static final int OROR = 76;\n public static final int DOUBLE = 51;\n public static final int LBRACE = 57;\n public static final int TRANSIENT = 32;\n public static final int LPAREN = 55;\n public static final int XOREQ = 96;\n public static final int PROTECTED = 37;\n public static final int FALSE = 54;\n public static final int NOT = 67;\n public static final int COMENTARIO = 102;\n public static final int FINAL = 29;\n public static final int FLOAT = 49;\n public static final int URSHIFTEQ = 45;\n public static final int PACKAGE = 25;\n public static final int MOD = 86;\n public static final int CLASS = 2;\n public static final int SUPER = 34;\n public static final int ABSTRACT = 28;\n public static final int TRUE = 53;\n public static final int NATIVE = 30;\n public static final int PLUS = 79;\n public static final int LONG = 50;\n public static final int QUESTION = 69;\n public static final int WHILE = 17;\n public static final int EQUAL = 64;\n public static final int EXTENDS = 3;\n public static final int INTERFACE = 5;\n public static final int CHAR = 46;\n public static final int BOOLEAN = 44;\n public static final int SWITCH = 16;\n public static final int DO = 11;\n public static final int FOR = 14;\n public static final int RSHIFTEQ = 99;\n public static final int GREATER = 65;\n public static final int DIV = 82;\n public static final int VOID = 40;\n public static final int MULT = 81;\n public static final int PUBLIC = 36;\n public static final int RETURN = 15;\n public static final int ELSE = 13;\n public static final int TRY = 19;\n public static final int GTEQ = 73;\n public static final int BREAK = 7;\n public static final int DOT = 63;\n public static final int INT = 48;\n public static final int THROWS = 23;\n public static final int EQEQ = 71;\n public static final int NULL = 41;\n public static final int EOF = 0;\n public static final int SEMICOLON = 61;\n public static final int THIS = 42;\n public static final int DEFAULT = 10;\n public static final int MULTEQ = 92;\n public static final int IMPORT = 24;\n public static final int MINUS = 80;\n public static final int LTEQ = 72;\n public static final int OR = 84;\n public static final int URSHIFT = 89;\n public static final int error = 1;\n public static final int SYNCHRONIZED = 31;\n public static final int DIVEQ = 93;\n public static final int LSHIFTEQ = 98;\n public static final int FINALLY = 21;\n public static final int CONTINUE = 9;\n public static final int IF = 12;\n public static final int INSTANCEOF = 43;\n public static final int ID = 100;\n public static final int MODEQ = 97;\n public static final int MINUSMINUS = 78;\n public static final int COLON = 70;\n public static final int ASSERT = 18;\n public static final int OREQ = 95;\n public static final int VOLATILE = 33;\n public static final int PLUSPLUS = 77;\n public static final int CASE = 8;\n public static final int NEW = 6;\n public static final int RSHIFT = 88;\n public static final int STRING = 52;\n public static final int LESS = 66;\n public static final int BYTE = 26;\n public static final int AND = 83;\n public static final int PRIVATE = 38;\n public static final int STATIC = 39;\n public static final int LSHIFT = 87;\n public static final int XOR = 85;\n public static final int MINUSEQ = 91;\n}", "public SymbolicFeature(String symbol) {\r\n\t\tthis.symbol = symbol;\r\n\t\tthis.isResolved = false;\r\n\t}", "private void initRegs(){\n\n keyWordReg = \"\";\n\n for (String seg: keyWordMap.keySet()){\n\n keyWordReg += seg + \"|\";\n\n }\n\n symbolReg = \"[\\\\&\\\\*\\\\+\\\\(\\\\)\\\\.\\\\/\\\\,\\\\-\\\\]\\\\;\\\\~\\\\}\\\\|\\\\{\\\\>\\\\=\\\\[\\\\<]\";\n intReg = \"[0-9]+\";\n strReg = \"\\\"[^\\\"\\n]*\\\"\";\n idReg = \"[a-zA-Z_]\\\\w*\";\n\n tokenPatterns = Pattern.compile(idReg + \"|\" + keyWordReg + symbolReg + \"|\" + intReg + \"|\" + strReg);\n }", "public void addSymbol(String key, Symbol token) {\n this.variables.put(key, token);\n }", "SquareType ( char symbol ) {\n this.symbol = symbol;\n }", "private void initInstanceVars() {\n\t\tglobalSymTab = new Hashtable<String,ClassDecl>();\n\t\tcurrentClass = null;\n\t}", "@Override\r\n\t\tpublic void setMorelinesSymbol(Character symbol) {\n\r\n\t\t}", "private Globals() {\n\n\t}", "public String getSymbolName() {\n return this.name;\n }", "public Symbol(String nm , String tp, int adrs, String scp, int lngth){\n\t\tname = nm;\n\t\ttype = tp;\n\t\taddress = adrs;\n\t\tscope = scp;\n\t\tlength = lngth;\n\t\tnext = null;\n\t}", "private Syntaxes() {\r\n\t\tthis.map = new HashMap();\r\n\r\n\t\tregisterSyntax(new DirectoryStringSyntax());\r\n\t\tregisterSyntax(new OidSyntax());\r\n\t\tregisterSyntax(new IA5StringSyntax());\r\n\t\tregisterSyntax(new TelephoneNumberSyntax());\r\n\t\tregisterSyntax(new PrintableStringSyntax());\r\n\t\tregisterSyntax(new GuideSyntax());\r\n\t\tregisterSyntax(new PostalAddressSyntax());\r\n\t\tregisterSyntax(new NumericStringSyntax());\r\n\t\tregisterSyntax(new OctetStringSyntax());\r\n\t\tregisterSyntax(new DeliveryMethodSyntax());\r\n\t\tregisterSyntax(new TelexNumberSyntax());\r\n\t\tregisterSyntax(new TeletexTerminalIdentifierSyntax());\r\n\t\tregisterSyntax(new FacsimileTelephoneNumberSyntax());\r\n\t\tregisterSyntax(new DistinguishedNameSyntax());\r\n\r\n\t}", "public SymbolTable()\r\n {\r\n // Create the tables stack and add the top level\r\n tables = new ArrayDeque<HashMap<String,T>>();\r\n tables.add( new HashMap<String,T>() );\r\n \r\n // Ditto with the counts\r\n counts = new ArrayDeque<Integer>();\r\n counts.add( 0 );\r\n }", "public SymbolTableEntry(){\n\t}", "void setSymbolStream(ISymbolStreamComp aSymbolStream);", "public void buildSymbols() \n {\n scalars = new ArrayList <ScalarSymbol>();\n arrays = new ArrayList <ArraySymbol>();\n Stack <String> symbols = new Stack <String>();\n StringTokenizer st = new StringTokenizer(expr, delims, true); \n String token = \"\";\n \n while (st.hasMoreTokens())\n {\n token = st.nextToken();\n if ((token.charAt(0) >= 'a' && token.charAt(0) <= 'z') || (token.charAt(0) >= 'A' && token.charAt(0) <= 'Z' || token.equals(\"[\")))\n symbols.push(token); \n }\n while(!symbols.isEmpty())\n {\n token = symbols.pop();\n if (token.equals(\"[\"))\n {\n token = symbols.pop();\n ArraySymbol aSymbol = new ArraySymbol(token);\n if(arrays.indexOf(aSymbol) == -1)\n arrays.add(aSymbol);\n }\n else \n {\n ScalarSymbol sSymbol = new ScalarSymbol(token);\n if (scalars.indexOf(sSymbol) == -1)\n scalars.add(sSymbol);\n }\n }\n System.out.println(arrays);\n System.out.println(scalars);\n }", "@Override\n public void saveSymbol(SecuritySymbols symbol) {\n\n }", "String symbol();", "public interface Symbol {\r\n String getFullId();\r\n String getId(); // scoped to parent id\r\n String getFullParentId();\r\n String getDescriptiveName();\r\n String getHRef(String preDir);\r\n String getFileLocation();\r\n\r\n Type getType();\r\n\r\n enum Type {\r\n Dir,File,Other\r\n }\r\n}", "public Value restrictToSymbol() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= ~PRIMITIVE;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() == Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }", "private DSLGrammarMap buildDummyGrammarMap() {\n DSLGrammarMap grammarMap = new DSLGrammarMap();\n {\n FunctionSymbol f = grammarMap.mkFunctionSymbol(\"f\", \"int\");\n f.addParameter(\"int\", \"x1\");\n }\n {\n FunctionSymbol g = grammarMap.mkFunctionSymbol(\"g\", \"int\");\n g.addParameter(\"int\", \"x1\");\n }\n {\n FunctionSymbol eq = grammarMap.mkFunctionSymbol(\"eq\", \"bool\");\n eq.addParameter(\"Poly\", \"x1\");\n eq.addParameter(\"Poly\", \"x2\");\n }\n return grammarMap;\n }", "public C_Symbol(String symbol_str) {\n if(symbol_str.compareTo(String.valueOf((char)176)) == 0) {\n this.srch_Symbol = new C_Search_Symbol(symbol_str);\n this.nt = new C_NT();\n }\n else {\n this.nt = new C_NT(symbol_str);\n this.srch_Symbol = new C_Search_Symbol();\n }\n this.t = new C_T();\n this.epsilon = new C_Epsilon();\n \n }", "public void setMorelinesSymbol(Character symbol);", "public SymbolTable(){\r\n\t\tthis(INIT_CAPACITY);\r\n\t}", "public DynamicSymbol(String name) {\n this.setName(name);\n // this.setType(DynamicSymbolType.values()[info & 0x0f]);\n // this.setBinding(DynamicSymbolBinding.values()[info >>> 4]);\n // this.setVisibility(DynamicSymbolVisibility.values()[other & 0x03]);\n // this.setShndx(shndx);\n // this.setValue(value);\n // this.setSize(size);\n }", "public String getSymb() {\n\t\treturn symb;\n\t\t\n\t\t\n\t}", "private void make_extended() {\n Iterator it = this.getIncreased_grammar().getGrammar().iterator();\n C_Production tmp_pr;\n C_Symbol searcher_symbol; \n \n while(it.hasNext()) {\n tmp_pr = (C_Production)it.next();\n searcher_symbol = new C_Symbol(String.valueOf((char)176));\n tmp_pr.getRight().add(0, searcher_symbol);\n }\n }", "public SymbolTable getSymbolTable() {\n return this.symbolTable;\n }", "public Builder setSymbol(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n symbol_ = value;\n onChanged();\n return this;\n }", "public Symbol getSymbol() {\n\n return this.symbol;\n }", "public interface SymbolTable\n{\n /**\n * Indicates that a symbol's integer ID could not be determined. That's\n * generally the case when constructing value instances that are not yet\n * contained by a datagram.\n */\n public final static int UNKNOWN_SYMBOL_ID = -1;\n\n\n /**\n * Gets the unique name of this symbol table.\n *\n * @return the unique name, or {@code null} if {@link #isLocalTable()}.\n */\n public String getName();\n\n\n /**\n * Gets the version of this symbol table.\n *\n * @return at least one, or zero if {@link #isLocalTable()}.\n */\n public int getVersion();\n\n\n /**\n * Determines whether this symbol table is local, and therefore unnamed\n * and unversioned.\n * <p>\n * If this method returns {@code true}, then both {@link #isSharedTable()}\n * and {@link #isSystemTable()} will return {@code false}.\n */\n public boolean isLocalTable();\n\n /**\n * Determines whether this symbol table is shared, and therefore named,\n * versioned, and {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false}.\n */\n public boolean isSharedTable();\n\n /**\n * Determines whether this instance is substituting for an imported\n * shared table for which no exact match was found in the catalog.\n * Such tables are not authoritative and may not even have any symbol text\n * at all (as is the case when no version of an imported table is found).\n * <p>\n * Substitute tables are always shared, non-system tables.\n *\n */\n public boolean isSubstitute();\n\n /**\n * Determines whether this symbol table is a system symbol table, and\n * therefore shared, named, versioned, and\n * {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false} and {@link #isSharedTable()} will return\n * {@code true}.\n */\n public boolean isSystemTable();\n\n\n /**\n * Determines whether this symbol table can have symbols added to it.\n * Shared symtabs are always read-only.\n * Local symtabs can also be {@linkplain #makeReadOnly() made read-only}\n * on demand, which enables some optimizations when writing data but will\n * cause failures if new symbols are encountered.\n *\n * @return true if this table is read-only, false if symbols may\n * be added.\n *\n * @see #makeReadOnly()\n *\n\n */\n public boolean isReadOnly();\n\n\n /**\n * Prevents this symbol table from accepting any more new symbols.\n * Shared symtabs are always read-only.\n * Making a local symtab read-only enables some optimizations when writing\n * data, but will cause failures if new symbols are encountered.\n *\n * @see #isReadOnly()\n *\n\n */\n public void makeReadOnly();\n\n\n /**\n * Gets the system symbol table being used by this local table.\n * <p>\n * If {@link #isSystemTable()} then this method returns {@code this}.\n * Otherwise, if {@link #isSharedTable()} then this method returns\n * {@code null}.\n *\n * @return not <code>null</code>, except for non-system shared tables.\n */\n public SymbolTable getSystemSymbolTable();\n\n\n /**\n * Gets the identifier for the Ion version (and thus the system symbol\n * table) used by this table.\n * The version identifier is a string of the form {@code \"$ion_X_Y\"}.\n *\n * @return the version identifier; or {@code null} for non-system shared\n * tables.\n */\n public String getIonVersionId();\n\n\n /**\n * Gets the sequence of shared symbol tables imported by this (local)\n * symbol table. The result does not include a system table.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has the same name but different version and/or max_id,\n * then that entry will be a substitute table with the\n * correct version and max_id, wrapping the original shared symbol table\n * that was found.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has no entry with the same name, but the import\n * declaration has a max_id available, then that entry will\n * be a substitute table with max_id undefined symbols.\n *\n * @return {@code null} if this is a shared or system table, otherwise a\n * non-null but potentially zero-length array of shared tables (but no\n * system table).\n */\n public SymbolTable[] getImportedTables();\n\n\n /**\n * Gets the highest symbol id reserved by this table's imports (including\n * system symbols). Any id higher than this value is a local symbol\n * declared by this table. This value is zero for shared symbol tables,\n * since they do not utilize imports.\n */\n public int getImportedMaxId();\n\n\n /**\n * Gets the highest symbol id reserved by this table.\n *\n * @return the largest integer such that {@link #findKnownSymbol(int)} could\n * return a non-<code>null</code> result. Note that there is no promise\n * that it <em>will</em> return a name, only that any larger id will not\n * have a name defined.\n */\n public int getMaxId();\n\n\n /**\n * Adds a new symbol to this table, or finds an existing definition of it.\n * <p>\n * The resulting {@link SymbolToken} has the same String instance that\n * was first interned. In order to reduce memory\n * footprint, callers should generally replace their copy of the text with\n * the string in the result.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to intern.\n *\n * @return the interned symbol, with both text and SID defined; not null.\n *\n * @throws IonException if this symtab {@link #isReadOnly()} and\n * the text isn't already interned.\n *\n * @see #find(String)\n *\n\n */\n public SymbolToken intern(String text);\n\n\n /**\n * Finds a symbol already interned by this table.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to find.\n *\n * @return the interned symbol, with both text and SID defined;\n * or {@code null} if it's not already interned.\n *\n * @see #intern(String)\n *\n\n */\n public SymbolToken find(String text);\n\n\n /**\n * Gets the symbol ID associated with a given symbol name.\n *\n * @param name must not be null or empty.\n * @return the id of the requested symbol, or\n * {@link #UNKNOWN_SYMBOL_ID} if it's not defined.\n *\n * @throws NullPointerException if {@code name} is null.\n */\n public int findSymbol(String name);\n\n\n /**\n * Gets the interned text for a symbol ID.\n *\n * @param id the requested symbol ID.\n * @return the interned text associated with the symbol ID,\n * or {@code null} if the text is not known.\n *\n * @throws IllegalArgumentException if {@code id < 1}.\n */\n public String findKnownSymbol(int id);\n\n\n /**\n * Creates an iterator that will return all non-imported symbol names, in\n * order of their symbol IDs. The iterator will return {@code null} where\n * there is an undefined sid.\n * <p>\n * The first string returned by the iterator has a symbol ID that is one\n * more than {@link #getImportedMaxId()}, and the last string has symbol\n * ID equals to {@link #getMaxId()}.\n *\n * @return a new iterator.\n */\n public Iterator<String> iterateDeclaredSymbolNames();\n\n\n /**\n * Writes an Ion representation of this symbol table.\n *\n * @param writer must not be null.\n * @throws IOException if thrown by the writer.\n */\n public void writeTo(IonWriter writer)\n throws IOException;\n}", "public SymbolChecking(){\n\t\t\ttop=null;\n\t\t\tlength=0;\n\t\t}", "char getSymbol();", "public Symbol getBaseSymbol() {\n return base;\n }", "public interface ISymbol {\n\n\tBufferedImage getImage();\n\n\tvoid setImage(String icon);\n\n\tvoid setValue(int value);\n\n\tint getValue();\n}", "public TerminalSymbolFact(String name, ITokenizer tkz) {\r\n\t\tsuper(name, tkz);\r\n\t}", "protected void declareGlobalActionKeys() {\n\r\n }", "public HashMap<String, Fraction> getSymbolTable() {\n\n\t\treturn symbolTable;\n\t}", "@JsonIgnore\n public Collection<Symbol> getSymbols() {\n return symbols;\n }", "Character getSymbol(Environment environment);", "public interface constants {\n String BREAK1=\"α\";\n String BREAK2=\"Σ\";\n String BREAK3=\"æ\";\n}", "private void buildSymbolTables() {\n new SymbolsTableBuilder(data).read(this);//.dump();\n }", "private void initKeybinds() {\n spellbind1 = KeyBindingHelper.registerKeyBinding(new KeyBinding(\n \"key.malazan.spell1\", // The translation key of the keybinding's name\n InputUtil.Type.KEYSYM, // The type of the keybinding, KEYSYM for keyboard, MOUSE for mouse.\n GLFW.GLFW_KEY_Z, // The keycode of the key\n \"category.malazan.spells\"\n ));\n // The translation key of the keybinding's name\n // The type of the keybinding, KEYSYM for keyboard, MOUSE for mouse.\n // The keycode of the key\n // The translation key of the keybinding's category.\n spellbind2 = KeyBindingHelper.registerKeyBinding(new KeyBinding(\n \"key.malazan.spell2\", // The translation key of the keybinding's name\n InputUtil.Type.KEYSYM, // The type of the keybinding, KEYSYM for keyboard, MOUSE for mouse.\n GLFW.GLFW_KEY_X, // The keycode of the key\n \"category.malazan.spells\" // The translation key of the keybinding's category.\n ));\n }", "public void addEntry(Symbol sym){\n\t\tif(sym == null)\n\t\t\treturn;\n\t\t\n\t\tSymbolEntry se = new SymbolEntry(sym, scopeLevel);\n\t\tif(findEntryGlobal(sym.name) == null){\n\t\t\tList<SymbolEntry> l = new ArrayList<SymbolEntry>();\n\t\t\tl.add(0, se);\n\t\t\tsymbolMap.put(sym.name, l);\n\t\t}\n\t\telse\n\t\t\tsymbolMap.get(sym.name).add(0, se);\n\t\tscope.get(0).add(se);\n\t}", "public MacroList() {\n\t\tthis.macrosses = new HashMap<Integer, String>(12);\n\t}", "@Override\r\n\t\tpublic void setPromptSymbol(Character symbol) {\n\r\n\t\t}", "private Globals(){}", "private Map<String, Object> collectGlobals() {\n ImmutableMap.Builder<String, Object> envBuilder = ImmutableMap.builder();\n MethodLibrary.addBindingsToBuilder(envBuilder);\n Runtime.addConstantsToBuilder(envBuilder);\n return envBuilder.build();\n }", "CharacterTarget put(char[] symbols) throws PrintingException;", "public String getSymbol() {\n return symbol.get();\n }", "private SymbolData[]\n\t\t\tmakeSymbolMap(Map<StandardSymbolData, JsName> symbolTable) {\n\t\tfinal Set<String> nameUsed = new HashSet<String>();\n\t\tfinal Map<JsName, Integer> nameToFragment = new HashMap<JsName, Integer>();\n\t\tfor (int i = 0; i < jsProgram.getFragmentCount(); i++) {\n\t\t\tfinal Integer fragId = i;\n\t\t\tnew JsVisitor() {\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsForIn x, JsContext ctx) {\n\t\t\t\t\tif (x.getIterVarName() != null) {\n\t\t\t\t\t\tnameUsed.add(x.getIterVarName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsFunction x, JsContext ctx) {\n\t\t\t\t\tif (x.getName() != null) {\n\t\t\t\t\t\tnameToFragment.put(x.getName(), fragId);\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsLabel x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsNameOf x, JsContext ctx) {\n\t\t\t\t\tif (x.getName() != null) {\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsNameRef x, JsContext ctx) {\n\t\t\t\t\t// Obviously this isn't even that accurate. Some of them are\n\t\t\t\t\t// variable names, some of the are property. At least this\n\t\t\t\t\t// this give us a safe approximation. Ideally we need\n\t\t\t\t\t// the code removal passes to remove stuff in the scope\n\t\t\t\t\t// objects.\n\t\t\t\t\tif (x.isResolved()) {\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsParameter x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsVars.JsVar x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t// alcina - add classlits to name/fragment\n\t\t\t\t\tif (x.getName().getIdent().startsWith(\n\t\t\t\t\t\t\t\"com_google_gwt_lang_ClassLiteralHolder_\")) {\n\t\t\t\t\t\tnameToFragment.put(x.getName(), fragId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}.accept(jsProgram.getFragmentBlock(i));\n\t\t}\n\t\t// TODO(acleung): This is a temp fix. Once we know this is safe. We\n\t\t// new to rewrite it to avoid extra ArrayList creations.\n\t\t// Or we should just consider serializing it as an ArrayList if\n\t\t// it is that much trouble to determine the true size.\n\t\tList<SymbolData> result = new ArrayList<SymbolData>();\n\t\tfor (Map.Entry<StandardSymbolData, JsName> entry : symbolTable\n\t\t\t\t.entrySet()) {\n\t\t\tStandardSymbolData symbolData = entry.getKey();\n\t\t\tsymbolData.setSymbolName(entry.getValue().getShortIdent());\n\t\t\tInteger fragNum = nameToFragment.get(entry.getValue());\n\t\t\tif (fragNum != null) {\n\t\t\t\tsymbolData.setFragmentNumber(fragNum);\n\t\t\t}\n\t\t\tif (nameUsed.contains(entry.getValue().getIdent())\n\t\t\t\t\t|| entry.getKey().isClass()) {\n\t\t\t\tresult.add(symbolData);\n\t\t\t}\n\t\t}\n\t\treturn result.toArray(new SymbolData[result.size()]);\n\t}", "public void includeSymbol(String s) {\n if (!slexic.containsKey(s)) {\n int slexic_size = slexic.size();\n slexic.put(s, -(slexic_size + 1));\n slexicinv.add(s);\n }\n }" ]
[ "0.73861647", "0.73284364", "0.73284364", "0.6625465", "0.6462385", "0.6455517", "0.6279686", "0.6278546", "0.6231275", "0.6195824", "0.61885136", "0.6174541", "0.61600363", "0.6157886", "0.61264706", "0.61199397", "0.6058493", "0.6055728", "0.6054835", "0.60089636", "0.59782505", "0.5978104", "0.58506817", "0.5826336", "0.5819015", "0.5807086", "0.5784816", "0.5784816", "0.57466704", "0.57405317", "0.57392436", "0.5734726", "0.572974", "0.5723227", "0.5719815", "0.571504", "0.571337", "0.56948876", "0.56903857", "0.5675562", "0.5663347", "0.5661503", "0.5656875", "0.565414", "0.5639608", "0.5627674", "0.5620103", "0.5605823", "0.5594535", "0.5589131", "0.55866456", "0.5582166", "0.55597454", "0.55591935", "0.55569965", "0.55558294", "0.5551572", "0.55399555", "0.55384845", "0.5532566", "0.552238", "0.5514313", "0.5510155", "0.54982847", "0.54937786", "0.54926044", "0.54880315", "0.54806817", "0.5469674", "0.5465755", "0.54653275", "0.5449892", "0.5441561", "0.54404163", "0.5440124", "0.5437077", "0.5431569", "0.5420864", "0.54150033", "0.5367486", "0.53668183", "0.5353011", "0.53522825", "0.5347811", "0.5325887", "0.53218526", "0.5320216", "0.53172034", "0.53165936", "0.5309566", "0.5309076", "0.53073716", "0.5306817", "0.5295561", "0.5295459", "0.52810335", "0.52685547", "0.5267383", "0.5265668", "0.52653074", "0.5262249" ]
0.0
-1
push new local scope
public void enterBlock(CymbolParser.BlockContext ctx) { currentScope = new LocalScope(currentScope); saveScope(ctx, currentScope); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void pushScope() {\n Scope newScope = new Scope(currentScope);\n currentScope = newScope;\n }", "public void pushScope() {\n\t\tscopeStack.add(new Scope());\n\t\t\n\t}", "public void addNewScope(){\n List<String> varScope = new ArrayList<>();\n newVarInCurrentScope.add(varScope);\n\n List<String> objScope = new ArrayList<>();\n newObjInCurrentScope.add(objScope);\n }", "public void newScope() {\n Map<String, Type> scope = new HashMap<String, Type>();\n scopes.push(scope);\n Map<String, Type> typeScope = new HashMap<String, Type>();\n typeScopes.push(typeScope);\n }", "public void enterScope(){\n\t\tscope.add(0, new ArrayList<SymbolEntry>());\n\t\t++scopeLevel;\n\t}", "void addScope() {\n\t\tlist.addFirst(new HashMap<String, Sym>());\n\t}", "public void enterScope() {\n\t\tmap.add(new HashMap<K, V>());\n\t}", "static void EnterScope(){\r\n\t\tcurLevel++;\r\n\t\tScope scope = new Scope(curLevel);\r\n\t\t//scope.nextAdr = 3;\r\n\t\ttopScope.ant = scope;\r\n\t\tscope.sig = topScope; \r\n\t\ttopScope = scope;\r\n }", "Scope createScope();", "@Override\n\tpublic void enterStart(AplusplusParser.StartContext ctx) {\n\t\tglobalScope = new GlobalScope();\n\t\tcurrentScope = globalScope;\n\t\tsaveScope(ctx, currentScope);\n\t}", "public void OpenScope(){\n Scope newScope = new Scope();\n currentScope.AddChildScope(newScope);\n currentScope = newScope;\n }", "public void openScope() {\n scopes.add(new Scope<>(++currentScopeLevel));\n }", "public void addGlobalToStack(int adr){\n instructions.add(\"# start of adding global variable to stack\");\n instructions.add(\"lw $a0, \" + adr + \"($gp)\");\n instructions.add(\"sw $a0, 0($sp)\");\n instructions.add(\"addiu $sp, $sp, -4\");\n instructions.add(\"# end of adding global variable to stack\");\n }", "@Override \n\tpublic void enterScenStmtBlock(@NotNull ScenStmtBlockContext ctx) {\n\t\tcurrentScope = new LocalScope(currentScope);\n\t\t// Save the content of this scope to collection of scopes FIXME\n\t\tsaveScope(ctx, currentScope);\n\t}", "private final void push(Object ob) {\r\n\t\teval_stack.add(ob);\r\n\t}", "private void buildScope(EObject original, ChangeSet local, ChangeSet remote) {\n scope = ScopeFactory.eINSTANCE.createDSEMergeScope();\n scope.setRemote(remote);\n scope.setLocal(local);\n scope.setOrigin(EMFHelper.clone(original));\n scope.setCemetery(ScopeFactory.eINSTANCE.createCemetery());\n }", "protected void popScope() {\n currentScope = currentScope.getParent();\n }", "public boolean createLocalScope(Function f){\n if(localConstantScopes.containsKey(f) || localVariableScopes.containsKey(f)){\n return false;\n }\n\n localConstantScopes.putIfAbsent(f, new HashMap<>());\n localVariableScopes.putIfAbsent(f, new HashMap<>());\n \n return true;\n }", "private static Store liftGlobals(ScriptNode script, Trace trace, Environment env, Store store) {\n\tSet<String> globals = GlobalVisitor.getGlobals(script);\n\tint i = -1000;\n\tfor (String global : globals) {\n\t Address address = trace.makeAddr(i, \"\");\n\t // Create a dummy variable declaration. This will not exist in the\n\t // output, because the value and variable initialization exists\n\t // outside the file.\n\t Name dummyVariable = new Name();\n\t env.strongUpdateNoCopy(global, Variable.inject(global, address, Change.bottom(),\n\t\t Dependencies.injectVariable(dummyVariable)));\n\t store = store.alloc(address,\n\t\t BValue.top(Change.u(), Dependencies.injectValue(dummyVariable)), dummyVariable);\n\t i--;\n\t}\n\n\treturn store;\n\n }", "public void pushScope(Class cls, Generics generics) {\n if (Log.TRACE) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Settting a new generics scope for class \");\n sb.append(cls.getName());\n sb.append(\": \");\n sb.append(generics);\n Log.trace(\"generics\", sb.toString());\n }\n this.stack.addFirst(generics);\n }", "public void addNewVarInCurrentScope(String varName, String graphNodeId){\n symbolTable.computeIfAbsent(varName, v -> new ArrayList<>()).add(graphNodeId);\n newVarInCurrentScope.get(newVarInCurrentScope.size() - 1).add(varName);\n }", "public LocalScope getlocalScope() {\n return localScope;\n }", "void setNested(LocalScope scope) {\r\n nested = scope;\r\n }", "public void popScope() {\n this.stack.removeFirst();\n }", "void push(Location loc) {\n // -\n top = new LocationStackNode(loc, top);\n }", "private ScriptableObject makeChildScope(String name, Scriptable scope) {\r\n // This code is based on sample code from Rhino's website:\r\n // http://www.mozilla.org/rhino/scopes.html\r\n \r\n // I changed it to use a ScriptableObject instead of Context.newObject()\r\n ScriptableObject child = new NamedScriptableObject(name);\r\n \r\n // Set the prototype to the scope (so we have access to all its methods \r\n // and members). \r\n child.setPrototype(scope);\r\n \r\n // We want \"threadScope\" to be a new top-level scope, so set its parent \r\n // scope to null. This means that any variables created by assignments\r\n // will be properties of \"threadScope\".\r\n child.setParentScope(null);\r\n \r\n return child;\r\n }", "private static Scope buildScope() {\n return Scope.build(Scope.R_BASICPROFILE, Scope.W_SHARE, Scope.R_EMAILADDRESS);\n }", "public LocalScope nestedLocalScope() {\r\n return nested;\r\n }", "public void setParentLocalScope(LocalScope localScope) {\n\t\tthis.parentLocalScope = localScope;\n\t}", "private static Scope buildScope() {\n return Scope.build(Scope.R_BASICPROFILE, Scope.R_EMAILADDRESS);\n }", "Scope(String name, Scope parent) {\n this.name = name;\n this.parent = parent;\n this.variables = new HashMap<>();\n }", "public abstract String\n openScope\n (\n boolean first, \n int level \n );", "public LocalVariableGen addLocalVariable(String name, Type type, InstructionHandle start, InstructionHandle end) {\n/* 170 */ return this._allocatorInit ? addLocalVariable2(name, type, start) : super.addLocalVariable(name, type, start, end);\n/* */ }", "public void popScope() {\n\t\tscopeStack.pop();\n\t}", "protected Scope swapCurrentScope(Scope newScope) {\n final Scope result = currentScope;\n currentScope = newScope;\n return result;\n }", "private static Scope buildScope() {\n return Scope.build(Scope.R_BASICPROFILE, Scope.W_SHARE);\n }", "public Scope(Scope parent){\r\n\t\tthis. parent = parent;\r\n\t}", "public void setScope(JexlEngine.Scope theScope) {\r\n this.scope = theScope;\r\n }", "public void push()\n {\n\tsetIndentLevel(indentLevel + 1);\n }", "public void setScope(Scope scope) {\n this.scope = scope;\n }", "public void setScope(Scope scope) {\n this.scope = scope;\n }", "public void setScope(Scope scope) {\n this.scope = scope;\n }", "@Override\n\t\t\t\tpublic void push(State s) throws RPLException {\n\t\t\t\t\tif (function.containsCachedValue(values)) {\n\t\t\t\t\t\t// Push out rest\n\t\t\t\t\t\tboolean start = false;\n\t\t\t\t\t\tfor (RankedItem<Object> ci: getFunction().getCachedValue(values)) {\n\t\t\t\t\t\t\tState cs = new State(in.create(assignToVar, ci.item), ci.rank);\n\t\t\t\t\t\t\tif (!start && s.equals(cs)) {\n\t\t\t\t\t\t\t\tstart = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (start) {\n\t\t\t\t\t\t\t\tout.push(cs);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthrow stop;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tVarStore v = s.getVarStore();\n\t\t\t\t\t\tif (!v.containsVar(\"$return\")) {\n\t\t\t\t\t\t\tthrow new RPLMissingReturnValueException(function);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturnValues.add(new RankedItem<Object>(v.getValue(\"$return\"), s.getRank()));\n\t\t\t\t\t\tout.push(v.getParentOfClosure(assignToVar, new Variable(\"$return\")), s.getRank());\n\t\t\t\t\t}\n\t\t\t\t}", "public void setScope(Scope scp) {\n this.scope = scp;\n }", "public interface Scope {\r\n\r\n /**\r\n * Gets a named object out of the scope\r\n *\r\n * @param key - the name of the object to get\r\n * @return the object\r\n */\r\n public Object getAttribute(Object key);\r\n\r\n /**\r\n * Puts a named value into the scope\r\n *\r\n * @param key - the name of the object to put\r\n * @param value - the value to associate with that name\r\n */\r\n public void setAttribute(Object key, Object value);\r\n\r\n /**\r\n * Clears all data out of the scope\r\n */\r\n public void reset();\r\n\r\n}", "protected Scope computeEnclosingScope()\n/* */ {\n/* 48 */ Class localClass1 = (Class)getRecvr();\n/* */ \n/* 50 */ Method localMethod = localClass1.getEnclosingMethod();\n/* 51 */ if (localMethod != null)\n/* */ {\n/* */ \n/* 54 */ return MethodScope.make(localMethod);\n/* */ }\n/* 56 */ Constructor localConstructor = localClass1.getEnclosingConstructor();\n/* 57 */ if (localConstructor != null)\n/* */ {\n/* */ \n/* 60 */ return ConstructorScope.make(localConstructor);\n/* */ }\n/* 62 */ Class localClass2 = localClass1.getEnclosingClass();\n/* */ \n/* */ \n/* 65 */ if (localClass2 != null)\n/* */ {\n/* */ \n/* 68 */ return make(localClass2);\n/* */ }\n/* */ \n/* */ \n/* 72 */ return DummyScope.make();\n/* */ }", "String getScope();", "public void addScopeMetric(int sgold, int ssystem, int stp, int sfp,\n \t\t\tint sfn, float sprec, float srec, float sf) {\n \t\tthis.sgold = sgold;\n \t\tthis.ssystem = ssystem;\n \t\tthis.stp = stp;\n \t\tthis.sfp = sfp;\n \t\tthis.sfn = sfn;\n \t\tthis.sprec = sprec;\n \t\tthis.srec = srec;\n \t\tthis.sf = sf;\n \t}", "public void addEntry(Symbol sym){\n\t\tif(sym == null)\n\t\t\treturn;\n\t\t\n\t\tSymbolEntry se = new SymbolEntry(sym, scopeLevel);\n\t\tif(findEntryGlobal(sym.name) == null){\n\t\t\tList<SymbolEntry> l = new ArrayList<SymbolEntry>();\n\t\t\tl.add(0, se);\n\t\t\tsymbolMap.put(sym.name, l);\n\t\t}\n\t\telse\n\t\t\tsymbolMap.get(sym.name).add(0, se);\n\t\tscope.get(0).add(se);\n\t}", "public ScopeManager(){\n globalConstants = new HashMap<>();\n globalVariables = new HashMap<>();\n\n currentConstants = null;\n currentVariables = null;\n\n temporaryConstants = new ArrayList<>();\n temporaryVariables = new ArrayList<>();\n\n localVariableScopes = new HashMap<>();\n localConstantScopes = new HashMap<>();\n }", "protected void enterBlockStmt(BlockStmt blockStmt) {\n enclosingBlocks.addFirst(blockStmt);\n if (blockStmt.introducesNewScope()) {\n pushScope();\n }\n }", "Scope getEnclosingScope();", "public Variable addNewVar(String rootName, Type t, Use u) {\n\t\tNameSSA ssa = new NameSSA(rootName);\n\t\tname.put(rootName, ssa);\n\t\tVariable v = new Variable(ssa.current(), t, u);\n\t\tvar.put(ssa.current(), v);\n\t\tif (VerboseLevel.DEBUG.mayPrint()) {\n\t\t\tSystem.out.println(\"SymbolTable.addNewVar: \" + v.name());\n\t\t}\n\t\t// to add the old value of the variable (i.e. before function call)\n\t\tv.setOld(v);\n\t\treturn v;\n\t}", "static void insTablaS(){\r\n\t\tObj aux2=aux;\r\n\t\twhile(aux2.next!=null){\r\n\t\t\taux2=aux2.next;\r\n\t\t}\r\n\t\taux2.next=topScope.locals;\r\n\t\ttopScope.locals=aux;\r\n\t\taux=null;\r\n\t}", "@Override\r\n\tpublic void addValue(final IScope scope, final T value) {}", "private void addLocalScopes(String apiName, Set<URITemplate> uriTemplates, String organization)\n throws APIManagementException {\n\n int tenantId = APIUtil.getInternalOrganizationId(organization);\n String tenantDomain = APIUtil.getTenantDomainFromTenantId(tenantId);\n Map<String, KeyManagerDto> tenantKeyManagers = KeyManagerHolder.getTenantKeyManagers(tenantDomain);\n //Get the local scopes set to register for the API from URI templates\n Set<Scope> scopesToRegister = getScopesToRegisterFromURITemplates(apiName, organization, uriTemplates);\n //Register scopes\n for (Scope scope : scopesToRegister) {\n for (Map.Entry<String, KeyManagerDto> keyManagerDtoEntry : tenantKeyManagers.entrySet()) {\n KeyManager keyManager = keyManagerDtoEntry.getValue().getKeyManager();\n if (keyManager != null) {\n String scopeKey = scope.getKey();\n try {\n // Check if key already registered in KM. Scope Key may be already registered for a different\n // version.\n if (!keyManager.isScopeExists(scopeKey)) {\n //register scope in KM\n keyManager.registerScope(scope);\n } else {\n if (log.isDebugEnabled()) {\n log.debug(\"Scope: \" + scopeKey +\n \" already registered in KM. Skipping registering scope.\");\n }\n }\n } catch (APIManagementException e) {\n log.error(\"Error while registering Scope \" + scopeKey + \"in Key Manager \" +\n keyManagerDtoEntry.getKey(), e);\n }\n\n }\n }\n }\n addScopes(scopesToRegister, tenantId);\n }", "public void assign (String name, StatementParse node, Closure parent){\n Closure exist = find_var(name);\n Value newClosure;\n if (node.getName().equals(\"function\")){\n newClosure = new Closure(parent, node);\n } else {\n newClosure = new Environment(parent, node);\n }\n exist.getValues().put(name, newClosure);\n }", "private static Map pushOnStack(SessionState state)\n\t{\n\t\tMap current_stack_frame = null;\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\tif(operations_stack.size() < MAXIMUM_SUSPENDED_OPERATIONS_STACK_DEPTH)\n\t\t{\n\t\t\tcurrent_stack_frame = (Map) operations_stack.push(new Hashtable());\n\t\t}\n\t\tObject helper_mode = state.getAttribute(STATE_RESOURCES_HELPER_MODE);\n\t\tif(helper_mode != null)\n\t\t{\n\t\t\tcurrent_stack_frame.put(STATE_RESOURCES_HELPER_MODE, helper_mode);\n\t\t}\n\t\treturn current_stack_frame;\n\n\t}", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void declare (String name, StatementParse node, Closure parent){\n if (contains(name)){\n throw new VariableAlreadyDefined();\n }\n Value newClosure;\n if (node.getName().equals(\"function\")){\n newClosure = new Closure(parent, node);\n } else {\n newClosure = new Environment(parent, node);\n }\n\n this.values.put(name, newClosure);\n }", "public void push() throws EvaluationException {\n\t\tsetTimeout(Integer.MAX_VALUE);\n\t\tprintln(\"(push 1)\");\n\t\tcheckSuccess();\n\t\tsymbolsByStackPos.addLast(new HashSet<>());\n\t}", "public interface Scope {\n public Object getVar(String varName);\n\n public Scope defineVar(String varName, Object value);\n\n public Scope defineConst(String varName, Object value);\n\n public Scope setVar(String varName, Object value);\n\n public Scope delVar(String varName);\n}", "public void enterFile(CymbolParser.FileContext ctx) {\n globals = new GlobalScope(null);\n currentScope = globals;\n }", "public void setScope(java.lang.String scope) {\r\n this.scope = scope;\r\n }", "public void endScope(){\n if(front == null) return;\n\n ListNode<String,Object> temp = front;\n ListNode<String,Object> prev = front;\n\n while(temp != null && temp.scope != scope){\n prev = temp;\n temp = temp.next;\n }\n\n prev.next = null;\n if(prev.scope == scope)\n prev = null;\n front = prev;\n scope--;\n }", "public boolean enterTemporaryScope(){\n if(temporaryConstants == null || temporaryVariables == null){\n temporaryConstants = new ArrayList<>();\n temporaryVariables = new ArrayList<>();\n }\n temporaryConstants.add(new HashMap<>());\n temporaryVariables.add(new HashMap<>());\n return true;\n }", "private void localVariableDeclaration(Modifier modify, Scope scope, Vector queue)\r\n {\r\n if (nextSymbol == Keyword.FINALSY)\r\n {\r\n modify.add(nextSymbol.value);\r\n lookAhead();\r\n }\r\n\r\n modify.check(modify.fields | modify.access);\r\n Type t = type();\r\n\r\n variableDeclarators(modify, t, scope, queue);\r\n }", "public void push(Symbol i) {\n opStack.push(new Entry(i));\n }", "public GlobalScope() {\n super(null);\n }", "public Scope startScope(Span span) {\n // TODO we could do this in one go, but TracingContextUtils.CONTEXT_SPAN_KEY is private\n io.opentelemetry.context.Context newContext =\n io.opentelemetry.context.Context.current().with(CONTEXT_SERVER_SPAN_KEY, span).with(span);\n return newContext.makeCurrent();\n }", "static Obj NewObj (String name,int kind) {\r\n\t\tObj p, obj = new Obj();\r\n obj.name = new String(name); \r\n\t\tobj.type = null; obj.kind = kind;\r\n\t\tobj.level = curLevel;\r\n\t\tp = topScope.locals;\r\n\t\t/*Para buscar si el nb de la variable nueva ya esta!!!*/\r\n\t\twhile (p != null) { \r\n \t \tif (p.name.equals(name)) Parser.SemError(1);\r\n\t\t\tp = p.next;\r\n\t\t}\r\n \t//FILO!!\r\n obj.next = topScope.locals; \r\n\t\ttopScope.locals = obj;\r\n \t//if (kind == vars) {}\r\n \t//obj.adr = topScope.nextAdr; topScope.nextAdr++;\r\n \t//obj.view();\r\n\t\treturn obj;\r\n }", "public final void push(final Symbol symbol) {\n\t\tEntry entry = new Entry(symbol);\n\t\topstack.push(entry);\n\t}", "public LocalVariable defineLocalVariable(QName name, XQType type,\n Expression declaring)\n {\n \n LocalVariable decl = newLocal(name, type, declaring);\n lastLocal.addAfter(decl);\n lastLocal = decl;\n return decl;\n }", "public BindState pushCallStack(\n List<CParameterDeclaration> parameters, Set<AccessPath>\n localVars, CFAEdge edge, List<AbstractState> otherStates) {\n // Note: we do not retain access paths out of current range\n PathCopyingPersistentTree<String, BindingPoint> localDefs = PathCopyingPersistentTree.of();\n // set local variables to undefined\n for (AccessPath local : localVars) {\n localDefs = localDefs.setElementAndCopy(\n AccessPath.toStrList(local),\n UndefinedBindingPoint.getInstance()\n );\n }\n // set parameters as defined by the actual arguments\n for (CParameterDeclaration cpd : parameters) {\n localDefs = localDefs.setElementAndCopy(\n AccessPath.toStrList(new AccessPath(cpd)),\n new ProgramBinding(edge, otherStates)\n );\n }\n return new BindState(this, localDefs, this.globalDefs);\n }", "public void CloseScope(){\n currentScope = currentScope.GetParent();\n }", "public void addScopeRegistrationListener(ScopeEventListener listener);", "public int scopeUp() { // TODO: Rename scopeOut\n // First: Invalidate changed values\n for (List<ManagedParameter> plist : seenTypes.values()) {\n for (ManagedParameter param : plist) {\n if (param.setInScope == currentScope) {\n invalidate(param.type);\n } else if ((param.setInScope > currentScope) &&\n ((param.status != ValueStatus.INVALIDATED) ||\n (param.status != ValueStatus.CLOSED))) {\n throw new IllegalStateException(\"Something went wrong in leaving a sub-subordinate scope\");\n }\n }\n }\n currentScope--;\n return currentScope;\n }", "protected void threadLocalPush(Node<T> node) {\n stackThreadLocal.get().push(node);\n }", "public void add(JavaType type, JavaScope s) {\n\t\tif (type == null)\n\t\t\tthrow new NullPointerException();\n\t\tthis.sig.add(new TypeContainer(type, s));\n\t}", "public LocalVariableGen addLocalVariable2(String name, Type type, InstructionHandle start) {\n/* 177 */ return addLocalVariable(name, type, this._slotAllocator.allocateSlot(type), start, null);\n/* */ }", "public void scopeTest(int value) {\r\n\t\tint localScope = 20 ;\r\n\t\tSystem.out.println(globalScope);\r\n\t\tSystem.out.println(localScope);\r\n\t\tSystem.out.println(value);\r\n\t}", "public void push(ILocation item)\n {\n stack.add(top, item);\n top++;\n }", "@VTID(7)\n void treeScope(\n mmarquee.automation.uiautomation.TreeScope scope);", "public void jumpOutOfScope(){\n List<String> varNames = newVarInCurrentScope.get(newVarInCurrentScope.size() - 1);\n for(String varName : varNames){\n symbolTable.get(varName).remove(symbolTable.get(varName).size() - 1);\n }\n newVarInCurrentScope.remove(newVarInCurrentScope.size() - 1);\n\n // 删除 typeTable 和 newObjInCurrentScope 中所有属于当前作用域的对象及类型\n List<String> objNames = newObjInCurrentScope.get(newObjInCurrentScope.size() - 1);\n for(String objName : objNames){\n typeTable.get(objName).remove(typeTable.get(objName).size() - 1);\n }\n newObjInCurrentScope.remove(newObjInCurrentScope.size() - 1);\n }", "public TransactionScope<Txn> localScope() {\r\n TransactionScope<Txn> scope = mLocalScope.get();\r\n if (scope == null) {\r\n int state;\r\n synchronized (this) {\r\n state = mState;\r\n scope = new TransactionScope<Txn>(this, state != OPEN);\r\n mAllScopes.put(scope, null);\r\n }\r\n mLocalScope.set(scope);\r\n if (state == SUSPENDED) {\r\n // Immediately suspend new scope.\r\n scope.getLock().lock();\r\n }\r\n }\r\n return scope;\r\n }", "public void push(String name);", "SecurityScope createSecurityScope();", "public boolean startsInnerScope() {\n return false;\n }", "LocalReference createLocalReference();", "private static IJavaSearchScope createPluginSearchScope() {\n\t\tHashSet<IJavaElement> scope = new HashSet<IJavaElement>();\n\t\tfor (IPluginModelBase base : PluginRegistry.getActiveModels()) {\n\t\t\tIResource resource = base.getUnderlyingResource();\n\t\t\tif (resource != null) {\n\t\t\t\tIJavaProject jp = JavaCore.create(resource.getProject());\n\t\t\t\tif (jp != null) {\n\t\t\t\t\tscope.add(jp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//add the default proxy search project\n\t\tIProject proxy = ResourcesPlugin.getWorkspace().getRoot().getProject(\"External Plug-in Libraries\");\n\t\tif (proxy != null) {\n\t\t\tIJavaProject jp = JavaCore.create(proxy);\n\t\t\tscope.add(jp);\n\t\t}\n\t\treturn SearchEngine.createJavaSearchScope(scope.toArray(new IJavaElement[scope.size()]));\n\t}", "private LocalVariables locals(){\n\t\treturn frame.getLocals();\n\t}", "public JSONBuilder withRootScope(String name) {\n\t\tthis.rootScope = name;\n\t\treturn this;\n\t}", "@Override\n public void exitScope(Traversal t) {\n Exp root = t.getScopeRoot();\n ScopeInfo si = tmpVars.get(root);\n\n if (si != null) {\n if (si.hasDeclarationsToRemove()) {\n si.removeDeclarations();\n } else {\n // Release the ScopeInfo storage.\n tmpVars.remove(root);\n }\n }\n }", "public void push(T newEntry) {\n ensureCapacity();\n stack[topIndex + 1] = newEntry;\n topIndex++;\n }", "protected void initScopeInfo()\n {\n String className = null;\n Object target = getTarget();\n if (target != null)\n className = target.getClass().getName();\n setScopeInfo(new AbstractScopeInfo(getName(), className));\n }", "@Override\n public Void visitHavocStmt(SimpleCParser.HavocStmtContext ctx) {\n String varName = ctx.var.ident.getText();\n\n if(initialScope.getVariable(varName) != null && internalScopes.getVariable(varName) == null) {\n modset.add(initialScope.getVariable(varName));\n }\n\n return null;\n }", "public void pushContext() {\n super.pushContext();\n if (fCurrentContext + 1 == fValidContext.length) {\n boolean[] contextarray = new boolean[fValidContext.length * 2];\n System.arraycopy(fValidContext, 0, contextarray, 0, fValidContext.length);\n fValidContext = contextarray;\n }\n\n fValidContext[fCurrentContext] = true;\n }", "public void exitScope(){\n\t\tfor (SymbolEntry se: scope.get(0)){\n\t\t\tsymbolMap.get(se.symbol.name).remove(0);\n\t\t\tif(symbolMap.get(se.symbol.name).isEmpty())\n\t\t\t\tsymbolMap.remove(se.symbol.name);\n\t\t}\n\t\tscope.remove(0);\n\t\t--scopeLevel;\n\t}" ]
[ "0.8396584", "0.8138171", "0.78224254", "0.72247934", "0.71386003", "0.7092773", "0.68642974", "0.6737621", "0.6602198", "0.6444328", "0.6401495", "0.6349265", "0.60050637", "0.5991126", "0.592055", "0.58071136", "0.5709486", "0.5626885", "0.557631", "0.5574015", "0.5525896", "0.5509549", "0.5471958", "0.54636216", "0.5439975", "0.54281634", "0.541498", "0.541356", "0.54039955", "0.5378208", "0.53731084", "0.53643054", "0.5361141", "0.5313978", "0.5277976", "0.525325", "0.5237627", "0.52278936", "0.5225411", "0.5225035", "0.5225035", "0.5225035", "0.52202296", "0.52181774", "0.5200671", "0.5192257", "0.518384", "0.5174049", "0.5166408", "0.51587105", "0.51556087", "0.51513237", "0.5133338", "0.51289994", "0.5125911", "0.5124751", "0.5122564", "0.5107321", "0.5107123", "0.5107123", "0.5107123", "0.5105854", "0.51004875", "0.5097541", "0.50973684", "0.509522", "0.5088638", "0.50736195", "0.50499827", "0.50283766", "0.50067514", "0.49963614", "0.49959615", "0.49898916", "0.49814284", "0.49773353", "0.4975999", "0.49708503", "0.49688742", "0.49619395", "0.4958139", "0.4944625", "0.49299923", "0.49251494", "0.49247286", "0.49223828", "0.49174047", "0.49150723", "0.49074665", "0.48864245", "0.48764697", "0.48697636", "0.4864889", "0.48622668", "0.48601967", "0.48595098", "0.48584378", "0.48513594", "0.4836744", "0.48365915" ]
0.5394216
29
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); char[][] map = new char[n][n]; for(int i = 0; i < n; i++) { String line = sc.next(); for(int j = 0; j < n; j++) { map[i][j] = line.charAt(j); } } int x = sc.nextInt(), y = sc.nextInt(); sc.close(); boolean[][] flag = new boolean[n][n]; dfs(map, flag, x, y, n); System.out.println(value); }
{ "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
We've bound to LocalService, cast the IBinder and get LocalService instance
@Override public void onServiceConnected(ComponentName className, IBinder service) { GrcBoxBinder binder = (GrcBoxBinder) service; grcBoxCli = binder.getService(); mBound = true; if(!grcBoxCli.isRegistered()){ grcBoxCli.register(getResources().getString(R.string.app_name)); } for(GrcBoxRule rule: pendingRules){ new NewRuleTask("").execute(rule); } pendingRules.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "public void doBindService() {\n\r\n\t\tIntent serviceIntent = new Intent(MainActivity.this, LocalService.class);\r\n\r\n\t\tstartService(serviceIntent);\r\n\t\t// bindService(serviceIntent, mServiceConnection, 0);\r\n\t\tbindService(serviceIntent, mServiceConnection, BIND_AUTO_CREATE);\r\n\r\n\t\tmIsBound = true;\r\n\t}", "private void doLocalCall() {\n\n // Create the intent used to identify the bound service\n final Intent boundIntent = new Intent(this, MyLocalBoundService.class);\n\n // Lets get a reference to it (asynchronously, hence the ServiceConnection object)\n bindService(boundIntent, new ServiceConnection() {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n // Let's call it!\n ((MyLocalBoundServiceContract) service).doSomething(10);\n // We're done. Free the reference to the service\n unbindService(this);\n }\n\n @Override\n public void onServiceDisconnected(ComponentName name) {\n // Called upon unbind, just in case we need some cleanup\n }\n }, Context.BIND_AUTO_CREATE);\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n BinderService.LocalBinder binder = (BinderService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n MyService.LocalBinder binder = (MyService.LocalBinder) service;\n myService = binder.getService();\n isBound = true;\n\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ServerService.LocalBinder binder = (ServerService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "public /* synthetic */ IInterface mo27354a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.location.internal.IGoogleLocationManagerService\");\n return queryLocalInterface instanceof zzao ? (zzao) queryLocalInterface : new C10508m(iBinder);\n }", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn new LocalBinder();\n\t}", "public LocalRichService getLocalRichService() {\n\t\treturn localRichService;\n\t}", "@Override\n public IBinder onBind(Intent intent) {\n return localBinder;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalBinder binder = (LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "public static IMountService asInterface(IBinder obj) {\n if (obj == null) {\n return null;\n }\n IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (iin != null && iin instanceof IMountService) {\n return (IMountService) iin;\n }\n return new IMountService.Stub.Proxy(obj);\n }", "public static com.sogou.speech.wakeup.wakeupservice.IWakeupService asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.sogou.speech.wakeup.wakeupservice.IWakeupService))) {\nreturn ((com.sogou.speech.wakeup.wakeupservice.IWakeupService)iin);\n}\nreturn new com.sogou.speech.wakeup.wakeupservice.IWakeupService.Stub.Proxy(obj);\n}", "void doBindService() {\r\n\r\n bindService(new Intent(MainActivity.this, CurrentLocationUtil.class),\r\n connection, // ServiceConnection object\r\n Context.BIND_AUTO_CREATE); // Create service if not\r\n\r\n isBound = true;\r\n\r\n }", "public interface FloatServiceBinder {\n /**\n * 启动并且绑定服务完成\n * @param componentName ServiceConnection的componentName\n * @param iBinder ServiceConnection的iBinder\n */\n void onBindSucceed(ComponentName componentName, IBinder iBinder);\n\n /**\n * 当服务意外死亡时触发\n * @param componentName ServiceConnection的componentName\n */\n void onServiceDisconnected(ComponentName componentName);\n}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn serviceBinder;\n\t}", "public static jag.kumamoto.apps.gotochi.stamprally.IArriveWatcherService asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof jag.kumamoto.apps.gotochi.stamprally.IArriveWatcherService))) {\nreturn ((jag.kumamoto.apps.gotochi.stamprally.IArriveWatcherService)iin);\n}\nreturn new jag.kumamoto.apps.gotochi.stamprally.IArriveWatcherService.Stub.Proxy(obj);\n}", "public void bind() {\n\n Intent startintent = new Intent(context, MafService.class);\n startintent.setAction(\"com.baidu.maf.service\");\n\n if(ServiceControlUtil.showInSeperateProcess(context)) {\n try {\n context.startService(startintent);\n } catch (Exception e) {\n LogUtil.e(TAG, \"fail to startService\", e);\n }\n }\n\n //Intent intent = new Intent(InAppApplication.getInstance().getContext(), OutAppService.class);\n\n\n boolean result =\n context.bindService(startintent, mConnection, Context.BIND_AUTO_CREATE);\n\n LogUtil.printMainProcess(\"Service bind. reslut = \" + result);\n LogUtil.printMainProcess(\"bind. serverMessenger = \" + serverMessenger);\n mIsBound = result;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n TranscriptDownService.LocalBinder binder = (TranscriptDownService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "public static LocalVpnService getInstance() {\n\n return instance;\n }", "@Override\n public IBinder onBind(Intent intent)\n {\n Log.d(\"MyService\", \"return\");\n return new MyBind();\n }", "@Override\n public void onServiceConnected(ComponentName className, IBinder service) {\n OpenVPNService.LocalBinder binder = (OpenVPNService.LocalBinder) service;\n mService = binder.getService();\n }", "public java.lang.String getServiceName(){\n return localServiceName;\n }", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\tLog.i(TAG, \"service on bind\");\n\t\treturn mBinder;\n\t}", "public static com.itheima.alipay.IALiPayService asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.itheima.alipay.IALiPayService))) {\nreturn ((com.itheima.alipay.IALiPayService)iin);\n}\nreturn new com.itheima.alipay.IALiPayService.Stub.Proxy(obj);\n}", "public IBinder asBinder() {\n return this;\n }", "public IBinder asBinder() {\n return this;\n }", "void doBindService() {\n\n if (bindService(new Intent(MainActivity.this, PositionService.class),\n mConnection, Context.BIND_AUTO_CREATE)) {\n mBound = true;\n } else {\n Log.e(\"MY_APP_TAG\", \"Error: The requested service doesn't \" +\n \"exist, or this client isn't allowed access to it.\");\n }\n }", "public static android.app.IInstantAppResolver asInterface(android.os.IBinder obj)\n {\n if ((obj==null)) {\n return null;\n }\n android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (((iin!=null)&&(iin instanceof android.app.IInstantAppResolver))) {\n return ((android.app.IInstantAppResolver)iin);\n }\n return new android.app.IInstantAppResolver.Stub.Proxy(obj);\n }", "@Override\n public IBinder onBind(Intent intent) {\n \tinit(\"scream\", Boolean.parseBoolean(intent.getStringExtra(MessageCode.DEBUG_FLAG)));\n \t\n \tStrandLog.d(ScreamService.TAG, \"Binding Service started\");\n \t\n\t\tIntent i = new Intent(this, ScreamService.class);\n\t\ti.putExtra(MessageCode.PARAM_LIST, intent.getStringExtra(MessageCode.PARAM_LIST));\n\t\tstartService(i);\n\n\t\treturn mMessenger.getBinder();\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tmBinder = (Stub) service;\n\t\t\tLog.d(TAG, \"mBinder init\");\n\t\t}", "public void doBind(){\n\t\tboolean isBound = settings.getBoolean(\"isBound\", false);\n\t\tif(!isBound){\n \t\ti = new Intent(context, LocationService.class);\n \t\tcontext.bindService(i, SpeedConnection, Context.BIND_AUTO_CREATE);\n \t\tcontext.startService(i);\n \t\teditor.putBoolean(\"isBound\", true);\n \t\teditor.apply();\n \t}\n\t}", "public static com.piusvelte.taplock.client.core.ITapLockService asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.piusvelte.taplock.client.core.ITapLockService))) {\nreturn ((com.piusvelte.taplock.client.core.ITapLockService)iin);\n}\nreturn new com.piusvelte.taplock.client.core.ITapLockService.Stub.Proxy(obj);\n}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n Log.d(\"service\", \"onServiceConnected() \" + name.getClassName());\n mMyServ = ((MyService.LocalBinder) service).getService();\n }", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\r\n\t\treturn new BDBServiceBinder();\r\n\t}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n MediaPlayerService.LocalBinder binder = (MediaPlayerService.LocalBinder) service;\n player = binder.getService();\n serviceBound = true;\n\n\n //Toast.makeText(QuranListenActivity.this, \"Service Bound\", Toast.LENGTH_SHORT).show();\n }", "private IPersonServiceLocal getPersonService() {\n\t\treturn _businessServicesLocator.getPersonServiceLocal();\n\t}", "public static android.service.fingerprint.IFingerprintServiceReceiver asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof android.service.fingerprint.IFingerprintServiceReceiver))) {\nreturn ((android.service.fingerprint.IFingerprintServiceReceiver)iin);\n}\nreturn new android.service.fingerprint.IFingerprintServiceReceiver.Stub.Proxy(obj);\n}", "private void bindMediaPlayerService() {\n if (!serviceIsBound) {\n Intent bindInt = new Intent(this, MediaPlayerService.class);\n serviceIsBound = bindService(bindInt, mediaPlayerConnection, Context.BIND_AUTO_CREATE);\n\n Log.v(TAG, \"Service bound\");\n } else {\n Log.v(TAG, \"no Service to bind\");\n }\n }", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn mBinder;\n\t}", "public static com.example.aidltest1.MyAIDL asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.example.aidltest1.MyAIDL))) {\nreturn ((com.example.aidltest1.MyAIDL)iin);\n}\nreturn new com.example.aidltest1.MyAIDL.Stub.Proxy(obj);\n}", "public void onServiceConnected(ComponentName className, IBinder service) {\n imService = ((FriendLocationService.IMBinder)service).getService(); \r\n \r\n \r\n }", "public servizio.local.bfc.service.LocalRichInfoService getLocalRichInfoService() {\n\t\treturn localRichInfoService;\n\t}", "public BindingService getService() {\n return BindingService.this;\n }", "public static android.service.dreams.IDreamManager asInterface(android.os.IBinder obj)\n {\n if ((obj==null)) {\n return null;\n }\n android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (((iin!=null)&&(iin instanceof android.service.dreams.IDreamManager))) {\n return ((android.service.dreams.IDreamManager)iin);\n }\n return new android.service.dreams.IDreamManager.Stub.Proxy(obj);\n }", "void doBindService() {\n final Intent serviceIntent = new Intent(Testing.this, UploadService.class);\n bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE);\n mIsBound = true;\n }", "public static android.telephony.mbms.vendor.IMbmsStreamingService asInterface(android.os.IBinder obj)\n {\n if ((obj==null)) {\n return null;\n }\n android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (((iin!=null)&&(iin instanceof android.telephony.mbms.vendor.IMbmsStreamingService))) {\n return ((android.telephony.mbms.vendor.IMbmsStreamingService)iin);\n }\n return new android.telephony.mbms.vendor.IMbmsStreamingService.Stub.Proxy(obj);\n }", "public IBinder onBind(Intent object) {\n if (!SERVICE_INTERFACE.equals(object.getAction())) return null;\n object = this.mLock;\n synchronized (object) {\n return this.mStub;\n }\n }", "@Override\n public IBinder onBind(Intent intent) {\n return getBinder;\n }", "@Override\r\n\tpublic IBinder onBind(Intent intent) {\n\t\tSystem.out.println(\"Service onBind\");\r\n\t\treturn null;\r\n\t}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n MediaPlayerService.LocalBinder binder = (MediaPlayerService.LocalBinder) service;\n player = binder.getService();\n serviceBound = true;\n player.setCallbacks(MainActivity.this);\n\n //Toast.makeText(MainActivity.this, \"Service Bound\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder iBinder) {\n remoteServiceMethodSolver = IRemoteServiceMethod.Stub.asInterface(iBinder);\n Log.d(\"BindLog\", \"bind远程服务连接已成功,并获取了代理\");\n }", "public ActiveEntity getEntityBinding(String name, boolean local) {\n ActiveEntity ent = (entities == null)\n ? null : entities.getEntityBinding(name);\n if (debug() && ent != null) \n debug(\"Binding found for \" + name + \" \" + ent.getClass().getName());\n return (local || ent != null || nameContext == null)\n ? ent : nameContext.getEntityBinding(name, local);\n }", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder iBinder) {\n selfServiceMethodSolver = (ISelfMethod) iBinder;\n Log.d(\"BindLog\", \"Client - SelfService已Bind成功,并获取了代理\");\n }", "@Override\n public IBinder onBind(Intent intent) {\n return new SimpleBinder(this);\n }", "@Override\n\t\tpublic IBinder onBind(Intent intent) {\n\t\t\treturn mBinder;\n\t\t}", "@Override\n public IBinder onBind(Intent intent) {\n return new MyBinder(this);\n }", "@Override\n public IBinder onBind(Intent mIntent) {\n Log.i(TAG, \"onBind\");\n String action = mIntent.getAction();\n Log.d(TAG, \"onBind: \" + action);\n\n if (SERVICE_INTERFACE.equals(action)) {\n Log.d(TAG, \"Bound by system\");\n return super.onBind(mIntent);\n } else {\n Log.d(TAG, \"Bound by application\");\n return mBinder;\n }\n }", "@Override\n public IBinder onBind(Intent intent) {\n\n return myBinder;\n }", "public boolean getIsServiceBound () ;", "LocService getService() {\n return LocService.this;\n }", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "void doBindService() {\n\t\tbindService(new Intent(this, eidService.class), mConnection, Context.BIND_AUTO_CREATE);\n//\t\tLog.i(\"Convert\", \"At doBind2.\");\n\n\t\tmIsBound = true;\n\t\n\t\tif (mService != null) {\n//\t\t\tLog.i(\"Convert\", \"At doBind3.\");\n\t\t\ttry {\n\t\t\t\t//Request status update\n\t\t\t\tMessage msg = Message.obtain(null, eidService.MSG_UPDATE_STATUS, 0, 0);\n\t\t\t\tmsg.replyTo = mMessenger;\n\t\t\t\tmService.send(msg);\n\t\t\t\tLog.i(\"Convert\", \"At doBind4.\");\n\t\t\t\t//Request full log from service.\n\t\t\t\tmsg = Message.obtain(null, eidService.MSG_UPDATE_LOG_FULL, 0, 0);\n\t\t\t\tmService.send(msg);\n\t\t\t} catch (RemoteException e) {}\n\t\t}\n//\t\tLog.i(\"Convert\", \"At doBind5.\");\n\t}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn mBinder;\n\t}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn mBinder;\n\t}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn mBinder;\n\t}", "public final /* synthetic */ IInterface mo38129a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.ads.internal.cache.ICacheService\");\n if (queryLocalInterface instanceof bvz) {\n return (bvz) queryLocalInterface;\n }\n return new bwa(iBinder);\n }", "@Override\n public IBinder onBind(Intent intent) {\n IBinder ret = null;\n ret = getSyncAdapter().getSyncAdapterBinder();\n return ret;\n }", "public static info.guardianproject.otr.app.im.plugin.IPresenceMapping asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof info.guardianproject.otr.app.im.plugin.IPresenceMapping))) {\nreturn ((info.guardianproject.otr.app.im.plugin.IPresenceMapping)iin);\n}\nreturn new info.guardianproject.otr.app.im.plugin.IPresenceMapping.Stub.Proxy(obj);\n}", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tLocalBinder binder = (LocalBinder)service;\n\t\t\tmService = binder.getService();\n\t\t\t//Toast.makeText(SyncServiceActivity.this, \"onServiceConnected=>\"+mService, Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}", "@Override\n public IBinder onBind(Intent intent) {\n// Return the BackgroundAudioServiceBinder object\n return basBinder;\n }", "private void bind()\n {\n /* Cancel unbind */\n cancelUnbind();\n\n /* Bind to the Engagement service if not already done or being done */\n if (mEngagementService == null && !mBindingService)\n {\n mBindingService = true;\n mContext.bindService(EngagementAgentUtils.getServiceIntent(mContext), mServiceConnection,\n BIND_AUTO_CREATE);\n }\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n RemoteControlService.LocalBinder binder = (RemoteControlService.LocalBinder) service;\n binder.getService( ).startIfNotStarted( );\n }", "private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }", "public <T> IRemoteService<T> getRemoteService(String bizId)\n/* */ {\n/* 51 */ if (applicationContext != null)\n/* */ {\n/* 53 */ T bean = applicationContext.getBean(bizId);\n/* 54 */ if (bean != null)\n/* 55 */ return getRemoteService(bean);\n/* */ }\n/* 57 */ return null;\n/* */ }", "@Override\n public IBinder onBind(Intent intent) {\n return mBinder;\n }", "@Override\n public IBinder onBind(Intent intent) {\n return mBinder;\n }", "@Override\n public IBinder onBind(Intent intent) {\n return mBinder;\n }", "@Override\n public IBinder onBind(Intent intent) {\n if(DEBUG)Log.d(TAG, \"onBind\");\n serviceConnected = true;\n Toast.makeText(getApplicationContext(), \"binding\", Toast.LENGTH_SHORT).show();\n return mMessenger.getBinder();\n }", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn binder;\r\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0)\n\t{\n\t\tLog.i(\"JSChatClientService\", \"JSChatClientService bound.\");\n\t\treturn binder;\n\t}", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn LocalRichService.class.getName();\n\t}", "@Override\n public IBinder onBind(Intent arg0) {\n return binder;\n }", "@Override\r\n public IBinder onBind(Intent intent) {\r\n return mBinder;\r\n }", "public Engine.LocalLock getLocalInterface(Engine.LocalLock pLocalInterface);", "public <T> IRemoteService<T> getRemoteService(T bean)\n/* */ {\n/* 82 */ if ((bean instanceof IRemoteService))\n/* 83 */ return (IRemoteService)bean;\n/* 84 */ RemoteService rs = (RemoteService)AnnotationUtils.getAnnotation(bean.getClass(), RemoteService.class);\n/* 85 */ String name = rs.value();\n/* 86 */ if (StringUtils.isEmpty(name))\n/* */ {\n/* 88 */ String[] names = applicationContext.getBeanNamesForType(bean.getClass());\n/* 89 */ if ((names != null) && (names.length > 0)) {\n/* 90 */ name = names[0];\n/* */ }\n/* */ }\n/* 93 */ if (StringUtils.isEmpty(name)) {\n/* 94 */ name = StringUtils.uncapitalize(bean.getClass().getSimpleName());\n/* */ }\n/* 96 */ CglibRemoteServiceProxy<T> proxy = new CglibRemoteServiceProxy();\n/* 97 */ IRemoteService<T> srv = proxy.bind(bean, name);\n/* 98 */ return srv;\n/* */ }", "void doAccelBindService() {\n\t\tbindService(accelIntentDelay, accelConnection, Context.BIND_AUTO_CREATE);\n\t\taccelIsBound = true;\n\t}", "@Override\n public IBinder onBind(Intent intent) {\n return new IBinder() {\n @Nullable\n @Override\n public String getInterfaceDescriptor() throws RemoteException {\n return null;\n }\n\n @Override\n public boolean pingBinder() {\n return false;\n }\n\n @Override\n public boolean isBinderAlive() {\n return false;\n }\n\n @Nullable\n @Override\n public IInterface queryLocalInterface(@NonNull String s) {\n return null;\n }\n\n @Override\n public void dump(@NonNull FileDescriptor fileDescriptor, @Nullable String[] strings) throws RemoteException {\n\n }\n\n @Override\n public void dumpAsync(@NonNull FileDescriptor fileDescriptor, @Nullable String[] strings) throws RemoteException {\n\n }\n\n @Override\n public boolean transact(int i, @NonNull Parcel parcel, @Nullable Parcel parcel1, int i1) throws RemoteException {\n return false;\n }\n\n @Override\n public void linkToDeath(@NonNull DeathRecipient deathRecipient, int i) throws RemoteException {\n\n }\n\n @Override\n public boolean unlinkToDeath(@NonNull DeathRecipient deathRecipient, int i) {\n return false;\n }\n };\n }", "public void onInCallServiceBind() {\n HiLog.info(LOG_LABEL, \"onInCallServiceBind.\", new Object[0]);\n this.mIsInCallServiceBinded = true;\n }", "public Namespace locateEntityBinding(String name, boolean local) {\n ActiveEntity ent = (entities == null)\n ? null : entities.getEntityBinding(name);\n if (ent != null) return entities;\n return (local || nameContext == null)\n ? null : nameContext.locateEntityBinding(name, local);\n }", "private void bindAudioService() {\n if (audioServiceBinder == null) {\n Intent intent = new Intent(MainActivity.this, AudioService.class);\n\n // Below code will invoke serviceConnection's onServiceConnected method.\n bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);\n }\n }", "public com.sohlman.liferay.foobar.service.FooLocalService getFooLocalService() {\n return fooLocalService;\n }", "public static IBinder fetchService(final Context context, final String provider,\n final String serviceName) throws InvokeException {\n return sBinderServiceCache.get(cacheKey(provider, serviceName), new BinderCache.Loader<IBinder>() {\n @Override\n public IBinder load() {\n InvokerBridge invokerManager = ensureService(context, provider);\n IBinder iBinder = null;\n if (invokerManager != null) {\n try {\n iBinder = invokerManager.fetchService(serviceName, null);\n return iBinder;\n } catch (RemoteException e) {\n throw new InvokeException(e);\n }\n }\n\n throw new InvokeException(String.format(\"no binder service found for %s @ %s\",\n serviceName, provider));\n }\n });\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n final CurrencyRatesService.LocalBinder binder = (CurrencyRatesService.LocalBinder) service;\n currencyRatesService = binder.getService();\n isServiceBound = true;\n }", "public static com.jancar.media.Notify asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.jancar.media.Notify))) {\nreturn ((com.jancar.media.Notify)iin);\n}\nreturn new com.jancar.media.Notify.Stub.Proxy(obj);\n}", "Object getService(String serviceName);", "@Override\n public IBinder onBind(Intent intent) {\n StoreAccountAuthenticator authenticator = new StoreAccountAuthenticator(this);\n return authenticator.getIBinder();\n }", "public org.apache.axis2.context.xsd.ServiceContext getServiceContext(){\n return localServiceContext;\n }" ]
[ "0.6844528", "0.6844528", "0.68022645", "0.66364044", "0.6533302", "0.6315381", "0.62816405", "0.6274176", "0.6230017", "0.62189364", "0.6206358", "0.6195283", "0.6168687", "0.61273944", "0.60704756", "0.6053221", "0.6038579", "0.6032555", "0.6015566", "0.59158903", "0.59063804", "0.5900871", "0.5879785", "0.5877443", "0.58715475", "0.58650315", "0.580227", "0.580227", "0.5796246", "0.5771703", "0.5765511", "0.57603794", "0.5754991", "0.5753885", "0.574571", "0.5737453", "0.5727389", "0.5721293", "0.57170963", "0.56811506", "0.56744003", "0.5662155", "0.5661505", "0.56569093", "0.56367344", "0.56121725", "0.5612024", "0.5608779", "0.55973285", "0.55783635", "0.55773365", "0.5574824", "0.55515265", "0.555001", "0.55406445", "0.55335313", "0.55321854", "0.5520527", "0.55172265", "0.5508407", "0.5501731", "0.54947114", "0.5492719", "0.5492719", "0.5492719", "0.5486207", "0.54794854", "0.54794854", "0.54794854", "0.547173", "0.5452488", "0.54506093", "0.5446867", "0.5443886", "0.5443816", "0.54430544", "0.5412334", "0.53967905", "0.53933126", "0.53933126", "0.53933126", "0.53869116", "0.5383362", "0.5381688", "0.53757215", "0.5369183", "0.5364642", "0.53632087", "0.5360382", "0.5360184", "0.53491724", "0.5348041", "0.5341334", "0.53332555", "0.5317002", "0.5307539", "0.5304584", "0.52965647", "0.52851", "0.52817863", "0.5279751" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); mMenu = menu; if(selectedTab == APPS_TAG){ if(mMenu != null){ MenuItem addButton = mMenu.findItem(R.id.action_add); addButton.setVisible(false); MenuItem loadButton = mMenu.findItem(R.id.action_load_profile); loadButton.setVisible(false); } } else if(selectedTab == RULES_TAG){ if(mMenu != null){ MenuItem addButton = mMenu.findItem(R.id.action_add); addButton.setVisible(true); MenuItem loadButton = mMenu.findItem(R.id.action_load_profile); loadButton.setVisible(true); } } else if(selectedTab == IFACES_TAG){ if(mMenu != null){ MenuItem addButton = mMenu.findItem(R.id.action_add); addButton.setVisible(false); MenuItem loadButton = mMenu.findItem(R.id.action_load_profile); loadButton.setVisible(false); } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_add) { if(grcBoxCli.isRegistered()){ Intent intent = new Intent(this, NewRule.class); startActivityForResult(intent, NEW_RULE_ACTION); } else{ Toast.makeText(MainActivity.this, "You are not connected to a GRCBOX you can't create new rules", Toast.LENGTH_SHORT).show(); } } else if(id == R.id.action_refresh){ refresh(); } else if(id == R.id.action_close){ final Intent intent = new Intent(this, GrcBoxClientService.class); new DeRegisterTask().execute(); stopService(intent); finish(); } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7904231", "0.78061396", "0.7767007", "0.77273244", "0.76318634", "0.7621818", "0.7585249", "0.7531511", "0.7488678", "0.74574006", "0.74574006", "0.7439257", "0.7421747", "0.7403457", "0.73920685", "0.7387285", "0.7379893", "0.73710734", "0.7363068", "0.73565257", "0.7346117", "0.73421544", "0.73308754", "0.7328614", "0.7326444", "0.73191214", "0.7316894", "0.73141056", "0.7304816", "0.7304816", "0.73023325", "0.7298775", "0.7294159", "0.72872293", "0.7283658", "0.72814363", "0.72793216", "0.72604835", "0.72604835", "0.72604835", "0.72604495", "0.7260065", "0.72506464", "0.7223512", "0.7220288", "0.721808", "0.7204778", "0.72007537", "0.7199708", "0.7193875", "0.7185878", "0.7178243", "0.7169468", "0.7168278", "0.71544755", "0.7154114", "0.71363086", "0.7135266", "0.7135266", "0.7129425", "0.71291506", "0.712514", "0.71239674", "0.7123848", "0.71223545", "0.7118021", "0.7117761", "0.7117381", "0.7117381", "0.7117381", "0.7117381", "0.7117378", "0.71157014", "0.7112743", "0.71105623", "0.710936", "0.7106081", "0.7100549", "0.7099009", "0.70957214", "0.7094029", "0.7094029", "0.7086948", "0.70828027", "0.70810676", "0.7080609", "0.707419", "0.70687926", "0.7062512", "0.70614976", "0.70604354", "0.7051683", "0.7037832", "0.7037832", "0.7036669", "0.70357877", "0.70357877", "0.7033191", "0.7030764", "0.70303047", "0.70192975" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onTabReselected(Tab tab, FragmentTransaction ft) { }
{ "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 to be implemented
@Override public void validate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\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 anular() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private void poetries() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\n protected void init() {\n }", "public void gored() {\n\t\t\n\t}", "@Override public int describeContents() { return 0; }", "@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\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void identify() {\n\n\t}", "public void method_4270() {}", "@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 initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void init() {}", "@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\tprotected void parseResult() {\n\t\t\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\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}", "public abstract void mo70713b();", "@Override\n\tprotected void logic() {\n\n\t}", "protected abstract Set method_1559();", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tprotected void getData() {\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 update() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "private void init() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}" ]
[ "0.59761655", "0.5968062", "0.59193194", "0.5874404", "0.58493966", "0.57490444", "0.5664812", "0.56591034", "0.56256324", "0.56256324", "0.5610172", "0.5589765", "0.5579562", "0.5574415", "0.556244", "0.5536535", "0.55302966", "0.55221987", "0.55190253", "0.5509272", "0.55014414", "0.5480429", "0.54739386", "0.54739386", "0.5467488", "0.5446393", "0.54303664", "0.54239804", "0.54166895", "0.54089016", "0.53785247", "0.53726816", "0.536261", "0.5358617", "0.5349355", "0.5349355", "0.5335511", "0.53308", "0.53271675", "0.5314084", "0.5314034", "0.5314034", "0.5314034", "0.5314034", "0.5314034", "0.5314034", "0.53124285", "0.53124285", "0.52995455", "0.5292755", "0.5292369", "0.5291177", "0.5289074", "0.52839506", "0.5283075", "0.5283075", "0.5283075", "0.5283075", "0.5283075", "0.5281378", "0.52775264", "0.52738965", "0.5271708", "0.5271708", "0.5271708", "0.5270668", "0.52673906", "0.52626055", "0.5262226", "0.52602416", "0.52575547", "0.5256749", "0.5251847", "0.52513796", "0.52445304", "0.52418214", "0.524041", "0.52396256", "0.5238988", "0.5238988", "0.52360284", "0.52352035", "0.52285177", "0.5222689", "0.5222643", "0.5220609", "0.5216408", "0.52130306", "0.52109194", "0.52104497", "0.52101666", "0.52037555", "0.52036417", "0.5202682", "0.52025133", "0.519204", "0.51902026", "0.51870733", "0.51791906", "0.51780695", "0.51780695" ]
0.0
-1
Crea el modo de juego
ModoJuego(int intentos, int numCasillas, boolean repetirColores, int maxColores) { this.intentos = intentos; this.numCasillas = numCasillas; this.repetirColores = repetirColores; this.maxColores = maxColores; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Jugador(ModoDeJuego modo) {\n\t\tthis.modo = modo;\n\t\ttablero = new Tablero(modo);\n\t}", "public Juego()\n {\n // crea la ventana principal del juego\n generaVentana();\n \n // genera las naves y los disparos del juego\n generaNaves();\n \n // responde a los eventos de pulsar las teclas de movimiento y disparo\n addKeyListener(new Eventos());\n }", "public Juego() {\n init(); // Llama al metodo init para inicializar todas las variables\n start(); // Llama al metodo start para crear el hilo\n }", "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 }", "Compleja createCompleja();", "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 }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "Compuesta createCompuesta();", "Module createModule();", "public void createProbleemWizard() throws InstantiationException,\n\t\t\tIllegalAccessException {\n\n\t\tif (getMelding().getProbleem() != null) {\n\t\t\tmodelRepository.evictObject(getMelding().getProbleem());\n\t\t}\n\t\tprobleem = null;\n\t\tif (\"bord\".equals(probleemType)) {\n\n\t\t\tif (trajectType.endsWith(\"Route\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"RouteBordProbleem\", null);\n\n\t\t\t} else if (trajectType.contains(\"Netwerk\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"NetwerkBordProbleem\", null);\n\n\t\t\t}\n\n\t\t} else if (\"ander\".equals(probleemType)) {\n\n\t\t\tif (trajectType.endsWith(\"Route\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"RouteAnderProbleem\", null);\n\n\t\t\t} else if (trajectType.contains(\"Netwerk\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"NetwerkAnderProbleem\", null);\n\t\t\t}\n\t\t}\n\t\tgetMelding().setProbleem(probleem);\n\t}", "private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\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}", "Mission createMission();", "public void crearModelo() {\r\n\t\tmodelo = new DefaultComboBoxModel<>();\r\n\t\tmodelo.addElement(\"Rojo\");\r\n\t\tmodelo.addElement(\"Verde\");\r\n\t\tmodelo.addElement(\"Azul\");\r\n\t\tmodelo.addElement(\"Morado\");\r\n\t}", "public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}", "Juego(){\r\n\r\n GridLayout layout = new GridLayout(1,2);\r\n\tsetLayout(layout);\r\n\t\t\r\n\t// Creacion del tablero del contrincante (computadora)\t\r\n\t\r\n t_contrincante = new Tablero(false);\r\n\tadd(t_contrincante);\r\n\t\t\t\t\r\n\t// Creacion del tablero del jugador\r\n\t\t\t\t\r\n t_jugador = new Tablero(true);\r\n\tadd(t_jugador);\r\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public PantallaMenu(Juego juego) {\n this.juego = juego;\n }", "AliciaLab createAliciaLab();", "private static void generModeloDePrueba() {\n\t\tCSharpArchIdPackageImpl.init();\n // Retrieve the default factory singleton\n\t\tCSharpArchIdFactory factory = CSharpArchIdFactory.eINSTANCE;\n // create an instance of myWeb\n\t\tModel modelo = factory.createModel();\n\t\tmodelo.setName(\"Prueba\"); \n // create a page\n\t\tCompileUnit cu = factory.createCompileUnit();\n\t\tcu.setName(\"archivo.cs\");\n\t\tClassDeclaration clase = factory.createClassDeclaration();\n\t\t//clase.setName(\"Sumar\");\n\t\t//cu.getTypeDeclaration().add(clase);\n modelo.getCompileUnits().add(cu);\n \n Resource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n Map<String, Object> m = reg.getExtensionToFactoryMap();\n m.put(\"model\", new XMIResourceFactoryImpl());\n\n // Obtain a new resource set\n ResourceSet resSet = new ResourceSetImpl();\n\n // create a resource\n Resource resource = resSet.createResource(URI\n .createURI(\"CSharpArchId.model\"));\n // Get the first model element and cast it to the right type, in my\n // example everything is hierarchical included in this first node\n resource.getContents().add(modelo);\n\n // now save the content.\n try {\n resource.save(Collections.EMPTY_MAP);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\t\t\n // and so on, and so on\n // as you can see the EMF model can be (more or less) used as standard Java\n\t}", "private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }", "@Command\n public void nuevaMateria() {\n\t\t\n\t\tWindow window = (Window)Executions.createComponents(\n \"/WEB-INF/include/Mantenimiento/Materias/vtnMaterias.zul\", null, null);\n window.doModal();\n }", "private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelPrincilal.setBounds(240, 10 ,685, 540);\n \n }", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "@Override\n\tpublic void create() {\n\t\tAssets.load();\n\t\t\n\t\t//creo pantallas y cargo por defecto menuPrincipal\n\t\tscreenJuego = new JuegoScreen(this);\n\t\tmenuPrincipal = new MenuPrincipal(this);\n\t\tsetScreen(menuPrincipal);\n\t}", "protected static String getmodoJuego() {\n return modoJuego;\n }", "Vaisseau_longueur createVaisseau_longueur();", "public jugador(){\n\t\tnombre=\"Dave\";\n\t\ttipo=\"jugador\";\n\t\tpoderataque=6;\n\t\tpuntosvida=20;\n\t}", "static void abrir() {\n frame = new ModificarPesos();\n //Create and set up the window.\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //Set up the content pane.\n frame.addComponentsToPane(frame.getContentPane());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "private void inicializarJuego() {\n\t\tList<VerboIrregular> lista = utilService.getVerbosIrregulares(faciles, normales, dificiles);\n\n\t\trealmService.cambiarMostrarRespuestasVerbosIrregulares(lista, false);\n\n\t\tverbosIrregularesDesordenadas.clear();\n\n\t\tfor (VerboIrregular x : lista) {\n\t\t\tverbosIrregularesDesordenadas.add(x);\n\t\t}\n\n\t\tCollections.shuffle(verbosIrregularesDesordenadas);\n\t\t// --------------------------------------------------------------\n\n\t\t//------- Esto es por si el usuario quita una palabra problematica y se resetea el juego\n\t\tif (cantidadItems > verbosIrregularesDesordenadas.size()) {\n\t\t\tcantidadItems = verbosIrregularesDesordenadas.size();\n\t\t}\n\t\t// ---------------------------------------------------------------------------------\n\n\t\tverbosIrregularesDesordenadas = verbosIrregularesDesordenadas.subList(0, cantidadItems);\n\n\t\tindice = 0;\n\t\tsetearTitulo();\n\n\t\tbtRestart.setVisibility(View.INVISIBLE);\n\t\tivCongratulations.setVisibility(View.INVISIBLE);\n\t\tmbNext.setVisibility(View.VISIBLE);\n\t\tbtPrevious.setVisibility(View.INVISIBLE);\n\t\ttvJuegoCantidadPalabras.setVisibility(View.VISIBLE);\n\t\tbtMostrarRespuestaJuego.setVisibility(View.VISIBLE);\n\t\ttvInfinitivo.setVisibility(View.VISIBLE);\n\t\tbtDificultad.setVisibility(View.VISIBLE);\n\t\tlyRespuestaJuego.setVisibility(View.INVISIBLE);\n\t\tbtVolver.setVisibility(View.INVISIBLE);\n\n\t\tsetearTextoArribaYColorDeBoton();\n\t}", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "private MavenModuleSet createMavenProject() throws IOException {\n MavenModuleSet mavenModuleSet = j.jenkins.createProject(MavenModuleSet.class, \"test\"+j.jenkins.getItems().size());\n mavenModuleSet.setRunHeadless(true);\n return mavenModuleSet;\n }", "public void crearGloboRojo(int tiempo){ \n GloboRojo globor = new GloboRojo();\n double posicionx = generarPosicionX();\n globor.fijarPosicion(posicionx);\n globoslista.add(globor);\n gpane.getChildren().addAll(globor); \n MoverGlobo mv = new MoverGlobo(globor,tiempo);\n mov= new Thread(mv);\n mov.start(); \n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "public PghModulo() {\r\n }", "Motivo create(Motivo motivo);", "public static void crearPartida() throws FileNotFoundException, IOException, ExcepcionesFich {\n\t\tLecturaFicheros.AllLecture(\"C:\\\\Users\\\\Erick\\\\pruebaPOO.txt\");\n\t\tinterfaz = new GUI(0);\t\t\n\t}", "public CrearQuedadaVista() {\n }", "public modGenRoomControl() {\r\n //construct MbModule\r\n super();\r\n roomObjects = new HashMap(32);\r\n gui = new GUI();\r\n //we depend on the RemoteControl-module\r\n addDependency(\"RemoteControl\");\r\n //we depend on the ARNE-module\r\n addDependency(\"ARNE\");\r\n //register our packet data handler\r\n setPacketDataHandler(new PacketDataHandler());\r\n //we have a html-interface, so lets register it\r\n setHTMLInterface(new HTMLInterface());\r\n }", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "ModularizationElement createModularizationElement();", "private void crearObjetos() {\n // crea los botones\n this.btnOK = new CCButton(this.OK);\n this.btnOK.setActionCommand(\"ok\");\n this.btnOK.setToolTipText(\"Confirmar la Operación\");\n \n this.btnCancel = new CCButton(this.CANCEL);\n this.btnCancel.setActionCommand(\"cancel\");\n this.btnCancel.setToolTipText(\"Cancelar la Operación\");\n \n // Agregar los eventos a los botones\n this.btnOK.addActionListener(this);\n this.btnCancel.addActionListener(this);\n }", "public static void createMissions() {\n allMissions.addMission(airport, \"Find your boardingpass\");\n allMissions.addMission(airport, \"Picking up first item\");\n allMissions.addMission(beach, \"Pick up food\");\n allMissions.addMission(jungle, \"Find survivors\");\n allMissions.addMission(cave, \"Eat the shrooms\");\n allMissions.addMission(camp, \"Escape the island\");\n }", "public void newComponent(byte i ){\n\t\tif(nbTabs > 2)\n\t\t\tJOptionPane.showMessageDialog(null, \"Nombre maximal d'onglets atteint\");\n\t\telse {\n\t\t\tnbTabs++;\n\t\t\tswitch(i){\n\t\t\t\tcase 1:\n\t\t\t\t\ttabs.addTab(\"Génération\" + nbTabs,new Tab(this));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0:\n\t\t\t\t\ttabs.addTab(\"Exemples\" ,new Example(this));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public AzModulo(Modulo modulo) {\n /* rimanda al costruttore della superclasse */\n super(modulo);\n super.setUsaIconaModulo(true);\n }", "public PghModulo(Long idModulo, String ruta, String descripcion, Date fechaCreacion, Date fechaActualizacion, String usuarioCreacion, String usuarioActualizacion, String terminalCreacion, String terminalActualizacion, String estado, String observaciones) {\r\n this.idModulo = idModulo;\r\n this.ruta = ruta;\r\n this.descripcion = descripcion;\r\n this.fechaCreacion = fechaCreacion;\r\n this.fechaActualizacion = fechaActualizacion;\r\n this.usuarioCreacion = usuarioCreacion;\r\n this.usuarioActualizacion = usuarioActualizacion;\r\n this.terminalCreacion = terminalCreacion;\r\n this.terminalActualizacion = terminalActualizacion;\r\n this.estado = estado;\r\n this.observaciones = observaciones;\r\n }", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "public void create() {\n\t\t\n\t}", "public JuegoUI(ScrabbleJugador jugador, ScrabbleServidorInt servidor) throws IOException {\n\t\tthis.jugador = jugador;\n\t\tthis.servidor = servidor;\n // this.Palabra = Palabra;\n \n\t\ttry {\n\t\t\tmarcoJuego.setTitle(\"Scrabble: \" + jugador.getNombre());\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Bloque de captura generado automáticamente\n\t\t\te.printStackTrace();\n\t\t}\n\t\tField.setLayout(new GridLayout(20, 20, 0, 0));\n\t\tField.setBounds(20, 20, 20 * 30, 20 * 30);\n\t\tField.setOpaque(false);\n\t\tmarcoJuego.setSize(20 + 20 * 30 + 320, 20 + 20 * 30 + 40);\n\t\tmarcoJuego.setLayout(null);\n\t\t\n\t\testablecerBotonEnCuadrícula(Field);\n\t\testablecerBarraLetras(marcoJuego);\n\t\tsetBotonBorrar(marcoJuego);\n\t\tsetBotonConfirmacion(marcoJuego);\n\t\tsetBotonPaso(marcoJuego);\n\t\tsetBotonSalir(marcoJuego);\n\t\taddIntroduccion(marcoJuego);\n\t\taddAreaVotacionLabel(marcoJuego);\n\t\taddAreaVotacionLabel(marcoJuego);\n\t\taddAreaVotacion(marcoJuego);\n\t\t\n\t\tmarcoJuego.add(Field);\n\t\tmarcoJuego.setLocationRelativeTo(null);\n\t\tmarcoJuego.setVisible(true);\n\t\tmarcoJuego.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tmarcoJuego.addWindowListener(new java.awt.event.WindowAdapter() {\n\t\t @Override\n\t\t public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n\t\t if (JOptionPane.showConfirmDialog(marcoJuego, \"¿Estás seguro de que quieres cerrar esta ventana?\", \"¿Cerrar ventana?\", \n\t\t JOptionPane.YES_NO_OPTION,\n\t\t JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION){\n\t\t \tSystem.exit(0);\n\t\t }\n\t\t }\n\t\t});\n\t}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\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 JoueurRobot creerJoueurCroupier(ModeleBlackJack modele, String nom) {\n JoueurRobot j = new JoueurRobot(modele, nom);\n j.setStrategie(new StrategieCroupier(j));\n return j;\n }", "public Tabuleiro(){\n\t\tjanelaJogo = new JFrame();\n\t\tjanelaJogo.setTitle(\"Xadrez\");\n\t\tjanelaJogo.setIconImage(new ImageIcon(\"image/chess.png\").getImage());\n\t\tthis.MontaComponentes();\n\t}", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "public Laboratorio() {}", "public Plantas() {\r\n initComponents();\r\n limpiar();\r\n \r\n hilor = new HiloReloj(lbhora);\r\n hilor.start();\r\n }", "private UsineJoueur() {}", "public void createProbleem() throws InstantiationException,\n\t\t\tIllegalAccessException {\n\n\t\tMapViewer viewer = getViewer();\n\t\tMapContext context = viewer.getConfiguration().getContext();\n\n\t\tif (getMelding().getProbleem() != null) {\n\t\t\tmodelRepository.evictObject(getMelding().getProbleem());\n\t\t}\n\t\tprobleem = null;\n\t\tif (\"bord\".equals(probleemType)) {\n\n\t\t\tif (trajectType.endsWith(\"Route\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"RouteBordProbleem\", null);\n\n\t\t\t} else if (trajectType.contains(\"Netwerk\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"NetwerkBordProbleem\", null);\n\n\t\t\t}\n\n\t\t\t// Itereren over de lagen en de correcte lagen selecteerbaar zetten\n\t\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\t\tlayer.set(\"selectable\", false);\n\n\t\t\t\tif (layer.getLayerId().equalsIgnoreCase(trajectType + \"Bord\")) {\n\t\t\t\t\tlayer.set(\"selectable\", true);\n\t\t\t\t\tlayer.set(\"selectionMode\", FeatureSelectionMode.SINGLE);\n\t\t\t\t\tlayer.setSelection(new ArrayList<String>(1));\n\n\t\t\t\t} else if (layer.getLayerId().equalsIgnoreCase(\n\t\t\t\t\t\ttrajectType.replace(\"Segment\", \"\") + \"Bord\")) {\n\t\t\t\t\tlayer.set(\"selectable\", true);\n\t\t\t\t\tlayer.set(\"selectionMode\", FeatureSelectionMode.SINGLE);\n\t\t\t\t\tlayer.setSelection(new ArrayList<String>(1));\n\n\t\t\t\t} else if (layer.getLayerId().contains(\"Knooppunt\")) {\n\t\t\t\t\tlayer.set(\"selectable\", false);\n\t\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t\t}\n\n\t\t\t\telse if (layer.getLayerId().equalsIgnoreCase(\n\t\t\t\t\t\tGEOMETRY_LAYER_NAME)) {\n\t\t\t\t\tlayer.setHidden(true);\n\t\t\t\t\t((GeometryListFeatureMapLayer) layer)\n\t\t\t\t\t\t\t.setGeometries(Collections.EMPTY_LIST);\n\t\t\t\t} else {\n\t\t\t\t\tlayer.set(\"selectable\", false);\n\t\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (\"ander\".equals(probleemType)) {\n\n\t\t\tif (trajectType.endsWith(\"Route\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"RouteAnderProbleem\", null);\n\n\t\t\t} else if (trajectType.contains(\"Netwerk\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"NetwerkAnderProbleem\", null);\n\t\t\t}\n\n\t\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\n\t\t\t\t// Geometrie laag\n\t\t\t\tif (layer.getLayerId().equalsIgnoreCase(GEOMETRY_LAYER_NAME)) {\n\t\t\t\t\tlayer.setHidden(false);\n\t\t\t\t\tlayer.set(\"selectable\", true);\n\t\t\t\t\tlayer.set(\"editable\", true);\n\t\t\t\t\t((GeometryListFeatureMapLayer) layer)\n\t\t\t\t\t\t\t.setGeometries(new ArrayList<Geometry>(1));\n\t\t\t\t}\n\n\t\t\t\t// Indien NetwerkSegment laag laag op selecteerbaar zetten\n\t\t\t\telse if (layer.getLayerId().equalsIgnoreCase(trajectType)) {\n\t\t\t\t\tlayer.set(\"selectable\", true);\n\t\t\t\t\tlayer.set(\"selectionMode\", FeatureSelectionMode.SINGLE);\n\t\t\t\t\tlayer.setSelection(new ArrayList<String>(1));\n\n\t\t\t\t} else {\n\t\t\t\t\tlayer.set(\"selectable\", false);\n\t\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tgetMelding().setProbleem(probleem);\n\t\tviewer.updateContext(null);\n\t}", "private void instanciarComponentes() {\n\t\t\n\t\tpainelTopo = new JPanel(new FlowLayout());\n\t\tpainelTopo.setBackground(Color.LIGHT_GRAY);\n\t\tlbInicial = new JLabel(\"De: \");\n\t\tlbFinal = new JLabel(\"Até: \");\n\t\tlabelTabuadoDo = new JLabel(\"Tabuada do: \");\n\t\ttxtInicial = new JTextField(10);\n\t\ttxtFinal = new JTextField(10);\n\t\ttxtNumero = new JTextField(10);\n\t\tbuttonCalcular = new JButton(\"Calcular\");\n\t\tpainelCentro = new JPanel(new FlowLayout());\n\t}", "Oracion createOracion();", "public DatosEntrenador(java.awt.Frame parent, boolean modal, Entrenador e, String modo) {\n super(parent, modal);\n entrenador = e;\n //inicializamos el arraylist aqui\n paises = DatosComunes.obtenerPaises();\n //para saber el modo, tambien inicializamos\n this.modo = modo;\n initComponents();\n \n if(modo.equals(\"Modificar\")){\n jXDatePicker1.setDate(e.getNacimiento()); //Ponemos la fecha de nacimiento que tenia\n }//bindeamos los campos y necesitaremos un arraylist de strings para la nacionalidad\n }", "public static OpenFrgament newInstance() {\n OpenFrgament fragment = new OpenFrgament();\n// Bundle args = new Bundle();\n//\n// fragment.setArguments(args);\n return fragment;\n }", "private static WorldDescription createWorld() {\r\n \t\tWorldDescription world = new WorldDescription();\t \r\n \t\tworld.setPlaneSize(100);\t\t\r\n \t \tObstacleGenerator generator = new ObstacleGenerator();\r\n \t generator.obstacalize(obstacleType, world); // activate to add obstacles\r\n \t // world.setPlaneTexture(WorldDescription.WHITE_GRID_TEXTURE);\r\n \t\treturn world;\r\n \t}", "public Modul(String modulname) {\n\t\tthis.modulname=modulname;\n\t}", "public Modul buscarModul(String nomModul) throws ExceptionBuscar;", "public Juego() {\r\n //Llama a init para inicializar todo\r\n init();\r\n \r\n //Inicio el juego\r\n start();\r\n \r\n //Añado ésta linea para que el jFrame termine al cerrar\r\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n }", "public jinventario(){\n initComponents();\n }", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "private Module createModule() throws Exception\n {\n Map headerMap = m_archive.getCurrentRevision().getManifestHeader();\n\n // Create the module instance.\n ModuleImpl module = new ModuleImpl(\n getFramework().getLogger(),\n getFramework().getConfig(),\n getFramework().getResolver(),\n this,\n Long.toString(getBundleId())\n + \".\" + m_archive.getCurrentRevisionNumber().toString(),\n headerMap,\n m_archive.getCurrentRevision().getContent(),\n getFramework().getBundleStreamHandler(),\n getFramework().getBootPackages(),\n getFramework().getBootPackageWildcards());\n\n // Verify that the bundle symbolic name + version is unique.\n if (module.getManifestVersion().equals(\"2\"))\n {\n Version bundleVersion = module.getVersion();\n bundleVersion = (bundleVersion == null) ? Version.emptyVersion : bundleVersion;\n String symName = module.getSymbolicName();\n\n Bundle[] bundles = getFramework().getBundles();\n for (int i = 0; (bundles != null) && (i < bundles.length); i++)\n {\n long id = ((BundleImpl) bundles[i]).getBundleId();\n if (id != getBundleId())\n {\n String sym = bundles[i].getSymbolicName();\n Version ver = ((ModuleImpl)\n ((BundleImpl) bundles[i]).getCurrentModule()).getVersion();\n if ((symName != null) && (sym != null) && symName.equals(sym) && bundleVersion.equals(ver))\n {\n throw new BundleException(\n \"Bundle symbolic name and version are not unique: \"\n + sym + ':' + ver, BundleException.DUPLICATE_BUNDLE_ERROR);\n }\n }\n }\n }\n\n return module;\n }", "public Content createContent();", "private static void eligeJuego() {\r\n\t\tint eleccion;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Elige el tipo de juego\\n1-\"\r\n\t\t\t\t\t+ optionsTiposJuegos[0]/*\r\n\t\t\t\t\t\t\t\t\t\t\t * + \"\\n2-\" + optionsTiposJuegos[1]\r\n\t\t\t\t\t\t\t\t\t\t\t */);\r\n\t\t\tSystem.out.print(\"Opcion: \");\r\n\t\t\teleccion = Teclado.leerInt();\r\n\t\t} while (eleccion != 1 /* && eleccion != 2 */);\r\n\t\tif (eleccion == 1)\r\n\t\t\tjuego = new PPT(jugadores, jugadores.length);\r\n\t\telse\r\n\t\t\tjuego = new Chinos(jugadores, jugadores.length);\r\n\t}", "protected abstract void iniciarModo();", "public Joueur(String nomJoueur){\n\t\tthis.nom= nomJoueur;\n\t\tthis.cartesEnMain=new Main();\n\t\tthis.pileCartes=new Pile();\n\t\tthis.estDansPartie = true;\n\t\tthis.estDansBataille = true;\n\t}", "public void inicializar() {\r\n\t\ttry {\r\n\t\t\tsetDefaultLookAndFeelDecorated(true);\r\n\t\t\tcom.jtattoo.plaf.hifi.HiFiLookAndFeel.setTheme(\"Large-Font\", \"INSERT YOUR LICENSE KEY HERE\",\r\n\t\t\t\t\t\"Gallery of Fantastic Puzzles\");\r\n\t\t\tUIManager.setLookAndFeel(\"com.jtattoo.plaf.hifi.HiFiLookAndFeel\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t//Configuración del JDialog\r\n\t\tsetBounds(100, 100, 450, 300);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\t\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setLayout(new FlowLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\t\r\n\t\t//Componentes del JDialog\r\n\t\t{\r\n\t\t\t//TEXTO DE BIENVENIDA\r\n\t\t\tdtrpnBienve = new JEditorPane();\r\n\t\t\tdtrpnBienve.setOpaque(false);\r\n\t\t\tdtrpnBienve.setEditable(false);\r\n\t\t\tdtrpnBienve.setPreferredSize(new Dimension(400, 130));\r\n\t\t\tdtrpnBienve.setFont(new Font(\"Segoe UI\", Font.BOLD, 15));\r\n\t\t\tdtrpnBienve.setText(\r\n\t\t\t\t\t\"Bienvenido/a a GFPuzzles, la aplicación desarrollada por \\r\\nAlige Development para la Gestión de su Galería de Arte\\r\\n\\r\\nPara más información, consulte los siguientes \\r\\napartados del menú Ayuda.\");\r\n\t\t\tcontentPanel.add(dtrpnBienve);\r\n\t\t}\r\n\t\t{\r\n\t\t\t//ICONO CORPORATIVO\r\n\t\t\tlblNewLabel = new JLabel(\"\");\r\n\t\t\tlblNewLabel.setVerticalAlignment(SwingConstants.BOTTOM);\r\n\t\t\tlblNewLabel.setIcon(new ImageIcon(DialogBienve.class.getResource(\"/images/19-70x70.png\")));\r\n\t\t\tcontentPanel.add(lblNewLabel);\r\n\t\t}\r\n\t\t{\r\n\t\t\t//PANEL DESTINADO PARA LOS BOTONES\r\n\t\t\tbuttonPane = new JPanel();\r\n\t\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\r\n\t\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\r\n\t\t\t{\r\n\t\t\t\t//BOTON OK\r\n\t\t\t\tbtnOkBienve = new JButton(\"OK\");\r\n\t\t\t\tbtnOkBienve.addActionListener(new ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\t\tDialogBienve.this.dispose();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tbtnOkBienve.setActionCommand(\"OK\");\r\n\t\t\t\tbuttonPane.add(btnOkBienve);\r\n\t\t\t\tgetRootPane().setDefaultButton(btnOkBienve);\r\n\t\t\t}\r\n\t\t\t{\r\n\t\t\t\t//etiqueta utilizada para separar el icono del cuadro de texto\r\n\t\t\t\tlblNewLabel_1 = new JLabel(\"\");\r\n\t\t\t\tlblNewLabel_1.setPreferredSize(new Dimension(30, 14));\r\n\t\t\t\tlblNewLabel_1.setMinimumSize(new Dimension(246, 14));\r\n\t\t\t\tlblNewLabel_1.setMaximumSize(new Dimension(246, 14));\r\n\t\t\t\tbuttonPane.add(lblNewLabel_1);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public ModuliHandler() {\n\t}", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "public void crearGloboVerde(int tiempo){ \n GloboVerde globov = new GloboVerde();\n globoslista.add(globov);\n double posicionx = generarPosicionX();\n globov.fijarPosicion(posicionx);\n \n gpane.getChildren().addAll(globov);\n MoverGlobo mv = new MoverGlobo(globov,tiempo);\n mov= new Thread(mv);\n mov.start(); \n }", "public Creacion() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private Pannello creaPanDate() {\n /* variabili e costanti locali di lavoro */\n Pannello panDate = null;\n Campo campoDataInizio;\n Campo campoDataFine;\n JButton bottone;\n ProgressBar pb;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(DialogoStatistiche.nomeDataIni);\n campoDataInizio.decora().eliminaEtichetta();\n campoDataInizio.decora().etichettaSinistra(\"dal\");\n campoDataInizio.decora().obbligatorio();\n campoDataFine = CampoFactory.data(DialogoStatistiche.nomeDataFine);\n campoDataFine.decora().eliminaEtichetta();\n campoDataFine.decora().etichettaSinistra(\"al\");\n campoDataFine.decora().obbligatorio();\n\n /* bottone esegui */\n bottone = new JButton(\"Esegui\");\n bottone.setOpaque(false);\n this.setBottoneEsegui(bottone);\n bottone.addActionListener(new DialogoStatistiche.AzioneEsegui());\n bottone.setFocusPainted(false);\n\n /* progress bar */\n pb = new ProgressBar();\n this.setProgressBar(pb);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.setAllineamento(Layout.ALLINEA_CENTRO);\n panDate.creaBordo(\"Periodo di analisi\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(bottone);\n panDate.add(Box.createHorizontalGlue());\n panDate.add(pb);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return panDate;\n }", "public abstract Anuncio creaAnuncioTematico();", "private void createWizard(String persoName, String persoImage, int persoLife, int attack) {\n\t\tpersoList.add(new Wizard(persoName, persoImage, persoLife, attack));\n\t}", "Lab create();", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "public void crearModelo() {\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE tipo='agricultor' AND personalexterno.idMunicipio=municipios.idMunicipio\");\n tbl.alinearHeaderTable(AgendarA.tblAgricultor, headerColumnas);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n }", "public Modulo1() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n //línea para habilitar o deshabilitar pestañas\n //jTabbedPane.removeTabAt(0);\n \n }", "public ControladorPanel() { }", "protected static void setmodoJuego(String modoJuego) {\n Globales.modoJuego = modoJuego;\n }", "public JajarGenjang() {\n initComponents();\n }", "public Jeu(){\n Saisie.Initialiser();\n this.premierJoueur = CreationDePersonnage(\"joueur1\");\n this.secondJoueur = CreationDePersonnage(\"joueur2\");\n Combat();\n Saisie.Terminer();\n }", "public Jogador(String nome, String cor){\r\n this.nome = nome;\r\n this.cor = cor;\r\n this.contaCorrente = new ContaCorrente(1500);\r\n this.propriedadesDoJogador = new ArrayList<>();\r\n this.companhiasDoJogador = new ArrayList<>();\r\n this.posicaoNoTabuleiroIndice = 0;\r\n this.possuiCartaSairDaPrisao = false;\r\n this.reclusao = 0;\r\n this.sorteNosDados = 0;\r\n monopolioNoGrupoDeCor = new ArrayList<>();\r\n }", "public Pantalla() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 600, 600);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\n\t\t// creacion del MENU PANEL\n\t\tmenuPanel = new JPanel();\n\t\tmenuPanel.setBounds(10, 11, 221, 158);\n\t\tcontentPane.add(menuPanel);\n\t\tmenuPanel.setLayout(null);\n\n\t\t// Creacion del MENU Archivo\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tsetJMenuBar(menuBar);\n\n\t\t// Creacion del MENU JUEGO\n\t\tJMenu NewMenuJuego = new JMenu(\"Juego\");\n\t\tmenuBar.add(NewMenuJuego);\n\n\t\t// Accion del MENU ITEM SALIR\n\t\tJMenuItem MenuItemSalir = new JMenuItem(\"Salir\");\n\t\tMenuItemSalir.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// Preguntamos al usuario se realmente desea salir de la partida\n\t\t\t\tint salir = JOptionPane.showConfirmDialog(null, \"Deseas finalizar el Juego? \", \"Salir\",\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\n\t\t\t\tif (salir == 0) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t} else\n\t\t\t\t\t;\n\t\t\t}\n\t\t});\n\t\tNewMenuJuego.add(MenuItemSalir);\n\n\t\t// Accion del NUEVO JUEGO ITEM\n\t\tJMenuItem MenuItemNuevoJuego = new JMenuItem(\"Nuevo Juego\");\n\t\tMenuItemNuevoJuego.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// llamamos al metodo de iniciar el juego\n\t\t\t\tMetodos.iniciarJuego();\n\n\t\t\t}\n\t\t});\n\t\tNewMenuJuego.add(MenuItemNuevoJuego);\n\n\t\t// Creacion del menu AYUDA\n\t\tJMenu NewMenuAyuda1 = new JMenu(\"Ayuda\");\n\t\tmenuBar.add(NewMenuAyuda1);\n\n\t\t// Creacion del MENU ITEM COMO JUGAR\n\t\tJMenuItem MenuItemComoJugar = new JMenuItem(\"Como jugar\");\n\t\tMenuItemComoJugar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// indicamos las instrucciones del juego\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Instrucciones: \" + \"\\n1. Has de darle al boton iniciar juego \"\n\t\t\t\t\t\t+ \"\\n2. Aparecen los espacios de las letras de una palabra oculta \"\n\t\t\t\t\t\t+ \"\\n3. Has de adivinar la palabra pulsando en el teclado de palabras que hay abajo \"\n\t\t\t\t\t\t+ \"\\n4. Si te equivocas, el ahorcado se ira completando \"\n\t\t\t\t\t\t+ \"\\n5. Tienes 10 intentos antes de que se complete el ahorcado \"\n\t\t\t\t\t\t+ \"\\n6. Puedes usar las pistas las cuales te descubriran una letra, tienes una pista por partida\"\n\t\t\t\t\t\t+ \"\\n7. al principio del juego puedes elegir hasta 5 vidas, cada vez que solicitas una pista perderas una vida \"\n\t\t\t\t\t\t+ \"\\n8. cada vez que pierdes la partida, perderas una vida \");\n\n\t\t\t}\n\t\t});\n\t\tNewMenuAyuda1.add(MenuItemComoJugar);\n\n\t\t// Creacion del MENU ITEM ACERCA DE\n\t\tJMenuItem MenuItemAcercaDe = new JMenuItem(\"Acerca de \");\n\t\tMenuItemAcercaDe.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// indicamos los creditos del juego\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Juego del Ahorcado creado en Java con Swing y AWT \"\n\t\t\t\t\t\t+ \"\\n \\nCreadores: \\nVictor Lozano, Cesar Torrelles, Giovanny Rodriguez\" + \"\\n Version 1.0\");\n\n\t\t\t}\n\t\t});\n\t\tNewMenuAyuda1.add(MenuItemAcercaDe);\n\n\t\t// Creacion del MENU ITEM PALABRAS, para poder introducir palabras en el\n\t\t// diccionario\n\t\tJMenuItem menuItemAñadirPalabras = new JMenuItem(\"Añadir palabras\");\n\t\tmenuItemAñadirPalabras.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString palabra = JOptionPane.showInputDialog(null, \"Introduce una palabra nueva al diccionario\");\n\t\t\t\tlistaDiez.addElement(palabra.toUpperCase());\n\n\t\t\t\t// imprimimos la lista para poder verla\n\t\t\t\tSystem.out.println(listaDiez);\n\t\t\t}\n\t\t});\n\t\tNewMenuJuego.add(menuItemAñadirPalabras);\n\n\t\t// Creacion del BOTON para INICIAR EL JUEGO\n\t\t//\n\t\tbtnIniciarJuego = new JButton(\"Iniciar juego\");\n\t\tbtnIniciarJuego.setBounds(10, 11, 201, 55);\n\t\tmenuPanel.add(btnIniciarJuego);\n\n\t\t// creacion del BOTON PISTA\n\t\tbtnPista = new JButton(\"Pista\");\n\t\tbtnPista.setBounds(10, 77, 201, 55);\n\t\tmenuPanel.add(btnPista);\n\t\tbtnPista.setVisible(false);\n\n\t\t// evento click que da accion al boton\n\t\tbtnPista.addMouseListener(new MouseAdapter() {\n\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\tif (pista == 0) {\n\t\t\t\t\t// Pregunta si desea la pista a cambio de una vida\n\t\t\t\t\tpista = Metodos.darOpciones(eleccionPista,\n\t\t\t\t\t\t\t\"ADVERTENCIA: ¿Deseas perder una vida a cambio de una pista? \");\n\n\t\t\t\t\t// En caso de que si la desee sucede el codigo siguiente\n\t\t\t\t\tif (pista == 1) {\n\t\t\t\t\t\tfoto = foto + pista;\n\t\t\t\t\t\tMetodos.elegirImagen(foto);\n\n\t\t\t\t\t\t// Da la pista\n\t\t\t\t\t\tint i = 0;\n\t\t\t\t\t\tString pistaLetra;\n\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\tpistaLetra = (palabraSecreta.getText().contains(palabra.substring(i, i + 1))) ? \"n\"\n\t\t\t\t\t\t\t\t\t: palabra.substring(i, i + 1);\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t} while (palabraSecreta.getText().contains(palabra.substring(i - 1, i - 1 + 1)));\n\t\t\t\t\t\tMetodos.compruebaLetra(pistaLetra);\n\n\t\t\t\t\t\t// Al dar la pista se consume una vida\n\t\t\t\t\t\tnumeroVidasElegido -= 1;\n\n\t\t\t\t\t\t// desaparece esa vida mediante el metodo \"numeroDeVidas\"\n\t\t\t\t\t\tMetodos.numeroDeVidas(numeroVidasElegido);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t// Si ya se ha consumido las ayudas de la partida aparecera el siguiente\n\t\t\t\t\t// mensaje:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No hay mas ayudas disponibles\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// Creacion de JPANELS TECLADO Y BOTONES\n\t\ttecladoPanel = new JPanel();\n\t\ttecladoPanel.setBounds(10, 361, 221, 189);\n\t\ttecladoPanel.setToolTipText(\"Teclado\");\n\t\tcontentPane.add(tecladoPanel);\n\t\ttecladoPanel.setLayout(null);\n\t\ttecladoPanel.setVisible(false);\n\n\t\tbtnA = new JButton(\"A\");\n\t\tbtnA.setBounds(0, 0, 39, 39);\n\t\ttecladoPanel.add(btnA);\n\n\t\tbtnB = new JButton(\"B\");\n\t\tbtnB.setBounds(38, 0, 39, 39);\n\t\ttecladoPanel.add(btnB);\n\n\t\tbtnC = new JButton(\"C\");\n\t\tbtnC.setBounds(74, 0, 39, 39);\n\t\ttecladoPanel.add(btnC);\n\n\t\tbtnD = new JButton(\"D\");\n\t\tbtnD.setBounds(110, 0, 39, 39);\n\t\ttecladoPanel.add(btnD);\n\n\t\tbtnE = new JButton(\"E\");\n\t\tbtnE.setBounds(147, 0, 39, 39);\n\t\ttecladoPanel.add(btnE);\n\n\t\tbtnF = new JButton(\"F\");\n\t\tbtnF.setBounds(183, 0, 39, 39);\n\t\ttecladoPanel.add(btnF);\n\n\t\tbtnG = new JButton(\"G\");\n\t\tbtnG.setBounds(0, 40, 39, 39);\n\t\ttecladoPanel.add(btnG);\n\n\t\tbtnH = new JButton(\"H\");\n\t\tbtnH.setBounds(38, 40, 39, 39);\n\t\ttecladoPanel.add(btnH);\n\n\t\tbtnI = new JButton(\"I\");\n\t\tbtnI.setBounds(74, 40, 39, 39);\n\t\ttecladoPanel.add(btnI);\n\n\t\tbtnJ = new JButton(\"J\");\n\t\tbtnJ.setBounds(110, 40, 39, 39);\n\t\ttecladoPanel.add(btnJ);\n\n\t\tbtnK = new JButton(\"K\");\n\t\tbtnK.setBounds(147, 40, 39, 39);\n\t\ttecladoPanel.add(btnK);\n\n\t\tbtnL = new JButton(\"L\");\n\t\tbtnL.setBounds(183, 40, 39, 39);\n\t\ttecladoPanel.add(btnL);\n\n\t\tbtnM = new JButton(\"M\");\n\t\tbtnM.setBounds(0, 78, 39, 39);\n\t\ttecladoPanel.add(btnM);\n\n\t\tbtnN = new JButton(\"N\");\n\t\tbtnN.setBounds(38, 78, 39, 39);\n\t\ttecladoPanel.add(btnN);\n\n\t\tbtnÑ = new JButton(\"Ñ \");\n\t\tbtnÑ.setBounds(74, 78, 39, 39);\n\t\ttecladoPanel.add(btnÑ);\n\n\t\tbtnO = new JButton(\"O\");\n\t\tbtnO.setBounds(110, 78, 39, 39);\n\t\ttecladoPanel.add(btnO);\n\n\t\tbtnP = new JButton(\"P\");\n\t\tbtnP.setBounds(147, 78, 39, 39);\n\t\ttecladoPanel.add(btnP);\n\n\t\tbtnQ = new JButton(\"Q\");\n\t\tbtnQ.setBounds(183, 78, 39, 39);\n\t\ttecladoPanel.add(btnQ);\n\n\t\tbtnR = new JButton(\"R\");\n\t\tbtnR.setBounds(0, 116, 39, 39);\n\t\ttecladoPanel.add(btnR);\n\n\t\tbtnS = new JButton(\"S\");\n\t\tbtnS.setBounds(38, 116, 39, 39);\n\t\ttecladoPanel.add(btnS);\n\n\t\tbtnT = new JButton(\"T\");\n\t\tbtnT.setBounds(74, 116, 39, 39);\n\t\ttecladoPanel.add(btnT);\n\n\t\tbtnU = new JButton(\"U\");\n\t\tbtnU.setBounds(110, 116, 39, 39);\n\t\ttecladoPanel.add(btnU);\n\n\t\tbtnV = new JButton(\"V\");\n\t\tbtnV.setBounds(147, 116, 39, 39);\n\t\ttecladoPanel.add(btnV);\n\n\t\tbtnW = new JButton(\"W\");\n\t\tbtnW.setBounds(183, 116, 39, 39);\n\t\ttecladoPanel.add(btnW);\n\n\t\tbtnX = new JButton(\"X\");\n\t\tbtnX.setBounds(61, 150, 39, 39);\n\t\ttecladoPanel.add(btnX);\n\n\t\tbtnY = new JButton(\"Y\");\n\t\tbtnY.setBounds(98, 150, 39, 39);\n\t\ttecladoPanel.add(btnY);\n\n\t\tbtnZ = new JButton(\"Z\");\n\t\tbtnZ.setBounds(134, 150, 39, 39);\n\t\ttecladoPanel.add(btnZ);\n\n\t\tbtnA.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnB.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnC.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnD.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnE.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnF.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnG.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnH.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnI.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnJ.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnK.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnL.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnM.setFont(new Font(\"Calibri\", Font.PLAIN, 6));\n\t\tbtnN.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnÑ.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnO.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnP.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnQ.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnR.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnS.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnT.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnU.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnV.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnW.setFont(new Font(\"Calibri\", Font.PLAIN, 6));\n\t\tbtnX.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnY.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnZ.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\n\t\t// creacion del Panel donde va el boton PISTA\n\t\tpistasPanel = new JPanel();\n\t\tpistasPanel.setBounds(10, 182, 221, 158);\n\t\tcontentPane.add(pistasPanel);\n\t\tpistasPanel.setLayout(null);\n\n\t\t// creacion del Panel donde va la PALABRA SECRETA\n\t\tpalabraSecretaPanel = new JPanel();\n\t\tpalabraSecretaPanel.setBounds(10, 93, 201, 54);\n\t\tpistasPanel.add(palabraSecretaPanel);\n\t\tpalabraSecretaPanel.setLayout(null);\n\n\t\t// creacion de la etiqueta donde va la PALABRA SECRETA\n\t\tpalabraSecreta = new JLabel();\n\t\tpalabraSecreta.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tpalabraSecreta.setBounds(10, 11, 181, 32);\n\t\tpalabraSecretaPanel.add(palabraSecreta);\n\n\t\t// creacion del panel de las VIDAS\n\t\tvidasPanel = new JPanel();\n\t\tvidasPanel.setBounds(10, 6, 205, 90);\n\t\tpistasPanel.add(vidasPanel);\n\t\tvidasPanel.setLayout(null);\n\t\tvidasPanel.setVisible(false);\n\n\t\t// creacion de la etiqueta de Intentos Fallidos\n\t\tintentosFallidos = new JLabel();\n\t\tintentosFallidos.setBounds(6, 2, 144, 22);\n\t\tvidasPanel.add(intentosFallidos);\n\n\t\t// Creacion de los Botones donde van las VIDAS\n\t\tvida1 = new JToggleButton(\"1\");\n\t\tvida1.setForeground(Color.RED);\n\t\tvida1.setBackground(Color.RED);\n\t\tvida1.setBounds(6, 26, 44, 22);\n\t\tvidasPanel.add(vida1);\n\n\t\tvida2 = new JToggleButton(\"2\");\n\t\tvida2.setBounds(76, 26, 44, 22);\n\t\tvidasPanel.add(vida2);\n\t\tvida2.setForeground(Color.RED);\n\t\tvida2.setBackground(Color.RED);\n\n\t\tvida3 = new JToggleButton(\"3\");\n\t\tvida3.setForeground(Color.RED);\n\t\tvida3.setBackground(Color.RED);\n\t\tvida3.setBounds(155, 26, 44, 22);\n\t\tvidasPanel.add(vida3);\n\n\t\tvida4 = new JToggleButton(\"4\");\n\t\tvida4.setForeground(Color.RED);\n\t\tvida4.setBackground(Color.RED);\n\t\tvida4.setBounds(41, 67, 44, 22);\n\t\tvidasPanel.add(vida4);\n\n\t\tvida5 = new JToggleButton(\"5\");\n\t\tvida5.setForeground(Color.RED);\n\t\tvida5.setBackground(Color.RED);\n\t\tvida5.setBounds(118, 67, 44, 22);\n\t\tvidasPanel.add(vida5);\n\n\t\t// creacion del PANEL DE LAS IMAGENES\n\t\timagenesPanel = new JPanel();\n\t\timagenesPanel.setBounds(241, 11, 333, 539);\n\t\tcontentPane.add(imagenesPanel);\n\t\timagenesPanel.setLayout(null);\n\t\timagenesPanel.setVisible(false);\n\n\t\t// creacion de la etiqueta de las IMAGENES\n\t\timagenLabel = new JLabel();\n\t\timagenLabel.setBounds(10, 11, 313, 517);\n\t\timagenesPanel.add(imagenLabel);\n\n\t\t// Creacion de un JLIST de palabras que el jugador debe acertar (NO ES VISIBLE)\n\t\tlist = new JList<String>();\n\t\tlistaDiez = new DefaultListModel<String>();\n\t\tlistaDiez.addElement(\"TARRAGONA\");\n\t\tlistaDiez.addElement(\"BARCELONA\");\n\t\tlistaDiez.addElement(\"LLEIDA\");\n\t\tlistaDiez.addElement(\"GIRONA\");\n\t\tlistaDiez.addElement(\"FUTBOL\");\n\t\tlistaDiez.addElement(\"BALONCESTO\");\n\t\tlistaDiez.addElement(\"MACARRONES\");\n\t\tlistaDiez.addElement(\"ALBONDIGAS\");\n\t\tlistaDiez.addElement(\"TECLADO\");\n\t\tlist.setModel(listaDiez);\n\t\tlist.setVisible(false);\n\t\tlist.setBounds(10, 170, 1, 1);\n\t\tcontentPane.add(list);\n\n\t}", "public AzModulo(Modulo modulo, String posMenu) {\n /* rimanda al costruttore della superclasse */\n super(modulo, posMenu);\n super.setUsaIconaModulo(true);\n }", "ProjetoRN createProjetoRN();", "public void create(){}", "public void crearGloboMalo(int tiempo){\n GloboMalo globom = new GloboMalo();\n globoslista.add(globom); \n double posicionx = generarPosicionX();\n globom.fijarPosicion(posicionx);\n gpane.getChildren().addAll(globom);\n MoverGlobo mv = new MoverGlobo(globom,tiempo);\n mov= new Thread(mv);\n mov.start();\n }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void crearVentana3(){\n \n marco = new JFrame(\"ventana\");\n panel = new JPanel();\n boton = new JButton(\"boton 1\");\n boton2 = new JButton(\"boton 2\");\n etiqueta = new JLabel(\"\");\n liTexto = new JTextField(30);\n \n \n //le damos caracteristicas a a los componentes\n marco.setSize(900, 500);\n panel.setSize(800, 400);\n panel.setBackground(Color.cyan);\n etiqueta.setText(\"Nome\");\n \n etiqueta.setBounds(50, 100, 50, 10);\n \n liTexto.setBounds(100, 100, 300, 20);\n liTexto.setText(\"Nombre?\");\n \n boton.setBounds(200, 300, 100, 50);\n boton2.setBounds(400, 300, 100,50);\n \n\n \n panel.setLayout(null);\n \n\n //engadimos os componenetes\n panel.add(etiqueta);\n panel.add(liTexto);\n panel.add(boton);\n panel.add(boton2);\n marco.add(panel);\n \n \n marco.setVisible(true);\n marco.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }" ]
[ "0.66709197", "0.64961416", "0.63929284", "0.6375227", "0.6325686", "0.62988555", "0.6263619", "0.6112591", "0.60978734", "0.6050241", "0.5992762", "0.5986057", "0.5970942", "0.59458476", "0.5939074", "0.5925918", "0.5921238", "0.5917402", "0.5916566", "0.5914889", "0.5909419", "0.5904792", "0.58823687", "0.5877051", "0.5855828", "0.58362436", "0.58343154", "0.5830971", "0.5821475", "0.58026785", "0.5794259", "0.5789258", "0.5756687", "0.5750869", "0.5750583", "0.57491714", "0.572808", "0.5721385", "0.57149726", "0.57024366", "0.56971955", "0.5695658", "0.56820667", "0.5676712", "0.5673962", "0.5660894", "0.56598824", "0.56594616", "0.5653009", "0.5647432", "0.56382495", "0.5630623", "0.56289643", "0.5627372", "0.5618452", "0.56083006", "0.5603583", "0.55969936", "0.5586575", "0.55854046", "0.55805326", "0.5572781", "0.55708516", "0.55641043", "0.55619574", "0.5546743", "0.5546654", "0.5542572", "0.5536412", "0.5524121", "0.5523732", "0.552365", "0.5521324", "0.5520367", "0.55187035", "0.5516659", "0.55114305", "0.5510216", "0.55101764", "0.5508203", "0.55080485", "0.55028814", "0.54958004", "0.54921854", "0.5489975", "0.54784304", "0.5476296", "0.5466477", "0.54656196", "0.546184", "0.54575163", "0.54562855", "0.5453735", "0.54506016", "0.54426485", "0.5436899", "0.5435068", "0.5434301", "0.54322857", "0.54301804", "0.5428885" ]
0.0
-1
difference between start time and finish time ...maybe? Full constructor
public Session(int sessionID, int associatedUserID, String associatedUserName, int associatedTaskID, String associatedTaskName, String startTime, String finishTime, LocalDateTime startLDT, LocalDateTime finishLDT, int duration) { this.sessionID = sessionID; this.associatedUserID = associatedUserID; this.associatedUserName = associatedUserName; this.associatedTaskID = associatedTaskID; this.associatedTaskName = associatedTaskName; this.startTime = startTime; this.finishTime = finishTime; this.startLDT = startLDT; this.finishLDT = finishLDT; this.duration = duration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double calculateStartTime();", "protected double getElapsedTime() {\n\t\treturn Utilities.getTime() - startTime;\n\t}", "public double getFinishTime(){return finishTime;}", "public Double waitTimeCalculatior(long start) {\n\t\t\t\tdouble difference = (System.currentTimeMillis() - start);\n\t\t\t\treturn difference;\n\t\t\t}", "public double getStartTime();", "public int getTotalTime();", "public long getElapsedTime(){\n long timePassed = endTime - startTime;\n return timePassed;\n }", "public float getTime() {\n return Math.abs(endTime - startTime) / 1000000f;\n }", "long getElapsedTime();", "public long startTime();", "public long duration() {\n\t\treturn end - start;\n\t}", "@Override\n\tpublic long getTime() {\n\t\treturn System.nanoTime() - startTime;\n\t}", "public Rational getStartTime ()\r\n {\r\n return startTime;\r\n }", "long elapsedTime();", "public int duration (long start, long end){\n\t\tlong duration = end - start;\n\t\tint time = (int)(duration /1000);\n\t\treturn time;\n\t}", "public String duration(){\n long duration =beginTime.getTime()-endTime.getTime();\n long diffMinutes = duration / (60 * 1000) % 60;\n long diffHours = duration / (60 * 60 * 1000);\n if(diffHours ==0)\n return -1*diffMinutes + \" minutes\";\n else\n return \" \"+-1*diffHours+\":\"+ -1*diffMinutes +\"min\";\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public static void calTime() {\n time = new Date().getTime() - start;\n }", "public float getSecondsElapsed() { return _startTime==0? 0 : (System.currentTimeMillis() - _startTime)/1000f; }", "private long getDuration() throws Exception {\n\treturn dtEnd.getTime() - dtStart.getTime();\n }", "long getStartTime();", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "int getStartTime();", "int getStartTime();", "int getStartTime();", "public double getStopTime();", "TimeSpent createTimeSpent();", "public Coursetime() {\n\t}", "public int totalTime()\n {\n return departureTime - arrivalTime;\n }", "@Override\n\tpublic float getStartTime()\n\t{\n\t\treturn _tbeg;\n\t}", "public int getTurnaround (){\n return finishingTime-arrival_time;\n }", "long duration();", "public long getTimeTaken();", "public double getTime() { return duration; }", "public int getDuration() {\n\t\treturn (int) ((endTime.getTime()-startTime.getTime())/1000) + 1;\n\t}", "public long getStartTime();", "public long getStartTime();", "public long getBeginTime() { return beginTime; }", "public long timeElapsed()\n {\n return (System.currentTimeMillis() - this.startTime) / 1000;\n }", "@Transient\n \tpublic int getDuration() {\n \t\tint duration = (int) (this.endTime.getTime() - this.startTime.getTime());\n \t\treturn duration / 1000;\n \t}", "public static void duration(){\n Instant instant1 = Instant.ofEpochSecond(3);\n Instant instant2 = Instant.ofEpochSecond(3, 0);\n\n// Duration d1 = Duration.between(time1, time2);\n// Duration d2 = Duration.between(dateTime1, dateTime2);\n Duration d3 = Duration.between(instant1, instant2);\n }", "protected void initialize() {\n \t\n \tstart_time = System.currentTimeMillis();\n \t\n \tgoal = start_time + duration;\n }", "public long getStartTime ()\r\n {\r\n return startTime;\r\n }", "protected double getStartTime() {\n\t\treturn startTime;\n\t}", "public int computeDuration() {\n return (int) Duration.between(getStart_time(), getEnd_time()).toSeconds();\n }", "public double getElapsedTime(){\n double CurrentTime = System.currentTimeMillis();\n double ElapseTime = (CurrentTime - startTime)/1000;\n return ElapseTime;\n }", "@Override\n\tpublic long getTimeLapsed(long start, long end) {\n\t\tlong difference=(end - start);\n\t\treturn difference;\t}", "@Override\r\n\tpublic int requiredTime() {\n\t\treturn 0;\r\n\t}", "private long CurrentTime(){\n return (TotalRunTime + System.nanoTime() - StartTime)/1000000;\n }", "public static void startTimeMeasure() {\n \tstartTime = System.nanoTime();\n }", "private long getTotalDuration() {\n if(mMarkers.size() == 0) {\n return 0;\n }\n long first = mMarkers.get(0).time;\n long last = mMarkers.get(mMarkers.size() - 1).time;\n return last - first;\n }", "public long startTimeNanos();", "public double getCBRTime();", "@Override\n\tpublic int getStartTime() {\n\t\treturn 0;\n\t}", "private static String elapsed(long start) {\r\n\treturn \": elapsed : \" + (System.currentTimeMillis() - start) + \" ms \";\r\n }", "public double getCircleTime();", "public int getTimeStart() {\r\n return timeStart;\r\n }", "abstract public int getTime();", "Instant getStart();", "public Time(){\r\n Seconds = 0; \r\n }", "long getVisitStarttime();", "long getVisitStarttime();", "int getEndTime();", "int getEndTime();", "int getEndTime();", "long getDuration();", "private TimeUtil() {}", "public int getTime() { return _time; }", "Time started() {\n return started;\n }", "Posn getDuration();", "long getTotalDoExamTime();", "public Timer()\n {\n // initialise instance variables\n startTime = 0;\n bonusTime = 0;\n }", "public double getStartTime() {\n return startTime;\n }", "public double getStartTime() {\n return startTime;\n }", "public Long getTime() {\n if (timeEnd == null) {\n return null;\n }\n return timeEnd - timeStart;\n }", "int getRunningDuration();", "long getStartTime() {\n return startTime;\n }", "public double getTime() {return _time;}", "public double getSecs( );", "protected double difftime(double t2, double t1) {\n\t\treturn t2 - t1;\n\t}", "public double getTime() { return time; }", "public double computeElapsedTime() {\r\n\r\n long now = System.currentTimeMillis();\r\n\r\n elapsedTime = (double) (now - startTime);\r\n\r\n // if elasedTime is invalid, then set it to 0\r\n if (elapsedTime <= 0) {\r\n elapsedTime = (double) 0.0;\r\n }\r\n\r\n return (double) (elapsedTime / 1000.0); // return in seconds!!\r\n }", "public long elapsedTime(long startTime,long endTime){\r\n\t\tlong elapsedTime=(endTime-startTime)/1000;\r\n\t\treturn elapsedTime;\r\n\t}", "public long getStart_time() {\n return start_time;\n }", "private int totalTime()\n\t{\n\t\t//i'm using this varaible enough that I should write a separate method for it\n\t\tint totalTime = 0;\n\t\tfor(int i = 0; i < saveData.size(); i++)//for each index of saveData\n\t\t{\n\t\t\t//get the start time\n\t\t\tString startTime = saveData.get(i).get(\"startTime\");\n\t\t\t//get the end time\n\t\t\tString endTime = saveData.get(i).get(\"endTime\");\n\t\t\t//****CONTINUE\n\t\t\t//total time in minutes\n\t\t}\n\t}", "@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }", "public String getBeginTime() {\n/* 28 */ return this.beginTime;\n/* */ }", "protected EditorLanguage timeDiff(String varStart, String varEnd)\n\t{\n\t\treturn text('(').text(varEnd).text(\" - \").text(varStart).text(\") / 1000.0\");\n\t}", "double getStaStart();", "@Override\n public long getTimeNeeded() {\n return timeNeeded;\n }", "public long sinceStart() {\n return System.currentTimeMillis() - lastStart;\n }", "public long age() {\n if (startTime == 0) {\n return 0;\n } else {\n return (System.currentTimeMillis() - this.startTime) / 1000;\n }\n }", "public static long getElapsedTime() {\n long time = System.currentTimeMillis() - START_TIME;\n // long time = System.nanoTime() / 1000000;\n return time;\n }", "public float getStartTime()\r\n\t{\r\n\t\tif (starttime != null)\r\n\t\t\treturn starttime.getTimeInMillis();\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "public TimeTravel() {\r\n\t\t}", "public static String timeDifference(long start) {\r\n\t\treturn timeDifference(start, System.currentTimeMillis());\r\n\t}", "public static long GetElapsedTime() {\n\t\treturn System.currentTimeMillis() - _lTime;\n\t}", "public long getSortTime(){ \n return endTime - startTime;\n }", "public Time() {\r\n\t\tsecond = (System.currentTimeMillis() / 1000) % 60;\r\n\t\tminute = (System.currentTimeMillis() / 1000) / 60 % 60;\r\n\t\thour = ((System.currentTimeMillis() / 1000) / 3600) % 24;\r\n\t}", "public void timePassed() {\r\n\r\n }", "public int getDuration();" ]
[ "0.71554", "0.70164394", "0.6880278", "0.67932904", "0.6792336", "0.6791154", "0.67908", "0.6780393", "0.67668414", "0.672488", "0.67060673", "0.66478056", "0.661339", "0.66112506", "0.6602557", "0.6592766", "0.6585352", "0.6574078", "0.6566035", "0.6519379", "0.6518812", "0.6480086", "0.64692485", "0.64692485", "0.64692485", "0.6461063", "0.64513916", "0.64426893", "0.6419895", "0.64051676", "0.64020777", "0.63945156", "0.639173", "0.638812", "0.63874084", "0.6339207", "0.6339207", "0.63385683", "0.6329575", "0.63290685", "0.63259816", "0.6310416", "0.62931293", "0.6292521", "0.6287644", "0.62789387", "0.62468994", "0.6240748", "0.62361693", "0.62353283", "0.61991084", "0.6197114", "0.6194792", "0.61947", "0.6189507", "0.61863446", "0.61758214", "0.61635244", "0.6157894", "0.61551744", "0.61494267", "0.61494267", "0.614264", "0.614264", "0.614264", "0.6135528", "0.6133668", "0.6133611", "0.6127289", "0.61215895", "0.6119903", "0.61181647", "0.61152637", "0.61152637", "0.61035883", "0.61003625", "0.6096721", "0.6085551", "0.6085412", "0.608082", "0.6078387", "0.60621333", "0.6061145", "0.60549474", "0.6053656", "0.6050048", "0.60478216", "0.604499", "0.6037117", "0.60219204", "0.60186994", "0.6003874", "0.6003081", "0.6002414", "0.6001583", "0.5995611", "0.5993386", "0.5992304", "0.5989953", "0.5989898", "0.59897906" ]
0.0
-1
Ordering by DateTime constructor
public Session(int sessionID, int associatedTaskID, String associatedTaskName, LocalDateTime startLDT, LocalDateTime finishLDT) { this.sessionID = sessionID; // this.description = description; this.associatedTaskID = associatedTaskID; this.associatedTaskName = associatedTaskName; // Do I need this? this.startLDT = startLDT; this.finishLDT = finishLDT; // Do I need this? }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timestamp getDateOrdered();", "int compare( IDateTimeValueType rhs );", "@Test\n void sortByDate() {\n }", "private ArrayList<Task> sortByDate(ArrayList<Task> toSort) {\n ArrayList<Task> sorted = new ArrayList<>();\n\n toSort = removeNoTimeTask(toSort);\n\n int size = toSort.size();\n for (int i = 0; i < size; i++) {\n Date earliest = new Date(Long.MAX_VALUE);\n int earliestIndex = -1;\n for (int j = 0; j < toSort.size(); j++) {\n if (toSort.get(j).getClass().equals(Deadline.class)) {\n Deadline temp = (Deadline) toSort.get(j);\n if (temp.getTime().before(earliest)) {\n earliest = temp.getTime();\n earliestIndex = j;\n }\n } else if (toSort.get(j).getClass().equals(Event.class)) {\n Event temp = (Event) toSort.get(j);\n if (temp.getTime().before(earliest)) {\n earliest = temp.getTime();\n earliestIndex = j;\n }\n } else if (toSort.get(j).getClass().equals(Period.class)) {\n Period temp = (Period) toSort.get(j);\n if (temp.getStart().before(earliest)) {\n earliest = temp.getStart();\n earliestIndex = j;\n }\n }\n }\n\n sorted.add(toSort.get(earliestIndex));\n toSort.remove(earliestIndex);\n }\n return sorted;\n }", "private void sortByDate(List<Entry> entries) {\n\t\t\n\t\tCollections.sort(entries, new Comparator<Entry>() {\n\t\t\tpublic int compare(Entry o1, Entry o2) {\n\t\t\t if (o1.getTimestamp() == null || o2.getTimestamp() == null)\n\t\t\t return 0;\n\t\t\t return o1.getTimestamp().compareTo(o2.getTimestamp());\n\t\t\t }\n\t\t\t});\n\t}", "private void sortByDateOpen() {\n //selection sort\n for (int i = 0; i < size - 1; i++) {\n int earliestDateIndex = i;\n for (int j = i + 1; j < size; j++)\n if (accounts[j].getDateOpen().compareTo(accounts[earliestDateIndex].getDateOpen()) < 0) {\n earliestDateIndex = j;\n }\n Account acc = accounts[earliestDateIndex];\n accounts[earliestDateIndex] = accounts[i];\n accounts[i] = acc;\n }\n }", "private void sortByDateOpen() {\r\n\t\tfor ( int i = 0; i < size-1; i++ ) {\r\n\t\t\tint minIndex = i; \r\n\t\t\tfor ( int j = i + 1; j < size; j++) { \r\n\t\t\t\t//returns -1 if the date is less than\r\n\t\t\t\tif ( accounts[j].getDateOpen().compareTo(accounts[minIndex].getDateOpen()) == -1 ) {\r\n\t\t\t\t\tminIndex = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tAccount temp = accounts[minIndex];\r\n\t\t\taccounts[minIndex] = accounts[i];\r\n\t\t\taccounts[i] = temp;\r\n\t\t}\r\n\t\treturn;\r\n\t}", "public static JwComparator<AcWebServiceRequestData> getCreatedUtcTsComparator()\n {\n return AcWebServiceRequestDataTools.instance.getCreatedUtcTsComparator();\n }", "@Override\n\tprotected String getDefaultOrderBy() {\n\t\treturn \"date asc\";\n\t}", "@Override\n public Sort getDefaultSort() {\n return Sort.add(SiteConfineArea.PROP_CREATE_TIME, Direction.DESC);\n }", "public interface DateTime extends Comparable, Cloneable\n{\n DateFormat STD_DATE_FORMAT = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);\n\n /**\n * Returns the DateTimeStruct that this object represents\n * @deprecated This method exists primarily for backwards compatability reasons. Please use the wrapper objects\n * whenever possible.\n */\n DateTimeStruct getDateTimeStruct();\n\n /**\n * Returns the date\n */\n Date getDate();\n\n /**\n * Returns the time\n */\n Time getTime();\n\n /**\n * Returns the date in Calendar format\n */\n Calendar getCalendar();\n\n /**\n * Returns the time as UTC milliseconds from the epoch\n */\n long getTimeInMillis();\n}", "double getSortTime();", "private static void sortingArrayList() {\n Collections.sort(allMapData, new Comparator<MapDataModel>() {\n public int compare(MapDataModel d1, MapDataModel d2) {\n return valueOf(d1.getDateTime().compareTo(d2.getDateTime()));\n }\n });\n }", "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public JwComparator<AcFossWebServiceMessage> getCreatedUtcTsComparatorNullsLower()\n {\n return CreatedUtcTsComparatorNullsLower;\n }", "public void sortBasedYearService();", "public void sort(){\n listOperation.sort(Comparator.comparingInt(Operation::getiStartTime));\n }", "public static JwComparator<AcGlobalDevice> getCreatedUtcTsComparator()\n {\n return AcGlobalDeviceTools.instance.getCreatedUtcTsComparator();\n }", "private void sortByDateOpen() { // sort in ascending order\n\t\tint numAccounts = size;\n\t\tDate firstDateOpen;\n\t\tDate secondDateOpen;\n\t\t\n\t\tfor (int i = 0; i < numAccounts-1; i++) {\n\t\t\t\n\t\t\t\n\t\t\tint min_idx = i;\n\t\t\t\n\t\t\t\n\t\t\tfor (int j = i+1; j < numAccounts; j++) {\n\t\t\t\t\n\t\t\t\t// Retrieve last name of two that you are comparing\n\t\t\t\tfirstDateOpen = accounts[j].getDateOpen();\n\t\t\t\tsecondDateOpen = accounts[min_idx].getDateOpen();\n\t\t\t\t\n\t\t\t\tif (firstDateOpen.compareTo(secondDateOpen) < 0) {\n\t\t\t\t\tmin_idx = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tAccount temp = accounts[min_idx];\n\t\t\taccounts[min_idx] = accounts[i];\n\t\t\taccounts[i] = temp;\n\t\t}\n\t\t\n\t}", "public void sortEventsByTime() {\n for (OrgEvent event : events) {\n event.setCompareByTime(true);\n }\n Collections.sort(events);\n }", "@Override\n public int compareTo(SmartDate o) {\n return this.date.compareTo(o.date);\n }", "public Timestamp getDateOrdered() {\n\t\treturn (Timestamp) get_Value(\"DateOrdered\");\n\t}", "public void setDateOrdered (Timestamp DateOrdered);", "private static ArrayList<Quest> sortAfterTimestamp(ArrayList<Quest> questListToSort) {\n\t\tfor (int i = 0; i < questListToSort.size() - 1; i++) {\n\t\t\tint index = i;\n\t\t\tfor (int j = i + 1; j < questListToSort.size(); j++) {\n\t\t\t\tif (questListToSort.get(j).getTimestamp() > questListToSort.get(index).getTimestamp()) {\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tCollections.swap(questListToSort, index, i);\n\t\t}\n\t\treturn questListToSort;\n\t}", "@Override\n public int compareTo(Date that) {\n if (this.year < that.year) return -1;\n if (this.year > that.year) return 1;\n if (this.month < that.month) return -1;\n if (this.month > that.month) return 1;\n if (this.day < that.day) return -1;\n if (this.day > that.day) return 1;\n return 0;\n }", "@Test\r\n public void testCompareTo3() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"3/1/2013\");\r\n assertTrue(d1.compareTo(d2) == 0);\r\n }", "private void sortDate()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getReleaseDate().compareTo(b.getReleaseDate());\n if( result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "@Test\n public void testShipment_Sorted_By_Date() {\n List<Widget> widgets = shipment.getWidgetsSortedByDate();\n assertNotNull(widgets);\n assertTrue(widgets.size() == 10);\n Widget widget1 = (Widget) widgets.get(0);\n Widget widget2 = (Widget) widgets.get(1);\n assertTrue(widget1.getColor().compareTo(widget2.getColor()) <= 0);\n }", "@SuppressWarnings(\"unused\")\n private OrderBy() {\n }", "@Override\n public int compareTo(Date ARG) {\n if (year < ARG.year)\n {\n \treturn -1;\n }\n else if( year > ARG.year)\n {\n \treturn 1;\n }\n \n else{\n \tif (dayOfMonth < ARG.dayOfMonth)\n \t{\n \t\treturn -1; \n \t\t\n \t}\n \telse if (dayOfMonth > ARG.dayOfMonth)\n \t{\n \t\treturn 1; \n \t}\n \telse\n \t{\n \t\tif (dayOfMonth < ARG.dayOfMonth)\n \t\t{\n \t\t\treturn -1;\n \t\t}\n \t\telse if(dayOfMonth > ARG.dayOfMonth)\n \t\t{\n \t\t\treturn 1;\n \t\t}\n \t\telse\n \t\t{\n \t\t\treturn 0; \n \t\t}\n \t}\n \t\n } \t\n }", "@Override\n\t\t\t\tpublic int compare(PartnerDemand lhs, PartnerDemand rhs) {\n\t\t\t\t\treturn rhs.getCreatedAt().compareTo(lhs.getCreatedAt());\n\t\t\t\t}", "private GeofenceInfoContent[] sortByDate(GeofenceInfoContent[] geofenceInfoContents){\n GeofenceInfoContent infoContent = null;\n for(int j = 0; j < geofenceInfoContents.length; j++) {\n for (int i = 0; i < geofenceInfoContents.length; i++) {\n infoContent = geofenceInfoContents[i];\n if (i < geofenceInfoContents.length - 1) {\n String year1 = infoContent.getYear();\n String year2 = geofenceInfoContents[i + 1].getYear();\n int year1Int = Integer.parseInt(year1);\n int year2Int = Integer.parseInt(year2);\n if (year1Int < year2Int) {\n geofenceInfoContents[i] = geofenceInfoContents[i + 1];\n geofenceInfoContents[i + 1] = infoContent;\n }\n }\n }\n }\n return geofenceInfoContents;\n }", "@Test\r\n public void testCompareTo2() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertFalse(d1.compareTo(d2) < 0);\r\n }", "public ArrayList<Event> sortByDate() {\n\t\tArrayList<Event>calendarSortedByDate = new ArrayList();\n\t\tfor(int j = 0; j<calendar.size(); j++) {\n\t\t\tcalendarSortedByDate.add(calendar.get(j));\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < calendarSortedByDate.size() - 1; i++) {\n\t\t // Find the minimum in the list[i..list.size-1]\n\t\t Event currentMin = calendarSortedByDate.get(i);\n\t\t int currentMinIndex = i;\n\n\t\t for (int j = i + 1; j < calendarSortedByDate.size(); j++) {\n\t\t if (currentMin.compareDate​(calendarSortedByDate.get(j)) > 0) {\n\t\t currentMin = calendarSortedByDate.get(j);\n\t\t currentMinIndex = j;\n\t\t }\n\t\t }\n\n\t\t // Swap list[i] with list[currentMinIndex] if necessary;\n\t\t if (currentMinIndex != i) {\n\t\t \t calendarSortedByDate.set(currentMinIndex, calendarSortedByDate.get(i));\n\t\t \t calendarSortedByDate.set(i, currentMin);\n\t\t }\n\t\t }\n\t\treturn calendarSortedByDate;\n\t}", "public long getSortTime(){ \n return endTime - startTime;\n }", "private void sortDateList(List<Date> dateList) {\n Collections.sort(dateList);\n }", "public void sortByDate(){\n output.setText(manager.display(true, \"date\"));\n }", "public Integer getTimeSort() {\n return timeSort;\n }", "public double getSortTime() {\n return sortTime_;\n }", "@Test\r\n public void testCompareTo1() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertTrue(d1.compareTo(d2) > 0);\r\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "public DateTime() {\n this((BusinessObject) null);\n }", "public static void sortEvents(){\n if(events.size()>0){\n Comparator<Event> comp = new Comparator<Event>(){\n public int compare(Event e1, Event e2){\n if(e1.getEventStartTime().before(e2.getEventStartTime())){\n return -1;\n }\n else if(e1.getEventStartTime().after(e2.getEventStartTime())){\n return 1;\n }\n else{\n return 0;\n }\n }\n \n };\n Collections.sort(events, comp);\n \n }}", "public static int compareDateTime(NodeValue nv1, NodeValue nv2) {\n // XSD Datatypes defines a partial order on dateTimes when comparing with\n // and without timezone => compareXSDDateTime\n // F&O defines a total order by applying the context-dependent implicit\n // timezone => compareDateTimeFO\n //\n // \"Comparison operators on xs:date, xs:gYearMonth and xs:gYear compare their\n // starting instants. These xs:dateTime values are calculated as described\n // below.\"\n if ( SystemARQ.StrictDateTimeFO )\n return compareDateTimeFO(nv1, nv2) ;\n return compareDateTimeXSD(nv1, nv2);\n }", "public DateSortingUsingAlgorithm() throws IOException {\n\t\t//initialize the classes local variables\n\t\tmap = new HashMap<LocalDate, Integer>();\n\t\tString[] mapData = new String[3];\n\t\t\n\t\t//using a BufferedReader to read in data from the SortingDates.txt file\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"SortingDates.txt\"));\n\t\t\n\t\t//begin reading in the data from the file\n\t\tString dataLine = br.readLine().trim();\n\t\t\n\t\t//the format of the SortingDates.txt dates\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n\t\tInteger value = 0;\n\t\t/*\n\t\t * this while loop continues to read from the file while there is still data to read in. it \n\t\t * takes the data as a String and parses it into a LocalDate date using the formatter above. Lastly,\n\t\t * it adds the LocalDate to the HashMap to be sorted later\n\t\t */\n\t\twhile (dataLine != null) {\n\t\t\tString result = \"\";\n\t\t\tmapData = dataLine.trim().split(\"-\");\n\t\t\t\n\t\t\t//using a for loop to trim any whitespace in the yyyy-dd-MM format\n\t\t\tfor (int index = 0; index < mapData.length; ++index) {\n\t\t\t\tmapData[index] = mapData[index].trim(); //trimming any white spaces in the yyyyddMM format\n\t\t\t\tif (index == 2) {\n\t\t\t\t\tresult += mapData[index];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tresult += mapData[index] + \"-\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tLocalDate mapDataLDT = LocalDate.parse(result, format);\n\t\t\tmap.put(mapDataLDT, value++);\n\t\t\tdataLine = br.readLine();\n\t\t}\n\t\tbr.close();\n\t}", "public PriceComparator()\n\t{\n\t\tascending=true;\n\t}", "public double getSortTime() {\n return sortTime_;\n }", "public static JwComparator<AcUspsInternationalCgrReplyOffer> getCreatedUtcTsComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getCreatedUtcTsComparator();\n }", "@Override\n\t\t\t\tpublic int compare(StatisticsItemData o1, StatisticsItemData o2) {\n\t\t\t\t\treturn o2.getDate().compareTo(o1.getDate());\n\t\t\t\t}", "@Test\r\n public void testGetShapesSortedByTimestamp() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(regularPolygon);\r\n List<Shape> actualOutput = screen.sortShape(SortType.TIMESTAMP);\r\n assertEquals(expectedOutput, actualOutput);\r\n }", "public void dateHashMapSorted() {\n\t\t//array used to store the key values of the unsorted HashMap\n\t\tLocalDate[] unsortedArr = new LocalDate[SORTINGDATES_SIZE];\n\t\n\t\t//adding all the keys to unsortedArr\n\t\tint i = 0;\n\t\tfor (LocalDate key : map.keySet()) {\n\t\t\t\tunsortedArr[i++] = key;\n\t\t\t}\n\t\t\n\t\tfor (int currIndex = 1; currIndex < unsortedArr.length; currIndex++) {\n\t\t\tLocalDate date = unsortedArr[currIndex];\n\t\t\tint k = currIndex - 1;\n\t\t\t\t\n\t\t\t/*\n\t\t\t * while the index for the array stays above 0 and the element in the previous\n\t\t\t * index is greater than the element at the currentIndex\n\t\t\t */\n\t\t\twhile ((k >= 0) && (unsortedArr[k].isAfter(date))) {\n\t\t\t\t//shifting the elements to the right\n\t\t\t\tunsortedArr[k + 1] = unsortedArr[k];\n\t\t\t\t//decrement x to move the other elements over\n\t\t\t\tk--;\t\n\t\t\t}\n\t\t\tunsortedArr[k + 1] = date;\n\t\t}\n\n\t\tfor (i = 0; i < unsortedArr.length; ++i) {\n\t\t\tSystem.out.println(unsortedArr[i]);\n\t\t}\n\t}", "public int compareTo(Group3Date that) {\n\t\t\tif (this.year < that.year) return -1;\n\t\t\tif (this.year > that.year) return +1;\n\t\t\tif (this.month < that.month) return -1;\n\t\t\tif (this.month > that.month) return +1;\n\t\t\tif (this.day < that.day) return -1;\n\t\t\tif (this.day > that.day) return +1;\n\t\t\treturn 0;\n\t\t}", "public IPAddressComparator(){\n\t\tsuper(IPDatePair.class, true);\n\t}", "OrderByClause createOrderByClause();", "@Then(\"the results should be sorted by most recent date\")\n public void the_results_should_be_sorted_by_most_recent_date() {\n int value= (new AccountActivityPage().dates.get(new AccountActivityPage().dates.size() - 1)).getText().compareTo((new AccountActivityPage().dates.get(0)).getText());\n\n Assert.assertTrue(value<0);\n\n }", "@Override\n public int compare(Chapter t, Chapter t1) {\n //return Long.valueOf(t.getDate()).compareTo(t1.getDate());\n return Integer.valueOf(t1.getNumber()).compareTo(t.getNumber());\n }", "OrderExpression<T> asc();", "public JwComparator<AcActionAutoCorrectedLog> getCorrectedUtcTsComparatorNullsLower()\n {\n return CorrectedUtcTsComparatorNullsLower;\n }", "private DBObject buildSortSpec(final GetObjectInformationParameters params) {\n\t\tfinal DBObject sort = new BasicDBObject();\n\t\tif (params.isObjectIDFiltersOnly()) {\n\t\t\tsort.put(Fields.VER_WS_ID, 1);\n\t\t\tsort.put(Fields.VER_ID, 1);\n\t\t\tsort.put(Fields.VER_VER, -1);\n\t\t}\n\t\treturn sort;\n\t}", "@Override\n public int compareTo(Message m) {\n return this.date.compareTo(m.date);\n }", "@Override\r\n\tpublic int compareTo(RSS o) {\r\n\t\treturn o.getCreatedDate().compareTo(this.getCreatedDate());\r\n\t}", "private void sortViewEntries() {\n runOnUiThread(new Runnable() {\n public void run() {\n try {\n Collections.sort(viewEntries, new DateComparator());\n } catch (final Exception ex) {\n // Log.i(\"sortViewEntries\", \"Exception in thread\");\n }\n }\n });\n }", "OffsetDateTime createdDateTime();", "public static void sortActivities() {\n Activity.activitiesList.sort(new Comparator<Activity>() {\n @Override\n public int compare(Activity activity, Activity t1) {\n if (activity.getStartTime().isAfter(t1.getStartTime())) {\n return 1;\n }\n else if (activity.getStartTime().isBefore(t1.getStartTime())){\n return -1;\n }\n else {\n return 0;\n }\n }\n });\n }", "public JwComparator<AcActionAutoCorrectedLog> getActualEffectiveUtcTsComparatorNullsLower()\n {\n return ActualEffectiveUtcTsComparatorNullsLower;\n }", "DateTimeStruct getDateTimeStruct();", "@Override\r\n\t public int compareTo(Interval o) {\n\r\n\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t try{\r\n\t Date startDate = sdf.parse(start);\r\n\t Date endDate = sdf.parse(end);\r\n\t Date pstartDate = sdf.parse(o.start);\r\n\t Date pendDate = sdf.parse(o.end);\r\n\r\n\t return startDate.compareTo(pstartDate);\r\n\r\n\t }catch(Exception ex){\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return 0;\r\n\t }", "@Override\n public int compare(Task task1, Task task2) {\n return task1.getDate().compareTo(task2.getDate());\n }", "public Comparator<PoiPoint> getPointStartTimeComparator() {\r\n \r\n class PointStartTimeComparator implements Comparator<PoiPoint> {\r\n public int compare(PoiPoint point1, PoiPoint point2) {\r\n return (point1.getStartTimeInt() - point2.getStartTimeInt());\r\n }\r\n }\r\n \r\n return new PointStartTimeComparator();\r\n }", "@Override\n public int compareTo(Date date) {\n if (this.year > date.year) {\n return 1;\n } else if (this.year < date.year) {\n return -1;\n } else if (this.year == date.year) {\n if (this.month > date.month) {\n return 1;\n } else if (this.month < date.month) {\n return -1;\n } else if (this.month == date.month) {\n if (this.day > date.day) {\n return 1;\n } else if (this.day < date.day) {\n return -1;\n } else if (this.day == date.day) {\n return 0;\n }\n }\n }\n return 0;\n }", "boolean getOrderByDayNull();", "public static void main(String[] args) throws ParseException {\n HashMap<Date, String> hmap = new HashMap<Date, String>();\n /* hmap.put(5, \"A\");\n hmap.put(11, \"C\");\n hmap.put(4, \"Z\");\n hmap.put(662, \"Y\");\n hmap.put(9, \"P\");\n hmap.put(661, \"Q\");\n hmap.put(0, \"R\");*/\n \n Date date = new Date();\n \n SimpleDateFormat ft = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n\t//format.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\tString dat = \"2017-06-05T08:07:34.000Z\";\n\tString dats = \"2017-06-05T21:07:34.012Z\";\n\tDate datesss = ft.parse(dat);\n\tDate da = ft.parse(dats);\n\tSystem.out.println(\"ok fine :\"+ft.format(datesss));\n hmap.put(datesss,\"u\");\n hmap.put(da,\"l\");\n\n System.out.println(\"Before Sorting:\");\n Set set = hmap.entrySet();\n Iterator iterator = set.iterator();\n while(iterator.hasNext()) {\n Map.Entry me = (Map.Entry)iterator.next();\n System.out.print(me.getKey() + \": \");\n System.out.println(me.getValue());\n }\n Map<Date, String> map = new TreeMap<Date, String>(hmap); \n String ab = map.get(map.keySet().toArray()[0]);\n\n/*Date firstKey = (Date) map.keySet().toArray()[0];\nString valueForFirstKey = map.get(firstKey);\n System.out.println(firstKey);\n System.out.println(valueForFirstKey);*/\n System.out.println(\"After Sorting:\");\n Set set2 = map.entrySet();\n Iterator iterator2 = set2.iterator();\n while(iterator2.hasNext()) {\n Map.Entry me2 = (Map.Entry)iterator2.next();\n System.out.print(me2.getKey() + \": \");\n System.out.println(me2.getValue());\n }\n System.out.println(\"#######################################################\");\n /* Map<Date, String> mat = new TreeMap<Date, String>(new Comparator<Date>() {\n public int compare(Date d1, Date d2) {\n return d1.after(d2) ? 1 : -1;\n }\n });*/\n \n Map<Long, String> mat = new TreeMap<Long, String>();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n Date d1 = dateFormat.parse(\"2017-06-05T08:07:34.000Z\");\n Date d2 = dateFormat.parse(\"2017-06-05T21:07:34.000Z\");\n Date d3 = dateFormat.parse(\"2021-04-12T21:10:25.000Z\");\n \n// String firstKey = (String) mat.keySet().toArray()[0];\n//\tString valueForFirstKey = (String) mat.get(firstKey);\n\tlong epocha = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2017-06-05T08:07:34.000Z\").getTime() / 1000;\n\tlong epochb = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2008-06-05T21:07:34.000Z\").getTime() / 1000;\n\tlong epochc = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2015-01-07T20:57:40.000Z\").getTime() / 1000;\n\tlong epochd = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2015-01-30T00:32:20.000Z\").getTime() / 1000;\n\t\n\tmat.put(epocha, \"s2\");\n mat.put(epochb, \"s1\");\n mat.put(epochc, \"s3\");\n mat.put(epochd,\"s4\");\n\t\n\tSystem.out.println(\"epoch:\"+epocha);\n\tSystem.out.println(\"epocha:\"+epochb);\n\tSystem.out.println(\"epochc:\"+epochc);\n\tSystem.out.println(\"epochd:\"+epochd);\n//\tSystem.out.println(firstKey);\n//\tSystem.out.println(valueForFirstKey);\n \n System.out.println(mat );\n \n \n \n \n /* System.out.println(map.size());\n int firstKey1 = (Integer) map.keySet().toArray()[6];\n System.out.println(\"firstKey1:\"+firstKey1);\n\tString valueForFirstKey2 = (String) map.get(firstKey1);\n\tSystem.out.println(\"valueForFirstKey2 :\"+valueForFirstKey2);*/\n}", "public static void main(String[] args) {\nDate d1 = new Date( 2019, 02, 22);\nSystem.out.println(d1);\n\n\nDate d2= new Date();\nSystem.out.println(d2);\nDate d3 = new Date(2000,11,11);\nSystem.out.println(d3);\nint a = d1.compareTo(d3);\nSystem.out.println(a);\nboolean b = d1.after(d2);\n\tSystem.out.println(b);\n\t}", "private Sort() { }", "public JwComparator<AcActionAutoCorrectedLog> getScannedEffectiveUtcTsComparatorNullsLower()\n {\n return ScannedEffectiveUtcTsComparatorNullsLower;\n }", "public static void setSortOrdersByDateCreated(List<Order> orders) {\n Collections.sort(orders, SORT_ORDERS_BY_DATE_CREATED);\n }", "@Override\n\tpublic int compare(Concepto o1, Concepto o2) {\n\t\treturn o1.getFecha_Fin().compareTo(o2.getFecha_Fin());\n\t}", "public com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[] getDatetimeorderingArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(DATETIMEORDERING$2, targetList);\r\n com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[] result = new com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public void sortDaysArray() {\n if (_savedDates.size() > 0) {\n Collections.sort(_savedDates, Collections.reverseOrder());\n }\n //Log.i(\"DailyLogFragment\", \"_savedDates after sort = \" + _savedDates);\n }", "public CreationDatesComparator(Map<String, TaskBean> _tasks){\r\n\t\t\tthis.tasks = _tasks; // store the copy to use it in compare()\r\n\t\t}", "@Override\n public int compare(final Availability o1, final Availability o2) {\n DateFormat f = new SimpleDateFormat(\"dd-MM-yyyy\");\n try {\n return f.parse(o1.getDate()).compareTo(f.parse(o2.getDate()));\n } catch (ParseException e) {\n throw new IllegalArgumentException(e);\n }\n }", "public void sortGivenArray_date(){\n movieList = mergeSort(movieList);\n }", "protected Sort getSortASC() {\n Sort.Order order = new Sort.Order(Sort.Direction.ASC, \"id\");\n return Sort.by(order);\n }", "io.dstore.values.BooleanValue getOrderByDay();", "public static <T extends Time> Comparator<T> timeComparator() {\n return new Comparator<T>() {\n\n @Override\n public int compare(T o1, T o2) {\n return o1.getTimeStamp().compareTo(o2.getTimeStamp());\n }\n };\n }", "private List<Date> checkOrderOfDateTimes(List<Date> dateTimes) {\n\t\tif (dateTimes != null && dateTimes.size() == 2) {\n\t\t\tDate startDate = dateTimes.get(0);\n\t\t\tDate endDate = dateTimes.get(1);\n\t\t\tif (endDate.compareTo(startDate) < 0) {\n\t\t\t\tCalendar startCal = Calendar.getInstance();\n\t\t\t\tstartCal.setTime(startDate);\n\t\t\t\tstartCal.set(Calendar.HOUR_OF_DAY, 0);\n\t\t\t\tCalendar endCal = Calendar.getInstance();\n\t\t\t\tendCal.setTime(endDate);\n\t\t\t\tendCal.set(Calendar.HOUR_OF_DAY, 0);\n\n\t\t\t\tif (endCal.compareTo(startCal) == 0) {\n\t\t\t\t\tCalendar c = Calendar.getInstance();\n\t\t\t\t\tc.setTime(endDate);\n\t\t\t\t\tc.add(Calendar.DATE, 1);\n\t\t\t\t\tendDate = c.getTime();\n\t\t\t\t\tdateTimes.set(1, endDate);\n\t\t\t\t} else {\n\t\t\t\t\tdateTimes.set(0, endDate);\n\t\t\t\t\tdateTimes.set(1, startDate);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dateTimes;\n\t}", "public Builder clearSortTime() {\n \n sortTime_ = 0D;\n onChanged();\n return this;\n }", "@Override\r\n\t\t\t\tpublic int compare(twi arg0, twi arg1) {\n\t\t\t\t\tif (arg0.timestamp > arg1.timestamp) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else if (arg0.timestamp < arg1.timestamp) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "@Override\n\tpublic List<Listing> findAllSortedByTime() {\n\t\treturn theListingRepo.findAll(Sort.by(Direction.DESC, \"dateUploaded\"));\n\t}", "public static ArrayList<PersonDate> sort(ArrayList<PersonDate> arr)\n { \n for (int i = 0; i < arr.size() - 1; i++)\n {\n int index = i;\n for (int j = i + 1; j < arr.size(); j++)\n if (arr.get(j).compareTo(arr.get(index))>0) \n index = j;\n \n PersonDate smallerNumber = arr.get(index); \n arr.set(index,arr.get(i));\n arr.set(i,smallerNumber);\n }\n return arr;\n }", "LiveData<List<Task>> getSortedTasks(LocalDate startDate,\r\n LocalDate endDate);", "public Sort build() {\n return new Sort(this);\n }", "public int compare(TimeEntry t1, TimeEntry t2) {\n\t\t\t\t\treturn t1.getTime().compareTo(t2.getTime());\n\t\t\t\t//return 1;\n\t\t\t }", "io.dstore.values.BooleanValueOrBuilder getOrderByDayOrBuilder();", "private DateTimeAdjusters() {\n\n }", "void sort(OrderBy orderBy);", "List<Tweet> findAllByOrderByCreatedAtDesc();", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "void setCreationDateTimes(final Order order) {\n final LocalDateTime now = LocalDateTime.now();\n order.setCreatedAt(now);\n order.setUpdatedAt(now);\n order.getData().setOrderedAt(now);\n }", "public static void sortFeedbacksByDateCreated(List<Feedback> feedbacks) {\n Collections.sort(feedbacks, SORT_COMMENTS_BY_DATE_CREATED);\n }", "OrderByColumnFull createOrderByColumnFull();" ]
[ "0.660922", "0.58719003", "0.58557034", "0.5739564", "0.57091933", "0.56947565", "0.566914", "0.56095994", "0.5572463", "0.5538525", "0.5536244", "0.5493457", "0.54770076", "0.5459099", "0.5413597", "0.53739846", "0.5360587", "0.5355154", "0.53494215", "0.53443307", "0.53419226", "0.53342336", "0.5310813", "0.53016424", "0.5289541", "0.52770966", "0.5269128", "0.5259358", "0.5213815", "0.5172505", "0.5162425", "0.5150986", "0.5147523", "0.51417834", "0.51307184", "0.5120836", "0.5117934", "0.51177734", "0.5117035", "0.509616", "0.50913346", "0.5069594", "0.50612533", "0.50602114", "0.50463206", "0.50408554", "0.5038676", "0.50285715", "0.5024959", "0.50167215", "0.49901885", "0.49811608", "0.497907", "0.49768212", "0.4956724", "0.4943691", "0.49397987", "0.49388143", "0.49347377", "0.49265012", "0.4923521", "0.4921293", "0.49167958", "0.49163768", "0.49132636", "0.49109972", "0.4903948", "0.48910242", "0.48893222", "0.48774326", "0.4874961", "0.48654437", "0.48498163", "0.48339027", "0.48254707", "0.48208845", "0.4809402", "0.480093", "0.4799753", "0.47971815", "0.4792561", "0.47878364", "0.47875023", "0.47844416", "0.4765321", "0.47613382", "0.47553492", "0.47390094", "0.47379264", "0.47376603", "0.4736368", "0.47348836", "0.47329956", "0.47320652", "0.47251055", "0.47248948", "0.47196135", "0.4710845", "0.47067913", "0.47061712", "0.4704012" ]
0.0
-1
Interface that represents the entire bottom pane of the Skeleton and includes any components that are represented here.
public interface BottomRoot extends SkeletonObject{ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createBottomPanel() {\n humanPaquetView = new ViewDeckVisible(false);\n this.getContentPane().add(humanPaquetView);\n }", "protected View getBottomLayout() {\n\t\treturn new View(this);\n\t}", "public JPanel bottomPanel() {\n\t\tJPanel bpanel = new JPanel(null);\n\t\tbpanel.setBounds(0, 400, 700, 100);\n\t\tbpanel.setBackground(Color.PINK);\n\t\tlbldescribe.setBounds(450, 10, 250, 50);\n\t\tlbldescribe.setForeground(Color.WHITE);\n\t\tbpanel.add(lbldescribe);\n\t\treturn bpanel;\n\t}", "protected JPanel getBottomPanel() {\n return null;\n }", "public void setupBottomPanel() {\n\t\tURL url = getClass().getResource(\".coredata/background/BottomCenter.png\");\n\t\tchatSlot = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\turl = getClass().getResource(\".coredata/background/LeftTeamBans.png\");\n\t\tblueBanSlot = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\turl = getClass().getResource(\".coredata/background/RightTeamBans.png\");\n\t\tpurpleBanSlot = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\tbottomPanel = new JLayeredPane();\n\t\tbottomPanel.setPreferredSize(new Dimension(1280, 243));\n\t\tJLabel blueBanLabel = new JLabel();\n\t\tJLabel chatLabel = new JLabel();\n\t\tJLabel purpleBanLabel = new JLabel();\n\t\tblueBanLabel.setIcon(blueBanSlot);\n\t\tchatLabel.setIcon(chatSlot);\n\t\tpurpleBanLabel.setIcon(purpleBanSlot);\n\t\tbottomPanel.add(blueBanLabel, new Integer(0));\n\t\tbottomPanel.add(chatLabel, new Integer(0));\n\t\tbottomPanel.add(purpleBanLabel, new Integer(0));\n\t\tquit = new JButton();\n\t\tquit.setName(\"quit\");\n\t\tquit.setOpaque(false);\n\t\tquit.addActionListener(this);\n\t\tquit.setBorderPainted(false);\n\t\tquit.setContentAreaFilled(false);\n\t\tquit.setBounds(27, 165, 240, 30);\n\t\tbottomPanel.add(quit, new Integer(1));\n\t\tcreateNoBanButton();\n\t\tadd(bottomPanel, BorderLayout.PAGE_END);\n\t\tblueBanLabel.setBounds(0, 0, 279, 243);\n\t\tchatLabel.setBounds(279, 0, 1004, 243);\n\t\tpurpleBanLabel.setBounds(1004, 0, 1280, 243);\n\t}", "@Override\n\tpublic PanelBottomInterface getPanelBottom() {\n\t\treturn null;\n\t}", "@Override\n\tpublic PanelBottomInterface getPanelBottom() {\n\t\treturn null;\n\t}", "public HBox TableBottomBox()\n {\n HBox bottomBox = new HBox();\n bottomBox.setAlignment(Pos.BOTTOM_RIGHT);\n bottomBox.setSpacing(400);\n\n // add button to add to bottom box\n Button homeButton = new Button();\n homeButton.setPrefWidth(200);\n homeButton.setPrefHeight(50);\n homeButton.setText(\"Home\");\n \n homeButton.setOnMouseClicked((event -> {\n ui.goToScene(new HomeScene(ui));\n }));\n\n Button addNewButton = new Button();\n addNewButton.setPrefWidth(200);\n addNewButton.setPrefHeight(50);\n addNewButton.setText(\"Add New Hike\");\n \n addNewButton.setOnMouseClicked((event -> {\n ui.goToScene(new CreateHikeScene(ui));\n }));\n \n bottomBox.getChildren().addAll(addNewButton, homeButton);\n \n return bottomBox;\n }", "private JPanel renderBottom() {\n JPanel bottomPanel = new JPanel(new GridBagLayout());\n\n backBTN = new JButton(\"Back to the chat\");\n backBTN.setForeground(ColorUtil.black);\n backBTN.setBackground(ColorUtil.buttonBack);\n backBTN.setFont(FontUtil.defaultFont);\n\n bottomPanel.add(backBTN);\n\n return bottomPanel;\n }", "public interface BottomView {\n}", "public void makeBottomBox() {\n if (timePanel == null) {\n Util.spew (\"makeBottomBox: null timePanel\");\n return;\n }\n bottomBox = new VBox(\"bottomBox\", VBox.Border.TWO_PIXELS_LEFT_RIGHT_BOTTOM_BORDER);\n BoxConstraints bc = new BoxConstraints(\n BoxConstraints.Stretch.SPRING, BoxConstraints.Align.FILL);\n\n // Put the time panel in an HBox and add to the bottom box\n timeBox = new HBox(\"timeBox\", HBox.Border.ONE_PIXEL_BELOW_BORDER);\n timeBox.setBackground(Color.white);\n bc.stretchType = BoxConstraints.Stretch.SPRING;\n timeBox.add(timePanel, bc);\n bc.stretchType = BoxConstraints.Stretch.INCOMPRESSIBLE;\n bottomBox.add(timeBox, bc);\n\n timeBox.setVisible(timePanel.isVisible());\n }", "private void Add_Bottom_Top(String s) {\n\t\tBottom_Layout b = new Bottom_Layout(s);\n\t\tScrollPane sc = new ScrollPane();\n\t\t\n\t\tthis.mainPanel.add(b.getBottom(), BorderLayout.CENTER);\n\t\t\n\t}", "private JPanel getBottomPanel() {\r\n if (BottomPanel == null) {\r\n BottomPanel = new JPanel();\r\n BottomPanel.setLayout(null);\r\n BottomPanel.setBounds(new Rectangle(-1, 592, 525, 30));\r\n BottomPanel.setBorder(BorderFactory.createLineBorder(Color.gray, 1));\r\n BottomPanel.add(CardPrio, null);\r\n BottomPanel.add(Pr1, null);\r\n BottomPanel.add(pr2, null);\r\n BottomPanel.add(pr3, null);\r\n BottomPanel.add(pr4, null);\r\n }\r\n return BottomPanel;\r\n }", "public HBox hbButtons() {\r\n\r\n HBox hbBottom = new HBox(10); //HBox for buttons at the bottom\r\n\r\n hbBottom.setAlignment(Pos.CENTER); //Set Buttoms to center\r\n hbBottom.setPadding(new Insets(10, 1, 1, 1)); //Padd it\r\n\r\n //SetId\r\n btnConfirm.setId(\"btn\");\r\n btnEdit.setId(\"btn\");\r\n\r\n //Add buttons to the bottom HBox\r\n hbBottom.getChildren().addAll(btnConfirm, btnEdit);\r\n\r\n //Handlers\r\n btnConfirm.setOnAction(new ConfirmHandler()); //Handler for confirm\r\n btnEdit.setOnAction(new EditHandler()); //Handler for edit\r\n\r\n return hbBottom;\r\n\r\n }", "public void showAtBottom() {\n showAtLocation(rootView, Gravity.BOTTOM, 0, 0);\n }", "void bottom() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n bottomCubeSwap();\n }", "public void setupBottomPane(int numOfBalls) {\n\t\taddDemoBallsToGrid(numOfBalls);\n\t}", "public JComponent createBottomPanel() {\n\t\tJButton[] buttons = new JButton[0];\n\t/*\tbuttons[0] = new JButton(\"Save\");\n\t\tbuttons[0].setActionCommand(\"0\");\n\t\tbuttons[1] = new JButton(\"Cancel\");\n\t\tbuttons[1].setActionCommand(\"1\");*/\n\t\tActionHandler actHand = new ActionHandler();\n\t//\tfields[PRODUCT_NAME].addActionListener(actHand);\n\t\treturn new ButtonAndMessagePanel(buttons, messageLabel, actHand);\n\t}", "protected abstract Widget instantiateFooterPanel () ;", "private void initBottom(BorderPane root) {\n // Make bottom box for buttons\n HBox bottomButtons = new HBox();\n bottomButtons.setPrefWidth(150);\n bottomButtons.setAlignment(Pos.CENTER);\n bottomButtons.setPadding(new Insets(0, 60, 20, 60));\n bottomButtons.setSpacing(50);\n\n // Report button\n Button downReportBut = new Button(\"Download Report\");\n downReportBut.setOnAction(e -> {\n downloadReport();\n });\n // Add to HBox\n bottomButtons.getChildren().addAll(downReportBut);\n\n // Add to root\n root.setBottom(bottomButtons);\n root.setPadding(new Insets(20));\n\n }", "public void setBottom() {\n reset(State.BOTTOM);\n }", "public void setBorderPaneBottomMain(BorderPane bp){\n GridPane numPad = new GridPane();\n bp.setBottom(numPad); \n numPad.getStyleClass().add(\"nodeBkg\");\n \n //numPad setting for responsive \n numPad.setAlignment(Pos.CENTER);\n numPad.prefWidthProperty().bind(bp.widthProperty());\n numPad.prefHeightProperty().bind(bp.heightProperty());\n numPad.setHgap(4.0);\n numPad.setVgap(4.0);\n numPad.setPadding(new Insets (15));\n \n\n // create columns and rows // not sure why but it offsets it to the right?????\n for (int i = 0; i < 4; i++) {\n ColumnConstraints column = new ColumnConstraints();\n column.setPercentWidth(25);\n numPad.getColumnConstraints().add(column);\n }\n\n // essentialy i am altering it until it works 100% is below the screen (not an issue if numpad is set to centre of the borderPane)\n for (int i = 0; i <= 4; i++) { // if set numpad to bottom of BorderPane added a row to fix it extending over bottom (if numpad was set to borderPane center this would not be included)\n RowConstraints row = new RowConstraints();\n if (i < 4){\n row.setPercentHeight(15); //15 x 4 = 60\n }else{\n row.setPercentHeight(25); // 25% for margin at the bottom row (invisable) leaves 15% somewhere\n }\n \n numPad.getRowConstraints().add(row);\n }\n \n \n \n \n // create buttons\n \n Button empty = new Button (Constants.EMPTY);\n Button empty1 = new Button (Constants.EMPTY);\n Button empty2 = new Button (Constants.EMPTY);\n Button empty3 = new Button (Constants.EMPTY);\n Button enter = new Button(Constants.ENTER);\n Button clear = new Button (Constants.CLEAR);\n Button pageReturn = new Button (Constants.RETURN);\n\n Button zero = new Button(Constants.ZERO);\n Button one = new Button(Constants.ONE);\n Button two = new Button(Constants.TWO);\n Button three = new Button(Constants.THREE);\n Button four = new Button(Constants.FOUR);\n Button five = new Button(Constants.FIVE);\n Button six = new Button(Constants.SIX);\n Button seven = new Button(Constants.SEVEN);\n Button eight = new Button(Constants.EIGHT);\n Button nine = new Button(Constants.NINE); \n\n\n\n\n // add buttons to numPad\n //collumn 1\n numPad.add(one,0,0);\n numPad.add(four,0,1);\n numPad.add(seven,0,2);\n numPad.add(empty,0,3);\n\n // column 2\n numPad.add(two,1,0);\n numPad.add(five,1,1);\n numPad.add(eight,1,2);\n numPad.add(zero,1,3);\n\n // column 3\n numPad.add(three,2,0);\n numPad.add(six,2,1);\n numPad.add(nine,2,2);\n numPad.add(empty1,2,3);\n\n // coulumn 4\n numPad.add(empty2,3,0);\n numPad.add(clear,3,1);\n numPad.add(enter,3,2);\n numPad.add(empty3,3,3);\n \n\n \n// // set button size v2 Responsive\n empty.prefWidthProperty().bind(numPad.widthProperty());\n empty.prefHeightProperty().bind(numPad.heightProperty()); \n empty1.prefWidthProperty().bind(numPad.widthProperty());\n empty1.prefHeightProperty().bind(numPad.heightProperty()); \n empty2.prefWidthProperty().bind(numPad.widthProperty());\n empty2.prefHeightProperty().bind(numPad.heightProperty());\n empty3.prefWidthProperty().bind(numPad.widthProperty());\n empty3.prefHeightProperty().bind(numPad.heightProperty()); \n zero.prefWidthProperty().bind(numPad.widthProperty());\n zero.prefHeightProperty().bind(numPad.heightProperty());\n one.prefWidthProperty().bind(numPad.widthProperty());\n one.prefHeightProperty().bind(numPad.heightProperty());\n two.prefWidthProperty().bind(numPad.widthProperty());\n two.prefHeightProperty().bind(numPad.heightProperty());\n three.prefWidthProperty().bind(numPad.widthProperty());\n three.prefHeightProperty().bind(numPad.heightProperty());\n four.prefWidthProperty().bind(numPad.widthProperty());\n four.prefHeightProperty().bind(numPad.heightProperty());\n five.prefWidthProperty().bind(numPad.widthProperty());\n five.prefHeightProperty().bind(numPad.heightProperty());\n six.prefWidthProperty().bind(numPad.widthProperty());\n six.prefHeightProperty().bind(numPad.heightProperty());\n seven.prefWidthProperty().bind(numPad.widthProperty());\n seven.prefHeightProperty().bind(numPad.heightProperty());\n eight.prefWidthProperty().bind(numPad.widthProperty());\n eight.prefHeightProperty().bind(numPad.heightProperty());\n nine.prefWidthProperty().bind(numPad.widthProperty());\n nine.prefHeightProperty().bind(numPad.heightProperty());\n enter.prefWidthProperty().bind(numPad.widthProperty());\n enter.prefHeightProperty().bind(numPad.heightProperty());\n clear.prefWidthProperty().bind(numPad.widthProperty());\n clear.prefHeightProperty().bind(numPad.heightProperty());\n pageReturn.prefWidthProperty().bind(numPad.widthProperty());\n pageReturn.prefHeightProperty().bind(numPad.heightProperty());\n \n \n //Adding styles\n numPad.getStyleClass().add(\"nodeBkg\");\n enter.getStyleClass().add(\"enterButton\");\n clear.getStyleClass().add(\"clearButton\");\n \n zero.getStyleClass().add(\"genericButton\");\n one.getStyleClass().add(\"genericButton\");\n two.getStyleClass().add(\"genericButton\");\n three.getStyleClass().add(\"genericButton\");\n four.getStyleClass().add(\"genericButton\");\n five.getStyleClass().add(\"genericButton\");\n six.getStyleClass().add(\"genericButton\");\n seven.getStyleClass().add(\"genericButton\");\n eight.getStyleClass().add(\"genericButton\");\n nine.getStyleClass().add(\"genericButton\");\n empty.getStyleClass().add(\"genericButton\");\n empty1.getStyleClass().add(\"genericButton\");\n empty2.getStyleClass().add(\"genericButton\");\n empty3.getStyleClass().add(\"genericButton\");\n \n \n \n // set up button actions/events\n // under buttons\n //currentAccount == choosen Account\n // create the account stage\n // change stage\n\n \n one.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n currentAccount = new SavingAccount();\n createSavingsStage();\n changeStage(mainStage,savingsStage);\n }\n });\n \n two.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n currentAccount = new NetSavingAccount();\n createNetSavingsStage();\n changeStage(mainStage,netSavingsStage);\n }\n });\n \n three.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n currentAccount = new ChequeAccount();\n createChequeStage();\n changeStage(mainStage,chequeStage);\n }\n });\n \n four.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n currentAccount = new FixedAccount();\n createFixedStage();\n changeStage(mainStage,fixedStage);\n }\n });\n \n }", "private HBox addBottomBox() {\n HBox bottom = new HBox();\n bottom.setAlignment(Pos.CENTER_LEFT);\n bottom.setStyle(\"-fx-background-color: DAE6F3;\");\n\n HBox pB = new HBox();\n pB.setPrefWidth(300);\n TextField pT = getTextField(\"Plant\", \"Enter an Integer number for Plant <=30\", \"Enter a custom number for Plant quantity.\");\n pB.getChildren().add(pT);\n\n HBox tB = new HBox();\n TextField tT = getTextField(\"Yoshi\", \"Enter an Integer number for Yoshi <=30\", \"Enter a custom number for Yoshi quantity.\");\n tB.getChildren().add(tT);\n\n bottom.getChildren().addAll(pB, tB);\n return bottom;\n }", "public void build() {\n VBox rootLayout = new VBox();\n Pane topPane = new Pane();\n HBox bottomBox = new HBox();\n Pane pluginPane = new Pane();\n Pane iconPane = new Pane();\n rootLayout.setPrefSize(300, 623);\n topPane.setPrefSize(300, 50);\n bottomBox.setPrefSize(300, 573);\n pluginPane.setPrefSize(250, 573);\n iconPane.setPrefSize(50, 573);\n Button b1 = new Button(\"h\");\n pluginPane.getChildren().addAll(b1);\n bottomBox.getChildren().addAll(pluginPane, iconPane);\n rootLayout.getChildren().addAll(topPane, bottomBox);\n\n Scene scene = new Scene(rootLayout);\n setScene(scene);\n }", "private JPanel getJPanelBottom() {\r\n\t\tif (jPanelBottom == null) {\r\n\t\t\tjPanelBottom = new JPanel();\r\n\t\t\tjPanelBottom.setLayout(new BorderLayout());\r\n\t\t\tjLabelBottom = new JLabel(\"Bottom: \");\r\n\t\t\t//jLabelBottom.setPreferredSize(new Dimension(50, 20));\r\n\t\t\tjLabelBottom.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\t\tSpinnerModel sModel = new SpinnerNumberModel(0, -Integer.MAX_VALUE, Integer.MAX_VALUE, 1); // init, min, max, step\r\n\t\t\tjSpinnerBottom = new JSpinner(sModel);\r\n\t\t\t//jSpinnerBottom.setPreferredSize(new Dimension(60, 20));\r\n\t\t\tjSpinnerBottom.addChangeListener(this);\r\n\t\t\tJSpinner.DefaultEditor defEditor = (JSpinner.DefaultEditor) jSpinnerBottom.getEditor();\r\n\t\t\tJFormattedTextField ftf = defEditor.getTextField();\r\n\t\t\tftf.setColumns(5);\r\n\t\t\tInternationalFormatter intFormatter = (InternationalFormatter) ftf.getFormatter();\r\n\t\t\tDecimalFormat decimalFormat = (DecimalFormat) intFormatter.getFormat();\r\n\t\t\tdecimalFormat.applyPattern(\"#\"); // decimalFormat.applyPattern(\"#,##0.0\")\r\n\t\t\tjPanelBottom.add(jLabelBottom, BorderLayout.WEST);\r\n\t\t\tjPanelBottom.add(jSpinnerBottom, BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jPanelBottom;\r\n\t}", "protected abstract void showBottomFace();", "public SudoFrame() {\n topPanel = new JTabbedPane();\n bottomPanel = new JPanel();\n bottomPanel.setOpaque(false);\n\n paintButton();\n paintSudo();\n\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setTitle(\"Soduku\");\n\n JPanel contentPaneBoss = new ContentPanel();\n this.setContentPane(contentPaneBoss);\n\n contentPaneBoss.setLayout(new BoxLayout(contentPaneBoss, BoxLayout.Y_AXIS));\n// contentPaneBoss.add(Box.createVerticalStrut(5));\n contentPaneBoss.add(topPanel);\n contentPaneBoss.add(Box.createVerticalStrut(5));\n contentPaneBoss.add(bottomPanel);\n contentPaneBoss.add(Box.createVerticalStrut(5));\n\n this.setBounds(900, 100, 450, 450);\n // this.pack();\n// this.setResizable(false);\n this.setVisible(true);\n }", "public static SuffixLattice getBottom() {\n\t\treturn BOTTOM;\n\t}", "public void layoutBottom() {\n\t\t// instantiate panel for bottom of display\n\t\tJPanel bottom = new JPanel(new GridLayout(3, 3));\n\n\t\t// add upper label, text field and button\n\t\tJLabel idLabel = new JLabel(\"Enter Class Id\");\n\t\tbottom.add(idLabel);\n\t\tidIn = new JTextField();\n\t\tbottom.add(idIn);\n\t\tJPanel panel1 = new JPanel();\n\t\taddButton = new JButton(\"Add\");\n\t\taddButton.addActionListener(this);\n\t\tpanel1.add(addButton);\n\t\tbottom.add(panel1);\n\n\t\t// add middle label, text field and button\n\t\tJLabel nmeLabel = new JLabel(\"Enter Class Name\");\n\t\tbottom.add(nmeLabel);\n\t\tclassIn = new JTextField();\n\t\tbottom.add(classIn);\n\t\tJPanel panel2 = new JPanel();\n\t\tdeleteButton = new JButton(\"Delete\");\n\t\tdeleteButton.addActionListener(this);\n\t\tpanel2.add(deleteButton);\n\t\tbottom.add(panel2);\n\n\t\t// add lower label text field and button\n\t\tJLabel tutLabel = new JLabel(\"Enter Tutor Name\");\n\t\tbottom.add(tutLabel);\n\t\ttutorIn = new JTextField();\n\t\tbottom.add(tutorIn);\n\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t}", "public int getBottom() {\n\t\treturn this.bottom;\n\t}", "public int getBottom(){\n\t\treturn platformHitbox.y+height;\n\t}", "public View initBottomView() {\n return new BaseEditBottomView(this.mContext);\n }", "public void initializeBottomPanel() {\n\t}", "public PaneOrganizer() {\n\t\t_root = new BorderPane(); // new border pane\n\t\t\n\t\tLabel score = new Label(\"Score: 0\"); // score label\n\t\tscore.setTextFill(Color.WHITE); // text color\n\t\t\n\t\tLabel lives = new Label(\"Lives: 3\"); // lives label\n\t\tlives.setTextFill(Color.WHITE); // text color\n\t\t\n\t\tGame game = new Game(score, lives); // game pane\n\t\tHBox hbox = new HBox(); // hbox to organize the quit button\n\n\t\tButton quit = new Button(\"Quit\"); // Creating quit button\n\t\tquit.setOnAction(new QuitHandler()); // add the quit handler\n\t\tquit.minHeight(Constants.QUIT_HEIGHT); // sizing\n\n\t\thbox.getChildren().addAll(quit, score, lives); // add components to hbox\n\t\thbox.setSpacing(20);\n\t\t\n\t\t_root.setCenter(game); // set the game pane\n\t\t_root.setBottom(hbox); // set the hbox\n\t\t_root.setStyle(\"-fx-background-color: black\");\n\t}", "public FramedPane() {\n\t\tLoggingTool.print( \"Constructing new FramedPane.\" );\n\t\t// Draw Frame\n\t\tLine topLine = new Line( 1, 1, this.getWidth(), 1 );\n\t\tLine rightLine = new Line( this.getWidth(), 1, this.getWidth(), this.getHeight() );\n\t\tLine leftLine = new Line( 1, 1, 1, this.getHeight() );\n\t\tLine bottomLine = new Line( 1, this.getHeight(), this.getWidth(), this.getHeight() );\n\n\t\ttopLine.endXProperty().bind( this.widthProperty().subtract( 1 ) );\n\n\t\trightLine.startXProperty().bind( this.widthProperty().subtract( 1 ) );\n\t\trightLine.endXProperty().bind( rightLine.startXProperty() );\n\t\trightLine.endYProperty().bind( this.heightProperty().subtract( 1 ) );\n\n\t\tleftLine.endYProperty().bind( this.heightProperty().subtract( 1 ) );\n\n\t\tbottomLine.startYProperty().bind( this.heightProperty().subtract( 1 ) );\n\t\tbottomLine.endXProperty().bind( this.widthProperty().subtract( 1 ) );\n\t\tbottomLine.endYProperty().bind( bottomLine.startYProperty() );\n\n\t\tthis.getChildren().addAll( topLine, rightLine, leftLine, bottomLine );\n\t}", "public final SectionsBottomFragment invoke() {\n return new SectionsBottomFragment();\n }", "private void addViewBody() {\n\t\tJButton medicosButton = new JButton(\"Médicos\");\n\t\tmedicosButton.addActionListener((ActionEvent e) -> {\n\t\t\tRouter.getInstance().goToView(new MedicosView());\n\t\t});\n\t\tthis.add(medicosButton);\n\n\t\tJButton clientesButton = new JButton(\"Clientes\");\n\t\tclientesButton.addActionListener((ActionEvent e) -> {\n\t\t\tRouter.getInstance().goToView(new ClientesView());\n\t\t});\n\t\tthis.add(clientesButton);\n\n\t\tJButton novaConsultaButton = new JButton(\"Nova Consulta\");\n\t\tnovaConsultaButton.addActionListener((ActionEvent e) -> {\n\t\t\tRouter.getInstance().goToView(new CadastroConsultaView());\n\t\t});\n\t\tthis.add(novaConsultaButton);\n\n\t\tJButton novoTesteButton = new JButton(\"Novo Teste [EM BREVE]\");\n\t\tnovoTesteButton.setEnabled(false);\n\t\tthis.add(novoTesteButton);\n\t}", "GridPane body();", "private void southRegion() {\r\n\t\tContainer southContainer = new Container(new BoxLayout(BoxLayout.X_AXIS));\r\n\t\t\r\n\t\tsouthContainer.getAllStyles().setPadding(Component.TOP, 50);\r\n\t\tsouthContainer.getAllStyles().setBorder(Border.createLineBorder(4, ColorUtil.BLACK));\r\n\t\t\r\n\t\tFlagCommand flagCommand = new FlagCommand(gw);\r\n\t\tButton flagButton = new Button(flagCommand);\r\n\t\t\r\n\t\tSpiderCommand spiderCommand = new SpiderCommand(gw);\r\n\t\tButton spiderButton = new Button(spiderCommand);\r\n\t\t\r\n\t\tFoodStationCommand foodStationCommand = new FoodStationCommand(gw);\r\n\t\tButton foodStationButton = new Button(foodStationCommand);\r\n\t\t\r\n\t\tTickCommand tickCommand = new TickCommand(gw);\r\n\t\tButton tickButton = new Button(tickCommand);\r\n\t\t\r\n\t\tsouthContainer.add(flagButton);\r\n\t\tbuttonStyling(flagButton, false, true);\r\n\t\t\r\n\t\tsouthContainer.add(spiderButton);\r\n\t\tbuttonStyling(spiderButton, false, false);\r\n\t\t\r\n\t\tsouthContainer.add(foodStationButton);\r\n\t\tbuttonStyling(foodStationButton, false, false);\r\n\t\t\r\n\t\tsouthContainer.add(tickButton);\r\n\t\tbuttonStyling(tickButton, false, false);\r\n\t\t\r\n\t\tspiderButton.setCommand(spiderCommand);\r\n\t\taddKeyListener('g', spiderCommand);\r\n\t\t\r\n\t\tfoodStationButton.setCommand(foodStationCommand);\r\n\t\taddKeyListener('f', foodStationCommand);\r\n\t\t\r\n\t\ttickButton.setCommand(tickCommand);\r\n\t\taddKeyListener('t', tickCommand);\r\n\t\t\r\n\t\tadd(BorderLayout.SOUTH, southContainer);\r\n\t}", "private Parent content() {\r\n\r\n\t\t// Kujundus.\r\n\t\tBorderPane bp = new BorderPane();\r\n\r\n\t\tPane side = new Pane(controls);\r\n\t\tside.getStyleClass().add(\"pane\");\r\n\r\n\t\tPane window = new Pane();\r\n\t\twindow.setPrefSize(APP_W, APP_H);\r\n\t\twindow.getStyleClass().add(\"board\");\r\n\r\n\t\tbp.setCenter(window);\r\n\t\tbp.setLeft(side);\r\n\r\n\t\tGroup snakeBody = new Group();\r\n\t\tsnake = snakeBody.getChildren();\r\n\r\n\t\tpoints.setText(\"Points: \" + punktid);\r\n\t\tpoints.setTextFill(Color.WHITE);\r\n\t\tpoints.setTranslateX(APP_W / 1.15);\r\n\t\tpoints.setTranslateY(2);\r\n\t\tcontrols.setTextFill(Color.WHITE);\r\n\r\n\t\tLine rLine = new Line(APP_W, 0, APP_W, APP_H);\r\n\t\trLine.getStyleClass().add(\"line\");\r\n\t\trLine.setStrokeWidth(5);\r\n\t\tLine tLine = new Line(0, 0, APP_W, 0);\r\n\t\ttLine.getStyleClass().add(\"line\");\r\n\t\ttLine.setStrokeWidth(5);\r\n\t\tLine bLine = new Line(0, APP_H, APP_W, APP_H);\r\n\t\tbLine.getStyleClass().add(\"line\");\r\n\t\tbLine.setStrokeWidth(5);\r\n\r\n\t\t// Tekib toit.\r\n\t\tCircle food = new Circle(BLOCK_SIZE / 2, BLOCK_SIZE / 2, 5);\r\n\t\tfood.setFill(Color.CHARTREUSE);\r\n\t\tfood.setTranslateX((int) (Math.random() * (APP_W - BLOCK_SIZE) / BLOCK_SIZE) * BLOCK_SIZE);\r\n\t\tfood.setTranslateY((int) (Math.random() * (APP_H - BLOCK_SIZE) / BLOCK_SIZE) * BLOCK_SIZE);\r\n\t\tRfood = 1;\r\n\r\n\t\t// Aja algus.\r\n\t\tKeyFrame frame = new KeyFrame(Duration.seconds(0.1), event -> {\r\n\t\t\tif (!running)\r\n\t\t\t\treturn;\r\n\r\n\t\t\t// Kui ussi pikkus on 1 liigub ise edasi, kui 2 v�i enam v�tab\r\n\t\t\t// viimase t�ki ja t�stab ette.\r\n\t\t\tboolean toRemove = snake.size() > 1;\r\n\r\n\t\t\tNode tail = toRemove ? snake.remove(snake.size() - 1) : snake.get(0);\r\n\r\n\t\t\t// J�tan meelde ussi kordinaadid\r\n\t\t\tdouble tailX = tail.getTranslateX();\r\n\t\t\tdouble tailY = tail.getTranslateY();\r\n\r\n\t\t\t// kuhu ja kuidas uss liigub iga suuna korral\r\n\t\t\tswitch (direction) {\r\n\t\t\tcase UP:\r\n\t\t\t\ttail.setTranslateX(snake.get(0).getTranslateX());\r\n\t\t\t\ttail.setTranslateY(snake.get(0).getTranslateY() - BLOCK_SIZE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase DOWN:\r\n\t\t\t\ttail.setTranslateX(snake.get(0).getTranslateX());\r\n\t\t\t\ttail.setTranslateY(snake.get(0).getTranslateY() + BLOCK_SIZE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase LEFT:\r\n\t\t\t\ttail.setTranslateX(snake.get(0).getTranslateX() - BLOCK_SIZE);\r\n\t\t\t\ttail.setTranslateY(snake.get(0).getTranslateY());\r\n\t\t\t\tbreak;\r\n\t\t\tcase RIGHT:\r\n\t\t\t\ttail.setTranslateX(snake.get(0).getTranslateX() + BLOCK_SIZE);\r\n\t\t\t\ttail.setTranslateY(snake.get(0).getTranslateY());\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tmoved = true;\r\n\r\n\t\t\t// Lisame tagasi �rav�etud t�ki\r\n\t\t\tif (toRemove)\r\n\t\t\t\tsnake.add(0, tail);\r\n\r\n\t\t\t// Kui uss vastu iseennast\r\n\t\t\tfor (Node part : snake) {\r\n\t\t\t\tif (part != tail && tail.getTranslateX() == part.getTranslateX()\r\n\t\t\t\t\t\t&& tail.getTranslateY() == part.getTranslateY()) {\r\n\t\t\t\t\tstopGame();\r\n\t\t\t\t\tover.setTextFill(Color.WHITE);\r\n\t\t\t\t\tover.setText(\"GAME OVER !\");\r\n\t\t\t\t\tover.setTranslateX(APP_W / 2.5);\r\n\t\t\t\t\tover.setTranslateY(APP_H / 4);\r\n\t\t\t\t\tover.setVisible(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Kui uss l�heb vastu seina\r\n\t\t\t\tif (tail.getTranslateX() < 0 || tail.getTranslateX() == APP_W || tail.getTranslateY() < 0\r\n\t\t\t\t\t\t|| tail.getTranslateY() == APP_H) {\r\n\t\t\t\t\tstopGame();\r\n\t\t\t\t\tover.setTextFill(Color.WHITE);\r\n\t\t\t\t\tover.setText(\"GAME OVER ! \");\r\n\t\t\t\t\tover.setTranslateX(APP_W / 2.25);\r\n\t\t\t\t\tover.setTranslateY(APP_H / 4);\r\n\t\t\t\t\tover.setVisible(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Kui uss l�heb vastu boonus toitu\r\n\t\t\tif (tail.getTranslateX() == bonus.getTranslateX() && tail.getTranslateY() == bonus.getTranslateY()) {\r\n\t\t\t\tbonus.setVisible(false);\r\n\t\t\t\tbonus.isVisible();\r\n\t\t\t\tbonus.setDisable(true);\r\n\t\t\t\tbonus.isDisable();\r\n\r\n\t\t\t\tif (bonusFood == 1) {\r\n\r\n\t\t\t\t\tpunktid = punktid + 50;\r\n\t\t\t\t\tpoints.setText(\"Points: \" + punktid);\r\n\t\t\t\t\tpoints.setTextFill(Color.WHITE);\r\n\t\t\t\t\tpoints.setTranslateX(APP_W / 1.15);\r\n\r\n\t\t\t\t\tCircle circ2 = new Circle(BLOCK_SIZE / 2, BLOCK_SIZE / 2, 5, Color.WHITE);\r\n\t\t\t\t\tcirc2.setTranslateX(tailX);\r\n\t\t\t\t\tcirc2.setTranslateY(tailY);\r\n\r\n\t\t\t\t\tCircle circ3 = new Circle(BLOCK_SIZE / 2, BLOCK_SIZE / 2, 5, Color.WHITE);\r\n\t\t\t\t\tcirc3.setTranslateX(tailX);\r\n\t\t\t\t\tcirc3.setTranslateY(tailY);\r\n\r\n\t\t\t\t\tsnake.addAll(circ2, circ3);\r\n\t\t\t\t\tbonusFood = 0;\r\n\t\t\t\t\tRfood = 1;\r\n\t\t\t\t\tfood.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (Rfood == 1) {\r\n\r\n\t\t\t\t// Kui uss l�heb vastu tavalist toitu\r\n\t\t\t\tif (tail.getTranslateX() == food.getTranslateX() && tail.getTranslateY() == food.getTranslateY()) {\r\n\t\t\t\t\tfood.setTranslateX((int) (Math.random() * (APP_W - BLOCK_SIZE) / BLOCK_SIZE) * BLOCK_SIZE);\r\n\t\t\t\t\tfood.setTranslateY((int) (Math.random() * (APP_H - BLOCK_SIZE) / BLOCK_SIZE) * BLOCK_SIZE);\r\n\r\n\t\t\t\t\tpunktid = punktid + 10;\r\n\t\t\t\t\tpoints.setText(\"Points: \" + punktid);\r\n\t\t\t\t\tpoints.setTextFill(Color.WHITE);\r\n\t\t\t\t\tpoints.setTranslateX(APP_W / 1.15);\r\n\t\t\t\t\tpoints.setTranslateY(2);\r\n\t\t\t\t\tCircle circ = new Circle(BLOCK_SIZE / 2, BLOCK_SIZE / 2, 5, Color.WHITE);\r\n\t\t\t\t\tcirc.setTranslateX(tailX);\r\n\t\t\t\t\tcirc.setTranslateY(tailY);\r\n\r\n\t\t\t\t\t// Boonus toidu tekkimine\r\n\t\t\t\t\tif (7 < (int) (Math.random() * 10)) {\r\n\t\t\t\t\t\tRfood = 0;\r\n\t\t\t\t\t\tbonusFood = 1;\r\n\t\t\t\t\t\tbonus.setVisible(true);\r\n\t\t\t\t\t\tbonus.setDisable(false);\r\n\t\t\t\t\t\tbonus.getStyleClass().add(\"bonus\");\r\n\t\t\t\t\t\tbonus.setTranslateX((int) (Math.random() * (APP_W - BLOCK_SIZE) / BLOCK_SIZE) * BLOCK_SIZE);\r\n\t\t\t\t\t\tbonus.setTranslateY((int) (Math.random() * (APP_H - BLOCK_SIZE) / BLOCK_SIZE) * BLOCK_SIZE);\r\n\t\t\t\t\t\tfood.setVisible(false);\r\n\t\t\t\t\t\tfood.isVisible();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsnake.add(circ);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Keyframe k�ib l�pmatult\r\n\t\ttimeline.getKeyFrames().add(frame);\r\n\t\ttimeline.setCycleCount(Timeline.INDEFINITE);\r\n\r\n\t\twindow.getChildren().addAll(bonus, food, snakeBody, points, over, rLine, tLine, bLine);\r\n\t\treturn bp;\r\n\t}", "public GUI() {\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n this.setContentPane(new ZombiePanel());\n pack();\n }", "public JPanel getBody() {\n\t\treturn contentPane;\n\t}", "private void setBottomCounter() {\n\t\tVBox bottomBox = new VBox();\n\t\tbottomBox.setAlignment(Pos.BOTTOM_CENTER);\n\t\tbottomBox.setPadding(new Insets(10, 10, 10, 10));\n\t\tbottomBox.setSpacing(5);\n\t\t\n\t\tlastProperty = new Text(\"\");\n\t\tlastProperty.setFont(Font.font(\"TimesNewRoman\", FontWeight.BOLD, 24));\n\t\tlastProperty.setFill(Color.GREEN);\n\t\t\n\t\tcounterText = new Text(\"Total number of properties listed: \" + Property.getTotalProperties());\n\t\tcounterText.setFont(Font.font(\"Bauhaus 93\", FontWeight.BOLD, 24));\n\t\tcounterText.setFill(Color.rgb(100, 0, 150));\n\t\t\n\t\t\n\t\tbottomBox.getChildren().addAll(lastProperty, counterText);\n\t\t\n\t\tmainPane.setBottom(bottomBox);\n\t\t\n\t}", "public float getBottom() {\r\n\t\treturn top + height;\r\n\t}", "public static void Start(BorderPane bPane) {\r\n\r\n\t\tText title = new Text(20, 10, \"Meal Analyzer\");\r\n\t\ttitle.setFont(Font.font(\"Georgia\", 20));\r\n\t\tText version = new Text(10, 20, \"V. 0.10\");\r\n\t\tversion.setFont(Font.font(\"Georgia\", 20));\r\n\r\n\t\tHBox upperBand = new HBox();\r\n\t\tupperBand.setStyle(\"-fx-background-color: #BFBFBF;\" + \"-fx-padding: 5;\");\r\n\t\tupperBand.setSpacing(580);\r\n\t\tupperBand.setMaxHeight(100);\r\n\r\n\t\tupperBand.getChildren().addAll(title, version);\r\n\r\n\t\t// initialization is done, add the items into the borderPane\r\n\t\tbPane.setTop(upperBand);\r\n\t\tbPane.setStyle(\"-fx-background-color: #DEDEDE;\");\r\n\r\n\t}", "public End() {\n initComponents();\n setLocation (400,100);\n setSize(800,600);\n \n \n \n }", "BottombarViewFlipper getBottomBar();", "public ExitControlView() {\n this.setSize(180,560);\n initSubviews();\n }", "public void bottomPlatform()\r\n {\r\n //Bottom platform/ floor\r\n addObject (platforms[0], 141, 555);\r\n addObject (platforms[1], 424, 555);\r\n addObject (platforms[2], 700, 555);\r\n addObject (platforms[3], 950, 555);\r\n }", "public int getBottomY() {\n\t\treturn 0;\r\n\t}", "private Parent rootScene() {\r\n hBox = new HBox();\r\n hBox.setSpacing(10);\r\n hBox.setStyle(\"-fx-background-color: #082B59;\");\r\n hBox.getChildren().addAll(btnCam, btnManAut);\r\n\r\n root.setBottom(hBox);\r\n root.setCenter(imageView);\r\n root.setStyle(\"-fx-background-color: #0A2D68;\");\r\n\r\n return root;\r\n }", "public Pane buildGuiInDerSchonzeit() {\n\t\tVBox root = new VBox(10); \r\n\t\t// Der Hintergrund des GUI wird mit einem Transparenten Bild erstellt\r\n\t\tImage imageBackground = new Image(getClass().getResource(\"transparent.png\").toExternalForm()); // Ein Image wird erstellt und das Bild übergeben\r\n\t\tBackgroundImage backgroundImage = new BackgroundImage(imageBackground, BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, BackgroundSize.DEFAULT);\r\n\t\tBackground background = new Background(backgroundImage); // Ein Background wird ertsellt und das Bild übergeben\r\n\t\troot.setBackground(background); // Der Hintergrund mit dem Bild wird dem root übergeben\r\n\t\t\r\n\t\t//\r\n\t\t// // Allse verschiedenen Boxen werden erstellt\r\n\t\t//\r\n\t\t\r\n\t\t// HBox für die erste Spalte\r\n\t\tHBox hBoxSpalte1 = new HBox(190);\r\n\t\t// 2mal VBox um Button und Text anzuzeigen \r\n\t\tVBox vBox1Spalte1 = new VBox();\r\n\t\tVBox vBox2Spalte1 = new VBox();\r\n\t\t\r\n\t\t// HBox für 2. Spalte\r\n\t\tHBox hBoxSpalte2 = new HBox(190);\r\n\t\t// 2 VBoxen für Bild und Text\r\n\t\tVBox vbox1Spalte2 = new VBox();\r\n\t\tVBox vbox2Spalte2 = new VBox();\r\n\t\t\r\n\t\t// HBox für die 3.Spalte\r\n\t\tHBox hboxSpalte3 = new HBox(190);\r\n\t\t// 2mal VBox für Bild und Text\r\n\t\tVBox vbox1Spalte3 = new VBox();\r\n\t\tVBox vbox2Spalte3 = new VBox();\r\n\t\t\r\n\t\t// HBox für die 4 Spalte\r\n\t\tHBox hboxSpalte4 = new HBox(190);\r\n\t\t// 2mal VBox für Bild und Text\r\n\t\tVBox vbox1Spalte4 = new VBox();\r\n\t\tVBox vbox2Spalte4 = new VBox();\r\n\t\t\r\n\t\t//\r\n\t\t// Button für die Fische\r\n\t\t//\r\n\t\t\r\n\t\t//Label Bild für Hecht\r\n\t\tLabel hechtbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage hechtimage = new Image(getClass().getResource(\"Hecht.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\thechtbildLabel.setGraphic(new ImageView(hechtimage)); // Das Bild wird dem Label übergeben\r\n\t\thechtbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Zander\r\n\t\tLabel zanderbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage zanderImage = new Image(getClass().getResource(\"Zander.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tzanderbildLabel.setGraphic(new ImageView(zanderImage)); // Das Bild wird dem Label übergeben\r\n\t\tzanderbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Aal\r\n\t\tLabel aalbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage aalImage = new Image(getClass().getResource(\"Aal.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\taalbildLabel.setGraphic(new ImageView(aalImage)); // Das Bild wird dem Label übergeben\r\n\t\taalbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Aesche\r\n\t\tLabel aeschebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage aescheImage = new Image(getClass().getResource(\"Aesche.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\taeschebildLabel.setGraphic(new ImageView(aescheImage)); // Das Bild wird dem Label übergeben\r\n\t\taeschebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Barsch\r\n\t\tLabel barschbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage barschImage = new Image(getClass().getResource(\"Barsch.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tbarschbildLabel.setGraphic(new ImageView(barschImage)); // Das Bild wird dem Label übergeben\r\n\t\tbarschbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Forelle\r\n\t\tLabel forellebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage forelleImage = new Image(getClass().getResource(\"Regenbogenforelle.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tforellebildLabel.setGraphic(new ImageView(forelleImage)); // Das Bild wird dem Label übergeben\r\n\t\tforellebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Schleie\r\n\t\tLabel schleiebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage schleieImage = new Image(getClass().getResource(\"Schleie.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tschleiebildLabel.setGraphic(new ImageView(schleieImage)); // Das Bild wird dem Label übergeben\r\n\t\tschleiebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Karpfe\r\n\t\tLabel karpfenbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage karpfenImage = new Image(getClass().getResource(\"Schuppenkarpfen.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tkarpfenbildLabel.setGraphic(new ImageView(karpfenImage)); // Das Bild wird dem Label übergeben\r\n\t\tkarpfenbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// Label für die Titel der Fische\r\n\t\t//\r\n\t\t\r\n\t\t// Label Hecht\r\n\t\tLabel hechtlabel = new Label(\"Hecht\"); // Das Label mit dem Namen wird erstellt\r\n\t\thechtlabel.setFont(new Font(30)); // Die Schriftgrösse\r\n\t\thechtlabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t//Label Zander\r\n\t\tLabel zanderLabel = new Label(\"Zander\"); // DAs LAabel mit dem Namen wird erstellt\r\n\t\tzanderLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tzanderLabel.setTranslateX(160); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Aal\r\n\t\tLabel aaLabel = new Label(\"Aal\"); // Das Label mit dem Namen wird erstellt\r\n\t\taaLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\taaLabel.setTranslateX(200); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Aesche\r\n\t\tLabel aescheLabel = new Label(\"Äsche\"); // Das Label mit dem Namen wird erstellt\r\n\t\taescheLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\taescheLabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Barsch\r\n\t\tLabel barschLabel = new Label(\"Flussbarsch\"); // Das Label mit dem Namen wird erstellt\r\n\t\tbarschLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tbarschLabel.setTranslateX(130); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Forelle\r\n\t\tLabel forelleLabel = new Label(\"Forelle\"); // Das Label mit dem Namen wird erstellt\r\n\t\tforelleLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tforelleLabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Schleie\r\n\t\tLabel schleieLabel = new Label(\"Schleie\"); // Das Label mit dem Namen wird erstellt\r\n\t\tschleieLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tschleieLabel.setTranslateX(170); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Karpfe\r\n\t\tLabel karpfeLabel = new Label(\"Karpfe\"); // Das Label mit dem Namen wird erstellt\r\n\t\tkarpfeLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tkarpfeLabel.setTranslateX(170); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// Label für die Anzeige in der Schonzeit\r\n\t\t//\r\n\t\t\r\n\t\t// Label Schonzeit für Hecht\r\n\t\tLabel schonzeitHechtLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitHechtLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitHechtLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Zander\r\n\t\tLabel schonzeitZanderLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitZanderLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitZanderLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Aal\r\n\t\tLabel schonzeitaaLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitaaLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitaaLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Aesche\r\n\t\tLabel schonzeitaescheLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitaescheLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitaescheLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Barsch\r\n\t\tLabel schonzeitbarschLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitbarschLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitbarschLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Forelle\r\n\t\tLabel schonzeitforelleLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitforelleLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitforelleLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Schleie\r\n\t\tLabel schonzeitschleieLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitschleieLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitschleieLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Karpfe\r\n\t\tLabel schonzeitkarpfeLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitkarpfeLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitkarpfeLabel.setTranslateX(140); // X-Achse im root\r\n\r\n\t\t\r\n\t\t// Das Label für die überschrift\r\n\t\tLabel fischeAuswahlLabel = new Label(\"Fische und Ihre Schonzeit\"); // Das Label wird mit dem Namen erstellt\r\n\t\tfischeAuswahlLabel.setFont(new Font(40)); // Schriftgrösse\r\n\t\tfischeAuswahlLabel.setTranslateX(10); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// // Buttons werden erstellt\r\n\t\t//\r\n\t\t\r\n\t\t// Button zurück Hauptmenu\r\n\t\tButton hauptmenuButton = new Button(\"Hauptmenü\"); // Button wird erstellt und Initialisiert\r\n\t\thauptmenuButton.setMinSize(200, 50); // Die Minimumgrösse wird gesetzt\r\n\t\thauptmenuButton.setTranslateX(345); // X- Achse des Buttons im root\r\n\t\thauptmenuButton.setFont(new Font(25)); // Schriftgrösse des Buttons\r\n\t\t// Zoom in und out wird hinzugefügt\r\n\t\tButtonHandling zoomButtonHandling = new ButtonHandling();\r\n\t\tzoomButtonHandling.zoomIn(hauptmenuButton);\r\n\t\tzoomButtonHandling.zoomOut(hauptmenuButton);\r\n\t\t// Funktion zurück ins Hauptmenü\r\n\t\thauptMenuAufrufen(hauptmenuButton);\r\n\t\t\r\n\t\t//\r\n\t\t// // Aktuelles Datum wird eingelesen um die Fische auf Ihre Schonzeit zu prüfen\r\n\t\t//\r\n\t\t\r\n\t\t// Aktueller Monat wird in der Variablen datumAktuell gespeichert.\r\n\t\tCalendar dateNow = Calendar.getInstance(); // Kalender wird erstellt\r\n\t\tint datum = dateNow.get(Calendar.MONTH) +1; // Der aktuelle Monat wird im Int Initialisiert. +1 Da die Monate ab 0 Beginnen\r\n\t\t// Datum Manuell setzten für Test und Debbug \r\n\t\t//int datum = 1;\r\n\t\t\r\n\t\t//\r\n\t\t// // Die einzelnen VBoxen für die Fische werden je nach Schonzeit gefüllt\r\n\t\t//\r\n\t\t\r\n\t\t// 1. Spalte und 1 Box\r\n\t\tvBox1Spalte1.getChildren().addAll(hechtlabel,hechtbildLabel);// Erste Linie und erste Spalte mit Bild und Text wird dem root übergeben\r\n\t\tif (datum >=1 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitHechtLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitHechtLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitHechtLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitHechtLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den entsprecheneden Einstellungen übergeben\r\n\t\tvBox1Spalte1.getChildren().add(schonzeitHechtLabel);\r\n\t\t\r\n\t\t// 1. Spalte und 2. Box\r\n\t\tvBox2Spalte1.getChildren().addAll(zanderLabel,zanderbildLabel); // Erste Linie und zweite Spalte mit Bild und Text wird dem root übergeben\r\n\t\tif (datum >= 1 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitZanderLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitZanderLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitZanderLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitZanderLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den entsprechenden Einstellungen übergeben\r\n\t\tvBox2Spalte1.getChildren().add(schonzeitZanderLabel);\r\n\t\t\r\n\t\t// 2. Spalte und 1. Box\r\n\t\tvbox1Spalte2.getChildren().addAll(aaLabel,aalbildLabel); // Zweite Linie erste Spalte mit Bild und Text\r\n\t\t// Der Aal hat keine Schonzeit\r\n\t\t\tschonzeitaaLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitaaLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den einstellungen übergeben\t\r\n\t\tvbox1Spalte2.getChildren().add(schonzeitaaLabel);\r\n\t\t\r\n\t\t// 2. Spalte und 2. Box\r\n\t\tvbox2Spalte2.getChildren().addAll(aescheLabel,aeschebildLabel); // Zweite Linie zweite Spalte mit Bild und Text\r\n\t\tif (datum >= 2 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitaescheLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitaescheLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitaescheLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitaescheLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\r\n\t\tvbox2Spalte2.getChildren().add(schonzeitaescheLabel);\r\n\t\t\r\n\t\t// 3. Spalte und 1. Box\r\n\t\tvbox1Spalte3.getChildren().addAll(barschLabel,barschbildLabel); // Dritte Linie erste Spalte mit Bild und Text\r\n\t\t// Der Barsch hat keine Schonzeit\r\n\t\t\tschonzeitbarschLabel.setText(\"keine Schonzeit\");\r\n\t\t\tschonzeitbarschLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox1Spalte3.getChildren().add(schonzeitbarschLabel);\r\n\t\t\r\n\t\t// 3. Spalte und 2. Box\r\n\t\tvbox2Spalte3.getChildren().addAll(forelleLabel,forellebildLabel); // Dritte Linie zweite Spalte mit Bild und Text\r\n\t\tif (datum >= 3 && datum <= 9) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitforelleLabel.setText(\"keine Schonzeit\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitforelleLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitforelleLabel.setText(\"hat Schonzeit !\"); // Die Schonzeit des Hechtes wird überprüft\r\n\t\t\tschonzeitforelleLabel.setTextFill(Color.RED); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\r\n\t\tvbox2Spalte3.getChildren().add(schonzeitforelleLabel);\r\n\t\t\r\n\t\t// 4. Spalte und 1. Box\r\n\t\tvbox1Spalte4.getChildren().addAll(schleieLabel,schleiebildLabel); // Vierte Linie erste Spalte mit Bild und Text\r\n\t\t// Die Schleie hat keien Schonzeit\r\n\t\t\tschonzeitschleieLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitschleieLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox1Spalte4.getChildren().add(schonzeitschleieLabel);\r\n\t\t\r\n\t\t// 4. Spalte und 2. Box\r\n\t\tvbox2Spalte4.getChildren().addAll(karpfeLabel,karpfenbildLabel); // Vierte Linie zweite Spalte mit Bild und Text\r\n\t\t// Der Karpfe hat keine Schonzeit\r\n\t\t\tschonzeitkarpfeLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitkarpfeLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox2Spalte4.getChildren().add(schonzeitkarpfeLabel);\r\n\t\t\r\n\t\t//\r\n\t\t// // Die einzelnen HBoxen werden gefüllt für die Spalten in der Root\r\n\t\t//\r\n\t\thBoxSpalte1.getChildren().addAll(vBox1Spalte1,vBox2Spalte1); // Die erste Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// HBox Spalte 2\r\n\t\thBoxSpalte2.getChildren().addAll(vbox1Spalte2,vbox2Spalte2); // Die zweite Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// Hbox Spalte 3\r\n\t\thboxSpalte3.getChildren().addAll(vbox1Spalte3,vbox2Spalte3); // Die dritte Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// Hbox Spalte 4\r\n\t\thboxSpalte4.getChildren().addAll(vbox1Spalte4,vbox2Spalte4); // Die vierte Spalte wird mit den zwei Boxen gefüllt\r\n\t\t\r\n\t\t// Elemente werden der HauptVBox root hinzugefügt\r\n\t\troot.getChildren().addAll(fischeAuswahlLabel,hBoxSpalte1,hBoxSpalte2,hboxSpalte3,hboxSpalte4,hauptmenuButton); // Alle gefüllten Boxen werden der Hauptbox übergeben\r\n\t\t\r\n\t\t// Das root wird zurückgegeben um Angezeigt zu werden\r\n\t\treturn root;\r\n\t}", "public FooterBarBehavior() {\n }", "private final SectionsBottomFragment m75355h() {\n AbstractC32572g gVar = this.f53744w;\n AbstractC32607k kVar = f53721a[5];\n return (SectionsBottomFragment) gVar.mo102348b();\n }", "@JSProperty(\"bottom\")\n @Nullable\n Chart3dFrameBottomOptions getBottom();", "public HangingFlowPane() {\n super();\n }", "public double getBoundingBoxBottom() {\n return boundingBoxBottom;\n }", "public MainContentPane() {\r\n\t\tsuper();\r\n\r\n\t\t// Add design-time configured components.\r\n\t\tinitComponents();\r\n\t}", "public PaneOrganizer() {\n\t\t\n\t\t_root = new BorderPane();\n\t\t_game = new Game(_root);\n\t\tthis.setupButton();\n\t\t\n\t}", "private void setUIComponents() {\n\t\tframe.setTitle(\"Departamento de ventas\");\n\t\tframe.setMinimumSize(new Dimension(700, 500));\n\n\t\t/*\n\t\t * Paneles externos. Solo hay que añadir en el bottomPanel\n\t\t */\n\t\tJPanel topPanel = new JPanel();\n\t\tframe.getContentPane().add(topPanel, BorderLayout.NORTH);\n\t\ttopPanel.setBackground(new Color(233, 196, 106));\n\t\ttopPanel.setBounds(100, 100, 100, 100);\n\n\t\tJPanel leftPanel = new JPanel();\n\t\tframe.getContentPane().add(leftPanel, BorderLayout.WEST);\n\t\tleftPanel.setBackground(new Color(233, 196, 106));\n\n\t\tJPanel rightPanel = new JPanel();\n\t\tframe.getContentPane().add(rightPanel, BorderLayout.EAST);\n\t\trightPanel.setBackground(new Color(233, 196, 106));\n\n\t\tJPanel bottomPanel = new JPanel();\n\t\tframe.getContentPane().add(bottomPanel, BorderLayout.SOUTH);\n\t\tbottomPanel.setBackground(new Color(233, 196, 106));\n\t\tbottomPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 0));\n\t\t// Se añaden los componentes al bottomPanel\n\t\tbtnLogOut = new JButton(\"Cerrar Sesión\");\n\t\tbtnLogOut.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbtnLogOut.setBorder(null);\n\t\tbtnLogOut.setBackground(new Color(233, 196, 106));\n\t\tbtnLogOut.setFont(new Font(\"SansSerif\", Font.BOLD, 12));\n\t\tbottomPanel.add(btnLogOut);\n\n\t\tJLabel lblLogOut = new JLabel(\"X\");\n\t\tlblLogOut.setForeground(new Color(220, 20, 60));\n\t\tlblLogOut.setFont(new Font(\"SansSerif\", Font.BOLD, 13));\n\t\tbottomPanel.add(lblLogOut);\n\n\t\t/*\n\t\t * mainPanel. Dentro se crean otros paneles para añadir los distintos\n\t\t * componentes.\n\t\t */\n\t\tJPanel mainPanel = new JPanel();\n\t\tmainPanel.setBorder(new MatteBorder(2, 2, 1, 1, (Color) new Color(0, 0, 0)));\n\t\tframe.getContentPane().add(mainPanel);\n\t\tGridBagLayout gbl_mainPanel = new GridBagLayout();\n\t\tgbl_mainPanel.columnWidths = new int[] { 1061, 0 };\n\t\tgbl_mainPanel.rowHeights = new int[] { 137, 298, 328, 0 };\n\t\tgbl_mainPanel.columnWeights = new double[] { 0.0, Double.MIN_VALUE };\n\t\tgbl_mainPanel.rowWeights = new double[] { 0.0, 0.0, 0.0, Double.MIN_VALUE };\n\t\tmainPanel.setLayout(gbl_mainPanel);\n\n\t\t// Paneles que componen el mainPanel\n\n\t\tJPanel clientPanel = new JPanel();\n\t\tGridBagConstraints gbc_clientesPanel = new GridBagConstraints();\n\t\tgbc_clientesPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_clientesPanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_clientesPanel.gridx = 0;\n\t\tgbc_clientesPanel.gridy = 0;\n\t\tmainPanel.add(clientPanel, gbc_clientesPanel);\n\t\tclientPanel.setLayout(new BorderLayout());\n\t\tclientPanel.setPreferredSize(new Dimension(10, 50));\n\n\t\t// Añadir Jlabel a clientesPanel\n\t\tJLabel lblClientData = new JLabel(\"Datos del cliente\");\n\t\tlblClientData.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblClientData.setFont(new Font(\"SansSerif\", Font.BOLD, 25));\n\t\tclientPanel.add(lblClientData, BorderLayout.CENTER);\n\n\t\t// Panel para rellenar datos de cliente.\n\t\tJPanel clientDataPanel = new JPanel();\n\t\tGridBagConstraints gbc_datosClientePanel = new GridBagConstraints();\n\t\tgbc_datosClientePanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_datosClientePanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_datosClientePanel.gridx = 0;\n\t\tgbc_datosClientePanel.gridy = 1;\n\t\tmainPanel.add(clientDataPanel, gbc_datosClientePanel);\n\t\tclientDataPanel.setLayout(new GridLayout(1, 2));\n\n\t\tJPanel clientDataPanelLeft = new JPanel();\n\t\tclientDataPanel.add(clientDataPanelLeft);\n\t\tSpringLayout sl_datosClientePanelLeft = new SpringLayout();\n\t\tclientDataPanelLeft.setLayout(sl_datosClientePanelLeft);\n\n\t\t// Componentes panel derecho\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblCod = new JLabel(\"Código de cliente:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblCod, 26, SpringLayout.NORTH, clientDataPanelLeft);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblCod, 70, SpringLayout.WEST, clientDataPanelLeft);\n\t\tlblCod.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblCod);\n\n\t\ttxtCod = new JTextField();\n\t\ttxtCod.setEnabled(false);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtCod, -3, SpringLayout.NORTH, lblCod);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtCod, 74, SpringLayout.EAST, lblCod);\n\t\ttxtCod.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtCod.setColumns(10);\n\t\tclientDataPanelLeft.add(txtCod);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblNombreCliente = new JLabel(\"Nombre:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblNombreCliente, 26, SpringLayout.SOUTH, lblCod);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblNombreCliente, 0, SpringLayout.WEST, lblCod);\n\t\tlblNombreCliente.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblNombreCliente);\n\n\t\ttxtName = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtName, -3, SpringLayout.NORTH, lblNombreCliente);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtName, 0, SpringLayout.WEST, txtCod);\n\t\ttxtName.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtName.setColumns(10);\n\t\tclientDataPanelLeft.add(txtName);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblSurnames = new JLabel(\"Apellidos:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblSurnames, 26, SpringLayout.SOUTH,\n\t\t\t\tlblNombreCliente);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblSurnames, 0, SpringLayout.WEST, lblCod);\n\t\tlblSurnames.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblSurnames);\n\n\t\ttxtSurnames = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtSurnames, -3, SpringLayout.NORTH, lblSurnames);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtSurnames, 0, SpringLayout.WEST, txtCod);\n\t\ttxtSurnames.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtSurnames.setColumns(10);\n\t\tclientDataPanelLeft.add(txtSurnames);\n\n\t\tJLabel lblDni = new JLabel(\"DNI:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblDni, 26, SpringLayout.SOUTH, lblSurnames);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblDni, 0, SpringLayout.WEST, lblCod);\n\t\tlblDni.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblDni);\n\n\t\ttxtDni = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtDni, -3, SpringLayout.NORTH, lblDni);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtDni, 0, SpringLayout.WEST, txtCod);\n\t\ttxtDni.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtDni.setColumns(10);\n\t\tclientDataPanelLeft.add(txtDni);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblTelephone = new JLabel(\"Teléfono:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblTelephone, 26, SpringLayout.SOUTH, lblDni);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblTelephone, 0, SpringLayout.WEST, lblCod);\n\t\tlblTelephone.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblTelephone);\n\n\t\ttxtTelephone = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtTelephone, -3, SpringLayout.NORTH, lblTelephone);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtTelephone, 0, SpringLayout.WEST, txtCod);\n\t\ttxtTelephone.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtTelephone.setColumns(10);\n\t\tclientDataPanelLeft.add(txtTelephone);\n\n\t\tJPanel clientDataPanelRight = new JPanel();\n\t\tclientDataPanel.add(clientDataPanelRight);\n\n\t\tJPanel bottonPanel = new JPanel();\n\t\tGridBagConstraints gbc_botonPanel = new GridBagConstraints();\n\t\tgbc_botonPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_botonPanel.gridx = 0;\n\t\tgbc_botonPanel.gridy = 2;\n\t\tmainPanel.add(bottonPanel, gbc_botonPanel);\n\t\tbottonPanel.setLayout(new FlowLayout(1, 250, 100));\n\n\t\t// Botones\n\t\tbackButton = new JButton(\"Volver al menú\");\n\t\tbackButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbackButton.setFont(new Font(\"SansSerif\", Font.BOLD, 15));\n\t\tbackButton.setBackground(new Color(244, 162, 97));\n\t\tbackButton.setForeground(Color.WHITE);\n\t\tbottonPanel.add(backButton);\n\n\t\tregisterButton = new JButton(\"Añadir cliente\");\n\t\tregisterButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tregisterButton.setFont(new Font(\"SansSerif\", Font.BOLD, 15));\n\t\tregisterButton.setBackground(new Color(231, 111, 81));\n\t\tregisterButton.setForeground(Color.WHITE);\n\t\tbottonPanel.add(registerButton);\n\n\t}", "public int getBottom() {\n return position[0] + (size - 1) / 2;\n }", "public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }", "private void addComponents() {\n //this.getContentPane().add(new ViewDeckComputer(), BorderLayout.NORTH);\n createTopPanel();\n createCentralPanel();\n createBottomPanel();\n }", "public void setBoundingBoxBottom(double value) {\n this.boundingBoxBottom = value;\n }", "public double Bottom(){\n\t\tdouble fary = y + sizeY - 1;\n\t\treturn (fary);\n\t}", "public DataBaseSouthPanel() {\n LOOGER.info(\"Get top panel Entry\");\n this.setOpaque(false);\n this.initComponents();\n this.addComponents();\n this.repaint();\n LOOGER.info(\"top panel exit\");\n }", "public int getBottomWeight(){\r\n\t \treturn this.bottomWeight;\r\n\t }", "public Puzzle_End_Panel() {\n initComponents();\n }", "@Override\n\tpublic int getHeight() {\n\t\treturn windowHeight;\n\t}", "public int getYBottom() {\n return getYTop() + getYWidth();\n }", "public StudentHomepage() { \n\t\tsetLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n\t\tsetPreferredSize(new Dimension(800,600));\n\t\tfillContentPane();\n\t}", "public SummaryPane() {\n\t\tbuildUpGUI();\n\t\tsetDefaultValues();\n\t\t//summaryEditorPane.addHyperlinkListener( new Hyperactive() );\n\t}", "protected void scrollToBottom() {\r\n\t\tContainer parent = this.getParent();\r\n\t\tif (parent instanceof JViewport) {\r\n\t\t\t((JViewport) parent).setViewPosition(new Point(0, this.getHeight()));\r\n\t\t}\r\n\t}", "private void buildPanel()\n {\n setLayout(new BorderLayout());\n JLabel instr = new JLabel(TOP_HELP);\n instr.setToolTipText(POPUP_HELP);\n add(instr, BorderLayout.NORTH);\n\n final JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);\n splitPane.setContinuousLayout(true);\n splitPane.setResizeWeight(.9);\n splitPane.setOneTouchExpandable(true);\n\n mMazeView.setMinimumSize(new Dimension(400, 200));\n splitPane.setLeftComponent(mMazeView);\n mMazeView.setModel(null);\n\n this.mOpenMazes = new MazeList(this.mMazeView);\n this.mOpenMazes.setMinimumSize(new Dimension(160, 0));\n JPanel rightPanel = new JPanel();\n rightPanel.setLayout(new BorderLayout());\n rightPanel.add(this.mOpenMazes, BorderLayout.CENTER);\n\n final JPanel rightPanelButtons = new JPanel(new BorderLayout());\n rightPanelButtons.add(makeNewMazeButton(), BorderLayout.NORTH);\n rightPanelButtons.add(makeRandomMazeButton(), BorderLayout.SOUTH);\n\n rightPanel.add(rightPanelButtons, BorderLayout.SOUTH);\n splitPane.setRightComponent(rightPanel);\n\n add(splitPane, BorderLayout.CENTER);\n splitPane.setDividerLocation(.8);\n\n addComponentListener(new ComponentAdapter()\n {\n boolean notShown = true;\n\n @Override\n public void componentShown(ComponentEvent e)\n {\n if (notShown)\n {\n splitPane.setDividerLocation(.8);\n notShown = false;\n }\n }\n });\n\n JToolBar tBar = new JToolBar();\n tBar.setOrientation(JToolBar.VERTICAL);\n tBar.setFloatable(false);\n ButtonGroup bg = new ButtonGroup();\n\n ImageIcon scaled = new ImageIcon(mPointIcon.getImage().getScaledInstance(40, 40, 0));\n JToggleButton tb = new JToggleButton(scaled);\n tb.setToolTipText(\"No Template\");\n tb.addActionListener(new TemplateActionListener(null));\n bg.add(tb);\n bg.setSelected(tb.getModel(), true);\n tBar.add(tb);\n\n for (MazeTemplate mt : mTemplates)\n {\n Image iconImage = mt.getTemplateIcon().getImage();\n scaled = new ImageIcon(iconImage.getScaledInstance(40, 40, 0));\n tb = new JToggleButton(scaled);\n tb.addActionListener(new TemplateActionListener(mt));\n tb.setToolTipText(mt.getTemplateDescription());\n bg.add(tb);\n tBar.add(tb);\n }\n\n add(tBar, BorderLayout.WEST);\n\n //Add an action for the 'r' key to change the template to the next orientation.\n this.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke('r'),\n NEXT_ORIENTATION_ACTION_KEY);\n this.getActionMap().put(NEXT_ORIENTATION_ACTION_KEY, new AbstractAction()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n if (mCurrentTemplate != null)\n {\n mCurrentTemplate.nextOrientation();\n mMazeView.repaint();\n }\n }\n });\n\n mMouseAdapter = new TemplateMouseAdapter();\n\n mMazeView.addMouseListener(mMouseAdapter);\n mMazeView.addMouseMotionListener(mMouseAdapter);\n mMazeView.addMouseWheelListener(mMouseAdapter);\n }", "GardenPlannerHomeGUI(){\n setContentPane(homeScreen);\n setPreferredSize(new Dimension(500,500));\n pack();\n setVisible(true);\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n Listeners();\n }", "public List<Integer> getBottomVerticalSpacings() {\n return bottomVerticalSpacings;\n }", "private Parent createContent(){\n Pane root = new Pane();\n root.setPrefSize(BRICK_SIZE*(Board.BOUNDARY_RIGHT+7), BRICK_SIZE*(Board.BOUNDARY_BOTTOM+1));\n\n Rectangle background = new Rectangle(BRICK_SIZE*(Board.BOUNDARY_RIGHT+7), BRICK_SIZE*(Board.BOUNDARY_BOTTOM+1));\n background.setFill(Color.rgb(152, 172, 172));\n root.getChildren().add(background);\n\n Rectangle bar = new Rectangle(BRICK_SIZE*(Board.BOUNDARY_RIGHT+1), BRICK_SIZE*(Board.BOUNDARY_BOTTOM+1)); // the Board area\n bar.setFill(Color.rgb(31, 31, 31));\n root.getChildren().add(bar);\n\n Rectangle holdArea = new Rectangle(BRICK_SIZE*(Board.BOUNDARY_RIGHT-1) + 96, 10, BRICK_SIZE*4+4, BRICK_SIZE*4+4);\n holdArea.setFill(Color.rgb(31, 31, 31));\n holdArea.setStroke(Color.WHITE);\n holdArea.setStrokeWidth(1.0);\n root.getChildren().add(holdArea);\n\n Text holdLabel = new Text();\n holdLabel.setText(\"Hold: (X)\");\n holdLabel.setLayoutX(BRICK_SIZE*(Board.BOUNDARY_RIGHT) + 96);\n holdLabel.setLayoutY(32);\n holdLabel.setFill(Color.WHITESMOKE);\n holdLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(holdLabel);\n\n Rectangle next = new Rectangle(BRICK_SIZE*(Board.BOUNDARY_RIGHT-1) + 96, 150, BRICK_SIZE*4+4, BRICK_SIZE*4+4);\n next.setFill(Color.rgb(91, 91, 91));\n next.setStroke(Color.WHITE);\n next.setStrokeWidth(1.0);\n root.getChildren().add(next);\n\n Text nextLabel = new Text();\n nextLabel.setText(\"Next:\");\n nextLabel.setLayoutX(BRICK_SIZE*(Board.BOUNDARY_RIGHT) + 96);\n nextLabel.setLayoutY(172);\n nextLabel.setFill(Color.WHITESMOKE);\n nextLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(nextLabel);\n\n Canvas canvas = new Canvas(BRICK_SIZE*(Board.BOUNDARY_RIGHT+7), BRICK_SIZE*(Board.BOUNDARY_BOTTOM+1));\n g = canvas.getGraphicsContext2D();\n root.getChildren().add(canvas);\n\n Label scoreLabel = new Label();\n scoreLabel.setText(\"Score\");\n scoreLabel.setLayoutX(360);\n scoreLabel.setLayoutY(332);\n scoreLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(scoreLabel);\n\n Label highScoreLabel = new Label();\n highScoreLabel.setText(\"High Score\");\n highScoreLabel.setLayoutX(360);\n highScoreLabel.setLayoutY(382);\n highScoreLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(highScoreLabel);\n\n Label levelLabel = new Label();\n levelLabel.setText(\"Level\");\n levelLabel.setLayoutX(360);\n levelLabel.setLayoutY(432);\n levelLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(levelLabel);\n\n Label linesLabel = new Label();\n linesLabel.setText(\"Lines Cleared\");\n linesLabel.setLayoutX(360);\n linesLabel.setLayoutY(482);\n linesLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(linesLabel);\n\n board = new Board();\n\n score.setText(\"\" + board.getScore());\n score.setLayoutX(360);\n score.setLayoutY(352);\n score.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(score);\n\n highScore.setText(\"\" + Math.max(FileHandler.readHighScore(), board.getScore()));\n highScore.setLayoutX(360);\n highScore.setLayoutY(402);\n highScore.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(highScore);\n\n level.setText(\"\" + board.getLevel());\n level.setLayoutX(360);\n level.setLayoutY(452);\n level.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(level);\n\n lines.setText(\"\" + board.getTotalLinesCleared());\n lines.setLayoutX(360);\n lines.setLayoutY(502);\n lines.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(lines);\n\n refreshDisplay();\n\n // The AnimationTimer is responsible for moving the currently controlled piece down.\n AnimationTimer animationTimer = new AnimationTimer() {\n @Override\n public void handle(long now) {\n if(time < 0.2){\n time = 0.0;\n }\n time += timeFractionBasedOnLevel();\n if(time >= 60.0){\n board.moveDown();\n refreshDisplay();\n time = 0.0;\n }\n }\n };\n animationTimer.start();\n\n return root;\n }", "private org.gwtbootstrap3.client.ui.PanelBody get_f_PanelBody51() {\n return build_f_PanelBody51();\n }", "private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\n\t}", "void Footer() {\n\t\tJPanel panel = new JPanel(new FlowLayout());\r\n\t\tpanel.add(btnLogin);\r\n\t\tpanel.add(btnReset);\r\n\t\t\r\n\t\tadd(panel, BorderLayout.SOUTH);\r\n\t\t\r\n\t\t//Action Listener untuk melakukan action pindah halaman\r\n\t\tbtnLogin.addActionListener(this);\r\n\t\tbtnReset.addActionListener(this);\r\n\t}", "@JSProperty(\"bottom\")\n void setBottom(Chart3dFrameBottomOptions value);", "SummaryPanel() {\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tsetBackground(Color.white);\r\n\t\twriteButton.addActionListener(this);\r\n\t\tsetupGui();\r\n\t}", "private javax.swing.JPanel getJContentPane() {\n if (jContentPane == null) {\n jContentPane = new javax.swing.JPanel();\n jContentPane.setLayout(new java.awt.BorderLayout());\n jContentPane.add(getPButtons(), java.awt.BorderLayout.SOUTH);\n jContentPane.add(getSpPrefixList(), java.awt.BorderLayout.CENTER);\n }\n return jContentPane;\n }", "@Override\n public int getHeight() {\n return height;\n }", "@Override\n public int getHeight() {\n return height;\n }", "@Override\n public boolean isGoodForBottom()\n {\n return false;\n }", "private JPanel getContent()\r\n\t{\r\n\r\n\t\tJPanel pane = new JPanel();\r\n\t\tpane.setLayout(new GridBagLayout());\r\n\t\t\t\t\r\n\t\tGridBagConstraints c = new GridBagConstraints();\r\n\t\t\r\n\t\tc.insets = new Insets(10, 5, 0, 5);\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.weightx =1.0;\r\n\t\tc.gridy = 0;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new CustLabel(\"Risikostrategie für die Bestellung\"),c);\r\n\t\t\r\n\t\tc.gridy = 1;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new OrderRiskPane(),c);\r\n\t\t\r\n\t\tc.insets.top=30;\t\r\n\t\tc.gridy = 2;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new CustLabel(\"Überstunden\"),c);\r\n\t\t\r\n\t\tc.insets.top=10;\t\r\n\t\tc.gridy = 3;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new OvertimePane(),c);\r\n\t\t\r\n\t\treturn pane;\r\n\t}", "@Override\n\tpublic void height() {\n\t\t\n\t}", "private RGridBagLayoutPane getDatabasePane() {\n if (databasePane == null) {\n ULCTitledBorder ULCTitledBorder2 =\n BorderFactory.createTitledBorder(null, \"Database\", ULCTitledBorder.LEADING, ULCTitledBorder.DEFAULT_POSITION,\n new Font(\"Tahoma\", Font.PLAIN, 11), new Color(23, 64, 140));\n ULCTitledBorder2.setTitle(\"<%=ivy.cms.co(\\\"/Dialogs/about/databaseTitle\\\")%>\");\n ULCTitledBorder2.setBorder(null);\n RFiller filler1 = new RFiller();\n filler1\n .setStyleProperties(\"{/usePreferredSizeAsExactSize \\\"true\\\"/preferredSizeWidth \\\"135\\\"/preferredSizeHeight \\\"0\\\"}\");\n databasePane = new RGridBagLayoutPane();\n databasePane.setName(\"databasePane\");\n databasePane.setBorder(BorderFactory.createTitledBorder(null, \"Database\", ULCTitledBorder.LEADING,\n ULCTitledBorder.DEFAULT_POSITION, new Font(\"Tahoma\", Font.PLAIN, 11), new Color(23, 64, 140)));\n databasePane.setStyleProperties(\"{/fill \\\"HORIZONTAL\\\"/weightY \\\"0\\\"/insetsLeft \\\"5\\\"}\");\n databasePane.setBorder(ULCTitledBorder2);\n databasePane.add(getDbProductLabel(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n databasePane.add(getDbSystemLabel(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n databasePane.add(getDbSystemTextField(), new com.ulcjava.base.application.GridBagConstraints(1, 0, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n databasePane.add(getDbProductTextField(), new com.ulcjava.base.application.GridBagConstraints(1, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n databasePane.add(getDbVersionLabel(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n databasePane.add(getDbVersionTextField(), new com.ulcjava.base.application.GridBagConstraints(1, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n databasePane.add(filler1, new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }\n return databasePane;\n }", "private void createComponents() {\n view = new JPanel(new GridBagLayout());\n\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 1;\n constraints.fill = GridBagConstraints.BOTH;\n\n view.add(new JPanel(), constraints);\n\n constraints.gridy = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 1;\n constraints.weighty = 4;\n constraints.weightx = 6;\n view.add(renderMain(), constraints);\n\n constraints.gridx = 2;\n constraints.weightx = 1;\n constraints.weighty = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 0;\n constraints.gridy = 2;\n view.add(renderBottom(), constraints);\n\n registerEvents();\n }", "protected void configure(JRootPane rootPane) {\r\n Container contentPane = rootPane.getContentPane();\r\n contentPane.add(graphComponent, BorderLayout.CENTER);\r\n\r\n JToolBar toolBar = createToolBar();\r\n if (toolBar != null) {\r\n configureToolBar(toolBar);\r\n contentPane.add(toolBar, BorderLayout.NORTH);\r\n }\r\n\r\n JComponent helpPane = createHelpPane();\r\n if (helpPane != null) {\r\n contentPane.add(helpPane, BorderLayout.EAST);\r\n }\r\n }", "public void addContent() {\n ScrollPane mySP = new ScrollPane();\n myContent = new SaveForm(myManager);\n mySP.setContent(myContent);\n mySP.setPrefSize(size, size);\n myRoot.getChildren().add(mySP);\n }", "private void eastRegion() {\r\n\t\tContainer eastContainer = new Container(new BoxLayout(BoxLayout.Y_AXIS));\r\n\t\t\r\n\t\teastContainer.getAllStyles().setPadding(Component.TOP, 50);\r\n\t\teastContainer.getAllStyles().setBorder(Border.createLineBorder(4, ColorUtil.BLACK));\r\n\t\t\r\n\t\tBreakCommand breakCommand = new BreakCommand(gw);\r\n\t\tButton breakButton = new Button(breakCommand);\r\n\t\t\r\n\t\tRightCommand rightCommand = new RightCommand(gw);\r\n\t\tButton rightButton = new Button(rightCommand);\r\n\t\t\r\n\t\teastContainer.add(breakButton);\r\n\t\tbuttonStyling(breakButton, true, false);\r\n\t\t\r\n\t\teastContainer.add(rightButton);\r\n\t\tbuttonStyling(rightButton, false, false);\r\n\t\t\r\n\t\tbreakButton.setCommand(breakCommand);\r\n\t\taddKeyListener('b', breakCommand);\r\n\t\t\r\n\t\trightButton.setCommand(rightCommand);\r\n\t\taddKeyListener('r', rightCommand);\r\n\t\t\r\n\t\tadd(BorderLayout.EAST, eastContainer);\r\n\t}", "public JPanel createSouthPanel() {\n\t\tsouth = new JPanel(new GridLayout(1, 1));\n\t\t// adds start button and its functionality\n\t\tstartGame();\n\t\treturn south;\n\t}", "private BorderPane getPane() {\n bigField = new BigField(); // Create a Field model\n view = new BigFieldView(bigField); // Create a pane view\n BorderPane pane = new BorderPane();\n pane.setCenter(view);\n\n return pane;\n }", "public double getBottom() {\n return this.yD;\n }", "AreaResource panelArea();", "public Cool303ComponentsPastel()\n {\n super();\n Dimension size = getPreferredSize();\n size.width = size.height = Math.max(size.width, size.height);\n setPreferredSize(size);\n setContentAreaFilled(false);\n\n }", "@Override\n public void bottomPanel(String bottomType) {\n\n if (getBottomPanel() != null) {\n getBottomPanel().removeAll();\n getBottomPanel().revalidate();\n getBottomPanel().repaint();\n }\n switch (bottomType) {\n case \"Inventory\":\n getBottomPanel().setLayout(new FlowLayout(FlowLayout.CENTER, 150, 10));\n //Creating nextPage BTN\n nextPagebtn = new JButton(\"Next\");\n nextPagebtn.setPreferredSize(new Dimension(150, 35));\n nextPagebtn.addActionListener(this);\n //Creating Previous BTN\n previousPagebtn = new JButton(\"Previous\");\n previousPagebtn.setPreferredSize(new Dimension(150, 35));\n previousPagebtn.addActionListener(this);\n //Add to Panel\n getBottomPanel().add(previousPagebtn);\n getBottomPanel().add(nextPagebtn);\n break;\n case \"Checkout\":\n checkOutbtn = new JButton(\"Go To Checkout\");\n checkOutbtn.setPreferredSize(new Dimension(150, 35));\n checkOutbtn.addActionListener(this);\n getBottomPanel().add(checkOutbtn);\n break;\n case \"Submit Order\":\n submitbtn = new JButton(\"Submit Order\");\n submitbtn.setPreferredSize(new Dimension(150, 35));\n submitbtn.addActionListener(this);\n getBottomPanel().add(submitbtn);\n break;\n }\n }", "public UI() {\r\n\t\tsetPreferredSize(new Dimension(1100, 720));\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(chatPanel(), BorderLayout.CENTER);\r\n\t\tadd(serverPanel(), BorderLayout.EAST);\r\n\t\taddListeners();\r\n\t}" ]
[ "0.67200696", "0.65402883", "0.65038764", "0.6483274", "0.64206475", "0.62422377", "0.62422377", "0.6187505", "0.61499363", "0.612689", "0.61185783", "0.6079295", "0.605996", "0.5969293", "0.5948183", "0.5910116", "0.5887258", "0.5818308", "0.5817764", "0.5812841", "0.5801959", "0.5785401", "0.5782671", "0.57562256", "0.57425356", "0.5740102", "0.5738882", "0.57015294", "0.5677641", "0.5667465", "0.56547475", "0.5653519", "0.56360584", "0.5625991", "0.562456", "0.5620509", "0.5604531", "0.5598276", "0.5588273", "0.5586194", "0.5585815", "0.5562372", "0.5550413", "0.55081815", "0.550021", "0.5488231", "0.54586536", "0.5449275", "0.542334", "0.5422859", "0.5418509", "0.53978825", "0.5396164", "0.53855", "0.5349456", "0.5347315", "0.5343813", "0.5338186", "0.53291297", "0.5315599", "0.53080004", "0.530473", "0.52907985", "0.52824795", "0.52788544", "0.52511424", "0.5243203", "0.5242706", "0.523119", "0.5209589", "0.5203497", "0.52030694", "0.5197327", "0.5191674", "0.51825535", "0.51805836", "0.5175098", "0.5173014", "0.5172272", "0.51655686", "0.51600707", "0.515355", "0.5149741", "0.5137668", "0.5137668", "0.5137349", "0.5133854", "0.51335907", "0.51323056", "0.512784", "0.51277995", "0.5125019", "0.5118931", "0.51162755", "0.51121783", "0.51116323", "0.5100418", "0.5095693", "0.5089733", "0.50889343" ]
0.5732956
27
runs static initialization block
public static void load() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void init() {}", "public static void init() {}", "public static void init() {\n }", "public static void init() {\n }", "public static void init() {\n\n }", "public static void init() {\n\t\t\n\t}", "public void init() {\n log.info(\"initialization\");\n }", "@SuppressWarnings(\"UnusedDeclaration\")\n public static void __staticInitializer__() {\n }", "private void _init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "public void init() {}", "public void init() {}", "public static synchronized void init()\n {\n lazyinit();\n }", "private void init() {\n\n\t}", "protected void _init(){}", "private void initialize() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n\t\t}", "public void init() {\n\t\n\t}", "public void init() {\n \n }", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "public void init(){}", "public static void initialize() {\n \tinitialize(new Configuration().configure());\n }", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "private void initialize() {\n\t}", "public void init() {\n \t\tif (initLock.start()) {\n \t\t\ttry {\n \t\t\t\tthis._init(this.config);\n \t\t\t} finally {\n \t\t\t\tinitLock.end();\n \t\t\t}\n \t\t}\n \t}", "public void init() {\r\n\r\n\t}", "public void init() { }", "public void init() { }", "private void init() {\n\n\n\n }", "public static void initialize()\n {\n CHUNK_LOADER = new ChunkLoader();\n //VILLAGE_INDICATOR = new VillageIndicator();\n\n BLOCK_LIST.add(CHUNK_LOADER);\n //BLOCK_LIST.add(VILLAGE_INDICATOR);\n Log.info(\"=========================================================> Initialized Blocks\");\n }", "public void init() {\n\t\t\n\t}", "private void initialize() {\n\t\t\n\t}", "public void init()\n {\n }", "protected void init() {\n }", "public void init(){\n \n }", "public void init() {\n\r\n\t}", "public void init() {\n\r\n\t}", "public void init() {\n\n }", "public void init() {\n\n }", "protected void init() {\n\t}", "protected void init() {\n\t}", "public void initialize() {\n }", "public final void init() {\n onInit();\n }", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "public void initialize() {\n\t}", "public void initialize() {\n\t}", "public void initialize() {\n // empty for now\n }", "private void _init() throws Exception {\n }", "private void _init() throws Exception {\n }", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public void init() throws InitializationException;", "public void initialize() {\r\n }", "public void initialize() {\n\n getStartUp();\n }", "protected void initialize() {}", "protected void initialize() {}", "@Override\n\tpublic synchronized void init() {\n\t}", "public static void init() {\r\n load();\r\n registerEventListener();\r\n }", "protected void initialize() {\n \t\n }", "private void Initialize()\n {\n\n }", "public static void preInit() {\n registerBlocks();\n }", "public void initialize() {\n // TODO\n }", "abstract public void init();", "public void init(){\n System.out.println(\"调用init\");\n }", "public void init() {\n System.out.println(name + \": Call explicit init()\");\n }", "public static void init() throws Exception {\n\t\t\n\t}", "private void _init() throws Exception {\n }", "public void initialize() {\n }", "void init() {\n\t\tinitTypes();\n\t\tinitGlobalFunctions();\n\t\tinitFunctions();\n\t\tinitClasses();\n\t}", "@Override\n\tpublic void init() {\n\t\t// Nothing to do in this example\n\t}", "public void initialize () {\n }" ]
[ "0.8252461", "0.80456835", "0.7795296", "0.7795296", "0.7780827", "0.7716569", "0.7364399", "0.7307893", "0.73075104", "0.7305587", "0.7305587", "0.7305587", "0.7305587", "0.729788", "0.72709274", "0.72709274", "0.7185532", "0.7138806", "0.71197677", "0.70886236", "0.7042336", "0.7042336", "0.7042336", "0.7042336", "0.70372254", "0.70285374", "0.70248675", "0.70234376", "0.70234376", "0.70234376", "0.7013782", "0.7007929", "0.7007055", "0.7007055", "0.7007055", "0.7005828", "0.70033526", "0.7000149", "0.6999422", "0.6999422", "0.69906026", "0.6978041", "0.6966715", "0.6912845", "0.69113725", "0.690987", "0.68780595", "0.68619484", "0.68619484", "0.6855082", "0.6855082", "0.6847372", "0.6847372", "0.6838696", "0.68252456", "0.6822802", "0.6822802", "0.6822802", "0.6822802", "0.6822802", "0.6822802", "0.6822802", "0.6822802", "0.6822802", "0.6822802", "0.6822802", "0.6820332", "0.6820332", "0.68186784", "0.6816648", "0.6816648", "0.6799958", "0.6799958", "0.6799958", "0.6799958", "0.6799958", "0.6799958", "0.6799958", "0.6799958", "0.6799958", "0.6799958", "0.6798833", "0.6793083", "0.67921853", "0.67892116", "0.67892116", "0.6789051", "0.6787303", "0.6784856", "0.6777803", "0.67726874", "0.67615724", "0.67577416", "0.67491204", "0.67453456", "0.6742367", "0.67422396", "0.67357427", "0.6735441", "0.6734149", "0.6729848" ]
0.0
-1
This ChatList interface contains 6 methods, newChat, allChats, getVersion, newName, print, and registration.
public interface ChatList extends Remote { Chat newChat(String s) throws RemoteException; Vector allChats() throws RemoteException; int getVersion() throws RemoteException; boolean newName(String s) throws RemoteException; boolean deleteName(String s) throws RemoteException; void print() throws RemoteException; void registration(ChatList l) throws RemoteException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Chat {\n UUID getChatId();\n void setChatId(UUID chatId);\n UUID getObjectId();\n void setObjectId(UUID objectId);\n String getLocalActorType();\n void setLocalActorType(String localActorType);\n String getLocalActorPublicKey();\n void setLocalActorPublicKey(String localActorPublicKey);\n String getRemoteActorType();\n void setRemoteActorType(String remoteActorType);\n String getRemoteActorPublicKey();\n void setRemoteActorPublicKey(String remoteActorPublicKey);\n String getChatName();\n void setChatName(String chatName);\n ChatStatus getStatus();\n void setStatus(ChatStatus status);\n Date getDate();\n void setDate(Date date);\n Date getLastMessageDate();\n void setLastMessageDate(Date lastMessageDate);\n}", "public interface Chat {\n String getPhoneNumberNational();\n\n String getName();\n\n int getChannelID();\n\n int getPersonID();\n\n String getState();\n\n Date getLastMessageSentAt();\n\n String getIsGroupChat();\n}", "public ModelChatlist(String id) {\n this.id = id;\n }", "public interface ChatManager {\n //TODO: Implementar los metodos que necesiten manejar el module\n //Documentar\n List<Chat> getChats() throws CantGetChatException;\n\n Chat getChatByChatId(UUID chatId) throws CantGetChatException;\n\n Chat newEmptyInstanceChat() throws CantNewEmptyChatException;\n\n void saveChat(Chat chat) throws CantSaveChatException;\n\n void deleteChat(Chat chat) throws CantDeleteChatException;\n\n List<Message> getMessages() throws CantGetMessageException;\n\n Message getMessageByChatId(UUID chatId) throws CantGetMessageException;\n\n Message getMessageByMessageId(UUID messageId) throws CantGetMessageException;\n\n Message newEmptyInstanceMessage() throws CantNewEmptyMessageException;\n\n void saveMessage(Message message) throws CantSaveMessageException;\n\n void deleteMessage(Message message) throws CantDeleteMessageException;\n\n List<Contact> getContacts() throws CantGetContactException;\n\n Contact getContactByContactId(UUID contactId) throws CantGetContactException;\n\n Contact newEmptyInstanceContact() throws CantNewEmptyContactException;\n\n void saveContact(Contact contact) throws CantSaveContactException;\n\n void deleteContact(Contact contact) throws CantDeleteContactException;\n}", "private void addToChatList(Chat[] newChats){\n if ( newChats == null || newChats.length == 0 ) {\n return;\n }\n if ( chatList.size() == 0 ) { // no chat history loaded yet\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n headIndex = newChats[0].id; // update the tail index\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else if ( newChats[newChats.length-1].id < chatList.get(0).id ) { // new.tail is prior to current.head\n // prepend the new chats to the head of the current chat\n int selection = lv_chat.getFirstVisiblePosition();\n selection += newChats.length;\n for ( int i = newChats.length-1; i >= 0; i-- ) {\n chatList.push(newChats[i]);\n }\n lv_chat.setSelection(selection);\n adapter.notifyDataSetChanged();\n Log.d(TAG,\"select:\"+selection);\n headIndex = newChats[0].id; // update the headIndex\n } else if ( newChats[0].id > chatList.get(chatList.size()-1).id ) { // new.head is after current.tail\n // append the new chats to the tail of the current chat\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else {\n Log.e(TAG,\"Loaded duplicated chat!\");\n }\n }", "List<Chat> getChats() throws CantGetChatException;", "private void createNewChat() {\n if (advertisement.getUniqueOwnerID().equals(dataModel.getUserID())) {\n view.showCanNotSendMessageToYourselfToast();\n return;\n }\n\n dataModel.createNewChat(advertisement.getUniqueOwnerID(), advertisement.getOwner(), advertisement.getUniqueID(),\n advertisement.getImageUrl(), chatID -> view.openChat(chatID));\n }", "public void chat_list() {\n\n synchronized(chat_room) {\n Set chat_room_set = chat_room.keySet();\n Iterator iter = chat_room_set.iterator();\n\n clearScreen(client_PW);\n client_PW.println(\"------------Chat Room List-----------\");\n while(iter.hasNext()) {\n client_PW.println(iter.next());\n }\n client_PW.flush();\n }\n }", "public LobbyChatPanel(ArrayList<ClientUser> chatUsers, String chatCommand, GameController game) {\n\t\tsuper(chatUsers, chatCommand, \"lobbyMessage\");\n\t\tthis.game = game;\n\t}", "@Override\n public void add(ChatMessage object) {\n chatMessageList.add(object);\n super.add(object);\n }", "public abstract void newChatMembersMessage(Message m);", "public List<message> getList() {\n return chats;\n }", "public interface GroupChatView {\n void enterText();\n void appendMsg(String chatName, String chatMessage, String chatTime, String chatDate);\n}", "@Override\r\n\tpublic void onNewChatter(Chat chatWithNewChatter, Chatter newChatter) {\n\t\t\r\n\t}", "public interface IListUser {\n void listUserEvent(List<UserChat> userChats);\n}", "@Override\r\n public int getCount() {\n return chatList.size();\r\n }", "public static void addChat($_Abstruct_Value_Item_Main_Chat abstruct_value_item_main_chat) {\n if (abstruct_value_item_main_chat instanceof $_Value_Item_Main_Chat) {\n main_chat_fragment.rooms.add(abstruct_value_item_main_chat);\n recycle_view_main_chat.addItemDecoration(new DividerItemDecoration(SecondActivity.context,\n DividerItemDecoration.VERTICAL));\n main_chat_fragment.recycleAdapter.notifyDataSetChanged();\n List<$_Message> list = new ArrayList();\n MainActivity.allMessages.put(abstruct_value_item_main_chat.getEmail(), new Pair<>(new $_Recycle_View_Room_Chat_Adapter(list, FourActivity.context), list));\n //MainActivity.allMessages.put(value_item_main_chat.getEmail(),new ArrayList<>());\n } else {\n main_chat_fragment.rooms.add(abstruct_value_item_main_chat);\n recycle_view_main_chat.addItemDecoration(new DividerItemDecoration(SecondActivity.context,\n DividerItemDecoration.VERTICAL));\n main_chat_fragment.recycleAdapter.notifyDataSetChanged();\n List<$_Message> list = new ArrayList();\n System.out.println(\"EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE === \" + abstruct_value_item_main_chat.getEmail());\n MainActivity.allMessages.put(abstruct_value_item_main_chat.getEmail(), new Pair<>(new $_Recycle_View_Room_Chat_Adapter(list, FourActivity.context), list));\n //MainActivity.allMessages.put(value_item_main_chat.getEmail(),new ArrayList<>());\n }\n\n }", "private void updateChat() throws SQLException{\n DBConnect db = DBConnect.getInstance();\n ArrayList<String> messages = db.getChat(selectedCustomer.getChat_id());\n chat.getItems().clear();\n for(String mess :messages){\n chat.getItems().add(mess);\n }\n }", "@Override\n public int getCount() {\n return chatList.size();\n }", "public ChatView() {\n\t\t// Load Font and Style Sheet\n\t\tFont.loadFont(Resources.el_font, 20);\n\t\tgetStylesheets().add(Resources.Css_ChatView);\n\n\t\t// Creating \"Chat Messages\" observable list and list view\n\t\tthis.chatMessages = FXCollections.observableArrayList();\n\t\t\n\t\tthis.lstChatMessages = new ListView<String>(chatMessages);\n\t\tthis.lstChatMessages.setPrefWidth(780);\n\t\tthis.lstChatMessages.setPrefHeight(780);\n\t\tthis.lstChatMessages.setStyle(\"\");\n\t\t//\t this.lstChatMessages.setPadding(new Insets(0,10,0,10));\n\t\tthis.lstChatMessages.setStyle(\"-fx-background-color: white;\");\n\t\tthis.lstChatMessages.setId(\"chatMessages\");\n\t\tthis.lstChatMessages.setCellFactory(\n\t\t\t\tnew Callback<ListView<String>, ListCell<String>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic ListCell<String> call(ListView<String> lstChatMessages) {\n\t\t\t\t\t\tfinal ListCell<String> cell =\n\t\t\t\t\t\t\t\tnew ListCell<String>() {\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tsetPrefWidth(5);\n\t\t\t\t\t\t\t\tsetWrapText(true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tprotected void updateItem(String item, boolean empty) {\n\t\t\t\t\t\t\t\tsuper.updateItem(item, empty);\n\t\t\t\t\t\t\t\tif (item == null) {\n\t\t\t\t\t\t\t\t\tsetText(null);\n\t\t\t\t\t\t\t\t\tsetStyle(null);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tsetText(item);\n\t\t\t\t\t\t\t\t\tsetStyle(\"-fx-font-family: 'Elianto Regular';\");\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\treturn cell;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tthis.lstChatMessages.setId(\"lstChatMessages\");\n\t\tthis.lstChatMessages.setItems(getChatMessages());\n\n\n\t\t// Setup Labels\n\t\tthis.title = new Text(\"Chat\");\n\t\tthis.title.setOnMouseClicked(e -> {slideChat();});\n\t\t\n\t\tthis.title.setId(\"Title\");\n\t\tthis.lblCharactersLeft = new Label(Integer.toString(this.maxCharacters));\n\t\tthis.lblCharactersLeft.setId(\"lblCharactersLeft\");\n\n\t\t// Setup Message Text Input\n\t\tthis.textInputMessage = new TextField();\n\t\tthis.textInputMessage.prefWidthProperty().bind(lstChatMessages.widthProperty().multiply(0.8));\n\t\tthis.textInputMessage.setPrefHeight(40);\n\t\tthis.textInputMessage.setFont(Font.loadFont(Resources.el_font, 16));\n\n\t\tfinal UnaryOperator<Change> limit = c -> {\n\t\t\tif (c.isContentChange()) {\n\t\t\t\tint newLength = c.getControlNewText().length();\n\t\t\t\tif (newLength > maxCharacters) {\n\t\t\t\t\tc.setText(c.getControlText());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn c;\n\t\t};\n\t\tfinal UnaryOperator<Change> chatFilter =\n\t\t\t\tchange -> { // Setup Filter\n\t\t\t\t\tif (change.getControlNewText().length() > maxCharacters) {\n\t\t\t\t\t\tnumCharactersLeft = 0;\n\t\t\t\t\t\tlblCharactersLeft.setText(Integer.toString(numCharactersLeft));\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnumCharactersLeft = maxCharacters - change.getControlNewText().length();\n\t\t\t\t\t\tlblCharactersLeft.setText(Integer.toString(numCharactersLeft));\n\t\t\t\t\t\treturn change;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tthis.textInputMessage.setTextFormatter(new TextFormatter<>(limit));\n\t\t\t\tthis.textInputMessage.setTextFormatter(new TextFormatter<>(chatFilter));\n\t\t\t\tthis.textInputMessage.setOnKeyPressed(\n\t\t\t\t\t\tnew EventHandler<KeyEvent>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void handle(KeyEvent keyEvent) {\n\t\t\t\t\t\t\t\tif ((keyEvent.getCode() == KeyCode.ENTER) && (!keyEvent.isAltDown())) {\n\t\t\t\t\t\t\t\t\tkeyEvent.consume();\n\t\t\t\t\t\t\t\t\tString message = textInputMessage.getText();\n\t\t\t\t\t\t\t\t\ttextInputMessage.clear();\n\t\t\t\t\t\t\t\t\tsendMessage(message);\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\tthis.textInputMessage.setId(\"textInputMessage\");\n\n\n\t\t\t\t// Setup Send Button\n\t\t\t\tButton sendBtn = new Button(\"Send\");\n\t\t\t\tsendBtn.prefWidthProperty().bind(lstChatMessages.widthProperty().multiply(0.2));\n\t\t\t\tsendBtn.setOnAction(e ->{ // Show deck\n\t\t\t\t\tsendMessage(textInputMessage.getText());\n\t\t\t\t});\n\n\t\t\t\tStackPane top = new StackPane();\n\t\t\t\ttop.getChildren().add(lstChatMessages);\n\n\t\t\t\tHBox bottom = new HBox(5);\n\t\t\t\tbottom.setAlignment(Pos.CENTER);\n\t\t\t\tbottom.getChildren().addAll(textInputMessage, sendBtn);\n\t\t\t\tbottom.setPadding(new Insets(0,0,10,0));\n\n\n\t\t\t\t// Put all together\n\t\t\t\tthis.container = new VBox(10);\n\t\t\t\tcontainer.setAlignment(Pos.BOTTOM_CENTER);\n\t\t\t\tcontainer.getChildren().addAll(lstChatMessages, bottom, title);\n\t\t\t\tcontainer.setPadding(new Insets(10,10,10,10));\n\t\t\t\tcontainer.setId(\"chat\");\n\n\t\t\t\tthis.getChildren().add(container);\n\t}", "@Override\r\n\t\t\tpublic void onChat(String message) {\n\r\n\t\t\t}", "public ChatModel(PrintWriter toServer, int chatID, String username, String otherUsername, ArrayList<String> availableUsers, ClientModel clientModel, boolean addedToChat){\n this.username = username;\n this.toServer = toServer;\n this.chatID = chatID;\n this.clientModel = clientModel;\n this.availableUsers = availableUsers;\n this.userStatuses = new HashMap<String, String>();\n String guiTitle = addedToChat ? \"\" : \" \" + otherUsername + \" \";\n gui = new ChatGUI(guiTitle, this);\n for (String user : this.availableUsers){\n gui.addUserToDropDown(user);\n }\n addTypingStatus(username, \"no_text\");\n addTypingStatus(otherUsername, \"no_text\");\n \n }", "synchronized static void chat(String name, String message) throws IOException\n {\t \n PrintWriter pw;\n \n //prints message to the server console\n System.out.println(name + \" >> \" + message);\n \n //goes through each ChatClient stored in linkedList \n for (Object o : linkedList)\n {\n //casts object in linked list to a socket\n pw = new PrintWriter(((Socket) o).getOutputStream(), true);\n \n //prints ChatClient's name with message to all connected ChatClients\n //on ChatClient socket outputstream\n pw.println(name + \" >> \" + message);\n }\n }", "private void setupChat() {\n chatArrayAdapter = new ArrayAdapter<String>(MainActivity.this, R.layout.message);\n\n listView.setAdapter(chatArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n editText.setOnEditorActionListener(mWriteListener);\n\n // Initialize the send button with a listener that for click events\n sendButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n String message = editText.getText().toString();\n if(!message.equals(\"\")) {\n sendMessage(message);\n }\n }\n });\n\n }", "public void addRoom(Chatroom room){\n\n }", "public ChatBackbone(Activity context, List<ChatMessage> list)\n\t {\n\t\t this.context = context;\n\t\t this.list = list;\n\t }", "public interface IChatsController extends IController{\n public void activateChatForContact(Contact contact);\n public void addMessageToChat(Message message);\n public Contact getCurrentDialogContact();\n public void resetCurrent();\n}", "private void appendNewComponent(int index) {\n/* 165 */ IChatMutableComponent iChatMutableComponent = (new ChatComponentText(this.message.substring(this.currentIndex, index))).setChatModifier(this.modifier);\n/* 166 */ this.currentIndex = index;\n/* 167 */ if (this.currentChatComponent == null) {\n/* 168 */ this.currentChatComponent = (IChatMutableComponent)new ChatComponentText(\"\");\n/* 169 */ this.list.add(this.currentChatComponent);\n/* */ } \n/* 171 */ this.currentChatComponent.addSibling((IChatBaseComponent)iChatMutableComponent);\n/* */ }", "public Chat(){ }", "public void createChatRoom(String name) throws RemoteException {\n\n\t\ttry {\n\t\t\tIChatServer chatStub;\n\t\t\t// make a new chatroom with supplied name\n\t\t\tIChatroom newRoom = new Chatroom(name);\n\t\t\tview.append(\"Make new ChatRoom: \" + newRoom.getName() + \"\\n\");\n\t\t\t// make a new chatserver stub for user in the newchatroom\n\t\t\tIChatServer newChatServer = new ChatServer(user, newRoom);\n\t\t\tview.append(\"Make new ChatServer: <User:\" + newChatServer.getUser().getName() + \", ChatServer: \"\n\t\t\t\t\t+ newChatServer.getChatroom().getName() + \">\\n\");\n\t\t\t//get a chatstub for new chatserver \n\t\t\tchatStub = (IChatServer) UnicastRemoteObject.exportObject(newChatServer, IChatServer.BOUND_PORT);\n\t\t\tregistry.rebind(IChatServer.BOUND_NAME + newRoom.hashCode(), chatStub);\n\t\t\tview.append(\"Make new ChatServer Stub for chatserver.\\n\");\n\t\t\t//add chatstub to newRoom\n\t\t\tnewRoom.addChatServer(chatStub);\n\t\t\tview.append(\"Add new ChatServer Stub to newRoom.\\n\");\n\t\t\t//add newchatroom to the user chatroom lists\n\t\t\tuser.addRoom(newRoom);\n\t\t\tview.append(\"Add new chatroom <\" + newRoom.getName() + \"> to user <\" + user.getName() + \">\\n\");\n\t\t\t//add all chatservers in that room to hashset\n\t\t\tHashSet<IChatServer> proxy = new HashSet<IChatServer>();\n\t\t\tfor (IChatServer item : newChatServer.getChatroom().getChatServers()) {\n\t\t\t\tIChatServer proxyChatServer = new ProxyIChatServer(item);\n\t\t\t\tproxy.add(proxyChatServer);\n\t\t\t}\n\t\t\tIMain2MiniAdpt miniMVCAdpt = view.makeMini(newChatServer, proxy);\n\t\t\tminiMVCAdpts.put(newRoom, miniMVCAdpt);\n\t\t\tcountRoom++;\n\t\t} catch (Exception e) {\n\t\t\tview.append(\"Error creating chatroom!\");\n\t\t}\n\n\t}", "public AddToChat(Point point,Controller c,user user) {\n initComponents();\n setLocation(point);\n controller=c;\n client=user;\n contacts=controller.getContactList(user);\n UsersName=new Vector<String>();\n for(int i=0;i<contacts.size();i++){\n UsersName.add(contacts.get(i).getUserName());\n }\n contactsList.setListData(UsersName);\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n setSize(278, 382);\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n setResizable(false);\n setVisible(true);\n \n }", "public interface ChatsDataSource {\n// 保存聊天列表\n void saveChatsList(List<ChatBean> chatBeanList, int onTopNumber);\n// 删除公众号\n void deleteAccount(int accountId);\n// 添加公众号\n void addAccount(ContactBean bean);\n// 删除联系人\n void deleteContact(int contactId);\n// 添加联系人\n void addContact(ContactBean bean);\n// 获取聊天列表\n List<ChatBean> getChatsList();\n// 获取联系人列表\n List<ContactBean> getContactsList();\n// 获取公众号列表\n List<ContactBean> getAccountsList();\n// 获取联系人列表cursor\n Cursor getContactsCursor();\n\n Cursor getAccountsCursor();\n\n\n// 获取联系人信息\n ContactBean getContactInfo(int contactId);\n// 获取消息列表\n List<MessageBean> getMessageList(int contactId, int page);\n\n void saveMessageList(List<MessageBean> beanList, int contactId);\n\n List<MomentBean> getMomentList(int page);\n\n ContactBean[] getFavors(int id);\n\n CommentBean[] getComments(int id);\n\n// 获取用户信息\n UserInfoBean getUserInfo();\n\n}", "@Override\n\t\t\t\t\tpublic void setChat(Vector<Message> chatMessages) {\n\t\t\t\t\t\tchat.setChatHistory(chatMessages);\n\t\t\t\t\t}", "@Override\n public int getCount() {\n return mChatListItems.size();\n }", "public Chat() {\n }", "@PutMapping(value=\"/chat/{id}/{userName}/{sentence}\")\n\t\tpublic ResponseEntity<Chat> newChat (@PathVariable long id, @PathVariable String userName, @PathVariable String sentence) {\n\t\t\tif(lobbies.get(id)!=null) {\n\t\t\t\tif(lobbies.get(id).getUser1()!=null) {\n\t\t\t\t\tif(lobbies.get(id).getUser1().getUserName().equals(userName)) {\n\t\t\t\t\t\t//Añadir el chat al lobby que se solicita\n\t\t\t\t\t\tChat chat = new Chat(sentence,userName);\n\t\t\t\t\t\tif(lobbies.get(id).getMummy().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Mummy\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(lobbies.get(id).getPharaoh().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Pharaoh\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlobbies.get(id).addChat(chat);\n\t\t\t\t\t\n\t\t\t\t\treturn new ResponseEntity<>(chat, HttpStatus.OK);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(lobbies.get(id).getUser2()!=null) {\n\t\t\t\t\tif(lobbies.get(id).getUser2().getUserName().equals(userName)) {\n\t\t\t\t\t\t//Añadir el chat al lobby que se solicita\n\t\t\t\t\t\tChat chat = new Chat(sentence,userName);\n\t\t\t\t\t\tif(lobbies.get(id).getMummy().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Mummy\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(lobbies.get(id).getPharaoh().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Pharaoh\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlobbies.get(id).addChat(chat);\n\t\t\t\t\t\n\t\t\t\t\treturn new ResponseEntity<>(chat, HttpStatus.OK);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\t}else {\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t}", "private void contactsListEvent(){\n UI.getContacts().addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(ListSelectionEvent e) {\r\n UI.getProperList().clear(); //Clear screen\r\n UI.getContacts().setCellRenderer(clearNotification); //Clear notification\r\n UI.getUserName().setText((String) UI.getContacts().getSelectedValue()); //Set selected username\r\n String currentChat = (String)UI.getContacts().getSelectedValue();\r\n if(chats.containsKey(currentChat)){ //If database exists\r\n for(String s: chats.get(currentChat)){ //Load messages to screen\r\n UI.getProperList().addElement(s);\r\n }\r\n }\r\n }\r\n });\r\n }", "public interface ChatPlayerService extends PlayerService, Chatter\n{\n /**\n * Sets the player's ChatTarget focus.\n * \n * @param focus The new ChatTarget to focus\n */\n void setFocus( ChatTarget focus );\n \n /**\n * Gets the player's current focus.\n * \n * @return The channel the player has focused\n */\n ChatTarget getFocus();\n \n /**\n * Gets the player's BaseComponent name.\n * \n * @return The player's BaseComponent name.\n */\n BaseComponent getComponentName();\n \n /**\n * Gets the ChatManagerImpl.\n * \n * @return The ChatManagerImpl instance\n */\n ChatManager getChatManager();\n \n /**\n * Gets the PrivateMessageTarget from the last inbound PM.\n * \n * @return The PrivateMessageTarget from the last PM received\n */\n PrivateMessageTarget getLastInboundWhisperTarget();\n \n /**\n * Sets the most recent inbound PM's PrivateMessageTarget.\n * \n * @param lastInboundWhisperTarget The new target.\n * @return This ChatPlayerService object.\n */\n ChatPlayerService setLastInboundWhisperTarget( PrivateMessageTarget lastInboundWhisperTarget );\n \n /**\n * Gets a formatted message to show all of the channels the\n * player is currently in.\n * \n * @return A formatted message showing the channels the player is in.\n */\n BaseComponent[] getChannelsJoinedMessage();\n}", "private ListFriend(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "@Dao\npublic interface ChatDao {\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long Add(ChatPojo chatPojo);\n\n @Query(\"select * from ChatPojo where chatId = :chatId\")\n LiveData<List<ChatPojo>> getAll(String chatId);\n\n @Query(\"select * from ChatPojo WHERE groupId IN (:groupIds) GROUP BY groupId ORDER BY chatTimestamp DESC\")\n LiveData<List<ChatPojo>> getRecentGroupChatAll(List<String> groupIds);\n\n\n @Query(\"select * from ChatPojo WHERE chatId IN (:ids) GROUP BY chatId ORDER BY chatTimestamp DESC\")\n LiveData<List<ChatPojo>> getRecentChatAll(List<String> ids);\n\n @Query(\"select DISTINCT chatId from ChatPojo\")\n List<String> getRecentChatUserList();\n\n @Query(\"select DISTINCT groupId from GroupPojo\")\n List<String> getGroupIdList();\n\n @Query(\"select * from ChatPojo where chatId = :chatId and isShowing = 0 ORDER BY chatTimestamp DESC limit 1\")\n LiveData<ChatPojo> getSingleLast(String chatId);\n\n// @Query(\"select * from ChatPojo \")\n// LiveData<List<ChatPojo>> getAll();\n /*@Query(\"select * from ChatPojo WHERE groupId = :groupId \")\nContactListResponse.ResponseDataBean getSingle(String groupId);*/\n\n @Delete\n int singledelete(ChatPojo chatPojo);\n\n @Query(\"select DISTINCT chatRecv from ChatPojo\")\n List<String> getChatUserList();\n\n @Query(\"select DISTINCT chatRecv from ChatPojo\")\n List<String> getChatUserSendList();\n\n @Query(\"select * from ChatPojo where chatId = :username ORDER BY chatTimestamp DESC\")\n ChatPojo getlastmsg(String username);\n\n @Query(\"select COUNT(isShowing) from ChatPojo where chatId = :chatId and isShowing = 0\")\n String unseenmsgCount(String chatId);\n\n @Query(\"UPDATE ChatPojo SET isShowing = 1 where chatId = :chatId\")\n void updateIsShowing(String chatId);\n\n\n @Query(\"DELETE FROM ChatPojo\")\n void deleteTbl();\n\n @Query(\"select * from ChatPojo \" +\n \" INNER JOIN UserPojo ON ChatPojo.chatId == UserPojo.username\" +\n \" where UserPojo.displayname LIKE :message OR ChatPojo.chatText LIKE :message GROUP BY chatId ORDER BY chatTimestamp DESC\")\n List<ChatPojo> search(String message);\n\n}", "public BaseComponent[] toChat() {\n // Initialize main ticket component builder\n ComponentBuilder builder = new ComponentBuilder(\"\");\n\n ComponentBuilder commentHoverText = new ComponentBuilder(\"\");\n\n if (playerUUID != null) {\n commentHoverText.append(\"UUID: \", f).bold(true).color(Ticket.chatKeyColor);\n commentHoverText.append(playerUUID.toString(), f).append(\"\\n\");\n }\n\n commentHoverText.append(\"Time: \", f).bold(true).color(Ticket.chatKeyColor);\n commentHoverText.append(Ticket.dateFormat.format(timestamp), f);\n\n HoverEvent commentHoverEvent = new HoverEvent(HoverEvent.Action.SHOW_TEXT, commentHoverText.create());\n\n builder.append(getDisplayName() + \": \", f).color(Ticket.chatKeyColor).event(commentHoverEvent);\n builder.append(getBody(), f).event(commentHoverEvent);\n\n return builder.create();\n }", "@Override\r\n\tpublic List<FactoryBean> selectFactoryChat() {\n\t\treturn contractMapper.selectFactoryChat();\r\n\t}", "private void changeChat(ChangeChatEvent changeChatEvent) {\n IChat chat = changeChatEvent.getChat();\n if(chat != null && chat.getMessages() != null){\n Platform.runLater(() -> {\n List<? extends IMessageIn> mes = new ArrayList<>(chat.getMessages());\n messages.setAll(mes);\n });\n } else {\n Platform.runLater(() -> {\n messages.clear();\n });\n }\n\n }", "public List<String> getChatMessages() {\n return chatMessages;\n }", "public int getCount() {\n\t\t\treturn chatList.size();\n\t\t}", "@Override\r\n\tpublic int getCount() {\n\t\t\r\n\t\treturn chat.size(); \r\n\t}", "public interface ChatInterface extends Remote {\r\n void postMessage(String msg) throws RemoteException;\r\n\r\n String getName() throws RemoteException;\r\n\r\n void setClient(ChatInterface c) throws RemoteException;\r\n\r\n ChatInterface getClient() throws RemoteException;\r\n\r\n}", "public interface OnChatEvents {\n void onSendChatMessage(String time, String displayName, String buddyPicture, String message, String to);\n void onMessageRead();\n void onSendFile(String time, String displayName, String buddyPicture, String message, long size, String name, String mime, String to);\n\n void onDownload(int position, String id, FileInfo fileinfo);\n }", "@Override\r\n\tpublic List<Chat1VO> selectChatList(Chat1VO vo) throws Exception {\n\t\treturn dao.selectChatList(vo);\r\n\t}", "public interface VSGroupChat extends Remote {\n\n void register(VSGCListener listener, VSGCGroup group) throws RemoteException;\n void post(VSGCListener listener, VSGCMessage message) throws RemoteException;\n ArrayList<VSGCMessage> getHistory(VSGCGroup group) throws IllegalArgumentException, RemoteException;\n ArrayList<VSGCGroup> getGroups() throws RemoteException;\n void addGroup(VSGCGroup group) throws RemoteException;\n}", "@Override\n\tpublic void onChatReceived(ChatEvent arg0) {\n\t\t\n\t}", "public List<ChatPanel> getChats()\n {\n java.awt.Container container\n = (getChatTabCount() > 0) ? chatTabbedPane : mainPanel;\n int componentCount = container.getComponentCount();\n List<ChatPanel> chatPanels\n = new ArrayList<ChatPanel>(componentCount);\n\n for (int i = 0; i < componentCount; i++)\n {\n Component c = container.getComponent(i);\n\n if (c instanceof ChatPanel)\n chatPanels.add((ChatPanel) c);\n }\n return chatPanels;\n }", "public String ChatName() {\n return \"\";\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void addChatLine(String name, String line){\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tListBox lb = nifty.getScreen(\"hud\").findNiftyControl(\"listBoxChat\",ListBox.class);\n\t\tif (line.length() + name.length() > 55){\n\t\t\twhile (line.length() > 35){\n\t\t\t\tString splitLine = line.substring(0,35);\n\t\t\t\tlb.addItem(\"<\"+name+\">\"+\": \"+splitLine);\n\t\t\t\tline = line.substring(35);\n\t\t\t}\n\t\t}\n\t\tlb.addItem(\"<\"+name+\">\"+\": \"+line);\n\t\tlb.showItem(lb.getItems().get(lb.getItems().size()-1));\n\t}", "private ChatProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void enableChat();", "public List<Chatroom> getAllChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findAll();\n\n\t\treturn chatrooms;\n\t}", "public protocol.ChatData.ChatItem.Builder getChatDataBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getChatDataFieldBuilder().getBuilder();\n }", "public List<ChatMsg> getListRoomChatMsg() {\n //TODO add room Filter... processing, currently only one list \n //is updated by EventBus\n this.roomMsg = mobileCtrl.getListChatMsg(this.room);\n return this.roomMsg;\n }", "public interface ChatConnection extends Closeable, Flushable {\n\t/**\n\t * Logs into the chat system. This should be called before any other method.\n\t * @param email the login email\n\t * @param password the login password\n\t * @throws InvalidCredentialsException if the login credentials are bad\n\t * @throws IOException if there's a network problem\n\t */\n\tvoid login(String email, String password) throws InvalidCredentialsException, IOException;\n\n\t/**\n\t * Joins a room. A room should be joined before it is interacted with.\n\t * @param roomId the room ID\n\t * @throws RoomNotFoundException if the room does not exist\n\t * @throws RoomPermissionException if messages cannot be posted to this room\n\t * @throws IOException if there's a network problem\n\t */\n\tvoid joinRoom(int roomId) throws RoomNotFoundException, RoomPermissionException, IOException;\n\n\t/**\n\t * Leaves a room. This method does nothing if the room was never joined.\n\t * @param roomId the room ID\n\t * @throws IOException if there's a network problem\n\t */\n\tvoid leaveRoom(int roomId) throws IOException;\n\n\t/**\n\t * Posts a message. If the message exceeds the max message size, it will be\n\t * truncated.\n\t * @param roomId the room ID\n\t * @param message the message to post\n\t * @return the ID of the new message\n\t * @throws RoomNotFoundException if the room does not exist\n\t * @throws RoomPermissionException if the message can't be posted to the\n\t * room because it doesn't exist or the bot doesn't have permission\n\t * @throws IOException if there's a network problem\n\t */\n\tlong sendMessage(int roomId, String message) throws RoomNotFoundException, RoomPermissionException, IOException;\n\n\t/**\n\t * Posts a message.\n\t * @param roomId the room ID\n\t * @param message the message to post\n\t * @param splitStrategy defines how the message should be split up if the\n\t * message exceeds the chat connection's max message size\n\t * @return the ID(s) of the new message(s). This list will contain multiple\n\t * IDs if the message was split up into multiple messages.\n\t * @throws RoomNotFoundException if the room does not exist\n\t * @throws RoomPermissionException if the message can't be posted to the\n\t * room because it doesn't exist or the bot doesn't have permission\n\t * @throws IOException if there's a network problem\n\t */\n\tList<Long> sendMessage(int roomId, String message, SplitStrategy splitStrategy) throws RoomNotFoundException, RoomPermissionException, IOException;\n\n\t/**\n\t * Deletes a message. You can only delete your own messages. Messages older\n\t * than two minutes cannot be deleted.\n\t * @param roomId the ID of the room that the message was posted to\n\t * @param messageId the ID of the message to delete\n\t * @return true if it was successfully deleted, false if not\n\t * @throws RoomNotFoundException if the room does not exist\n\t * @throws RoomPermissionException if the room because it doesn't exist or\n\t * the bot doesn't have permission to post in that room anymore\n\t * @throws IOException if there's a network problem\n\t */\n\tboolean deleteMessage(int roomId, long messageId) throws RoomNotFoundException, RoomPermissionException, IOException;\n\n\t/**\n\t * Edits an existing message. You can only edit your own messages. Messages\n\t * older than two minutes cannot be edited.\n\t * @param roomId the ID of the room that the message was posted to\n\t * @param messageId the ID of the message to edit\n\t * @param updatedMessage the updated message\n\t * @return boolean if the edit was successful, false if not\n\t * @throws RoomNotFoundException if the room does not exist\n\t * @throws RoomPermissionException if the room because it doesn't exist or\n\t * the bot doesn't have permission to post in that room anymore\n\t * @throws IOException if there's a network problem\n\t */\n\tboolean editMessage(int roomId, long messageId, String updatedMessage) throws RoomNotFoundException, RoomPermissionException, IOException;\n\n\t/**\n\t * Listens for new messages that are posted to rooms that were joined with\n\t * the {@link joinRoom} method. This method blocks until the chat connection\n\t * is closed.\n\t * @param handler handles the messages\n\t */\n\tvoid listen(ChatMessageHandler handler);\n\n\t/**\n\t * Gets the most recent messages from a room.\n\t * @param roomId the room ID\n\t * @param count the number of messages to retrieve\n\t * @return the messages\n\t * @throws IOException if there's a network problem\n\t */\n\tList<ChatMessage> getMessages(int roomId, int count) throws IOException;\n\n\t/**\n\t * Gets information about room users, such as their reputation and username.\n\t * @param roomId the ID of the room the user(s) are in (it is not necessary\n\t * to join this room before calling this method)\n\t * @param userIds the user ID(s)\n\t * @return the user information\n\t * @throws IOException if there's a network problem\n\t */\n\tList<UserInfo> getUserInfo(int roomId, List<Integer> userIds) throws IOException;\n\n\t/**\n\t * Gets the users in a room that are \"pingable\". Pingable users receive\n\t * notifications if they are mentioned. If a user is pingable, it does not\n\t * necessarily mean they are currently in the room, although they could be.\n\t * @param roomId the room ID (it is not necessary to join this room before\n\t * calling this method)\n\t * @return the pingable users\n\t * @throws IOException if there's a network problem\n\t */\n\tList<PingableUser> getPingableUsers(int roomId) throws IOException;\n\n\t/**\n\t * Gets information about a room, such as its name and description.\n\t * @param roomId the room ID\n\t * @return the room info or null if the room doesn't exist\n\t * @throws IOException if there's a network problem\n\t */\n\tRoomInfo getRoomInfo(int roomId) throws IOException;\n}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.activity_talk);\n chatList=new ArrayList<HashMap<String,Object>>();\n addTextToList(\"不管你是谁\", ME);\n addTextToList(\"群发的我不回\\n ^_^\", OTHER);\n addTextToList(\"哈哈哈哈\", ME);\n addTextToList(\"新年快乐!\", OTHER);\n nameText = (TextView) findViewById(R.id.chat_contact_name);\n\n Intent getIntent = getIntent();\n nameText.setText(getIntent.getStringExtra(\"name\"));\n\n cancelButton=(ImageView)findViewById(R.id.cancel_button);\n chatSendButton=(ImageView) findViewById(R.id.chat_bottom_sendbutton);\n editText=(EditText)findViewById(R.id.chat_bottom_edittext);\n editText.addTextChangedListener(mTextWatcher);\n chatListView=(ListView)findViewById(R.id.chat_list);\n\n adapter=new MyChatAdapter(this,chatList,layout,from,to);\n\n cancelButton.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n chatSendButton.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n String myWord=null;\n\n /**\n * 这是一个发送消息的监听器,注意如果文本框中没有内容,那么getText()的返回值可能为\n * null,这时调用toString()会有异常!所以这里必须在后面加上一个\"\"隐式转换成String实例\n * ,并且不能发送空消息。\n */\n\n myWord=(editText.getText()+\"\").toString();\n if(myWord.length()==0)\n return;\n editText.setText(\"\");\n addTextToList(myWord, ME);\n /**\n * 更新数据列表,并且通过setSelection方法使ListView始终滚动在最底端\n */\n adapter.notifyDataSetChanged();\n chatListView.setSelection(chatList.size()-1);\n\n }\n });\n chatListView.setAdapter(adapter);\n }", "public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }", "public synchronized void doUpdateChatListView(Message msg)\n {\n Bundle b = msg.getData();\n String next = b.getString(Constants.CHAR);\n chatList.add(new CustomString(next,Constants.SENDER_DEVICE));\n customAdapter.notifyDataSetChanged();\n\n }", "protocol.ChatData.ChatItemOrBuilder getChatDataOrBuilder();", "public GlobalChat() {\r\n // Required empty public constructor\r\n }", "protocol.ChatData.ChatItem getChatData();", "public List<Chatroom> getAllListedChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findByListed(true);\n\n\t\treturn chatrooms;\n\t}", "public Vector<DCCSessionListener> getChatListeners() {\n return chatListeners;\n }", "private ChatAdministration(){\n\t\troomlist = new ChatRoomTableModel();\n\t\tfilelist = new ChatFileTableModel();\n\t\tchatConnection = ChatConnection.getInstance();\n\t\tconnectionconfig = loadConnectionConfiguration();\n\t}", "public ChatRoom[] getChatRooms();", "public void addChat(final ChatPanel chatPanel)\n {\n if (ConfigurationUtils.isMultiChatWindowEnabled())\n addChatTab(chatPanel);\n else\n addSimpleChat(chatPanel);\n\n chatCount ++;\n\n chatPanel.setShown(true);\n\n for (ChatChangeListener l : chatChangeListeners)\n l.chatChanged(chatPanel);\n }", "public Chat_1(String toaNimi) {\n\n nimi = toaNimi;\n\n }", "public interface ChatServerOperations \n{\n String subscribe (String name, chat.ChatClient c) throws chat.NameAlreadyUsed;\n void unsubscribe (String id) throws chat.UnknownID;\n void comment (String id, String text) throws chat.UnknownID;\n}", "public interface ChatMsgManager extends IManager {\r\n\r\n}", "public void make_chat_room() {\n client_PW.println(\"------------make new chat-------------\");\n client_PW.println(\"Enter chat name : \");\n client_PW.flush();\n String line = null;\n String ad=null;\n PrintWriter pw=null;\n HashMap new_chat = new HashMap();\n try {\n line = client_BR.readLine();\n try{\n File file = new File(System.getProperty(\"user.home\"),line + \".txt\");\n pw = new PrintWriter(file);\n \n }catch(Exception e){System.out.println(e);}\n \n synchronized(chat_room) {\n chat_room.put(line, new_chat);\n }\n synchronized(cur_chat_room) {\n cur_chat_room.remove(client_ID);\n }\n String msg = client_ID + \"님이 퇴장하셨습니다\";\n broadcast(msg, null);\n synchronized(new_chat) {\n new_chat.put(client_ID,client_PW);\n }\n synchronized(new_chat) {\n \n new_chat.put(ad,pw);\n }\n cur_chat_room = new_chat;\n } catch (Exception e) { System.out.println(e); }\n \n\n }", "public interface ContactListView {\n void onContactAdded(User user);\n void onContactChanged(User user);\n void onContactRemoved(User user);\n}", "public NewChatFr(QiContext qictxt, QiChatbot qiChatBot, ApiCallExecutorFr apiCallExecutorFr) {\n Log.i(TAG, \"Creating the NewChat custom object\");\n this.mqiContext = qictxt;\n\n this.qiChatBot = qiChatBot;\n this.apiCallExecutorFr = apiCallExecutorFr;\n\n //init topic names and locales; English and French\n this.topicNameFr = \"topic_light_handling-fr.top\";\n this.localeFr = new Locale(Language.FRENCH, Region.FRANCE);\n\n\n //in english here\n initAndBuildChatFr();\n }", "public void addMessage(String text) {\n\t\tchatMessages.add(text);\n\t\tlstChatMessages.setItems(getChatMessages());\n\t\tlstChatMessages.scrollTo(text);\n\t}", "@Override\n\tpublic void newMsg(String msg) throws RemoteException {\n\t\tchathistory.add(new chatmessage<String>(msg + \"\\n\"));\n\t}", "public interface IConversationView {\n\n //初始化我们的聊天视图\n void initConversationView(List<EMConversation> emConversationList);\n\n}", "private void displayChatMessage() {\n ListView listOfMessage = (ListView) findViewById(R.id.list_of_messages);\n adapter = new FirebaseListAdapter<ChatMessage>(this, ChatMessage.class,\n R.layout.list_messages, FirebaseDatabase.getInstance().getReference()) {\n @Override\n protected void populateView(View v, ChatMessage model, int position) {\n\n TextView messageText,messageUser,messageTime;\n messageText = (TextView) v.findViewById(R.id.message_text);\n messageUser = (TextView) v.findViewById(R.id.message_user);\n messageTime = (TextView) v.findViewById(R.id.message_time);\n\n messageText.setText(model.getMessageText());\n messageUser.setText(model.getMessageUser());\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\",\n model.getMessageTime()));\n }\n };\n listOfMessage.setAdapter(adapter);\n }", "public void receive()\n {\n //Client receives a message: it finds out which type of message is and so it behaves differently\n //CHAT message: prints the message in the area\n //CONNECT message: client can't receive a connect message from the server once it's connected properly\n //DISCONNECT message: client can't receive a disconnect message from the server\n //USER_LIST message: it shows the list of connected users\n try\n {\n String json = inputStream.readLine();\n\n switch (gson.fromJson(json, Message.class).getType())\n {\n case Message.CHAT:\n ChatMessage cmsg = gson.fromJson(json, ChatMessage.class);\n\n if(cmsg.getReceiverClient() == null)\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO ALL): \" + cmsg.getText() + \"\\n\");\n else\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO YOU): \" + cmsg.getText() + \"\\n\");\n break;\n case Message.CONNECT:\n //Send login nickname and wait for permission to join\n //if message code is 1, nickname is a duplicate and must be changed, then login again\n //(send call is inside button event)\n ConnectMessage comsg = gson.fromJson(json, ConnectMessage.class);\n\n if(comsg.getCode() == 1)\n {\n //Show error\n ChatGUI.getInstance().getLoginErrorLabel().setVisible(true);\n }\n else\n {\n //Save nickname\n nickname = ChatGUI.getInstance().getLoginField().getText();\n\n //Hide this panel and show main panel\n ChatGUI.getInstance().getLoginPanel().setVisible(false);\n ChatGUI.getInstance().getMainPanel().setVisible(true);\n }\n break;\n case Message.USER_LIST:\n UserListMessage umsg2 = gson.fromJson(json, UserListMessage.class);\n fillUserList(umsg2);\n break;\n }\n } \n catch (JsonSyntaxException | IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "ChatServer (int port) throws IOException \n {\n\t//create new server socket \n ServerSocket server = new ServerSocket(port);\n \n //confirmation message that server is connected\n System.out.println(\"The Chat Server is now connected to port \" + port + \".\");\n System.out.println(\"Waiting for clients to connect...\");\n\n //looks for new clients and adds them to linkedList\n while (true) \n {\n client = server.accept();\n linkedList.add(client);\n \n //creates new participant(ChatClient) in discussion\n //with associated socket as argument\n ChatClient chatterer = new ChatClient(client);\n \n //starts the thread\n chatterer.start();\n \n //prints message on server console including # of the client is and\n //where they are connected from\n System.out.println(\"New client #\" + linkedList.size() + \" on client's port \" \n \t\t + client.getPort());\n }\n }", "@Override\n\tpublic void achete(List<Achat> listachat) {\n\t\tthis.achats = listachat;\n\n\t}", "private void initObtenerListaChat(String idGrupoChat, final int countPAge, final String tipoCarga) {\n if (mensajesUiList != null) mensajesUiList.clear();\n Log.d(TAG, \"initObtenerListaChat : \" + mensajesUiList.size());\n if (view != null) view.mostrarProgressBar();\n //obtenerListaChat\n Call<ListaChatResponse> call = apiService.obtenerListaChat(Constantes.ESTADO_ACTIVO,\n idGrupoChat,\n String.valueOf(countPAge));\n call.enqueue(new Callback<ListaChatResponse>() {\n @Override\n public void onResponse(Call<ListaChatResponse> call, Response<ListaChatResponse> response) {\n ListaChatResponse cambioResponse = response.body();\n\n if (cambioResponse != null) {\n if (cambioResponse.getError()) {\n if (view != null) view.ocultarProgressBar();\n Log.d(TAG, \"cambioResponse.getError() : \" + cambioResponse.getMessage());\n } else {\n\n List<ListaChatResponse.ChatResponseList> responseLists = cambioResponse.getChatResponseListList();\n if (cambioResponse.getChatResponseListList() == null) return;\n\n isScrolling = false;\n\n switch (tipoCarga) {\n case \"SinLoadMore\":\n isScrolling = true;\n List<MensajesUi> mensajesUis = new ArrayList<>();\n for (ListaChatResponse.ChatResponseList list\n : responseLists) {\n MensajesUi mensajesUi = new MensajesUi();\n mensajesUi.setCodigoUsuario(list.getUsu_Codigo());\n mensajesUi.setMensaje(list.getChat_mensaje());\n mensajesUi.setFecha(list.getChat_Fecha());\n mensajesUis.add(mensajesUi);\n // mensajesUiList.add(mensajesUi);\n if (view != null) view.ocultarProgressBar();\n }\n if (view != null) {\n view.mostrarLista(mensajesUis);\n view.ocultarProgressBar();\n }\n pageCount = countPAge + 1;\n Log.d(TAG, \"SinLoadMore : \");\n break;\n case \"ConLoadMore\":\n isScrolling = true;\n for (ListaChatResponse.ChatResponseList list\n : responseLists) {\n MensajesUi mensajesUi = new MensajesUi();\n mensajesUi.setCodigoUsuario(list.getUsu_Codigo());\n mensajesUi.setMensaje(list.getChat_mensaje());\n mensajesUi.setFecha(list.getChat_Fecha());\n mensajesUiList.add(mensajesUi);\n if (view != null) view.ocultarProgressBar();\n }\n if (view != null) {\n view.mostrarListaAdd(mensajesUiList);\n view.ocultarProgressBar();\n }\n pageCount = countPAge + 1;\n Log.d(TAG, \"ConLoadMore : \" + mensajesUiList.size());\n break;\n }\n\n /*for (ListaChatResponse.ChatResponseList list\n : responseLists) {\n MensajesUi mensajesUi = new MensajesUi();\n mensajesUi.setCodigoUsuario(list.getUsu_Codigo());\n mensajesUi.setMensaje(list.getChat_mensaje());\n mensajesUi.setFecha(list.getChat_Fecha());\n mensajesUiList.add(mensajesUi);\n if(view!=null)view.ocultarProgressBar();\n }\n if (view != null) view.mostrarLista(mensajesUiList);*/\n }\n } else {\n if (view != null) view.ocultarProgressBar();\n Log.d(TAG, \"cambioResponse == null : \");\n }\n }\n\n @Override\n public void onFailure(Call<ListaChatResponse> call, Throwable t) {\n //datosPerfilResponseCallBackResultado.onCallBackResultado(null);\n Log.d(TAG, \"cambioResponse : \" + t.getMessage());\n if (view != null) view.ocultarProgressBar();\n }\n });\n\n }", "public interface IConversationsManagePresenter {\n void setCoversationListView(IConversationListView view);\n void deleteCoversation();\n void deleteChatRecord();\n void showRecentConvs();\n void initReload(boolean toDB);\n void handleMessage(IMMessage message);\n void allRead();\n void markReadById();\n void removeEvent();\n\n\n}", "private ListNotification(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "public FriendList createFriendList();", "private ListFriendTopic(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "public ChatGUI() {\r\n\r\n String propertiesPath = \"kchat.properties\";\r\n try {\r\n Configuration.getInstance().setFile(propertiesPath);\r\n sock = new ChatSocket(new UdpMulticast(Configuration.getInstance().getValueAsString(\"udp.iface\"),\r\n Configuration.getInstance().getValueAsString(\"udp.host\"), Configuration.getInstance()\r\n .getValueAsInt(\"udp.port\")), this);\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(null, \"Cannot Open Socket\", \"alert\", JOptionPane.ERROR_MESSAGE);\r\n // Exit the application if socket is not established\r\n // print stack trace to terminal\r\n e.printStackTrace();\r\n System.exit(0);\r\n }\r\n\r\n // exit the frame on closure of the frame\r\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n // set the bounds of the frame\r\n setBounds(100, 100, 450, 300);\r\n\r\n // Initialize the content pane\r\n contentPane = new JPanel();\r\n\r\n // set the borders of the content pane\r\n contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\r\n // set the layout of the content pane\r\n contentPane.setLayout(new BorderLayout(0, 0));\r\n\r\n // add content pane to frame\r\n setContentPane(contentPane);\r\n\r\n // create panel and layout for input, button and field at top of content\r\n // pane\r\n JPanel panel = new JPanel();\r\n panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n contentPane.add(panel, BorderLayout.NORTH);\r\n\r\n // create the username lael\r\n JLabel lblNewLabel = new JLabel(\"Username\");\r\n panel.add(lblNewLabel);\r\n\r\n // create the field for the Username to input text\r\n textField = new JTextField();\r\n panel.add(textField);\r\n // set column length of the field\r\n textField.setColumns(10);\r\n\r\n // get rooms from the socket return array of long\r\n LongInteger[] rooms = sock.getPresenceManager().getRooms();\r\n // initialize field to store room names\r\n String[] roomNames = new String[rooms.length];\r\n // using for loop convert long to string and store in room name array\r\n for (int i = 0; i < rooms.length; i++) {\r\n roomNames[i] = rooms[i].toString();\r\n }\r\n\r\n // create the combo box\r\n final JComboBox comboBox = new JComboBox(roomNames);\r\n\r\n // refresh the rooms on button press\r\n final JButton btnNewButton = new JButton(\"Refresh Rooms\");\r\n // the action listener for button press\r\n btnNewButton.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent arg0) {\r\n comboBox.removeAllItems();\r\n // get rooms from the socket\r\n LongInteger[] rooms = sock.getPresenceManager().getRooms();\r\n // initialize field to store room names\r\n String[] roomNames = new String[rooms.length];\r\n // using for loop convert long to string and store in room name\r\n // array\r\n for (int i = 0; i < rooms.length; i++) {\r\n comboBox.addItem(roomNames);\r\n roomNames[i] = rooms[i].toString();\r\n }\r\n }\r\n });\r\n\r\n // add the label for joins\r\n JLabel lblJoin = new JLabel(\" [--- joins \");\r\n panel.add(lblJoin);\r\n\r\n // add the textfield for user input for user to user connection\r\n textField_3 = new JTextField();\r\n\r\n // create a checkbox for when you which to select drop down or input\r\n // user\r\n final JCheckBox chckbxNewCheckBox = new JCheckBox(\"\");\r\n chckbxNewCheckBox.setSelected(true);\r\n final JCheckBox chckbxNewCheckBox_1 = new JCheckBox(\"\");\r\n\r\n // add action listener to checkbox for drop down\r\n chckbxNewCheckBox.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent arg0) {\r\n // if checkbox is checked\r\n if (chckbxNewCheckBox.isSelected() == true) {\r\n // set the other checkbox to unchecked\r\n chckbxNewCheckBox_1.setSelected(false);\r\n // enable the combox box drop down\r\n comboBox.setEnabled(true);\r\n // disable the textfield for the user input\r\n textField_3.setEnabled(false);\r\n textField_3.setText(\"\");\r\n // enable the refresh rooms button\r\n btnNewButton.setEnabled(true);\r\n }\r\n }\r\n });\r\n panel.add(chckbxNewCheckBox);\r\n\r\n // add the drop down to the contentpane\r\n panel.add(comboBox);\r\n\r\n // additional labels are added to the content pane\r\n JLabel lblOrChatWith = new JLabel(\" OR chat with user\");\r\n panel.add(lblOrChatWith);\r\n\r\n // add action listener to checkbox for user input\r\n chckbxNewCheckBox_1.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent arg0) {\r\n // if checkbox is checked\r\n if (chckbxNewCheckBox_1.isSelected() == true) {\r\n // set the other checkbox to unchecked\r\n chckbxNewCheckBox.setSelected(false);\r\n // disable the combox box drop down\r\n comboBox.setEnabled(false);\r\n // enable the textfield for the user input\r\n textField_3.setEnabled(true);\r\n textField_3.setText(\"\");\r\n // disable the refresh rooms button\r\n btnNewButton.setEnabled(false);\r\n }\r\n }\r\n });\r\n panel.add(chckbxNewCheckBox_1);\r\n\r\n // set the textfield for user to user input to false by default and add\r\n // to contentpane panel\r\n textField_3.setEnabled(false);\r\n panel.add(textField_3);\r\n textField_3.setColumns(10);\r\n\r\n // the label is added to the content pane panel\r\n JLabel label = new JLabel(\" ---] \");\r\n panel.add(label);\r\n\r\n // the refresh rooms button is added to content pane panel\r\n panel.add(btnNewButton);\r\n\r\n // the connection button is created\r\n JButton btnNewButton_1 = new JButton(\"Connect\");\r\n // action listener is added to button to take action on key press\r\n btnNewButton_1.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n // if no input or only spaces is put in text field it counts as\r\n // invalid entry\r\n if (textField.getText().trim().equals(\"\")) {\r\n // prompt to user and do nothing\r\n JOptionPane.showMessageDialog(null, \"Please input a valid username\", \"alert\",\r\n JOptionPane.ERROR_MESSAGE);\r\n textField.setText(\"\");\r\n } else {\r\n // if checkbox for room drop down is selected meaning we are\r\n // connecting to a room\r\n if (chckbxNewCheckBox.isSelected() == true) {\r\n\r\n // if no tab exist with a chosen room name continue\r\n if (tabbedPane.indexOfTab(comboBox.getSelectedItem().toString()) == -1) {\r\n\r\n // get the room members\r\n Set<LongInteger> roomMembers = sock.getPresenceManager().membersOf(\r\n new LongInteger(comboBox.getSelectedItem().toString()));\r\n // initialize field to store room member names\r\n String[] roomMemberNames = new String[roomMembers.size()];\r\n // using for loop convert long to string and store\r\n // in room member name array\r\n int i = 0;\r\n for (LongInteger member : roomMembers) {\r\n roomMemberNames[i] = member.toString();\r\n i++;\r\n }\r\n\r\n // connect to room below and based on return type\r\n // add tab\r\n try {\r\n sock.executeCommand(new PresenceCommand(new LongInteger(comboBox.getSelectedItem()\r\n .toString()), true));\r\n } catch (InvalidCommandException ex) {\r\n JOptionPane.showMessageDialog(null, \"Unable to join room.\", \"alert\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n // add tab based on return type above\r\n // once you connect successfully disable the\r\n // username textfield\r\n textField.setEnabled(false);\r\n // add tab for Room to user chat\r\n addTab(comboBox.getSelectedItem().toString(), roomMemberNames, 1);\r\n } else {\r\n // prompt user and ensures that one does not open\r\n // multiple tabs to the same room\r\n JOptionPane.showMessageDialog(null, \"You are already connected to \"\r\n + comboBox.getSelectedItem().toString(), \"alert\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n // if checkbox for user is selected meaning we are\r\n // connecting to a user\r\n else if (chckbxNewCheckBox_1.isSelected() == true) {\r\n\r\n if (tabbedPane.indexOfTab(\"Chat with \" + textField_3.getText()) == -1) {\r\n // one does not connect to a user so the tab is\r\n // automatically created\r\n // once you connect successfully disable the\r\n // username textfield\r\n // disable the textfield for usernname\r\n textField.setEnabled(false);\r\n // add tab for User to user chat\r\n addTab(\"Chat with \" + textField_3.getText(), new String[] { textField_3.getText() }, 2);\r\n } else {\r\n // prompt user and ensures that one does not open\r\n // multiple tabs to the same user\r\n JOptionPane.showMessageDialog(null, \"You are already connected to \" + \"Chat with \"\r\n + textField_3.getText(), \"alert\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n }\r\n }\r\n });\r\n panel.add(btnNewButton_1);\r\n\r\n // set the tabbed pane to top\r\n tabbedPane = new JTabbedPane(SwingConstants.TOP);\r\n\r\n // add tabbed pane to center of content pane\r\n contentPane.add(tabbedPane, BorderLayout.CENTER);\r\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 createChat(String roomname, String nickname) {\n\t\t\n\t\tboolean successful = false;\n\t\tString errormessage = \"\";\n\t\t\n\t\t// set default value for roomname\n\t\tif (roomname.equals(\"\")){\n\t\t\troomname = \"default\";\n\t\t}\n\t\t\n\t\t// set default value for nickname\n\t\tif (nickname.equals(\"\")){\n\t\t\tnickname = chatConnection.getConnectedUserID();\n\t\t}\n\t\t// if connection to room already exists, only change the nickname\n\t\tif (roomlist.containsKey(roomname)){ // room already exists\n\t\t\tChatRoom room = roomlist.get(roomname);\n\t\t\tif (!room.getNickname().equals(nickname)){\n\t\t\t\ttry {\n\t\t\t\t\troom.changeNickname(nickname);\n\t\t\t\t\tsuccessful = true;\n\t\t\t\t\troomlist.fireTableDataChanged();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\terrormessage = e.getMessage();\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n\t\telse { // make new connection\n\t\t\tChatRoom groupchat;\n\t\t\ttry {\n\t\t\t\tgroupchat = new ChatRoom(roomname, nickname);\n\t\t\t\troomlist.put(roomname, groupchat);\n\t\t\t\troomlist.fireTableDataChanged();\n\t\t\t\tsuccessful = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\terrormessage = e.getMessage();\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\tif (!successful){\n\t\t\tcreateChatConnectDialog(errormessage);\n\t\t}\n\t}", "@Override\n\tpublic HashSet<IChatroom> getChatrooms() throws RemoteException {\n\t\treturn chatrooms;\n\t}", "public interface ChatClient {\n\n @POST(\"chat/group/create\") Call<ChatGroupCreationResponse> createChatGroup(\n @Body ChatGroup chatGroup);\n\n @POST(\"chat/group/create\") Observable<ChatGroupCreationResponse> createChatGroupRx(\n @Body ChatGroup chatGroup);\n\n @POST(\"chat/group/update/{group_id}\") Observable<SimpleResponse> sendMessageRx(\n @Path(\"group_id\") String group_id, @Query(\"token\") String token, @Body Chat chat);\n\n @GET(\"chats\") Call<List<ChatGroup>> getChatGroups(@Query(\"token\") String token,\n @Query(\"page\") int page, @Query(\"per_page\") int perPage);\n\n @GET(\"chat/group/members/{group_id}\") Call<APIResponse<User>> getGroupMembers(\n @Path(\"group_id\") String groupId, @Query(\"page\") int page, @Query(\"per_page\") int perPage,\n @Query(\"token\") String userToken);\n\n @POST(\"chat/group/rename/{group_id}\") Observable<SimpleResponse> renameGroup(\n @Path(\"group_id\") String group_id, @Query(\"token\") String token, @Body ChatGroup name);\n}", "public ChatRoomCreationMsgBehaviour( String name, String creatorPrimaryKey, boolean isBotChatRoom ) {\n super( name, creatorPrimaryKey );\n this.isBotChatRoom = isBotChatRoom;\n }", "private void fillConversationList()\n\t{\n\t\tbasicConversations.add(\"how are you?\");\n\t\tbasicConversations.add(\"how do you do?\");\n\t\tbasicConversations.add(\"how are you feeling?\");\n\t\tbasicConversations.add(\"what is your current status?\");\n\t\tbasicConversations.add(\"how are you feeling?\");\n\t\tbasicConversations.add(\"are you feeling well?\");\n\t\tbasicConversations.add(\"how's life?\");\n\t\tbasicConversations.add(\"how's it going?\");\n\t\tbasicConversations.add(\"how art thou?\");\n\t}", "public static CommandList getChatCommands() {\n\t\treturn listener.cmds;\n\t}", "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 MessageAdapter(ArrayList<ChatMessage> data) {\n this.data = data;\n\n }", "public ChatAdapter(Context context,List<ChatEntity> chatList){\n \t\tthis.context = context;\n \t\tthis.chatList = chatList;\n \t\tinflater = LayoutInflater.from(this.context);\n// \t\toptions = new DisplayImageOptions.Builder()\n// \t\t\t\t.showStubImage(R.drawable.no_portrait_male)\n// \t\t\t\t.showImageForEmptyUri(R.drawable.no_portrait_male).cacheInMemory()\n// \t\t\t\t.cacheOnDisc().build();\n// \t\timageLoader = ImageLoader.getInstance();\n \t}" ]
[ "0.6688228", "0.6637656", "0.654793", "0.65311605", "0.6387863", "0.62848526", "0.6251381", "0.61766994", "0.61130005", "0.6053125", "0.6013946", "0.5957776", "0.5942988", "0.59332424", "0.5887941", "0.5852296", "0.5829844", "0.58274275", "0.5800168", "0.57957286", "0.57907146", "0.5760213", "0.57462984", "0.5734151", "0.573324", "0.5723409", "0.572215", "0.57198083", "0.56866485", "0.56823117", "0.56777495", "0.5674242", "0.56573176", "0.5622733", "0.5617428", "0.5614043", "0.5610738", "0.5609169", "0.5608419", "0.56055254", "0.55896527", "0.55682725", "0.5555674", "0.55466187", "0.5545652", "0.55026966", "0.54955095", "0.5493657", "0.5484273", "0.54838353", "0.5479991", "0.5474482", "0.5466596", "0.54476637", "0.5444014", "0.54399306", "0.54326963", "0.542264", "0.5394787", "0.5378467", "0.5365743", "0.536409", "0.53567797", "0.535246", "0.53503543", "0.53491676", "0.53408146", "0.5339443", "0.53200805", "0.5317793", "0.52997875", "0.52967936", "0.5288261", "0.5284578", "0.5282192", "0.5281919", "0.52779794", "0.5270725", "0.5264841", "0.52588195", "0.5257082", "0.52494305", "0.52416277", "0.522906", "0.52270526", "0.52256775", "0.52185917", "0.5217011", "0.52126956", "0.5208765", "0.5207254", "0.52060807", "0.5205288", "0.51883626", "0.51865673", "0.5167296", "0.5165958", "0.5162675", "0.5159061", "0.5151346" ]
0.74347425
0
create a Path object by calling static method get() in Paths class
public static void main(String[] args) throws IOException { Path testFilePath = Paths.get("/home/ilmir/Dropbox/Aliya_Ilmir/2дебила"); System.out.println("Path: "+testFilePath); line(); // retrieve basic information about path System.out.println("Printing file information: "); System.out.println("\t getFileName(): \t" + testFilePath.getFileName()); System.out.println("\t getRoot(): \t\t" + testFilePath.getRoot()); System.out.println("\t getParent(): \t\t" + testFilePath.getParent()); line(); // print path elements System.out.println("Printing elements of the path: "); for(Path element : testFilePath) { System.out.println("\t path element: " + element); } line(); //get a path object with relative path Path path = Paths.get("./src"); System.out.println("Path: "+path); System.out.println("1) getFileName(): " + path.getFileName()); System.out.println("2) toUri(): " + path.toUri()); System.out.println("3) toAbsolutePath(): " + path.toAbsolutePath()); System.out.println("4) normalize(): " + path.normalize()); // get another path object with normalized relative path Path testPathNormalized = Paths.get(path.normalize().toString()); System.out.println("Path normalized: "+testPathNormalized); System.out.println("5) normalized absolute path is: " + testPathNormalized.toAbsolutePath()); System.out.println("6) normalized real path is: " + path.toRealPath (LinkOption.NOFOLLOW_LINKS)); line(); Path dir = Paths.get("/home/ilmir/Dropbox/Aliya_Ilmir"); Path resolvedPath = dir.resolve("2дебила"); System.out.println("Resolved path: "+resolvedPath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path createPath();", "public static Paths getInstance(){\r\n if(instance == null){\r\n instance = new Paths();\r\n }\r\n return instance;\r\n }", "Path getPath();", "public Path getPath();", "public abstract Shape createPath();", "public interface Paths extends Constructible, Extensible<Paths> {\n\n /**\n * Adds the given path item to this Paths and return this instance of Paths\n *\n * @param name\n * a path name in the format valid for a Paths object. The field name MUST begin with a slash.\n * @param item\n * the path item added to the list of paths. null values will be rejected (implementation will throw an\n * exception) or ignored.\n * @return the current Paths instance\n */\n Paths addPathItem(String name, PathItem item);\n\n /**\n * Removes the given path item to this Paths.\n *\n * @param name\n * a path name that will be removed.\n */\n void removePathItem(String name);\n\n /**\n * Returns a copy map (potentially immutable) of the path items.\n *\n * @return all items\n */\n Map<String, PathItem> getPathItems();\n\n /**\n * Set the path items map to this Paths\n *\n * @param items\n * a map containing the list of paths. Keys MUST begin with a slash.\n */\n void setPathItems(Map<String, PathItem> items);\n\n /**\n * Check whether a path item is present in the map. This is a convenience method for\n * <code>getPathItems().containsKey(name)</code>\n *\n * @param name\n * a path name in the format valid for a Paths object.\n * @return a boolean to indicate if the path item is present or not.\n */\n default boolean hasPathItem(String name) {\n Map<String, PathItem> map = getPathItems();\n if (map == null) {\n return false;\n }\n return map.containsKey(name);\n }\n\n /**\n * Returns a path item for a given name. This is a convenience method for <code>getPathItems().get(name)</code>\n *\n * @param name\n * a path name in the format valid for a Paths object.\n * @return the corresponding path item or null.\n */\n default PathItem getPathItem(String name) {\n Map<String, PathItem> map = getPathItems();\n if (map == null) {\n return null;\n }\n return map.get(name);\n }\n\n}", "public void initPath(Path p) {\r\n\tpath = new Path(p);\r\n}", "public final XPath constructPath(){\r\n \tif(path == null){\r\n \t\tpath = new XPath(getPathArray());\r\n \t}\r\n\t\treturn path;\r\n }", "public void initPath() {\r\n\t\tpath = new Path();\r\n\t}", "public PathExpressionIF createPathExpression();", "CtPath getPath();", "public abstract String getPath();", "public abstract String getPath();", "public interface PathService {\n /**\n * Used to get list of all paths\n *\n * @return list of all paths\n */\n public List<Path> getAllPaths();\n\n /**\n * Used to get a specific path\n *\n * @return path instance\n */\n public Path getPath(Integer id) throws ResourceNotFoundException;\n\n /**\n * Used to save or update a path\n *\n * @param Path path instance to save or update\n * @return path instance\n */\n public Path saveOrUpdatePath(Path path);\n}", "IPath getPath();", "public interface Pathable<T> {\n\n T forPath(String path);\n\n}", "private GeneralPath buildPath() {\n path = new GeneralPath();\n path.moveTo(p1.x, p1.y);\n path.lineTo(p2.x, p2.y);\n path.lineTo(p3.x, p3.y);\n path.closePath();\n assert path != null;\n return path;\n }", "PathSegments getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public Path(String path) {\n this(null, path);\n }", "private Shape createPath(final Geometry geom) {\n return new LiteShape(geom, true, maxDistance);\n }", "public String path(String path1, String path2);", "@Override\n public Path getPath() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "public IPathItem getPath(String path){\r\n return pathsMap.get(path);\r\n }", "public Path getPath(){\n return this.path;\n }", "private PathUtils() {\n }", "public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }", "public PathAdapter() {\n }", "ObservablePath createObservablePath(final Path path) {\n return IOC.getBeanManager().lookupBean(ObservablePath.class).getInstance().wrap(path);\n }", "public String getPath();", "public String getPath();", "public String getPath();", "public Path getPath(String path,String nombreArchivo);", "public final BusPath createFromParcel(Parcel parcel) {\n return new BusPath(parcel);\n }", "private static void createPath(Path path) {\r\n\t\tString tempStr = \"\";\r\n\t\tint finished = 1;\r\n\t\tint tempId = -1;\r\n\t\tList<GeoCoordinate> polyline = new ArrayList<GeoCoordinate>();\r\n\t\tList<Place> placeList = new ArrayList<Place>();\r\n\t\tContainerNII pathNii = new ContainerNII();\r\n\t\tPlace place;\r\n\t\t\r\n\t\twhile (finished == 1){\r\n\t\t\t\r\n\t\t\tplace = new Place();\r\n\t\t\tcreatePlace(place);\r\n\t\t\tplaceList.add(place);\r\n\t\t\tfinished = checkContinue(\"place\");\r\n\t\t}\r\n\t\tpath.setPlaces(placeList);\r\n\t\t\r\n\t\tif ((tempId = insertInteger(\"path id: \")) != -1)\r\n\t\t\tpath.setId(tempId);\t\r\n\t\t\r\n\t\tinsertNIIValues(pathNii, \"path\");\r\n\t\tpath.setNii(pathNii);\r\n\t\t\r\n\t\tif ((tempStr = insertString(\"path length: \")) != null)\r\n\t\t\tpath.setLength(tempStr);\r\n\t\t\r\n\t\tinsertPolyline(polyline, strPath);\r\n\t\tpath.setPolyline(polyline);\r\n\t\t\r\n\t\tif ((tempStr = insertString(\"path duration: \")) != null)\r\n\t\t\tpath.setDuration(tempStr);\r\n\t\t\r\n\t}", "Path getPath(String name) throws IOException;", "Path getPath() {\n return this.path;\n }", "public Path getPath() {\n return p;\n }", "default Object get(String path) {\n return get(path, null);\n }", "public CustomPath getPath() {\n\t\treturn path;\n\t}", "public Path getPath() {\n return path;\n }", "@Nonnull\n Path getPath();", "public Path getPath() {\n return this.path;\n }", "public Path getPath() {\n return path;\n }", "public MyPathResource() {\r\n }", "@Test\n public void a_hierarchical_non_existent_path_can_be_created_and_value_set() {\n\n String path = \"$.shipment.extensionFields.carrier\";\n JsonPath compiledPath = JsonPath.compile(path);\n Object output = compiledPath.set(pathConfiguration.jsonProvider().parse(inputObject),\n \"Alpha Transports\",pathConfiguration);\n String result = parse(output).read(path);\n assertThat(result).matches(\"Alpha Transports\");\n\n }", "public Path getPath(Integer id) throws ResourceNotFoundException;", "public PathTest() {\r\n \tsuper(null);\r\n }", "public SoPath getPath() {\n\t\t return path; \n\t}", "void path(String path);", "void path(String path);", "public Path createSourcespath()\n {\n if( m_sourcesPath == null )\n {\n m_sourcesPath = new Path();\n }\n Path path1 = m_sourcesPath;\n final Path path = new Path();\n path1.addPath( path );\n return path;\n }", "Path getFilePath();", "private void Create_Path() {\n lines = new Line[getPoints().size()];\n for (int i = 1; i < getLines().length; i++) {\n lines[i] = new Line(getPoints().get(way[i]).getX(), getPoints().get(way[i]).getY(), getPoints().get(way[i - 1]).getX(), getPoints().get(way[i - 1]).getY());\n }\n lines[0] = new Line(getPoints().get(way[getLines().length - 1]).getX(), getPoints().get(way[getLines().length - 1]).getY(), getPoints().get(way[0]).getX(), getPoints().get(way[0]).getY());\n\n }", "public IMazePathFinder createInstance(MazeModel mazeModel);", "public ObjectNode resolvePaths();", "public Paths(Graph G, int s)\n {\n ...\n }", "public free_args setPath(String path) {\n this.path = path;\n return this;\n }", "public String getPath(String from, String to, String pathAlgo);", "public IPath getPath() {\n \t\tif (remotePath.equals(\"\")) {\n \t\t\treturn null;\n \t\t}\n \t\treturn new Path(remotePath);\n \t}", "public T getPath() {\n\tif (path == null) path = newSplinePath2D();\n\tint cpsize = cplist.size();\n\tif (cpsize > 0) {\n\t CPoint[] array = new CPoint[cpsize];\n\t cplist.toArray(array);\n\t appendAux(array);\n\t cplist.clear();\n\t}\n\treturn path;\n }", "public Path getPath() {\n return mPath;\n }", "public PathBuilder() {\n\t\tthis( null, true );\n\t}", "@Override\n @Deprecated\n public Object clone(\n ) { \n return new Path(this);\n }", "void createNode(String path);", "public EphemeralFsPath getPath() {\n return getPaths(fs, steps);\n\n }", "@SuppressWarnings(\"unused\")\n\tpublic static void main(String[] args) throws URISyntaxException {\n\t\tSystem.out.println(\"Creating \\\"Path\\\" instances:\");\n\t\tSystem.out.println(\" p1 = d:/Temp/E53Z/Archives/\");\n\t\tSystem.out.println(\" p2 = /tmp/foo\");\n\t\tSystem.out.println(\" p3 = file:///Users/joe/FileTest.java\");\n\t\tPath p1 = Paths.get(\"d:/Temp/E53Z/Archives/\");\n\t\tPath p2 = Paths.get(\"/tmp/foo\");\n\t\tPath p3 = Paths.get(URI.create(\"file:///Users/joe/FileTest.java\"));\n\n\t\t/* Retrieving Information about a Path */\n\t\tSystem.out.println(\"\\nRetrieving information about a Path\");\n\t\tSystem.out.format(\" p1.toString: %s%n\", p1.toString() );\n\t\tSystem.out.format(\" p1.getFileName: %s%n\", p1.getFileName() );\n\t\tSystem.out.format(\" p1.getName(0): %s%n\", p1.getName(0) );\n\t\tSystem.out.format(\" p1.getNameCount: %d%n\", p1.getNameCount());\n\t\tSystem.out.format(\" p1.subpath(0,2): %s%n\", p1.subpath(0,2) );\n\t\tSystem.out.format(\" p1.getParent: %s%n\", p1.getParent() );\n\t\tSystem.out.format(\" p1.getRoot: %s%n\", p1.getRoot() );\n\t\t\n\t\t/* Removing Redundancies From a Path */\n\t\tSystem.out.println(\"\\nRemoving redundancies From a Path\");\n\t\tPath p4 = Paths.get(\"/home/sally/../joe/foo\");\n\t\tSystem.out.println(\" Ful path: \" + p4);\n\t\tSystem.out.println(\" Normalized path: \" + p4.normalize());\n\n\t\t/* Converting a Path */\n\t\tSystem.out.println(\"\\nConverting a Path\");\n\t\tPath p5 = Paths.get(\"/Home/logFile/\");\n\t\tSystem.out.println(\" p5.toUri: \" + p5.toUri());\n\t\tSystem.out.println(\" p5.toAbsolutePath: \" + p5.toAbsolutePath());\n\t\ttry {\n\t\t\tSystem.out.println(\" p5.toRealPath: \" + p5.toRealPath(LinkOption.NOFOLLOW_LINKS));\n\t\t} catch (NoSuchFileException x) {\n\t\t System.out.format(\" Exception: p5 = %s: no such\" + \" file or directory%n\", p5);\n\t\t // Logic for case when file doesn't exist.\n\t\t} catch (IOException x) {\n\t\t System.out.format(\" Exception: %s%n\", x);\n\t\t // Logic for other sort of file error.\n\t\t}\n\t\t\n\t\t/* Joining two paths */\n\t\tSystem.out.println(\"\\nJoining two paths\");\n\t\tPath p6 = Paths.get(\"/Home/logFile/\");\n\t\tPath p7 = Paths.get(\"log.txt\");\n\t\tSystem.out.println(\" p6 = \" + p6);\n\t\tSystem.out.println(\" p7 = \" + p7);\n\t\tSystem.out.println(\" p6.resolve(p7) = \" + p6.resolve(p7));\n\t\t\n\t\t/* Creating a path between two paths */\n\t\tSystem.out.println(\"\\nCreating a path between two paths\");\n\t\tPath p8 = Paths.get(\"D:/Home/logFileS/\");\n\t\tPath p9 = Paths.get(\"D:/Home/TextFiles/\");\n\t\tSystem.out.println(\" p8 = \" + p8);\n\t\tSystem.out.println(\" p9 = \" + p9);\n\t\tSystem.out.println(\" p8.relativize(p9) = \" + p8.relativize(p9));\n\t\tSystem.out.println(\" !!! Paths.get(\\\"\\\").toAbsolutePath().toString(); = \" + Paths.get(\"\").toAbsolutePath().toString());\n\t\tSystem.out.println(\" !!! p8.relativize(p9).toAbsolutePath() = \" + p8.relativize(p9).toAbsolutePath());\n\t\t\n\t\t/* Comparing Two Paths */\n\t\tSystem.out.println(\"\\nComparing two paths\");\n\t\tPath p10 = Paths.get(\"D:/Home/logFiles\");\n\t\tPath p11 = Paths.get(\"D:/Home\");\n\t\tPath p12 = Paths.get(\"logFiles\");\n\t\tPath p13 = Paths.get(\"D:/Home/logFiles\");\n\t\tPath p14 = Paths.get(\"D:/Home/TextFiles/../logFiles\");\n\t\tSystem.out.println(\" p10 = \" + p10);\n\t\tSystem.out.println(\" p11 = \" + p11);\n\t\tSystem.out.println(\" p12 = \" + p12);\n\t\tSystem.out.println(\" p13 = \" + p13);\n\t\tSystem.out.println(\" p14 = \" + p14);\n\t\tSystem.out.println(\" p10.equils(p13) = \" + p10.equals(p13));\n\t\tSystem.out.println(\" p10.startsWith(p11) = \" + p10.startsWith(p11));\n\t\tSystem.out.println(\" p10.endsWith(p12) = \" + p10.endsWith(p12));\n\t\tSystem.out.println(\" p10.equils(p14) = \" + p10.equals(p14));\n\t\ttry {\n\t\t\tSystem.out.println(\" Files.isSameFile(p10, p14) = \" + Files.isSameFile(p10, p14)); // It is true if both files(folders) exist.\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t/* Iterating over Path \"p10\") */\n\t\tSystem.out.print(\"\\nIterating over Path \\\"p10\\\"\\n \");\n\t\tfor(Path name: p10){\n\t\t\tSystem.out.print(\"[\" + name + \"]\");\n\t\t}\n\t\t\n\t\t\n\t}", "public abstract String getFullPath();", "public Path() {\n\t\ttoSeek = null;\n\t\tindex = 0;\n\t\tvertices = new ArrayList<Vertex>();\n\t}", "protected Path preparePath() {\n int commandCapacity = 0;\n int dataCapacity = 0;\n\n current = read();\n \n while (current != -1) {\n skipCommaSpaces();\n switch (current) {\n case 'z':\n case 'Z':\n commandCapacity++;\n break;\n case 'm':\n case 'l':\n case 'M':\n case 'L':\n case 'h':\n case 'H':\n case 'v':\n case 'V':\n commandCapacity++;\n dataCapacity += 1;\n break;\n case 'c':\n case 'C':\n case 's':\n case 'S':\n commandCapacity++;\n dataCapacity += 3;\n break;\n case 'q':\n case 'Q':\n case 't':\n case 'T':\n commandCapacity++;\n dataCapacity += 2;\n break;\n default:\n break;\n }\n current = read();\n }\n\n return new Path(commandCapacity, dataCapacity);\n }", "public Triple createPath(Expression subject, Atom predicate, Expression object, Expression exp){\t\t\r\n\t\tTriple t = Triple.create(subject, predicate, object);\r\n\t\t// property path or xpath\r\n\t\tVariable var = t.getVariable();\r\n\t\tif (var == null){\r\n\t\t\tvar = new Variable(SYSVAR + nbd++);\r\n\t\t\tvar.setBlankNode(true);\r\n\t\t\tt.setVariable(var);\r\n\t\t}\r\n\t\tif (exp.getName().equals(Term.XPATH)){\r\n\t\t\tt.setRegex(exp);\r\n\t\t\treturn t;\r\n\t\t}\r\n\r\n\t\tvar.setPath(true);\r\n\t\tString mode = \"\";\r\n\t\tboolean isDistinct = false, \r\n\t\t\t\tisShort = false;\r\n\r\n\t\twhile (true){\r\n\t\t\tif (exp.isFunction()){\r\n\r\n\t\t\t\tif (exp.getName().equals(DISTINCT)){\r\n\t\t\t\t\texp = exp.getArg(0);\r\n\t\t\t\t\t//mode += DISTINCT;\r\n\t\t\t\t\tisDistinct = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (exp.getName().equals(SSHORT)){\r\n\t\t\t\t\texp = exp.getArg(0);\r\n\t\t\t\t\tmode += \"s\";\r\n\t\t\t\t\tisShort = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (exp.getName().equals(SSHORTALL) || exp.getName().equals(SHORT)){\r\n\t\t\t\t\texp = exp.getArg(0);\r\n\t\t\t\t\tmode += \"sa\";\r\n\t\t\t\t\tisShort = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\telse break;\r\n\t\t}\r\n\r\n\r\n\t\texp.setDistinct(isDistinct);\r\n\t\texp.setShort(isShort);\r\n\t\tt.setRegex(exp);\r\n\t\tt.setMode(mode);\r\n\r\n\t\treturn t;\r\n\r\n\t}", "public MyPathDriver(/* add any constructor arguments here */) {\r\n\r\n // set all fields in your constructor here\r\n\r\n }", "abstract public List<S> getPath();", "@Nullable String getPath();", "public static Path getPath() {\n\t\tPath path = Paths.get(getManagerDir(), NAME);\n\t\treturn path;\n\t}", "protected String getPath ()\n\t{\n\t\treturn path;\n\t}", "public String getPathName();", "abstract T newSplinePath2D();", "PathKeys getPathKeys();", "public static AccessPath create(jq_Field f, Node n, AccessPath p) {\n if (p == null) return new AccessPath(f, n, true);\n AccessPath that = p.findNode(n);\n if (that == null) {\n that = new AccessPath(f, n);\n } else {\n p = p.copy();\n that = p.findNode(n);\n }\n that.addSuccessor(p);\n return that;\n }", "public interface PathExpressionFactoryIF {\n /**\n * INTERNAL: Create a new, empty path expression.\n * \n * @return a newly created path expression\n */\n public PathExpressionIF createPathExpression();\n\n /**\n * INTERNAL: Create a new Variable.\n * \n * @param decl the declaration for the variable.\n * @return a new variable.\n */\n public VariableIF createVariable(VariableDecl decl);\n\n /**\n * INTERNAL: Create a new Topic literal.\n * \n * @param type the type how a topic literal is specified.\n * @param id the identifier for this topic.\n * @return a new topic literal.\n */\n public PathElementIF createTopic(String type, String id);\n\n /**\n * INTERNAL: Create a new path expression element based on the given name.\n * \n * @param name the type of path element to be created.\n * @return a new path expression element.\n */\n public PathElementIF createElement(String name);\n}", "public String getPath() {\n return m_path;\n }", "String getPathName();", "String getPathName();", "public Path(Path parent, String path) {\n this.parts = (parent == null) ? ArrayUtils.EMPTY_STRING_ARRAY : parent.parts;\n path = StringUtils.stripStart(path, \"/\");\n this.index = path.equals(\"\") || path.endsWith(\"/\");\n path = StringUtils.stripEnd(path, \"/\");\n if (!path.equals(\"\")) {\n String[] child = path.split(\"/\");\n String[] res = new String[this.parts.length + child.length];\n for (int i = 0; i < this.parts.length; i ++) {\n res[i] = this.parts[i];\n }\n for (int i = 0; i < child.length; i++) {\n res[this.parts.length + i] = child[i];\n }\n this.parts = res;\n }\n }", "public Path createClasspath() {\n if (isReference()) {\n throw noChildrenAllowed();\n }\n if (this.classpath == null) {\n this.classpath = new Path(getProject());\n }\n setChecked(false);\n return this.classpath.createPath();\n }", "AMPLPath createAMPLPath();", "public abstract ScaledPathArray getPathList();", "String getPath() {\n return path;\n }", "public static File fileFromPathOrCreate(String path) throws IOException {\n File propFile = new File(path);\n if (!propFile.exists()) {\n propFile.createNewFile();\n }\n return propFile;\n }", "@JsonIgnore\n @Description(\n \"The path validator instance that should be used to validate paths. \"\n + \"If no path validator has been set explicitly, the default is to use the instance factory \"\n + \"that constructs a path validator based upon the currently set pathValidatorClass.\")\n @Default.InstanceFactory(PathValidatorFactory.class)\n PathValidator getPathValidator();", "public static PathAnchor filesystem(Path path) {\n if (path == null) {\n throw new NullPointerException(\"passed path was null\");\n }\n return new Filesystem(path);\n }", "public String createPath(String path, byte[] value) throws Exception {\n PathUtils.validatePath(path);//if bad format,here will throw some Exception;\n EnsurePath ensure = new EnsurePath(path).excludingLast();\n //parent path should be existed.\n //EnsurePath: retry + block\n ensure.ensure(zkClient); //ugly API\n return zkClient.getZooKeeper().create(path, value, ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);\n }", "public static AccessPath create(AccessPath p, jq_Field f, Node n) {\n if (p == null) return new AccessPath(f, n, true);\n p = p.copy();\n AccessPath that = p.findNode(n);\n if (that == null) {\n that = new AccessPath(f, n);\n }\n that.setLast();\n for (Iterator i = p.findLast(); i.hasNext(); ) {\n AccessPath last = (AccessPath)i.next();\n last.unsetLast();\n last.addSuccessor(that);\n }\n return p;\n }", "protected String path() {\n return path(getName());\n }", "Path getHasPath();", "TrieNodePath newPath(TrieSerialization<?> serialization);" ]
[ "0.7454821", "0.68117875", "0.6695517", "0.66733783", "0.6611882", "0.653173", "0.65134835", "0.6421798", "0.64183515", "0.6415205", "0.6381878", "0.6379816", "0.6379816", "0.6232943", "0.62213176", "0.6185226", "0.608945", "0.6038039", "0.6006644", "0.6006644", "0.6006644", "0.6006644", "0.6006644", "0.6006454", "0.5990665", "0.5982569", "0.59543246", "0.5942337", "0.5937622", "0.58730793", "0.58495456", "0.58462703", "0.5839664", "0.5824555", "0.5824555", "0.5824555", "0.58097804", "0.5804585", "0.5804322", "0.57948387", "0.5781738", "0.57748556", "0.5767316", "0.57534397", "0.575255", "0.57448405", "0.5709268", "0.56546736", "0.56461143", "0.5643153", "0.5632851", "0.56024164", "0.5600882", "0.5593027", "0.5593027", "0.5582952", "0.5573778", "0.5555163", "0.55446166", "0.55408126", "0.55400693", "0.5539833", "0.55379057", "0.55310047", "0.5529473", "0.552093", "0.5515261", "0.55138725", "0.5511539", "0.55028373", "0.5491124", "0.5440768", "0.5428247", "0.54234105", "0.5418443", "0.54105693", "0.54103976", "0.5409532", "0.540445", "0.54023695", "0.53986275", "0.5397282", "0.5396993", "0.5396446", "0.53657657", "0.5350265", "0.53471607", "0.53471607", "0.534494", "0.53333133", "0.5314761", "0.53109545", "0.5305026", "0.53013045", "0.5296109", "0.5282328", "0.52627414", "0.5258762", "0.5257532", "0.52566844", "0.5253992" ]
0.0
-1
the listview from list_of_messages set the layout of messages to be sent
private void displayChatMessage() { ListView listOfMessage = (ListView) findViewById(R.id.list_of_messages); adapter = new FirebaseListAdapter<ChatMessage>(this, ChatMessage.class, R.layout.list_messages, FirebaseDatabase.getInstance().getReference()) { @Override protected void populateView(View v, ChatMessage model, int position) { TextView messageText,messageUser,messageTime; messageText = (TextView) v.findViewById(R.id.message_text); messageUser = (TextView) v.findViewById(R.id.message_user); messageTime = (TextView) v.findViewById(R.id.message_time); messageText.setText(model.getMessageText()); messageUser.setText(model.getMessageUser()); messageTime.setText(DateFormat.format("dd-MM-yyyy (HH:mm:ss)", model.getMessageTime())); } }; listOfMessage.setAdapter(adapter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateListViewLogWindow()\n {\n listViewMessageItems.clear();\n\n for(int i =0;i<= printResult.size() - 1;i++)\n {\n listViewMessageItems.add(printResult.get(i));\n }\n\n }", "private void updateLists(){\n subjects.clear();\n for(Message m : user.getMessages()){\n subjects.add(String.format(\"From - %-\" + (40 - m.getFrom().length()) +\"s %20s\", m.getFrom(), m.getTimestamp().substring(0,16)));\n }\n listViewAdapter.notifyDataSetChanged();\n }", "private void hookUpMessageListAdapter(){\n DeviceSingleton deviceSingleton = DeviceSingleton.getInstance();\n this.arrayAdapter = new ArrayAdapter<String>(\n this,\n android.R.layout.simple_list_item_1,\n deviceSingleton.getTempTextArray() );\n// messageList.setAdapter(arrayAdapter);\n\n\n //ADD MessageAdapter here to replace above stuff\n messageObjectList = deviceSingleton.getMessages();\n messageList = (ListView) findViewById(R.id.listView);\n messageObjectAdapter = new MessageAdapter(this, R.layout.single_row, messageObjectList);\n messageList.setAdapter(messageObjectAdapter);\n ///////////////////////////////////////////\n }", "public ChatAdapter(List<MessageBean> data) {\n super(data);\n addItemType(MessageBean.SEND, R.layout.message_send_layout);\n addItemType(MessageBean.RECEIVE, R.layout.message_received_layout);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n input = (EditText) findViewById(R.id.input);\n listView = (ListView) findViewById(R.id.listview);\n list = new ArrayList<>();\n adapter = new MyAdapter(this, list);\n listView.setAdapter(adapter);\n handler = new Handler() {\n @Override\n public void handleMessage(Message msg) {\n int what = msg.what;\n switch (what) {\n case 998:\n String receivecontent = (String) msg.obj;\n SimpleDateFormat sDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String time = sDateFormat.format(System.currentTimeMillis());\n Messages receivemessages = genernateMessages(receivecontent,\n R.drawable.renma,\n time,\n \"mm\",\n \"receive\");\n list.add(receivemessages);\n adapter.notifyDataSetChanged();\n listView.setSelection(adapter.getCount() - 1);\n break;\n }\n }\n };\n }", "@Override\n public int getCount() {\n return messages.size();\n }", "public synchronized void doUpdateChatListView(Message msg)\n {\n Bundle b = msg.getData();\n String next = b.getString(Constants.CHAR);\n chatList.add(new CustomString(next,Constants.SENDER_DEVICE));\n customAdapter.notifyDataSetChanged();\n\n }", "static\tprivate void setMessageAdapter(ArrayList<messagewrapper> messageList) {\n\t\tmAdapter = new MessageListAdapter(context, messageList);\n\t\tlstv.setAdapter(mAdapter);\n\t\t\n\t\tcheckedCount=0;\n\t\t\n\t\t\n\t\t\n\t\tCollections.sort(messageList, new Comparator<messagewrapper>()\n\t\t\t\t{\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(messagewrapper lhs, messagewrapper rhs) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\treturn rhs.get_id()-lhs.get_id();\n\t\t\t\t\t}\n\t\t\t\t \n\t\t\t\t});\n\t\t\n\t\t\n\t}", "@SuppressLint(\"InflateParams\")\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n ChatMessage m = messagesItems.get(position);\n\n LayoutInflater mInflater = (LayoutInflater) context\n .getSystemService(Activity.LAYOUT_INFLATER_SERVICE);\n\n // Identifying the message owner\n if (messagesItems.get(position).isSelf()) {\n // message belongs to you, so load the right aligned layout\n convertView = mInflater.inflate(R.layout.chat_list_item_message_right,\n null);\n } else {\n // message belongs to other person, load the left aligned layout\n convertView = mInflater.inflate(R.layout.chat_list_item_message_left,\n null);\n }\n\n ImageView sendIconImage = (ImageView)convertView.findViewById(R.id.sent_success_image_icon);\n\n ImageView imgMsgFrom = (ImageView) convertView.findViewById(R.id.imageMsgFrom);\n TextView txtMsg = (TextView) convertView.findViewById(R.id.message_text);\n TextView chatDate = (TextView) convertView.findViewById(R.id.time_text);\n\n txtMsg.setText(m.getMessage());\n //imgMsgFrom.setImageResource(m.getProfileIcon());\n // chatDate.setText(m.getMessageTime());\n\n if(m.isDelivered()){\n sendIconImage.setImageDrawable(this.context.getResources().getDrawable(R.drawable.ic_action_green));\n sendIconImage.setVisibility(View.VISIBLE);\n }else if(m.isSent()){\n sendIconImage.setImageDrawable(this.context.getResources().getDrawable(R.drawable.ic_action));\n sendIconImage.setVisibility(View.VISIBLE);\n }else{\n sendIconImage.setImageDrawable(this.context.getResources().getDrawable(R.drawable.ic_action_dot));\n sendIconImage.setVisibility(View.VISIBLE);\n }\n\n return convertView;\n }", "@Override\n\t\tpublic void initList() {\n\t\t\tadapter = new MsgItemAdapter(context);\n\t\t\tArrayList<MsgBean> datas = getData();\n\t\t\tadapter.setData(datas);\n\t\t\tmListView.setAdapter(adapter);\n\t\t\tmListView.setViewMode(true, true);\n\t\t\tif(!DataValidate.checkDataValid(datas)){\n\t\t\t\tpageView.setDefaultPage().setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn msgList.size();\r\n\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase 1:\n\n\t\t\t\t\tlistView.setAdapter(new ListAdaptersujin(ListActivity.this, app\n\t\t\t\t\t\t\t.getList()));\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "private void setMessages(List<String> messages) {\n if (this.mMessageView != null) {\n this.mMessageView.setText(TextUtils.join(\"\\n\", messages));\n this.mMessageView.setVisibility(View.VISIBLE);\n }\n }", "@Override\n protected void populateView(View v, Message model, int position) {\n TextView messageText = (TextView) v.findViewById(R.id.message_text);\n TextView messageTime = (TextView) v.findViewById(R.id.message_time);\n\n // Set their text\n messageText.setText(model.getContent());\n\n // Format the date before showing it\n messageTime.setText(model.getDate().toString());\n\n if (!model.getSenderId().equals(mParent.getUid())) {\n RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) messageText.getLayoutParams();\n params.addRule(RelativeLayout.ALIGN_PARENT_LEFT, RelativeLayout.TRUE);\n params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, 0);\n messageText.setLayoutParams(params);\n messageText.setBackgroundResource(R.drawable.bg_bubble_white);\n\n params = (RelativeLayout.LayoutParams) messageTime.getLayoutParams();\n params.addRule(RelativeLayout.ALIGN_LEFT, R.id.message_text);\n messageTime.setLayoutParams(params);\n } else {\n RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) messageText.getLayoutParams();\n params.addRule(RelativeLayout.ALIGN_PARENT_LEFT, 0);\n params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, RelativeLayout.TRUE);\n messageText.setLayoutParams(params);\n messageText.setBackgroundResource(R.drawable.bg_bubble_gray);\n\n params = (RelativeLayout.LayoutParams) messageTime.getLayoutParams();\n params.addRule(RelativeLayout.ALIGN_RIGHT, R.id.message_text);\n messageTime.setLayoutParams(params);\n }\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView;\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.messages_list_item, parent, false);\n }\n\n Messages m = getItem(position);\n\n TextView messageTv = listItemView.findViewById(R.id.message_item_text_view);\n messageTv.setText((m != null) ? m.getMessage() : null);\n\n TextView dateTV = listItemView.findViewById(R.id.message_item_date_text_view);\n dateTV.setText(m != null ? m.getDate() : null);\n\n TextView userTV = listItemView.findViewById(R.id.message_item_user_text_view);\n userTV.setText(m != null ? m.getUser() : null);\n\n return listItemView;\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n TextView sms = new TextView(context);\n sms.setText(messages.get(position).getText());\n sms.setPadding(15,15,15,15);\n sms.setTextSize(15);\n if(messages.get(position).getType() == MESSAGE_TYPE.INBOX)\n sms.setGravity(Gravity.LEFT);\n else\n sms.setGravity(Gravity.RIGHT);\n// Log.i(\"rishab\",\"text \" + messages.get(position).getText());\n return sms;\n }", "public ChatView() {\n\t\t// Load Font and Style Sheet\n\t\tFont.loadFont(Resources.el_font, 20);\n\t\tgetStylesheets().add(Resources.Css_ChatView);\n\n\t\t// Creating \"Chat Messages\" observable list and list view\n\t\tthis.chatMessages = FXCollections.observableArrayList();\n\t\t\n\t\tthis.lstChatMessages = new ListView<String>(chatMessages);\n\t\tthis.lstChatMessages.setPrefWidth(780);\n\t\tthis.lstChatMessages.setPrefHeight(780);\n\t\tthis.lstChatMessages.setStyle(\"\");\n\t\t//\t this.lstChatMessages.setPadding(new Insets(0,10,0,10));\n\t\tthis.lstChatMessages.setStyle(\"-fx-background-color: white;\");\n\t\tthis.lstChatMessages.setId(\"chatMessages\");\n\t\tthis.lstChatMessages.setCellFactory(\n\t\t\t\tnew Callback<ListView<String>, ListCell<String>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic ListCell<String> call(ListView<String> lstChatMessages) {\n\t\t\t\t\t\tfinal ListCell<String> cell =\n\t\t\t\t\t\t\t\tnew ListCell<String>() {\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tsetPrefWidth(5);\n\t\t\t\t\t\t\t\tsetWrapText(true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tprotected void updateItem(String item, boolean empty) {\n\t\t\t\t\t\t\t\tsuper.updateItem(item, empty);\n\t\t\t\t\t\t\t\tif (item == null) {\n\t\t\t\t\t\t\t\t\tsetText(null);\n\t\t\t\t\t\t\t\t\tsetStyle(null);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tsetText(item);\n\t\t\t\t\t\t\t\t\tsetStyle(\"-fx-font-family: 'Elianto Regular';\");\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\treturn cell;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tthis.lstChatMessages.setId(\"lstChatMessages\");\n\t\tthis.lstChatMessages.setItems(getChatMessages());\n\n\n\t\t// Setup Labels\n\t\tthis.title = new Text(\"Chat\");\n\t\tthis.title.setOnMouseClicked(e -> {slideChat();});\n\t\t\n\t\tthis.title.setId(\"Title\");\n\t\tthis.lblCharactersLeft = new Label(Integer.toString(this.maxCharacters));\n\t\tthis.lblCharactersLeft.setId(\"lblCharactersLeft\");\n\n\t\t// Setup Message Text Input\n\t\tthis.textInputMessage = new TextField();\n\t\tthis.textInputMessage.prefWidthProperty().bind(lstChatMessages.widthProperty().multiply(0.8));\n\t\tthis.textInputMessage.setPrefHeight(40);\n\t\tthis.textInputMessage.setFont(Font.loadFont(Resources.el_font, 16));\n\n\t\tfinal UnaryOperator<Change> limit = c -> {\n\t\t\tif (c.isContentChange()) {\n\t\t\t\tint newLength = c.getControlNewText().length();\n\t\t\t\tif (newLength > maxCharacters) {\n\t\t\t\t\tc.setText(c.getControlText());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn c;\n\t\t};\n\t\tfinal UnaryOperator<Change> chatFilter =\n\t\t\t\tchange -> { // Setup Filter\n\t\t\t\t\tif (change.getControlNewText().length() > maxCharacters) {\n\t\t\t\t\t\tnumCharactersLeft = 0;\n\t\t\t\t\t\tlblCharactersLeft.setText(Integer.toString(numCharactersLeft));\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnumCharactersLeft = maxCharacters - change.getControlNewText().length();\n\t\t\t\t\t\tlblCharactersLeft.setText(Integer.toString(numCharactersLeft));\n\t\t\t\t\t\treturn change;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tthis.textInputMessage.setTextFormatter(new TextFormatter<>(limit));\n\t\t\t\tthis.textInputMessage.setTextFormatter(new TextFormatter<>(chatFilter));\n\t\t\t\tthis.textInputMessage.setOnKeyPressed(\n\t\t\t\t\t\tnew EventHandler<KeyEvent>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void handle(KeyEvent keyEvent) {\n\t\t\t\t\t\t\t\tif ((keyEvent.getCode() == KeyCode.ENTER) && (!keyEvent.isAltDown())) {\n\t\t\t\t\t\t\t\t\tkeyEvent.consume();\n\t\t\t\t\t\t\t\t\tString message = textInputMessage.getText();\n\t\t\t\t\t\t\t\t\ttextInputMessage.clear();\n\t\t\t\t\t\t\t\t\tsendMessage(message);\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\tthis.textInputMessage.setId(\"textInputMessage\");\n\n\n\t\t\t\t// Setup Send Button\n\t\t\t\tButton sendBtn = new Button(\"Send\");\n\t\t\t\tsendBtn.prefWidthProperty().bind(lstChatMessages.widthProperty().multiply(0.2));\n\t\t\t\tsendBtn.setOnAction(e ->{ // Show deck\n\t\t\t\t\tsendMessage(textInputMessage.getText());\n\t\t\t\t});\n\n\t\t\t\tStackPane top = new StackPane();\n\t\t\t\ttop.getChildren().add(lstChatMessages);\n\n\t\t\t\tHBox bottom = new HBox(5);\n\t\t\t\tbottom.setAlignment(Pos.CENTER);\n\t\t\t\tbottom.getChildren().addAll(textInputMessage, sendBtn);\n\t\t\t\tbottom.setPadding(new Insets(0,0,10,0));\n\n\n\t\t\t\t// Put all together\n\t\t\t\tthis.container = new VBox(10);\n\t\t\t\tcontainer.setAlignment(Pos.BOTTOM_CENTER);\n\t\t\t\tcontainer.getChildren().addAll(lstChatMessages, bottom, title);\n\t\t\t\tcontainer.setPadding(new Insets(10,10,10,10));\n\t\t\t\tcontainer.setId(\"chat\");\n\n\t\t\t\tthis.getChildren().add(container);\n\t}", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View v = convertView;\n\n LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n MessageSend message = getItem( position );\n if (message.isBelongsToCurrentUser()) { //Nếu người là người đang sử dụng\n v = inflater.inflate( R.layout.my_message, null);\n TextView messageBody = (TextView) v.findViewById(R.id.message_body);\n messageBody.setText(message.getComment());\n }\n else {\n v = inflater.inflate( R.layout.my_friend_send_message, null);\n ImageView avatar = v.findViewById(R.id.avatar);\n TextView name = v.findViewById(R.id.name_friend );\n TextView messageBody = v.findViewById(R.id.message_body);\n\n if (!message.getAvatar().equals(\"\"))\n Picasso.get().load(message.getAvatar()).into(avatar);\n name.setText(message.getName());\n messageBody.setText(message.getComment());\n }\n return v;\n }", "@Override\n\tpublic int getCount() {\n\n\t\treturn msgList.size();\n\t}", "@Override\n public int getLayoutRes() {\n return R.layout.message_item;\n }", "private void gestionDefaultLMessage(){\n\n TextView TV_MessageDefaut = (TextView) findViewById(R.id.id_messagebalise);\n ListView LV_ListAmis = (ListView) findViewById(R.id.LV_listeMessages);\n if (listeDiscussion!=null){\n if (listeDiscussion.isEmpty()){\n // Affiche le message par defaut\n TV_MessageDefaut.setText(R.string.MesDiscussions_noResutat);\n TV_MessageDefaut.setVisibility(View.VISIBLE);\n LV_ListAmis.setVisibility(View.GONE);\n\n }\n else{\n // Affiche la liste de discussion\n TV_MessageDefaut.setText(\"\");\n TV_MessageDefaut.setVisibility(View.GONE);\n LV_ListAmis.setVisibility(View.VISIBLE);\n\n }\n }\n\n }", "@Override\r\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tView view = null;\r\n\t\tif(convertView == null){\r\n\t\t\tview = mInflater.inflate(R.layout.chat_item, null);\r\n\t\t}else{\r\n\t\t\tview = convertView;\r\n\t\t}\r\n\t\tChatMessage msg = msgList.get(position);\r\n\t\t\r\n\t\tTextView show_name = (TextView) view.findViewById(R.id.show_name);\r\n\t\tshow_name.setText(msg.getSenderName());\r\n\t\tif(msg.isSelfMsg()){\t//根据是否是自己的消息更改颜色\r\n\t\t\tshow_name.setTextColor(res.getColor(R.color.chat_myself));\r\n\t\t}else{\r\n\t\t\tshow_name.setTextColor(res.getColor(R.color.chat_other));\r\n\t\t}\r\n\t\t\r\n\t\tTextView show_time = (TextView) view.findViewById(R.id.show_time);\r\n\t\tshow_time.setText(msg.getTimeStr());\r\n\t\t\r\n\t\tTextView message = (TextView) view.findViewById(R.id.message);\r\n\t\tmessage.setText(msg.getMsg());\r\n\t\t\r\n\t\treturn view;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_message, container, false);\n firebaseAuth = FirebaseAuth.getInstance();\n currentUser = FirebaseAuth.getInstance().getCurrentUser();\n recyclerView = view.findViewById(R.id.recyclerViewMessageList);\n recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n modelMessageLists= new ArrayList<>();\n DatabaseReference reference = FirebaseDatabase.getInstance().getReference(\"MessageList\").child(currentUser.getUid());\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n modelMessageLists.clear();\n for(DataSnapshot ds: snapshot.getChildren()){\n ModelMessageList modelMessageList = ds.getValue(ModelMessageList.class);\n modelMessageLists.add(modelMessageList);\n }\n loadMessage();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n final View rootView = inflater.inflate(R.layout.fragment_group_chat, container, false);\n\n final EditText messageET = (EditText) rootView.findViewById(R.id.messageET);\n Button sendButton = (Button) rootView.findViewById(R.id.sendButton);\n chatLV = (ListView) rootView.findViewById(R.id.chatLV);\n\n messageArrayList = new ArrayList<>();\n chatListAdapter = new ChatListAdapter(getActivity(), mUserId, messageArrayList);\n chatLV.setAdapter(chatListAdapter);\n\n handler = new Handler();\n\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n receiveMessage();\n handler.postDelayed(this, 1000);\n }\n };\n\n\n\n handler.postDelayed(runnable, 1000);\n\n sendButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String body = messageET.getText().toString();\n\n if (!body.equals(\"\")) {\n\n final ParseObject newChatMessage = new ParseObject(\"ChatMessage\");\n newChatMessage.put(\"sender\", mUserId);\n newChatMessage.put(\"message\", body);\n\n ParseQuery<ParseUser> selfQuery = ParseUser.getQuery();\n selfQuery.getInBackground(mUserId, new GetCallback<ParseUser>() {\n @Override\n public void done(ParseUser parseUser, ParseException e) {\n newChatMessage.put(\"username\", parseUser.getUsername());\n newChatMessage.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n\n ParseQuery<ParseObject> groupQuery = ParseQuery.getQuery(\"Group\");\n groupQuery.getInBackground(mGroupId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject parseObject, ParseException e) {\n List<ParseObject> chatMessageArray = parseObject.getList(\"groupMessageArray\");\n chatMessageArray.add(newChatMessage);\n parseObject.put(\"groupMessageArray\", chatMessageArray);\n parseObject.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n receiveMessage();\n }\n });\n }\n });\n\n\n }\n });\n }\n });\n\n messageET.setText(\"\");\n } else {\n toast.setText(getText(R.string.toast_empty_error));\n toast.show();\n }\n }\n });\n\n return rootView;\n }", "public <MESSAGE extends IMessage>\n void setAdapter(MessagesListAdapter<MESSAGE> adapter, boolean reverseLayout) {\n SimpleItemAnimator itemAnimator = new DefaultItemAnimator();\n itemAnimator.setSupportsChangeAnimations(false);\n\n LinearLayoutManager layoutManager = new LinearLayoutManager(getContext(),\n LinearLayoutManager.VERTICAL, reverseLayout);\n\n setItemAnimator(itemAnimator);\n setLayoutManager(layoutManager);\n adapter.setLayoutManager(layoutManager);\n adapter.setStyle(messagesListStyle);\n\n addOnScrollListener(new RecyclerScrollMoreListener(layoutManager, adapter));\n super.setAdapter(adapter);\n }", "@Override\r\n public int getCount() {\n return chatList.size();\r\n }", "MessageView() {\n this.setItems(data);\n Date date = new Date();\n DateFormat format = new SimpleDateFormat(\"HH : mm\");\n data.add(format.format(date) + \" - \" + \"Bienvenue au 2048\");\n this.setStyle(\"-fx-padding: 10;\" +\n \"-fx-border-style: solid inside;\" +\n \"-fx-border-width: 2;\" +\n \"-fx-border-insets: 5;\" +\n \"-fx-border-radius: 5;\" +\n \"-fx-border-color: #292F33;\" +\n \"-fx-background-color: #CCD6DD;\");\n this.setFocusTraversable(false);\n }", "public ListView getMessageListView() {\n return mMessageListView;\n }", "@Override\n public int getItemCount() {\n return mMessagesList.size();\n }", "@Override\n public int getCount() {\n return chatList.size();\n }", "@Override\r\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\r\n requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n setContentView(R.layout.ffd_all_main);\r\n chatList=new ArrayList<HashMap<String,Object>>();\r\n\r\n\r\n Intent myintent=getIntent();\r\n Bundle myBundle=myintent.getExtras();\r\n toID=(String)myBundle.get(\"id\");\r\n scheduledExecutorService.scheduleWithFixedDelay(new getTask(), 1, 1, TimeUnit.SECONDS);\r\n //打上标签\r\n addTextToList(\"I'm Xinhao\", ME);\r\n addTextToList(\"Hi\\n ^_^\", OTHER);\r\n addTextToList(\"What's your name\", ME);\r\n addTextToList(\"Your doctor!\", OTHER);\r\n //绑定\r\n chatSendButton=(Button)findViewById(R.id.chat_bottom_sendbutton);\r\n editText=(EditText)findViewById(R.id.chat_bottom_edittext);\r\n chatListView=(ListView)findViewById(R.id.chat_list);\r\n\r\n adapter=new MyChatAdapter(this,chatList,layout,from,to);\r\n\r\n\r\n chatSendButton.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n // TODO Auto-generated method stub\r\n myWord=null;\r\n\r\n /**\r\n * 这是一个发送消息的监听器,注意如果文本框中没有内容,那么getText()的返回值可能为\r\n * null,这时调用toString()会有异常!所以这里必须在后面加上一个\"\"隐式转换成String实例\r\n * ,并且不能发送空消息。\r\n */\r\n myWord=(editText.getText()+\"\").toString();\r\n if(myWord.length()==0)\r\n return;\r\n editText.setText(\"\");\r\n addTextToList(myWord, ME);\r\n /**\r\n * 更新数据列表,并且通过setSelection方法使ListView始终滚动在最底端\r\n */\r\n adapter.notifyDataSetChanged();\r\n chatListView.setSelection(chatList.size()-1);\r\n\r\n new Thread() {\r\n\r\n @Override\r\n public void run() {\r\n //String messageStr = editText.getText().toString();\r\n //handler.sendEmptyMessage(2);\r\n\r\n///////////////////////////////////////////////////////////////////////////////////////\r\n//发送聊天消息\r\n Map<String, String> paprams = new HashMap<String, String>();\r\n paprams.put(\"operation\", \"send\");\r\n //用户自己的id\r\n paprams.put(\"fromID\", ffd_MainActivity.id);\r\n paprams.put(\"toID\",toID);\r\n paprams.put(\"time\", \"1111111\");\r\n paprams.put(\"content\", myWord);\r\n\r\n String result = new HttpUtil().post(CommonUrl.Chat, paprams);\r\n\r\n///////////////////////////////////////////////////////////////////////////////////////\r\n\r\n //Message msg = new Message();\r\n //msg.what = 1;\r\n //msg.obj = \"fromID:\" + user.getUserID() + \"\\ttoID\" + toId + \"\\ttime:\" + \"2016-3-13\" + \"\\tcontent:\" + messageStr;\r\n }\r\n\r\n }.start();\r\n\r\n }\r\n });\r\n chatListView.setAdapter(adapter);\r\n }", "private void initialize() {\n chatLayoutManager = new LinearLayoutManager(this);\n chatView.setLayoutManager(chatLayoutManager);\n for (int i = 0; i < chatMessages.size() - 1; i++) {\n Message currentMsg = chatMessages.get(i);\n Message nextMsg = chatMessages.get(i + 1);\n nextMsg.showMessageTime = nextMsg.getTimestamp() - currentMsg.getTimestamp() >= Message.GROUP_TIME_THRESHOLD;\n nextMsg.showMessageSender = nextMsg.showMessageTime || !nextMsg.getSenderId().equals(currentMsg.getSenderId());\n }\n chatRoomAdapter = new ChatRoomAdapter(this, myId, chatMessages);\n chatView.setAdapter(chatRoomAdapter);\n\n //check if user self has been dropped from chat\n if (!chat.getAttendeeIdList().contains(myId)) {\n Toast.makeText(this, R.string.dropped_from_chat, Toast.LENGTH_LONG).show();\n }\n updateChatAttendeeIdList = new ArrayList<>();\n\n //set up listener for attendee list check boxes\n checkedChangeListener = new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton checkBox, boolean isChecked) {\n String id = (String) checkBox.getTag();\n if (isChecked) {\n if (!updateChatAttendeeIdList.contains(id))\n updateChatAttendeeIdList.add(id);\n } else {\n updateChatAttendeeIdList.remove(id);\n }\n }\n };\n\n //set up contact input and contact picker\n View contactPicker = findViewById(R.id.contact_picker);\n contactPicker.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ChatRoomActivity.this, ContactsActivity.class);\n intent.putExtra(ContactsActivity.EXTRA_MODE, ContactsActivity.MODE_PICKER);\n startActivityForResult(intent, EventDetailsActivity.REQUEST_CONTACT_PICKER);\n }\n });\n\n //\n final LinearLayout messagesLayout = (LinearLayout) findViewById(R.id.all_messages_linearlayout);\n if (messagesLayout != null) {\n messagesLayout.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n @Override\n public void onGlobalLayout() {\n messagesLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n\n int size = chatMessages.size();\n if (chatLayoutManager.findLastCompletelyVisibleItemPosition() < size-1) {\n chatLayoutManager.scrollToPosition(size - 1);\n }\n }\n });\n }\n\n conversationManager.addBroadcastListner(this);\n }", "private void setAdapter() {\n adapter = new MessageAdapter(messages);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(adapter);\n }", "@Override\n protected void initView() {\n mListView = (ListView) findViewById(R.id.list);\n ViewGroup.LayoutParams layoutParams = mListView.getLayoutParams();\n layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT;\n layoutParams.height = AppController.displayMetrics.heightPixels / 2;\n mListView.setLayoutParams(layoutParams);\n\n\n mSelectChatAdapter = new SelectChatAdapter(getContext());\n mListView.setAdapter(mSelectChatAdapter);\n mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n goToHXMain(\n HXApplication.getInstance().parseUserFromID(HXHelper.yamContactList.get(position)\n .getFirendsUserInfo().getId(), HXConstant.TAG_SHOP));\n }\n });\n }", "@Override\r\n\tpublic View getView(final int position, View convertView, ViewGroup parent) {\n\t\tView vi = convertView;\r\n\t\tvHolder holder = null ;\r\n\r\n\t\tSystem.out.println(\"In getView\");\r\n\t\t\r\n\t\tif(vi==null){\r\n\t\t\tvi = LayoutInflater.from(lcontext).inflate(R.layout.peerrow_perchat, parent, false);\r\n\t\t\tholder = new vHolder();\r\n\t\t\tholder.nickView = (TextView) vi.findViewById(R.id.nick);\r\n\t\t\tholder.msgView = (TextView) vi.findViewById(R.id.last_chat);\r\n\t\t\tholder.timeView = (TextView) vi.findViewById(R.id.time);\r\n\t\t\tvi.setTag(holder);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tholder = (vHolder)vi.getTag();\r\n\t\t}\r\n\t\tvi.setOnClickListener(new View.OnClickListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v){\r\n\t\t\t\tSystem.out.println(\"chatadapter\");\r\n\t\t\t\tmHandler.obtainMessage(3,position+\"\").sendToTarget();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t String nick = (chat.get(position));\r\n\t\t System.out.println(\"Nick at poistion \"+position+\" is \"+nick);\r\n\t\t ArrayList<chatObject> ar = chatmsg.get(nick);\r\n\t\t System.out.println(\"First message is \"+ar.get(0).getMessage());\r\n\t\t String m = (ar.get(ar.size()-1)).getMessage();\r\n\t\t if(m.length()>50){\r\n\t\t\t m = m.substring(0, 80);\r\n\t\t\t m = m + \"...\";\r\n\t\t }\r\n\t\t String t = (ar.get(ar.size()-1)).getTime();\r\n\t\t System.out.println(\"Message :\"+ m);\r\n\t\t holder.nickView.setText(nick);\r\n holder.msgView.setText(m);\r\n holder.timeView.setText(t);\r\n System.out.println(\"Text Set for \"+position);\r\n \r\n return vi;\r\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tif (msg.what==1) {\n\t\t\t\tif(myListAdapter != null)\n\t\t\t\t{\n\t\t\t\tmyListAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(list != null)\n\t\t\t\t\tif(list.size() > 0)\n\t\t\t\t\t\tlast_id = (Integer) list.get(list.size() - 1).get(\"id\");\n\t\t\t\tif(listView != null){\n\t\t\t\t\tif(listView.getFooterViewsCount() > 0 && hot_list_footer != null)\n\t\t\t\t\t\tlistView.removeFooterView(hot_list_footer);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tloadable = true;\n\t\t\t}\n\t\t\telse if (msg.what==2) {\n\t\t\t\tmyListAdapter.notifyDataSetChanged();\n\t\t\t\tpg.setVisibility(View.GONE);\n\t\t\t\tif(listView != null){\n\t\t\t\t\tif(listView.getFooterViewsCount() > 0 && hot_list_footer != null)\n\t\t\t\t\t\tlistView.removeFooterView(hot_list_footer);\n\t\t\t\t}\n//\t\t\t\tbt.setVisibility(View.VISIBLE);\n\t\t\t\tloadable = true;\n\t\t\t}\n\t\t\telse if (msg.what==3) {\n\t\t\t\tpg.setVisibility(View.GONE);\n\t\t\t\tbt.setVisibility(View.GONE);\n\t\t\t\tif(listView != null){\n\t\t\t\t\tif(listView.getFooterViewsCount() > 0 && hot_list_footer != null)\n\t\t\t\t\t\tlistView.removeFooterView(hot_list_footer);\n\t\t\t\t}\n\t\t\t\tloadable = true;\n\t\t\t}\n\t\t\telse if (msg.what==4) {\n\t\t\t\t//myListAdapter.notifyDataSetChanged();\n\t\t\t\tlistView.onRefreshComplete();\n\t\t\t\tloadable = true;\n\t\t\t}\n\t\t\telse if(msg.what == 5){\n\t\t\t\tif(listView != null){\n\t\t\t\t\tif(listView.getFooterViewsCount() > 0 && hot_list_footer != null)\n\t\t\t\t\t\tlistView.removeFooterView(hot_list_footer);\n\t\t\t\t}\n\t\t\t\tloadable = true;\n\t\t\t}\n\t\t\tsuper.handleMessage(msg);\n\t\t}", "@Override\n public void run() {\n chatListAdapter.add(sendToOthers);\n chatListAdapter.notifyDataSetChanged();\n getListView().setSelection(chatListAdapter.getCount() - 1);\n }", "private void setupChat() {\n chatArrayAdapter = new ArrayAdapter<String>(MainActivity.this, R.layout.message);\n\n listView.setAdapter(chatArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n editText.setOnEditorActionListener(mWriteListener);\n\n // Initialize the send button with a listener that for click events\n sendButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n String message = editText.getText().toString();\n if(!message.equals(\"\")) {\n sendMessage(message);\n }\n }\n });\n\n }", "@Override\n\tprotected void initView() {\n\t\tlvMsg=(ListView) findViewById(R.id.lv_activity_my_message);\n\t\tivBack = (ImageView) findViewById(R.id.activity_my_message_iv_back);\n\t\tprogressDialog=ProgressDialogHandle.getProgressDialog(this, null);\n\t}", "private void addMessageToUI (Message message) {\n if (message == null) {\n return;\n }\n\n //find the correct position based on timestamp\n int index = chatMessages.size() - 1;\n while (index >= 0 && message.getTimestamp() < chatMessages.get(index).getTimestamp()) {\n index--;\n }\n\n //update inerted message show time/sender flags\n Message lastMsg = index >= 0 ? chatMessages.get(index) : null;\n message.showMessageTime = lastMsg == null || message.getTimestamp() - lastMsg.getTimestamp() > Message.GROUP_TIME_THRESHOLD;\n message.showMessageSender = lastMsg == null || message.showMessageTime || !message.getSenderId().equals(lastMsg.getSenderId());\n chatMessages.add(index + 1, message);\n chatRoomAdapter.notifyItemInserted(index + 1);\n\n //upate next message show time/sender flags\n Message nextMsg = index + 2 < chatMessages.size() ? chatMessages.get(index + 2) : null;\n if (nextMsg != null) {\n boolean nextMsgShowMsgTime = nextMsg.getTimestamp() - message.getTimestamp() > Message.GROUP_TIME_THRESHOLD;\n boolean nextMsgShowMsgSender = nextMsgShowMsgTime || !nextMsg.getSenderId().equals(message.getSenderId());\n if (nextMsgShowMsgTime != nextMsg.showMessageTime || nextMsgShowMsgSender != nextMsg.showMessageSender) {\n nextMsg.showMessageTime = nextMsgShowMsgTime;\n nextMsg.showMessageSender = nextMsgShowMsgSender;\n chatRoomAdapter.notifyItemChanged(index + 2);\n }\n }\n\n chatLayoutManager.scrollToPosition(chatMessages.size() - 1);\n }", "public void onLayout(boolean r10, int r11, int r12, int r13, int r14) {\n /*\n r9 = this;\n r6 = r13 - r11;\n r7 = r14 - r12;\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0 = r0.listView;\n r0 = r0.getChildCount();\n r1 = 1;\n r8 = 0;\n r2 = -1;\n if (r0 <= 0) goto L_0x003f;\n L_0x0013:\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0 = r0.listView;\n r3 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r3 = r3.listView;\n r3 = r3.getChildCount();\n r3 = r3 - r1;\n r0 = r0.getChildAt(r3);\n r3 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r3 = r3.listView;\n r3 = r3.findContainingViewHolder(r0);\n r3 = (org.telegram.p004ui.Components.RecyclerListView.Holder) r3;\n if (r3 == 0) goto L_0x003f;\n L_0x0036:\n r3 = r3.getAdapterPosition();\n r0 = r0.getTop();\n goto L_0x0041;\n L_0x003f:\n r0 = 0;\n r3 = -1;\n L_0x0041:\n if (r3 < 0) goto L_0x0051;\n L_0x0043:\n r4 = r9.lastHeight;\n r5 = r7 - r4;\n if (r5 == 0) goto L_0x0051;\n L_0x0049:\n r0 = r0 + r7;\n r0 = r0 - r4;\n r4 = r9.getPaddingTop();\n r0 = r0 - r4;\n goto L_0x0053;\n L_0x0051:\n r0 = 0;\n r3 = -1;\n L_0x0053:\n super.onLayout(r10, r11, r12, r13, r14);\n if (r3 == r2) goto L_0x0074;\n L_0x0058:\n r2 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r2.ignoreLayout = r1;\n r1 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r1 = r1.layoutManager;\n r1.scrollToPositionWithOffset(r3, r0);\n r1 = 0;\n r0 = r9;\n r2 = r11;\n r3 = r12;\n r4 = r13;\n r5 = r14;\n super.onLayout(r1, r2, r3, r4, r5);\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0.ignoreLayout = r8;\n L_0x0074:\n r9.lastHeight = r7;\n r9.lastWidth = r6;\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0.updateLayout();\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0.checkCameraViewPosition();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.p004ui.Components.ChatAttachAlert$C40922.onLayout(boolean, int, int, int, int):void\");\n }", "private void initView() {\n et_scroll = (RecyclerView) findViewById(R.id.Chatview);\n\n chat_layout = (RelativeLayout) findViewById(R.id.chat_layout);\n broadcast_layout = (RelativeLayout) findViewById(R.id.broadcast_layout);\n\n\n broadcast_layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (chat_layout.getVisibility() == View.VISIBLE) {\n chat_layout.setVisibility(View.GONE);\n } else {\n chat_layout.setVisibility(View.VISIBLE);\n }\n\n }\n });\n// 메시지 전송\n\n et_msg = (EditText) findViewById(R.id.msg_et_stream);\n btn_send = (Button) findViewById(R.id.send_btn_stream);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n btn_send.setBackground(ContextCompat.getDrawable(getApplicationContext(),R.drawable.round_button));\n }\n\n btn_send.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String msg = String.valueOf(et_msg.getText()) + \"\\r\\n\";\n if (msg.length() != 0) {\n handler.obtainMessage(0x03).sendToTarget();\n }\n }\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 <MESSAGE extends IMessage>\n void setAdapter(MessagesListAdapter<MESSAGE> adapter) {\n setAdapter(adapter, true);\n }", "@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.message_list_item, parent, false);\n return new ViewHolder(v);\n\n\n\n }", "@Override\r\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\r\n\t\tView vi = null;\r\n\t\tvi=inflater.inflate(R.layout.message_list_row,null);\r\n\t\tTextView chatUserName=(TextView)vi.findViewById(R.id.textUserName);\r\n\t\tTextView chatMessage=(TextView)vi.findViewById(R.id.textMessage);\r\n\t\tSeekBar seek_bar=(SeekBar)vi.findViewById(R.id.seek_bar);\r\n\r\n\t\tButton play_button=(Button)vi.findViewById(R.id.play_button);\r\n\t\tButton pause_button=(Button)vi.findViewById(R.id.pause_button);\r\n\t\tplay_button.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tplayer.start();\r\n\t\t\t}\r\n\t\t});\r\n\t\tpause_button.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tplayer.pause();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t//\tVideoView vid=(VideoView)vi.findViewById(R.id.vidview);\r\n\t\tTextView chatTime=(TextView)vi.findViewById(R.id.textTime);\r\n\r\n\r\n\r\n\r\n\t\tImageView image=(ImageView)vi.findViewById(R.id.image);\r\n\t\tLinearLayout contentLayout=(LinearLayout)vi.findViewById(R.id.contentLayout);\r\n\t\tRelativeLayout messageLayout=(RelativeLayout)vi.findViewById(R.id.messageLayout);\r\n\t\tif (this.fromUserId.size()<=0){\r\n\t\t\tchatMessage.setText(\"No Messages\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\tif (isGroupChat==1){\r\n\t\t\t\t//System.out.println(\"******Printing from user Names\"+fromUserName.get(position));\r\n\t\t\t\tchatUserName.setVisibility(View.VISIBLE);\r\n\t\t\t\tchatUserName.setText(UserNames.get(fromUserId.get(position)));\r\n\t\t\t}\r\n\t\t\tif (this.messageLink.get(position)==null||this.messageLink.get(position).equals(\"null\")){\r\n\t\t\t\t//System.out.println(\"success case value *******\"+this.textMessage.get(position));\r\n\t\t\t\timage.setVisibility(View.GONE);\r\n\t\t\t\tchatMessage.setVisibility(View.VISIBLE);\r\n\t\t\t\tchatMessage.setText(this.textMessage.get(position));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tchatMessage.setVisibility(View.GONE);\r\n\t\t\t\t//System.out.println(\"Failed case value *******\"+this.textMessage.get(position));\r\n\r\n\t\t\t\t//\tSystem.out.println(\"UUURRRRIII****checkpoing\");\r\n\t\t\t\t//\tSystem.out.println(\"Message link for get position*****\"+messageLink.get(position));\r\n\t\t\t\tFile imgFile = new File(messageLink.get(position));\r\n\r\n\t\t\t\tif(messageLink.get(position).endsWith(\".3gp\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tseek_bar.setVisibility(View.VISIBLE);\r\n\t\t\t\t\tplay_button.setVisibility(View.VISIBLE);\r\n\t\t\t\t\tpause_button.setVisibility(View.VISIBLE);\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tplayer = new MediaPlayer();\r\n\t\t\t\t\t\tplayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\r\n\t\t\t\t\t\tplayer.setDataSource(messageLink.get(position));\r\n\t\t\t\t\t\tplayer.prepare();\r\n\t\t\t\t\t\tseek_bar.setMax(player.getDuration());\r\n\r\n\t\t\t\t\t\trun = new Runnable() {\r\n\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\tseekUpdation();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (SecurityException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IllegalStateException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//\t\t\t\t\tvid.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t//\t\t\t\t\tvid.setVideoURI(Uri.fromFile(imgFile));\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\timage.setVisibility(View.VISIBLE);\r\n\t\t\t\t\tif(imgFile.exists())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//\tSystem.out.println(\"UUURRRRIII****checkpoing222\");\r\n\t\t\t\t\t\timage.setImageURI(Uri.fromFile(imgFile));\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tchatTime.setText(this.time.get(position));\r\n\t\t\tif(this.fromUserId.get(position)==MainActivity.globalUserId){\r\n\t\t\t\tmessageLayout.setGravity(Gravity.RIGHT); \r\n\t\t\t\tcontentLayout.setBackgroundColor(Color.WHITE);\r\n\t\t\t\t//contentLayout.setBackgroundResource(R.drawable.rightchat);\r\n\t\t\t\t//contentLayout.setBackgroundResource(R.drawable.online);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tmessageLayout.setGravity(Gravity.LEFT);\r\n\t\t\t\t//contentLayout.setBackgroundResource(R.drawable.leftchat);\r\n\t\t\t\tcontentLayout.setBackgroundColor(Color.LTGRAY);\r\n\t\t\t}\r\n\r\n\t\t\tvi.setOnClickListener(new OnItemClickListener( position,0));\r\n\t\t\t//chatBox.setOnClickListener(new OnItemClickListener(position,1));\r\n\t\t\t//sendMessage.setOnClickListener(new OnItemClickListener(position,2));\r\n\t\t\t//notifyDataSetChanged();\r\n\t\t}\r\n\t\treturn vi;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.message, container, false);\n\n try {\n // constant.Action_bar(false, getActivity(), \"Message\");\n\n // TextView tv = (TextView) v.findViewById(R.id.tvFragFirst);\n // tv.setText(getArguments().getString(\"msg\"));\n mEmail = new ArrayList<Email>();\n// setListData();\n res = getResources();\n lst_message = (ListView) v.findViewById(R.id.lst_message);\n// adapter = new EmailAdapter(getActivity(), mEmail, res);\n// lst_message.setAdapter(adapter);\n\n Get_Email_data email = new Get_Email_data();\n email.execute();\n\n lst_message.setOnItemClickListener(new OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // TODO Auto-generated method stub\n String messageid = mEmail.get(position).getMessageId();\n String SenderEmailId = mEmail.get(position).getSender_Email_Id();\n String Subject = mEmail.get(position).getSubject();\n String Body = mEmail.get(position).getBody();\n String Time = mEmail.get(position).getTime();\n\n Log.i(\"System out\", \"Click on :\" + messageid);\n\n Bundle bdl = new Bundle();\n bdl.putString(\"messageid\", messageid);\n// bdl.putString(\"SenderEmailId\", SenderEmailId);\n// bdl.putString(\"Subject\", Subject);\n// bdl.putString(\"Body\", Body);\n// bdl.putString(\"Time\", Time);\n Intent intent = new Intent(getActivity(),\n Emails_DetailsActivity.class);\n intent.putExtras(bdl);\n startActivity(intent);\n\n }\n });\n setHasOptionsMenu(true);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return v;\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_chat, container, false);\n ButterKnife.bind(this, view);\n\n utils = (((MainActivity) getActivity()).getUtils());\n\n setChatPartner(utils.chatUser, view);\n\n chatMessages = new ArrayList<>();\n listAdapter = new ChatListAdapter(chatMessages, getContext());\n\n ListView chatListView = view.findViewById(R.id.chat_list_view);\n\n chatListView.setAdapter(listAdapter);\n\n\n loadRecievedMessages();\n loadSentMessages();\n loadChatMessagesInFile();\n\n sortMessages();\n\n return view;\n }", "@FXML\n public void initialize() {\n EventManager.getInstance().registerListener(MessageEvent.class, this::getMessage);\n EventManager.getInstance().registerListener(ChangeChatEvent.class, this::changeChat);\n\n messages = FXCollections.observableArrayList();\n sortedMessages = new SortedList<>(messages, Comparator.comparing(IMessageIn::getTimeStamp));\n messageView.setItems(sortedMessages);\n\n messageView.setCellFactory(param -> new ListCell<IMessageIn>() {\n @Override\n protected void updateItem(IMessageIn item, boolean empty) {\n super.updateItem(item, empty);\n if (empty || item == null){\n setText(null);\n setGraphic(null);\n } else {\n setText(item.getUser().getName() + \" | \" + item.getContent());\n }\n setOnMouseEntered(event -> {\n if (empty || item == null){\n setText(null);\n setGraphic(null);\n } else {\n Tooltip tt = new Tooltip(\"\" + item.getTimeStamp());\n setTooltip(tt);\n }\n\n });\n }\n });\n // Scrolls to the newest message\n Platform.runLater( () -> messageView.scrollTo(messages.size()-1) );\n Platform.runLater(() -> {\n ScrollBar bar = (ScrollBar) messageView.lookup(\".scroll-bar:vertical\");\n bar.valueProperty().addListener((observableValue, number, t1) -> {\n if (number.doubleValue() != 0 && t1.doubleValue() == 0 && canGetMore) {\n int page = messages.size() / 20;\n RequestResponse<List<? extends IMessageIn>> response = GUI.getInstance().getBusiness().getMessages(page);\n List<? extends IMessageIn> newMessages = response.getResponse();\n newMessages.removeAll(messages);\n if (!newMessages.isEmpty()) {\n messages.addAll(newMessages);\n messageView.scrollTo(response.getResponse().get(0));\n } else {\n canGetMore = false;\n }\n }\n });\n });\n }", "@Override\n protected void populateView(View v, ChatMensajes model, int position) {\n TextView messageText = (TextView)v.findViewById(R.id.message_text);\n TextView messageUser = (TextView)v.findViewById(R.id.message_user);\n TextView messageTime = (TextView)v.findViewById(R.id.message_time);\n\n // Set their text\n messageText.setText(model.getMessageText());\n messageUser.setText(model.getMessageUser());\n\n // Format the date before showing it\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\",\n model.getMessageTime()));\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n final ViewHolder holder;\n\n // OK, I found my ViewHolder... is anything null around these\n // here parts?\n if (convertView == null) {\n convertView = inflater.inflate(resource, parent, false);\n holder = new ViewHolder(convertView);\n convertView.setTag(holder);\n } else {\n holder = (ViewHolder) convertView.getTag();\n }\n\n\n // Now would be a good time to get the data for this message\n DateChat message = getItem(position);\n\n // Figure out who sent it, and populate the view properly\n if (message.getSender().getObjectId().equals(DateUser.getCurrentUser().getObjectId())) {\n holder.messageOther.setVisibility(View.INVISIBLE);\n holder.messageCurrent.setVisibility(View.VISIBLE);\n holder.messageCurrent.setText(message.getChatText());\n } else {\n holder.messageCurrent.setVisibility(View.INVISIBLE);\n holder.messageOther.setVisibility(View.VISIBLE);\n holder.messageOther.setText(message.getChatText());\n }\n\n return convertView;\n }", "private void fillUsingSingleSMS() {\n\t\tString temp[] = new String[1];\n\t\ttemp[0] = messageBody;\n\t\tsmsThreadList.setAdapter(new ArrayAdapter<String>(this,\n\t\t\t\tR.layout.sms_thread_list_sender_row_new,\n\t\t\t\tR.id.sms_thread_list_row_descrip, temp));\n\n\t}", "@Override\n public int getCount() {\n return mChatListItems.size();\n }", "@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tLayoutInflater inflater = LayoutInflater.from(tc);\n\t\tViewhoder viewhoder = new Viewhoder();\n\t\tif (convertView == null) {\n\t\t\tconvertView = inflater.inflate(R.layout.msglist_item, null);\n\t\t\tviewhoder.title = (TextView) convertView.findViewById(R.id.title);\n\t\t\tviewhoder.time = (TextView) convertView.findViewById(R.id.tiem);\n\t\t\tviewhoder.tel = (TextView) convertView.findViewById(R.id.tel);\n\t\t\tviewhoder.che = (TextView) convertView.findViewById(R.id.che);\n\t\t\tviewhoder.name = (TextView) convertView.findViewById(R.id.name);\n\t\t\tviewhoder.ishide = (LinearLayout) convertView.findViewById(R.id.zhanbai1is);\n\t\t\tviewhoder.zhanbai = (TextView) convertView.findViewById(R.id.zhanbai);\n\t\t\tviewhoder.ishide.setVisibility(View.GONE);\n\t\t\tconvertView.setTag(viewhoder);\n\t\t} else {\n\t\t\tviewhoder = (Viewhoder) convertView.getTag();\n\t\t\tviewhoder.ishide.setVisibility(View.GONE);\n\t\t}\n\t\tfinal Data data = list.get(position);\n\n\t\tString CarType = DB_data.getcodename(\"Stuent3\", \"codeName\", \"code\", data.CarType);\n\n\t\tString BuyTime = DB_data.getcodename(\"Stuent2\", \"codeName\", \"code\", data.BuyTime);\n\n\t\tviewhoder.title.setText((data.Message) == \"\" || (data.Message) == null ? \"暂无数据\" : data.Message + \"\");\n\t\tviewhoder.name\n\t\t\t\t.setText((data.CustomerName) == \"\" || (data.CustomerName) == null ? \"暂无数据\" : data.CustomerName + \"\");\n\t\tviewhoder.time.setText((BuyTime) == \"\" || (BuyTime) == null ? \"暂无数据\" : BuyTime + \"\");\n\t\tviewhoder.tel.setText((data.Phone) == \"\" || (data.Phone) == null ? \"暂无数据\" : data.Phone + \"\");\n\t\tviewhoder.che.setText((CarType) == \"\" || (CarType) == null ? \"暂无数据\" : CarType + \"\");\n\n\t\tviewhoder.ishide.setVisibility(View.GONE);\n\t\tif (data.MessageType == 4 || data.equals(\"4\")) {\n\t\t\tSystem.out.println(data.MessageType);\n\t\t\tSystem.out.println(position);\n\t\t\tviewhoder.ishide.setVisibility(View.VISIBLE);\n\t\t\tviewhoder.zhanbai.setText(data.FailReason);\n\t\t}\n\t\tconvertView.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tswitch (data.MessageType) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttc.startActivity(new Intent(tc, AllotActivity.class));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 2:\n\t\t\t\t\ttc.startActivity(new Intent(tc, Will_Activity.class));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 3:\n\t\t\t\t\ttc.startActivity(new Intent(tc, OvertimeActivity.class));\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 4:\n\t\t\t\t\ttc.startActivity(new Intent(tc, DefeatActivity.class));\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\treturn convertView;\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.activity_talk);\n chatList=new ArrayList<HashMap<String,Object>>();\n addTextToList(\"不管你是谁\", ME);\n addTextToList(\"群发的我不回\\n ^_^\", OTHER);\n addTextToList(\"哈哈哈哈\", ME);\n addTextToList(\"新年快乐!\", OTHER);\n nameText = (TextView) findViewById(R.id.chat_contact_name);\n\n Intent getIntent = getIntent();\n nameText.setText(getIntent.getStringExtra(\"name\"));\n\n cancelButton=(ImageView)findViewById(R.id.cancel_button);\n chatSendButton=(ImageView) findViewById(R.id.chat_bottom_sendbutton);\n editText=(EditText)findViewById(R.id.chat_bottom_edittext);\n editText.addTextChangedListener(mTextWatcher);\n chatListView=(ListView)findViewById(R.id.chat_list);\n\n adapter=new MyChatAdapter(this,chatList,layout,from,to);\n\n cancelButton.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n chatSendButton.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n String myWord=null;\n\n /**\n * 这是一个发送消息的监听器,注意如果文本框中没有内容,那么getText()的返回值可能为\n * null,这时调用toString()会有异常!所以这里必须在后面加上一个\"\"隐式转换成String实例\n * ,并且不能发送空消息。\n */\n\n myWord=(editText.getText()+\"\").toString();\n if(myWord.length()==0)\n return;\n editText.setText(\"\");\n addTextToList(myWord, ME);\n /**\n * 更新数据列表,并且通过setSelection方法使ListView始终滚动在最底端\n */\n adapter.notifyDataSetChanged();\n chatListView.setSelection(chatList.size()-1);\n\n }\n });\n chatListView.setAdapter(adapter);\n }", "@Override\n\tpublic void createAndAttachView(int id, FrameLayout frame) {\n\t\tLayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);\n\t\tView view = inflater.inflate(R.layout.sms_thread_list, frame, true);\n\n\t\tsmsThreadList = (ListView) view.findViewById(R.id.sms_thread_listview);\n\t\tsmsThreadListHeader = (TextView) view\n\t\t\t\t.findViewById(R.id.sms_thread_list_header);\n\t\tsmsThreadListSendButton = (Button) view\n\t\t\t\t.findViewById(R.id.sms_thread_list_send_button);\n\t\tsmsThreadListSendMessage = (EditText) view\n\t\t\t\t.findViewById(R.id.sms_thread_list_send_message);\n\n\t\tsenderRowView = null;\n\t\tsenderRowTitle = null;\n\t\tsenderRowDescrip = null;\n\t\tuserRowView = null;\n\t\tuserRowTitle = null;\n\t\tuserRowDescrip = null;\n\n\t\tsmsThreadListSendButton.setOnClickListener(new View.OnClickListener() {\n\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString send_message = smsThreadListSendMessage.getText()\n\t\t\t\t\t\t.toString();\n\t\t\t\tif (send_message.toString().trim() != \"\") {\n\t\t\t\t\tSmsManager sms = SmsManager.getDefault();\n\t\t\t\t\tsms.sendTextMessage(senderNumber, null, send_message, null,\n\t\t\t\t\t\t\tnull);\n\t\t\t\t\tContentValues values = new ContentValues();\n\t\t\t\t\tvalues.put(\"address\", senderNumber);\n\t\t\t\t\tvalues.put(\"body\", send_message);\n\t\t\t\t\tgetContentResolver().insert(\n\t\t\t\t\t\t\tUri.parse(\"content://sms/sent\"), values);\n\t\t\t\t\tfillSMSThreadList();\n\t\t\t\t\tsmsThreadListSendMessage.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tfillSMSThreadList();\n\n\t\tfinal int id_for_close = id;\n\n\t}", "@Override\r\n protected void populateView(View v, ChatMesso model, int position) {\n TextView messageText,messageUser,messageTime;\r\n messageText=(TextView)v.findViewById(R.id.message_text);\r\n messageUser=(TextView)v.findViewById(R.id.message_user);\r\n messageTime=(TextView)v.findViewById(R.id.message_time);\r\n\r\n messageText.setText(model.getMessageText());\r\n messageUser.setText(model.getMessageUser());\r\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\", model.getMessageTime()));\r\n\r\n }", "@Override\n\t\t\tpublic void handleMessage(final Message msg){\n\t\t\t\t\t\t if(msg.what<listno){ \n\t\t\t loadData(); \n\t\t\t \n\t\t\t adapter.notifyDataSetChanged(); //数据集变化后,通知adapter \n\t\t\t listView.setSelection(visibleLastIndex - visibleItemCount + 1); //设置选中项 \n\t\t\t loadmoretext.setText(\"Load More\");\n\t\t\t } else{\n\t\t\t \t if(listno>3){\n\t\t\t\t\t \t loadmoretext.setText(\"All Loaded\");\n\t\t\t\t\t \t }else{\n\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t \t loadmoretext.setText(\"\");\n\t\t\t\t\t\t\t \n\t\t\t\t\t \t }\n\t\t\t }\n\t\t\t \n\t\t\t loadMorepb.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\n\t\t \t }", "@Override\n public void onClick(View v) {\n String content=inputText.getText().toString();\n if(!\"\".equals(content)){\n Msg msg=new Msg(content,Msg.TYPE_SENT);\n msgList.add(msg);\n adapter.notifyDataSetChanged();\n msgListView.setSelection(msgList.size());\n inputText.setText(\"\");\n msg=new Msg(\"中央也支持他吗?\",Msg.TYPE_RECEIVED);\n msgList.add(msg);\n adapter.notifyDataSetChanged();\n msgListView.setSelection(msgList.size());\n }\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_messag_r, container, false);\n\n\n\n send = view.findViewById(R.id.sendButton);\n //send.setOnClickListener(onSend);\n editText = view.findViewById(R.id.editText);\n //userName = view.findViewById(R.id.message_user);\n //time = view.findViewById(R.id.message_time);\n messageList = view.findViewById(R.id.recyclerMessageView);\n messageList.setLayoutManager(new LinearLayoutManager(getActivity()));\n //adapter = new MessagrRecycleViewAdapter(getActivity(), messages);\n //adapter = new MessagrRecycleViewAdapter(getActivity(),infMessages);\n ////adapter.setClickListener(this);\n\n\n messageList.setItemAnimator(new DefaultItemAnimator());\n\n //DocumentReference docRef = db.collection(\"cities\").document(\"BJ\");\n //mDocRef.get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n // @Override\n // public void onSuccess(DocumentSnapshot documentSnapshot) {\n // //City city = documentSnapshot.toObject(City.class);\n // inputInfo = documentSnapshot.toObject(ChatMessage.class);\n //Toast.makeText(getActivity(), inputInfo.getMessageUser(), Toast.LENGTH_LONG).show();\n // messages.add(inputInfo.getMessageText());\n //userName.setText(\"Andy\");\n // adapter.notifyDataSetChanged();\n //}\n //});\n //infMessages.clear();\n //getMessageFromDataBase();\n\n\n\n send.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String chatRoomName = ((MainActivityTenant)getActivity()).chatRoomNameInMainActivityTenant;\n String peopleName = ((MainActivityTenant)getActivity()).chatPeopleName;\n if(!editText.getText().toString().equals(\"\")){\n //Toast.makeText(getActivity(), editText.getText().toString(), Toast.LENGTH_SHORT).show();\n messageSend= new ChatMessage();\n\n messageSend.setMessageUser(peopleName);\n messageSend.setMessageText(editText.getText().toString());\n messageSend.setChatRoomName(chatRoomName);\n\n String sendDate = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.getDefault()).format(new Date());\n DateFormat sendTime = new SimpleDateFormat(\"hh:mm:ss \");\n String formatTime = sendTime.format(new Date());\n messageSend.setMessageTime(sendDate + \" \" + formatTime);\n\n\n sendDataTodataBase();\n\n\n editText.setText(\"\");\n }else{\n Toast.makeText(getActivity(), \"message can not be empty\", Toast.LENGTH_SHORT).show();\n }\n adapter.notifyDataSetChanged();\n\n editText.setText(\"\");\n\n\n }\n });\n\n return view;\n }", "private void initPullToRefreshListView(PullToRefreshListView msgList,\n BaseAdapter adapter) {\n Log.d(\"info\", \"create list\");\n msgList.setMode(PullToRefreshBase.Mode.BOTH);\n msgList.setOnRefreshListener(new MyOnRefreshListener2(msgList));\n msgList.setAdapter(adapter);\n loadData();\n }", "private void updateListView() {\n if (smsListView.getAdapter() == null) {\n Log.d(TAG, \"updateListView: set new adapter\");\n smsListView.setAdapter(new SmsListAdapter(SmsListActivity.this, getDataProviderManager(),\n getLayoutInflater()));\n smsListView.setEmptyView(findViewById(R.id.nosms));\n smsListView.setOnItemClickListener(new OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int index, long itemId) {\n if (itemId != -1) {\n Intent smsDetails = new Intent(SmsListActivity.this, SmsDetailsActivity.class);\n smsDetails.putExtra(EXTRAS_KEY_SMSID, Long.valueOf(itemId));\n startActivityForResult(smsDetails, R.id.requestCode_sms_changeInDetailView);\n }\n }\n });\n\n smsListView.setOnItemLongClickListener(new OnItemLongClickListener() {\n\n @Override\n public boolean onItemLongClick(AdapterView<?> arg0, View arg1, int index, long itemId) {\n return showItemLongClickMenu(arg0, itemId, index);\n }\n });\n } else {\n Log.d(TAG, \"updateListView: notifyDataSetChanged\");\n ((SmsListAdapter) smsListView.getAdapter()).clearImageCache();\n ((SmsListAdapter) smsListView.getAdapter()).notifyDataSetChanged();\n }\n\n }", "public View getView(int position, View convertView, ViewGroup parent) {\n\t\t\t\r\n\t\t\tmessage item = list.get(position);\r\n\t\t\tif (convertView == null) {\r\n\t\t\t\tholder = new ViewHolder();\r\n\t\t\t\t\tconvertView = LayoutInflater.from(MessageActivity.this)\r\n\t\t\t\t\t\t\t.inflate(R.layout.message, null);\r\n\t\t\t\tholder.face = (CircleImageView) convertView.findViewById(R.id.face);\r\n\t\t\t\tholder.name = (TextView) convertView.findViewById(R.id.name);\r\n\t\t\t\tholder.content = (TextView) convertView\r\n\t\t\t\t\t\t.findViewById(R.id.content);\r\n\t\t\t\tholder.time = (TextView) convertView.findViewById(R.id.publish);\r\n\t\t\t\tconvertView.setTag(holder);\r\n\t\t\t} else {\r\n\t\t\t\t\tconvertView.setTag(holder);\r\n\t\t\t}\r\n\t\t\tholder.face.setImageBitmap(item.getBitmap());\r\n\t\t\tholder.name.setText(item.getName());\r\n\t\t\tholder.content.setText(item.getContent());\r\n\t\t\tholder.time.setText(item.getTime());\r\n\t\t\treturn convertView;\r\n\t\t}", "private void initView() {\n\t\trl_edit = (RelativeLayout) findViewById(R.id.rl_edit);\n\t\ttv_all=(TextView) findViewById(R.id.tv_all);\n\t\ttv_dle=(TextView) findViewById(R.id.tv_dle);\n\t\ttv_all.setOnClickListener(this);\n\t\ttv_dle.setOnClickListener(this);\n\t\trl_wd = (RelativeLayout) findViewById(R.id.main_rl_my);\n\t\trl_wd.setOnClickListener(this);\n\t\tmain_rl_gwc = (RelativeLayout) findViewById(R.id.main_rl_gwc);\n\t\tmain_rl_gwc.setOnClickListener(this);\n\t\trl_sy = (RelativeLayout) findViewById(R.id.main_rl_sy);\n\t\trl_sy.setOnClickListener(this);\n\n\t\tnext_sure = (TextView) findViewById(R.id.next_sure);\n\t\tnext_sure.setVisibility(View.VISIBLE);\n\t\tnext_sure.setText(\"确认\");\n\t\tnew TitleMenuUtil(MyMessage.this, \"我的消息\").show();\n\t\tmyAdapter = new MessageAdapter(MyMessage.this, myList);\n\t\teva_nodata = (LinearLayout) findViewById(R.id.eva_nodata);\n\t\tXlistview = (XListView) findViewById(R.id.x_listview);\n\t\t// refund_listview.getmFooterView().getmHintView().setText(\"�Ѿ�û�������\");\n\t\tXlistview.setPullLoadEnable(true);\n\t\tXlistview.setXListViewListener(this);\n\t\tXlistview.setDivider(null);\n\n\t\tXlistview.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t Intent i = new Intent(MyMessage.this, MymsgDetail.class);\n\t\t\t\t i.putExtra(\"id\", myList.get(position-1).getId()+\"\");\n\t\t\t\t startActivity(i);\n\t\t\t}\n\t\t});\n\t\tXlistview.setAdapter(myAdapter);\n\n\t\tnext_sure.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (MyApplication.getIsSelect()) {\n\t\t\t\t\t// ��������ɾ�����\n\t\t\t\t\tnext_sure.setText(\"取消\");\n\t\t\t\t\tMyApplication.setIsSelect(false);\n\t\t\t\t\tmyAdapter.notifyDataSetChanged();\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\trl_editno.setVisibility(View.VISIBLE);\n\t\t\t\t\trl_edit.setVisibility(View.GONE);\n\t\t \n\t\t\t\t} else {\n\t\t\t\t\tnext_sure.setText(\"删除\");\n\t\t\t\t\tMyApplication.setIsSelect(true);\n\t\t\t\t\trl_edit.setVisibility(View.VISIBLE);\n\t\t\t\t\trl_editno.setVisibility(View.GONE);\n\t\t\t\t\tmyAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_chat, container, false);\n recyclerView = view.findViewById(R.id.chat_list);\n firebaseAuth = FirebaseAuth.getInstance();\n user_online_id = firebaseAuth.getCurrentUser().getUid();\n UserReference = FirebaseDatabase.getInstance().getReference();\n FriendReference = FirebaseDatabase.getInstance().getReference().child(\"Friends\").child(user_online_id);\n UserReference.keepSynced(true);\n FriendReference.keepSynced(true);\n messageRefrenc = FirebaseDatabase.getInstance().getReference().child(\"Message\");\n LinearLayoutManager linearLayout = new LinearLayoutManager(getActivity());\n linearLayout.setReverseLayout(true);\n linearLayout.setStackFromEnd(true);\n recyclerView.setLayoutManager(linearLayout);\n return view;\n }", "@Override\r\n public void onClick(View v) {\n myWord=null;\r\n\r\n /**\r\n * 这是一个发送消息的监听器,注意如果文本框中没有内容,那么getText()的返回值可能为\r\n * null,这时调用toString()会有异常!所以这里必须在后面加上一个\"\"隐式转换成String实例\r\n * ,并且不能发送空消息。\r\n */\r\n myWord=(editText.getText()+\"\").toString();\r\n if(myWord.length()==0)\r\n return;\r\n editText.setText(\"\");\r\n addTextToList(myWord, ME);\r\n /**\r\n * 更新数据列表,并且通过setSelection方法使ListView始终滚动在最底端\r\n */\r\n adapter.notifyDataSetChanged();\r\n chatListView.setSelection(chatList.size()-1);\r\n\r\n new Thread() {\r\n\r\n @Override\r\n public void run() {\r\n //String messageStr = editText.getText().toString();\r\n //handler.sendEmptyMessage(2);\r\n\r\n///////////////////////////////////////////////////////////////////////////////////////\r\n//发送聊天消息\r\n Map<String, String> paprams = new HashMap<String, String>();\r\n paprams.put(\"operation\", \"send\");\r\n //用户自己的id\r\n paprams.put(\"fromID\", ffd_MainActivity.id);\r\n paprams.put(\"toID\",toID);\r\n paprams.put(\"time\", \"1111111\");\r\n paprams.put(\"content\", myWord);\r\n\r\n String result = new HttpUtil().post(CommonUrl.Chat, paprams);\r\n\r\n///////////////////////////////////////////////////////////////////////////////////////\r\n\r\n //Message msg = new Message();\r\n //msg.what = 1;\r\n //msg.obj = \"fromID:\" + user.getUserID() + \"\\ttoID\" + toId + \"\\ttime:\" + \"2016-3-13\" + \"\\tcontent:\" + messageStr;\r\n }\r\n\r\n }.start();\r\n\r\n }", "@Override\n\tpublic void onMessageReceived(List<EMMessage> messages) {\n\t\tsuper.onMessageReceived(messages);\n\t\tconversationListFragment = new ConversationListFragment();\n\t\tconversationListFragment.refresh();\n\t}", "@Override\n protected void populateView(View v, ChatMessage model, int position) {\n TextView messageText = (TextView)v.findViewById(R.id.message_text);\n TextView messageUser = (TextView)v.findViewById(R.id.message_user);\n TextView messageTime = (TextView)v.findViewById(R.id.message_time);\n\n // Set their text\n messageText.setText(model.getMessageText());\n messageUser.setText(model.getMessageUser());\n\n // Format the date before showing it\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\",\n model.getMessageTime()));\n }", "private void afficher_les_messages() {\n List<Message> liste_message = ticket_courant.getMessage();\n String texte = \"\";\n for(Message mess: liste_message){\n texte += mess.getExpediteur()+ \" : \"+mess.getTexte()+\"\\n\";\n }\n aff_message.setText(texte);\n /*String[] tab_messages_brut = {\"\"};\n int incr = 0;\n for (Message message : liste_message) {\n tab_messages_brut[incr] = message.getTexte();\n incr++;\n }\n /*JList<String> Liste_messages = new JList<>(tab_messages_brut);\n Conteneur_liste.removeAll();\n Conteneur_liste.add(Liste_messages);\n Liste_messages.setVisible(true);\n Conteneur_liste.updateUI();*/\n }", "@Override\n protected void populateView(View v, ChatMessage model, int position) {\n TextView messageText = (TextView)v.findViewById(R.id.message_text);\n TextView messageUser = (TextView)v.findViewById(R.id.message_user);\n TextView messageTime = (TextView)v.findViewById(R.id.message_time);\n // Set their text\n messageText.setText(model.getMessageText());\n messageUser.setText(model.getMessageUser());\n\n // Format the date before showing it\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\",\n model.getMessageTime()));\n }", "@Override\n\tprotected void setupListView() {\n\t\tfinal int elementLayout = R.layout.image_selectable_list_item;\n\t\tfinal int imageView = R.id.imageView1;\n\t\tfinal int textView = R.id.textView1;\n\n\t\tmQueryListener = new QueryListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onError() {\n\t\t\t\tmAdapter = null;\n\t\t\t\tsetListAdapter(null);\n\t\t\t\tgetListView().invalidateViews();\n\t\t\t\tsetEmptyText(getString(R.string.retrievalError));\n\t\t\t\tmProgressBar.setVisibility(View.GONE);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(double data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(boolean data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(ObjectPrx data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(QueryModel data, boolean saved) {\n\t\t\t\tif (saved) {\n\t\t\t\t\tmQueryModel = data;\n\t\t\t\t\tArrayList<UserTypPrx> adapterData = new ArrayList<UserTypPrx>(\n\t\t\t\t\t\t\tdata.data.size());\n\t\t\t\t\tfor (ObjectPrx oprx : data.data)\n\t\t\t\t\t\tadapterData.add(UserTypPrxHelper.checkedCast(oprx));\n\t\t\t\t\tif (mAdapter == null) {\n\t\t\t\t\t\tmAdapter = new UserListAdapter(MyMessagesActivity.this,\n\t\t\t\t\t\t\t\telementLayout, imageView, textView, adapterData);\n\t\t\t\t\t\tsetListAdapter(mAdapter);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmAdapter.addAll(adapterData);\n\t\t\t\t\t}\n\t\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\t\tmProgressBar.setVisibility(View.GONE);\n\t\t\t\t\tif (mAdapter.getCount() <= 0)\n\t\t\t\t\t\tsetEmptyText(getString(R.string.noMessagesFound));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}", "private void ShowData() {\n\t\tif (messages != null) {\r\n\t\tAdapterMessages tva = new AdapterMessages(this, messages,R.layout.messages_row);\r\n\t\tsetListAdapter(tva);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tnew AlertDialog.Builder(this).setTitle(\"Error\")\r\n\t\t\t.setPositiveButton(\"OK\", null).setMessage(\r\n\t\t\t\t\t\"There was an error retrieving your messages, check your login information or try again later.\")\r\n\t\t\t.show();\r\n\t\t}\r\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\tString im_records;\r\n\t\tString peerId = getIntent().getExtras().getString(\"peer_row_id\");\r\n\t\tListView lv = (ListView) this.getListView();\r\n\t\tlv.setBackgroundResource(R.drawable.cyan_background);\r\n\t\tall_data = new ArrayList<ArrayList>();\r\n\r\n\t\tString id, message, source, destination, time, length;\r\n\t\tHistoryLog query = new HistoryLog(this);\r\n\t\tquery.open();\r\n\r\n\t\tim_records = query.getImData(peerId);\r\n\t\tStringTokenizer stok = new StringTokenizer(im_records, \"|\");\r\n\r\n\t\twhile (stok.hasMoreTokens()) {\r\n\t\t\tid = stok.nextToken().trim();\r\n\t\t\tif (!id.equals(\"\")) {\r\n\t\t\t\tmessage = stok.nextToken().trim();\r\n\t\t\t\tsource = stok.nextToken();\r\n\t\t\t\tdestination = stok.nextToken();\r\n\t\t\t\ttime = stok.nextToken();\r\n\t\t\t\tlength = stok.nextToken();\r\n\r\n\t\t\t\tmyList = new ArrayList<String>();\r\n\r\n\t\t\t\tmyList.add(id);\r\n\t\t\t\tmyList.add(message);\r\n\t\t\t\tmyList.add(source);\r\n\t\t\t\tmyList.add(destination);\r\n\t\t\t\tmyList.add(time);\r\n\t\t\t\tmyList.add(length);\r\n\r\n\t\t\t\tall_data.add(myList);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tarrayAdapter = new ArrayAdapter<String>(this,\r\n\t\t\t\tandroid.R.layout.simple_list_item_1);\r\n\t\tsetListAdapter(arrayAdapter);\r\n\r\n\t\tfor (int i = 0; i < all_data.size(); i++) {\r\n\t\t\tString list_item = (String) all_data.get(i).get(0) + \": \"\r\n\t\t\t\t\t+ (String) all_data.get(i).get(1);\r\n\t\t\tarrayAdapter.add(list_item);\r\n\t\t}\r\n\r\n\t\tarrayAdapter.notifyDataSetChanged();\r\n\t\tquery.close();\r\n\r\n\t\tlv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n\t\t\tpublic void onItemClick(AdapterView<?> parentView, View childView,\r\n\t\t\t\t\tint position, long id) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString itemSelected = (((TextView) childView).getText())\r\n\t\t\t\t\t\t.toString();\r\n\t\t\t\tString info1, info2, info3, info4, info5, info6;\r\n\r\n\t\t\t\tArrayList<String> listo = all_data.get(position);\r\n\t\t\t\tinfo1 = listo.get(0);\r\n\t\t\t\tinfo2 = listo.get(1);\r\n\t\t\t\tinfo3 = listo.get(2);\r\n\t\t\t\tinfo4 = listo.get(3);\r\n\t\t\t\tinfo5 = listo.get(4);\r\n\t\t\t\tinfo5 = info5.replace(\"Current Time : \", \"\");\r\n\t\t\t\tinfo6 = listo.get(5);\r\n\r\n\t\t\t\tfinal String items[] = { \"Log #: \" + info1,\r\n\t\t\t\t\t\t\"Message: \" + info2, \"Source: \" + info3,\r\n\t\t\t\t\t\t\"Destination: \" + info4, \"Time: \" + info5,\r\n\t\t\t\t\t\t\"Message Length: \" + info6 };\r\n\r\n\t\t\t\tAlertDialog.Builder ab = new AlertDialog.Builder(\r\n\t\t\t\t\t\tImPeerHistoryList.this);\r\n\t\t\t\tab.setTitle(\"Message Details\");\r\n\t\t\t\tab.setItems(items, null);\r\n\t\t\t\tab.show();\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t}", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n view = convertView;\n //Log.e(\"getView \", \"getView\");\n\n if (convertView == null) {\n holder = new ViewHolder();\n\n view = mInflater.inflate(R.layout.chat_list_item, null,\n false);\n holder.textViewChatItemHeading = (TextView) view\n .findViewById(R.id.chatlist_heading);\n holder.textViewChatText = (TextView) view\n .findViewById(R.id.chatlist_updated_text);\n\n holder.txtviewChatCount = (TextView) view\n .findViewById(R.id.chatlist_updated_count);\n\n holder.txtViewChatTime = (TextView) view\n .findViewById(R.id.chatlist_time);\n\n holder.imageViewCar = (ImageView) view\n .findViewById(R.id.chatlist_car_image);\n\n holder.txtViewName = (TextView) view\n .findViewById(R.id.chatlist_Name);\n view.setTag(holder);\n } else {\n holder = (ViewHolder) view.getTag();\n }\n if (mChatListItems.get(position).getChat_with().equals(\"dealer\")) {\n DealerChatListItem mItem = (DealerChatListItem) mChatListItems.get(position);\n holder.textViewChatItemHeading.setText(mItem.getVariantId());\n holder.textViewChatText.setText(mItem.getLastchatmsg()/*\"i will go to wonderland hurray or awwwwwww\"*/);\n if (mItem.getTimestamp() != null)\n holder.txtViewChatTime.setText(/*mItem.getLastchattime()*/sdf.format(new Date(Long.parseLong(mItem.getTimestamp()))));\n else\n holder.txtViewChatTime.setText(mItem.getLastchattime());\n\n holder.txtViewName.setText(mItem.getName()/*\"10:00 pm\"*/);\n if (mChatListItems.get(position).getid() != null) {\n if (mMaxId < Integer.parseInt(mChatListItems.get(position).getid())) {\n mMaxId = Integer.parseInt(mChatListItems.get(position).getid());\n }\n }\n holder.txtviewChatCount.setVisibility(View.GONE);\n holder.textViewChatText.setTextColor(Color.BLACK);\n holder.textViewChatText.setTypeface(Typeface.DEFAULT);\n if (mItem.getUnreadmsgcount() != null && !mItem.getUnreadmsgcount().isEmpty() && Integer.parseInt(mItem.getUnreadmsgcount()) > 0 && mItem.getLastchatmsg().length() != 0) {\n holder.txtviewChatCount.setVisibility(View.VISIBLE);\n holder.txtviewChatCount.setText(mItem.getUnreadmsgcount());\n //holder.textViewChatText.setTextColor(Color.GREEN);\n holder.textViewChatText.setTypeface(Typeface.DEFAULT_BOLD);\n }\n imageLoader.displayImage(mItem.getImageurl(), holder.imageViewCar, options);\n Log.e(\"setDataInList \", \"mItem.getName() \" + mItem.getName());\n\n } else if (mChatListItems.get(position).getChat_with().equals(\"suppportuser\")) {\n ExpertChatListItem mItem = (ExpertChatListItem) mChatListItems.get(position);\n holder.textViewChatItemHeading.setText(mItem.getSupportroomname());\n holder.textViewChatText.setText(mItem.getLastchatmsg());\n holder.txtViewChatTime.setText(mItem.getLastchattime());\n if (mItem.getUnreadmsgcount() != null && !mItem.getUnreadmsgcount().isEmpty() && Integer.parseInt(mItem.getUnreadmsgcount()) > 0) {\n holder.txtviewChatCount.setVisibility(View.VISIBLE);\n holder.txtviewChatCount.setText(mItem.getUnreadmsgcount());\n }\n }\n return view;\n }", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n messages = new SimpleAdapter( \n this,\n list,\n R.layout.main_item_two_line_row,\n new String[] { \"time\",\"message\" },\n new int[] { R.id.time, R.id.message } );\n setListAdapter( messages );\n uiHandler = new Handler();\n pushRef = this;\n }", "@Override\n\tprotected void initData() {\n\t\tSharedPreferences sharedPref=PreferenceManager.getDefaultSharedPreferences(this);\n\t\ttoken=sharedPref.getString(\"token\", null);\t\n\t\tmAdapter=new MessageListViewAdapter(this);\n\t\tdatas=new ArrayList<String>();\n\t\tfor(int i=0;i<5;i++)\n\t\t\tdatas.add(\"消息标题 \"+i);\n\t\tmAdapter.setDatas(datas);\n\t\tlvMsg.setAdapter(mAdapter);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n activity=this.getActivity();\n View viewPQR=inflater.inflate(R.layout.fragment_pqr, container, false);\n list = (ListView) viewPQR.findViewById(R.id.list_message);\n editText = (EditText) viewPQR.findViewById(R.id.message);\n btn_send_message = (ImageButton) viewPQR.findViewById(R.id.btn_send);\n adapter = new CustomAdapter(list_chat,this.getActivity());\n\n btn_send_message.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String text = editText.getText().toString();\n ChatMo model = new ChatMo(text,true); // user send msg\n list_chat.add(model);\n tempMsg=editText.getText().toString();\n new SimsimiAPI().execute(list_chat);\n //remove\n editText.setText(\"\");\n }\n });\n\n\n return viewPQR;\n }", "@Override\n public void run() {\n chatListAdapter.add(response);\n chatListAdapter.notifyDataSetChanged();\n getListView().setSelection(chatListAdapter.getCount() - 1);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n btExit = new javax.swing.JButton();\n btClear = new javax.swing.JButton();\n btSend = new javax.swing.JButton();\n jScrollPane3 = new javax.swing.JScrollPane();\n taInput = new javax.swing.JTextArea();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane4 = new javax.swing.JScrollPane();\n onlineList = new javax.swing.JList<>();\n jScrollPane2 = new javax.swing.JScrollPane();\n tpMessage = new javax.swing.JTextPane();\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Online\");\n\n btExit.setBackground(new java.awt.Color(255, 102, 102));\n btExit.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 14)); // NOI18N\n btExit.setForeground(new java.awt.Color(255, 102, 102));\n btExit.setText(\"Exit\");\n\n btClear.setBackground(new java.awt.Color(102, 102, 255));\n btClear.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 14)); // NOI18N\n btClear.setForeground(new java.awt.Color(102, 102, 255));\n btClear.setText(\"Clear\");\n\n btSend.setBackground(new java.awt.Color(102, 102, 255));\n btSend.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 14)); // NOI18N\n btSend.setForeground(new java.awt.Color(102, 102, 255));\n btSend.setText(\"Send\");\n\n taInput.setColumns(20);\n taInput.setRows(5);\n jScrollPane3.setViewportView(taInput);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setText(\"Messages' content\");\n\n onlineList.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n onlineList.setForeground(new java.awt.Color(51, 51, 255));\n jScrollPane4.setViewportView(onlineList);\n\n tpMessage.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jScrollPane2.setViewportView(tpMessage);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 319, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btSend, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btClear, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(45, 45, 45))\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))\n .addComponent(btExit, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane2)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE))\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(btSend, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)\n .addComponent(btClear, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(12, 12, 12)\n .addComponent(btExit)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.messageoffriend_fragment, container, false);\n sql = new sqlite_linkmanmss(getActivity(), \"link\", null, 1);\n listView = (ListView)view.findViewById(R.id.list_signal);\n listView.setAdapter(new signallistview(getActivity(), getData()));\n listView.setOnCreateContextMenuListener(new View.OnCreateContextMenuListener() {\n @Override\n public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {\n AdapterView.AdapterContextMenuInfo am = (AdapterView.AdapterContextMenuInfo) menuInfo;\n int pos = (int)listView.getAdapter().getItemId(am.position);\n\t\t\t\tif(listall.get(pos).get(sql.KEY_ISNEWMESSAGE).equals(\"0\")) {\n menu.add(0, 0, menu.NONE, \"标记为未读\");\n }else {\n menu.add(0, 3, menu.NONE, \"标记为已读\");\n }\n menu.add(0,1,menu.NONE,\"置顶聊天\");\n menu.add(0,2,menu.NONE,\"删除该聊天\");\n }\n });\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if(listall != null && listall.size() != 0){\n listall.get(position).put(sqlite_linkmanmss.KEY_ISNEWMESSAGE,\"0\");\n listView.setAdapter(new signallistview(getActivity(), listall));\n Object type = listall.get(position).get(sqlite_linkmanmss.EKY_MESSAGETYPE);\n\t\t\t\t\tif(type != null && type.toString().equals(MSGTYPERECIMMEND)){\n\t\t\t\t\t\tIntent intent = new Intent(view.getContext(), RecommendFriendActivity.class);\n view.getContext().startActivity(intent);\n\t\t\t\t\t}else{\n Object account = listall.get(position).get(sqlite_linkmanmss.KEY_ACTNB);\n if(account != null){\n maeeage_onClick(view,account.toString());\n }\n\t\t\t\t\t}\n }\n }\n });\n\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"com.example.yang.updaterecv\");\n intentFilter.addAction(\"com.example.yang.Bluetoothutil\");\n msgUpadteReceiver = new MsgUpadteReceiver();\n //注册广播\n localBroadcastManager = LocalBroadcastManager.getInstance(getActivity());\n //本地广播管理器注册广播接收器\n localBroadcastManager.registerReceiver(msgUpadteReceiver, intentFilter);\n return view;\n }", "public View getView(int position, View convertView, ViewGroup parent) {\n\n username = LoginActivity.user.getUsername();\n\n\n ChatMessage chatMessageObj = getItem(position);\n View row = convertView;\n LayoutInflater inflater = (LayoutInflater) this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n// if(!ChatActivity.otherUser.equals(username) || chatMessageObj.left) {\n// row = inflater.inflate(R.layout.right, parent, false);\n//\n// }\n// else{\n// row = inflater.inflate(R.layout.left, parent, false);\n// }\n chatMessageObj.message.toLowerCase();\n if(chatMessageObj.message.contains(username)){\n row = inflater.inflate(R.layout.right, parent, false);\n }\n else {\n row = inflater.inflate(R.layout.left, parent, false);\n }\n\n\n//\n// if (chatMessageObj.left) {\n// row = inflater.inflate(R.layout.right, parent, false);\n// }else{\n// row = inflater.inflate(R.layout.left, parent, false);\n// }\n chatText = (TextView) row.findViewById(R.id.msgr);\n chatText.setText(chatMessageObj.message);\n return row;\n }", "@Override\n public int getItemCount() {\n int size = 0;\n size = messages.size();\n\n return size;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View v,\n final int position, final long id) {\n\n /**\n * If a user taps on a position which is not 999999999 in the view the user will have the message displayed to him from the sender\n */\n if (position != 999999999) {\n\n MainActivity.alertDialog = new AlertDialog.Builder(v.getContext());\n LayoutInflater factory = LayoutInflater.from(v.getContext());\n final View view = factory.inflate(R.layout.fragment_msg_viewer, null);\n\n final TextView cd = (TextView) view.findViewById(R.id.cdTimer);\n //text of message\n final TextView txt = (TextView) view.findViewById(R.id.MsgText);\n txt.setText(user.getMessages().get(position).getText());\n int countdown = 10000;\n if(user.getMessages().get(position).getTimer() != 0){\n countdown = 1000 * (user.getMessages().get(position).getTimer());\n }\n /**\n * A timer which deletes the message after a certain amount of time\n */\n new CountDownTimer(countdown,1000) {\n\n public void onTick(long millisUntilFinished) {\n cd.setText(\"seconds remaining: \" + millisUntilFinished / 1000);\n }\n\n public void onFinish() {\n\n cd.setText(\"Message erased\");\n txt.setText(\"\");\n listViewAdapter.notifyDataSetChanged();\n\n }\n }.start();\n\n /**\n * Handles the Done or reply button event by the user and deletes the message from the ListView and either takes the user to the ThirdFragment to reply or nothing at all\n */\n MainActivity.alertDialog.setView(view);\n MainActivity.alertDialog.setCancelable(true);\n MainActivity.alertDialog.setPositiveButton(\"Done\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n idMes = user.getMessages().get(position).getId();\n user.remMessage(position);\n subjects.remove(position);\n new delTask().execute();\n listViewAdapter.notifyDataSetChanged();\n numberOfContacts.setText(user.getMessages().size() + \" Messages\");\n\n }\n });\n\n MainActivity.alertDialog.setNegativeButton(\"Reply\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n SecondFragment.sendmsg(user.getMessages().get(position).getFrom());\n ThirdFragment.setMsg(user.getMessages().get(position).getFrom());\n\n idMes = user.getMessages().get(position).getId();\n user.remMessage(position);\n subjects.remove(position);\n new delTask().execute();\n listViewAdapter.notifyDataSetChanged();\n numberOfContacts.setText(user.getMessages().size() + \" Messages\");\n\n }\n });\n MainActivity.alertDialog.show();\n }\n }", "@Override\r\n\tpublic int getCount() {\n\t\t\r\n\t\treturn chat.size(); \r\n\t}", "public MessageHolder(@NonNull View itemView) {\r\n super(itemView);\r\n\r\n context = itemView.getContext();\r\n\r\n /// todo send recive audio file\r\n senderaudiobox = itemView.findViewById(R.id.SendAudio);\r\n reciveraudiobox = itemView.findViewById(R.id.ReciverAudio);\r\n\r\n senderaudiotime = itemView.findViewById(R.id.SenderAudioTime);\r\n reciveraudiotime = itemView.findViewById(R.id.ReciverAudioTime);\r\n senderaudiodate = itemView.findViewById(R.id.SenderAudioDate);\r\n /// todo send recive audio file\r\n\r\n // todo sender reciver message\r\n sendermessagelayout = itemView.findViewById(R.id.SenderMessageLayout);\r\n sendmessage = itemView.findViewById(R.id.SendMessageID);\r\n sendmessage_time = itemView.findViewById(R.id.SenderMessageTimeID);\r\n\r\n recivermessagelayout = itemView.findViewById(R.id.ReciverMessageLayout);\r\n recivemessage = itemView.findViewById(R.id.ReciverMessage);\r\n recivemessage_time = itemView.findViewById(R.id.ReciverMessageTime);\r\n\r\n recivershort_message = itemView.findViewById(R.id.ReciverShoetMessageTime);\r\n sendershort_message = itemView.findViewById(R.id.SenderShoetMessageTime);\r\n\r\n sendershotMessageDate = itemView.findViewById(R.id.SenderMessageShortDateID);\r\n SenderLOngMessageDate = itemView.findViewById(R.id.SenderMessageDateID);\r\n\r\n recivershortmessage_date = itemView.findViewById(R.id.ReciverShoetMessageDate);\r\n reciverlong_message_date = itemView.findViewById(R.id.ReciverLongMessagedate);\r\n\r\n // todo sender reciver message\r\n\r\n // todo sender and reciver image\r\n sendderimage = itemView.findViewById(R.id.SenderImageID);\r\n senderimagetime = itemView.findViewById(R.id.SenderImageTime);\r\n\r\n reciverimage = itemView.findViewById(R.id.ImageReciver);\r\n reciverimagetime = itemView.findViewById(R.id.ReciverTime);\r\n imagebox = itemView.findViewById(R.id.ImageLayoutID);\r\n sneder_image_date = itemView.findViewById(R.id.SenderImageDate);\r\n reciverimage_date = itemView.findViewById(R.id.ReciverImageDate);\r\n // todo sender and reciver image\r\n\r\n // todo sender and reciver pdf\r\n sender_pdf_box = itemView.findViewById(R.id.SenderPdfBox);\r\n reciver_pdf_box = itemView.findViewById(R.id.ReciverPdfBox);\r\n\r\n sender_pdf_time = itemView.findViewById(R.id.SenderPdfTime);\r\n senderPdfDate = itemView.findViewById(R.id.SenderPdfDate);\r\n reciver_pdf_time = itemView.findViewById(R.id.ReciverPdfTime);\r\n reciverpdf_date = itemView.findViewById(R.id.ReciverPdfDate);\r\n\r\n reciveraudiodate = itemView.findViewById(R.id.ReciverAudioDate);\r\n // todo sender and reciver pdf\r\n\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_contacta_centro, container, false);\n inputText = (EditText) rootView.findViewById(R.id.message_input);\n nomsUsuari();\n\n FireBaseConfiguracio fireBaseConfiguracio = new FireBaseConfiguracio();\n fireBaseConfiguracio.configFirebase(getContext());\n mFirebaseRef =fireBaseConfiguracio.getRutinesChat();\n\n\n inputText = (EditText) rootView.findViewById(R.id.message_input);\n inputText.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView textView, int actionId, KeyEvent keyEvent) {\n if (actionId == EditorInfo.IME_NULL && keyEvent.getAction() == KeyEvent.ACTION_DOWN) {\n enviarMissatge();\n }\n return true;\n }\n });\n\n\n\n rootView.findViewById(R.id.senChat).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n enviarMissatge();\n }\n });\n final ListView listView = (ListView)rootView.findViewById(R.id.chat);\n // Tell our list adapter that we only want 50 messages at a time\n\n\n Query queryRef = mFirebaseRef.orderByChild(\"uidUser\").equalTo(MainActivity.uid);\n mChatListAdapter = new ChatListAdapter(queryRef, getActivity(), R.layout.chat_missatge, mUsername,getContext());\n listView.setAdapter(mChatListAdapter);\n mChatListAdapter.registerDataSetObserver(new DataSetObserver() {\n @Override\n public void onChanged() {\n super.onChanged();\n listView.setSelection(mChatListAdapter.getCount() - 1);\n }\n });\n\n // Finally, a little indication of connection status\n mConnectedListener = mFirebaseRef.getRoot().child(\".info/connected\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n boolean connected = (Boolean) dataSnapshot.getValue();\n if (connected) {\n //Toast.makeText(ContactaCentro.this, \"Connected to Firebase\", Toast.LENGTH_SHORT).show();\n } else {\n //Toast.makeText(ContactaCentro.this, \"Disconnected from Firebase\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n // No-op\n }\n });\n\n return rootView;\n }", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tlistitem.clear();\n\t\t\t\tnew AsyncTask<Void, Void, Void>() {\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\tgetmessage_list(1);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\t\t\tif (count >= 19) {\n\t\t\t\t\t\t\txListView.startLoadMore();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\txListView.stopLoadMore();\n\t\t\t\t\t\t}\n\t\t\t\t\t\txListView.setRefreshSuccess();\n\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\tLog.d(TAG, \"jieshu\");\n\t\t\t\t\t}\n\t\t\t\t}.execute(null, null, null);\n\t\t\t}", "@Override\n public void run() {\n lvChatMsgList.setSelection(mitemListAdapter.getCount() - 1);\n }", "@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n if(messageEvent.getPath().equals(BTCommType.GET_CONTACTS.toString())) {\n dataMap = DataMap.fromByteArray(messageEvent.getData());\n contacts = new ContactSync(dataMap);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mAdapter.notifyDataSetChanged();\n loadAdapter();\n }\n });\n }\n\n if(messageEvent.getPath().equals(BTCommType.GET_DRAWINGS.toString())) {\n List<AMessage> messages = new ArrayList<AMessage>();\n DataMap data = DataMap.fromByteArray(messageEvent.getData());\n\n List<String> emojis = data.getStringArrayList(\"emojis\");\n List<Integer> pos = data.getIntegerArrayList(\"emojisPositions\");\n\n int messageAmount = data.getInt(\"amountOfMessages\");\n for (int i = 0; i < messageAmount; i++) {\n if(pos.contains(i)){\n Emoticon emoji = new Emoticon(EmoticonType.valueOf(emojis.get(0)).getRes());\n emojis.remove(0);\n messages.add(emoji);\n } else {\n Drawing drawing = new Drawing(data.getFloatArray(\"y-coordinates \" + i)\n , data.getFloatArray(\"x-coordinates \" + i)\n , data.getLongArray(\"drawing-times \" + i)\n , data.getStringArray(\"actions \" + i)\n , data.getByteArray(\"staticDrawing \" + i));\n messages.add(drawing);\n }\n\n }\n Log.e(\"drawings\", \"new drawings\");\n MessageHolder.getInstance().setDrawings(messages);\n if(messageAmount < 1){\n Toast.makeText(getApplicationContext(), \"No messages found\", Toast.LENGTH_SHORT).show();\n }\n else {\n Intent intent = new Intent(this, ConversationViewActivity.class);\n intent.putExtra(BTCommType.SEND_TO_CONTACT.toString(), contact);\n startActivity(intent);\n this.finish();\n }\n }\n }", "private void showChatPage(){\n lv_chat = (ListView) view_chat.findViewById(R.id.lv_chat);\n pb_loadChat = (ProgressBar) view_chat.findViewById(R.id.pb_load_chat);\n adapter = new ChatListAdapter(getContext(), chatList, self.getId());\n lv_chat.setAdapter(adapter);\n// lv_chat.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n// @Override\n// public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n// Log.d(TAG, \"click\");\n// String message = adapter.getItem(position).messageContent;\n// TextView textView = (TextView) view.findViewById(R.id.tv_otherText);\n// int visibility = textView.getVisibility();\n// if ( visibility == View.VISIBLE ) {\n// Log.d(TAG, \"<\" + message + \"> is visible\");\n// } else {\n// Log.d(TAG, \"<\" + message + \"> is invisible\");\n// }\n// }\n// });\n\n lv_chat.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n view_chat.requestFocus(); // remove focus from the EditText\n return false;\n }\n });\n\n lv_chat.setOnScrollListener(new AbsListView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n if ( scrollState == SCROLL_STATE_TOUCH_SCROLL ) {\n if ( lv_chat.getFirstVisiblePosition() == 0 && !isLoading && !isAllLoaded ){\n Log.d(\"ListView\",\"load more history\");\n loadMoreHistoryChat();\n }\n }\n }\n\n @Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n// if ( firstVisibleItem == 0 && totalItemCount > 0 ) {\n// if ( !isLoading && !isAllLoaded && isOverScrolling) {\n// loadMoreHistoryChat();\n// }\n// }\n }\n });\n loadChatHistory(CHAT_LIMIT,0,0); // load most recent CHAT_LIMIT chats\n fab_send = (FloatingActionButton) view_chat.findViewById(R.id.fab_send);\n fab_more = (FloatingActionButton) view_chat.findViewById(R.id.fab_more);\n fab_less = (FloatingActionButton) view_chat.findViewById(R.id.fab_less);\n fab_gallery = (FloatingActionButton) view_chat.findViewById(R.id.fab_gallery);\n view_functions = view_chat.findViewById(R.id.layout_function_menu);\n et_message = (EditText) view_chat.findViewById(R.id.et_message);\n et_message.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if ( hasFocus ) {\n if ( adapter != null ) {\n lv_chat.setSelection(adapter.getCount()-1); // scroll to bottom when gaining focus\n }\n } else {\n AppUtils.hideKeyboard(getContext(),v); // hide keyboard when losing focus\n }\n }\n });\n\n fab_send.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n sendTextMessage(et_message.getText().toString());\n }\n });\n\n fab_more.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n fab_more.setVisibility(View.GONE);\n view_functions.setVisibility(View.VISIBLE);\n }\n });\n\n fab_less.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n view_functions.setVisibility(View.GONE);\n fab_more.setVisibility(View.VISIBLE);\n LocalDBHelper localDBHelper = LocalDBHelper.getInstance(getContext());\n localDBHelper.clearAllImageCache();\n }\n });\n\n fab_gallery.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selectImage();\n }\n });\n\n et_message.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if ( s != null && s.length() > 0 ) {\n fab_send.setVisibility(View.VISIBLE);\n } else {\n fab_send.setVisibility(View.GONE);\n }\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n }", "public void updateInbox(ConversationObject c) {\n Log.e(\"New MessageActivity coming in\", c.toString());\n secretkey2 = (EditText) findViewById(R.id.secretkey);\n String secretkey = secretkey2.getText().toString();\n try {\n if(c.getBody().toString().contains(\"issa secret\") && c.getAddress().equals(number) || c.getAddress().equals(\"+1\"+ number)) {\n // convert the encrypted String message body to a byte\n // array\n String EncryptedMessage = c.getBody().toString().replace(\"issa secret\", \"\");\n byte[] msg = hex2byte(EncryptedMessage.getBytes());\n // decrypt the byte array\n byte[] result = decryptSMS(secretkey, msg);\n String DecryptedMessage = new String(result);\n //just formatting the decrypted message\n if (DecryptedMessage.contains(\"Sent: \")) {\n DecryptedMessage = DecryptedMessage.replace(\"Sent: \", \"\");\n }\n ConversationObject c1 = new ConversationObject(\"\", DecryptedMessage, c.getAddress(),0);\n convo.add(c1);\n adapter.notifyDataSetChanged();\n Log.e(\"HEEEELLLOOOO\", c1.toString());\n }else if(!c.getBody().toString().contains(\"issa secret\") && (c.getAddress().equals(number) || c.getAddress().equals(\"+1\"+ number))) {\n convo.add(c);\n adapter.notifyDataSetChanged();\n }\n listView.smoothScrollToPosition(convo.size()-1);\n } catch (Exception e) {\n // in the case of message corrupted or invalid key\n // decryption cannot be carried out\n convo.add(c);\n adapter.notifyDataSetChanged();\n Log.e(\"catch\", \"\" + e);\n }\n }", "private void initMessageBoard() {\n RecyclerView msgBoard = findViewById(R.id.home_MsgBoard);\n msgBoard.setLayoutManager(new LinearLayoutManager(this));\n ArrayList<UserAccount> temp = new ArrayList<UserAccount>();\n if (user.getFriendMatches() == null) {\n user.setFriendMatches(temp);\n Log.e(\"HomeView\", \"friendMatches was null\");\n }\n MessageBoardAdapter msgBoardAdapter =\n new MessageBoardAdapter(this, user.getFriendMatches(), user);\n msgBoard.setAdapter(msgBoardAdapter);\n }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\t// m_adapter.notifyDataSetChanged();\n\t\t\tif (m_mesgArry.size() > 0) {\n\t\t\t\tm_tvNoData.setVisibility(View.INVISIBLE);\n\t\t\t\tm_lvList.setVisibility(View.VISIBLE);\n\t\t\t\tm_adapter = new MessageListAdapter(m_context, m_mesgArry);\n\t\t\t\tm_lvList.setAdapter(m_adapter);\n\t\t\t} else {\n\t\t\t\tm_tvNoData.setVisibility(View.VISIBLE);\n\t\t\t\tm_lvList.setVisibility(View.INVISIBLE);\n\t\t\t\tm_tvNoData.setText(m_result);\n\t\t\t}\n\t\t\tm_progDialog.dismiss();\n\t\t}", "public void updateMessageList(Message[] messages) {\r\n\t\tif (!SwingUtilities.isEventDispatchThread()) {\r\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tlistMessages.setListData(messages);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tSystem.out.println(\"UI: Messages updated\");\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tchatAdapter.notifyDataSetChanged();\n\t\t\t\tchatListView.postInvalidate();\n\t\t\t\tchatListView.smoothScrollToPosition(chatAdapter.getCount());\n//\t\t\t\tinput.setText(\"\");\n\n\t\t\t}", "public void chatMandarin(){\n if(count == 1){\n ChatMessage chatMessage = new ChatMessage(side, getString(getResources().getIdentifier((\"quest\" + count), \"string\", getPackageName())));\n adapter.addItem(chatMessage);\n\n count=count+1;\n button.setVisibility(View.VISIBLE);\n }else if(count == 2 && mandarin_chat == true){\n //응이라고 대답했을때\n ChatMessage chatMessage = new ChatMessage(side, getString(getResources().getIdentifier((\"quest2\"), \"string\", getPackageName())));\n adapter.addItem(chatMessage);\n adapter.notifyDataSetChanged();\n recyclerView.setAdapter(adapter);\n count=4;\n\n yes.setText(\"그게뭔데?\");\n no.setText(\"멘탈관리자?\");\n button.setVisibility(View.VISIBLE);\n }else if(count == 2 && mandarin_chat == false) {\n ChatMessage chatMessage = new ChatMessage(side, getString(getResources().getIdentifier((\"quest3\"), \"string\", getPackageName())));\n adapter.addItem(chatMessage);\n adapter.notifyDataSetChanged();\n recyclerView.setAdapter(adapter);\n count = 4;\n yes.setText(\"그게뭔데?\");\n no.setText(\"멘탈관리자?\");\n button.setVisibility(View.VISIBLE);\n }else if(count == 4 || count == 5 || count == 6){\n button.setVisibility(View.INVISIBLE);\n ChatMessage chatMessage = new ChatMessage(side, getString(getResources().getIdentifier((\"quest\" + count), \"string\", getPackageName())));\n adapter.addItem(chatMessage);\n\n count=count+1;\n adapter.notifyDataSetChanged();\n recyclerView.setAdapter(adapter);\n if(count == 7) {\n picker.setVisibility(View.VISIBLE);\n message_picker.setMaxValue(4);\n message_picker.setMinValue(0);\n message_picker.setDisplayedValues(first);\n button.setVisibility(View.INVISIBLE);\n //count=count+1;\n }\n }else if(count == 7){\n ChatMessage chatMessage = new ChatMessage(side, getString(getResources().getIdentifier((\"quest\" + count), \"string\", getPackageName())));\n adapter.addItem(chatMessage);\n\n count=count+1;\n picker.setVisibility(View.INVISIBLE);\n chatText.setVisibility(View.VISIBLE);\n }else if(count == 9){\n ChatMessage chatMessage = new ChatMessage(side, getString(getResources().getIdentifier((\"quest\" + count), \"string\", getPackageName())));\n adapter.addItem(chatMessage);\n chatText.setVisibility(View.INVISIBLE);\n picker.setVisibility(View.VISIBLE);\n message_picker.setMaxValue(4);\n message_picker.setMinValue(0);\n message_picker.setDisplayedValues(second);\n count=count+1;\n }else if(count == 11){\n ChatMessage chatMessage = new ChatMessage(side, first_answer + getString(getResources().getIdentifier((\"quest\" + count), \"string\", getPackageName())));\n adapter.addItem(chatMessage);\n\n picker.setVisibility(View.INVISIBLE);\n third_layout.setVisibility(View.VISIBLE);\n count=count+1;\n }else if(count == 14){\n ChatMessage chatMessage = new ChatMessage(side, name + getString(getResources().getIdentifier((\"quest\" + count), \"string\", getPackageName())));\n picker.setVisibility(View.VISIBLE);\n third_layout.setVisibility(View.INVISIBLE);\n adapter.addItem(chatMessage);\n message_picker.setDisplayedValues(null);\n message_picker.setMaxValue(fourth.length-1);\n message_picker.setMinValue(0);\n message_picker.setDisplayedValues(fourth);\n count=count+1;\n }else if(count == 15){\n if(fourth_answer.equals(\"안 좋은 사건이 생겼어..\")){\n ChatMessage chatMessage = new ChatMessage(side, \"헥!,, 무슨일이다냥 나한테만 얘기해줘냥,,\");\n adapter.addItem(chatMessage);\n picker.setVisibility(View.INVISIBLE);\n chatText.setVisibility(View.VISIBLE);\n\n }else{\n ChatMessage chatMessage = new ChatMessage(side, \"오옹..! 별다른 일은 없냐 냥?\");\n adapter.addItem(chatMessage);\n picker.setVisibility(View.INVISIBLE);\n chatText.setVisibility(View.VISIBLE);\n }\n count=count+1;\n }else if(count == 16){\n ChatMessage chatMessage = new ChatMessage(side, \"그랬구나,,그랬구나\");\n adapter.addItem(chatMessage);\n chatText.setVisibility(View.INVISIBLE);\n picker.setVisibility(View.INVISIBLE);\n count=count+1;\n\n }else if(count == 17){\n int[] temp = {happyness, sadness, annoyed, depressed};\n\n Arrays.sort(temp);\n total_size = temp[3];\n if(temp[3] == happyness){\n emotion = \"행복\";\n emotion_result = \"happyness\";\n }\n else if(temp[3] == sadness){\n emotion = \"슬픔\";\n emotion_result = \"sadness\";\n }\n else if(temp[3] == annoyed) {\n emotion = \"짜증\";\n emotion_result = \"annoyed\";\n }\n else if(temp[3] == depressed){\n emotion = \"우울\";\n emotion_result = \"depressed\";\n }\n\n ChatMessage chatMessage = new ChatMessage(side, \"오늘 너의 하루는 \"+emotion+\"인 것 같다냥..!\");\n adapter.addItem(chatMessage);\n count=count+1;\n\n }else if(count == 18){\n ChatMessage chatMessage = new ChatMessage(side, \"니가 좋으면 나도 좋고 니가 슬프면 나도 슬프다냥,,\");\n adapter.addItem(chatMessage);\n count=count+1;\n }else if(count == 19){\n ChatMessage chatMessage = new ChatMessage(side, \"함께라서 좋은 \" + name + \"아 ,내가 오늘 너를 위해 선물을 준비했다냥 \\n 골라주라냥\");\n adapter.addItem(chatMessage);\n button.setVisibility(View.VISIBLE);\n yes.setText(\"명언\");\n no.setText(\"노래\");\n //count=count+1;\n }else if(count == 30){\n\n //노래\n ChatMessage chatMessage = new ChatMessage(side, \"지금 기분에 듣기 좋은 노래다냥! \\n 벌써 대화가 다 끝났다냥..\\n 그래도 내가 보고싶으면 언제든 다시 와라냥!\");\n adapter.addItem(chatMessage);\n button.setVisibility(View.VISIBLE);\n yes.setText(\"또올께 만다린!\");\n no.setText(\"생각좀 해보고..\");\n count = 40;\n }else if(count == 31){\n //명언\n ChatMessage chatMessage = new ChatMessage(side, \"지금 기분에 읽기 좋은 명언이다냥! \\n 벌써 대화가 다 끝났다냥..\\n 그래도 내가 보고싶으면 언제든 다시 와라냥!\");\n adapter.addItem(chatMessage);\n button.setVisibility(View.VISIBLE);\n yes.setText(\"또올께 만다린!\");\n no.setText(\"생각좀 해보고..\");\n count = 40;\n }else{\n ChatMessage chatMessage = new ChatMessage(side, getString(getResources().getIdentifier((\"quest\" + count), \"string\", getPackageName())));\n adapter.addItem(chatMessage);\n\n count=count+1;\n }\n recyclerView.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n recyclerView.scrollToPosition(adapter.getItemCount()-1);\n //message.arg1 = 0;\n }", "@Override\n public int getItemViewType(int position) {\n\n if(messages.get(position).getSender().equals(usename)){\n return 1;\n } else if(messages.get(position).getSender().equals(\"start\")){\n return 2;\n }else{\n return 0;\n }\n\n\n\n }", "private void startChatMessageFragment(ArrayList<MyMessage> messages) {\n if (this.selectedBook.getOwnerId().equals(this.userId)) {\n for (MyMessage message : messages) {\n if (!message.getReceiverId().equals(this.userId)) {\n this.receiverId = message.getReceiverId();\n break;\n }\n else if (!message.getSenderId().equals(this.userId)) {\n this.receiverId = message.getSenderId();\n break;\n }\n }\n }\n else {\n this.receiverId = this.selectedBook.getOwnerId();\n }\n\n //if messages is empty\n if (messages.size() == 0) {\n MyMessage message = new MyMessage(\n \" \", \" \", \" \", \" \", \" \", \" \", false );\n\n //if book is sender's book\n if (this.userId.equals(this.selectedBook.getOwnerId())) {\n //set message to message field not to add edittext field\n message.setText(\"MessageEnum.USER_OWNER\");\n }\n\n messages.add(message);\n }\n\n //update application status\n status = StatusEnum.STARTED_CHAT_MESSAGE;\n //hide search from menu\n this.menu.findItem(R.id.menu_search).setVisible(false);\n this.menu.findItem(R.id.add_book).setVisible(false);\n\n //open book view fragment\n //create bundle for fragment\n Bundle data = new Bundle();\n data.putSerializable(\"Messages\", messages);\n // Create new fragment and transaction\n chatMessageFragment = new ChatMessageFragment();\n //set arguments/bundle to fragment\n chatMessageFragment.setArguments(data);\n // consider using Java coding conventions (upper first char class names!!!)\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.activityAfterLoginId, chatMessageFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "public <MESSAGE extends IMessage>\n void setAdapter(MessagesListAdapter<MESSAGE> adapter, OnMessageGestureListener listener) {\n setAdapter(adapter, true);\n\n final ItemTouchHelper itemTouchHelper = new ItemTouchHelper(new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT) {\n\n @Override\n public boolean onMove(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, @NonNull RecyclerView.ViewHolder target) {\n return false;\n }\n\n @Override\n public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) {\n MESSAGE message = adapter.getMessageByIndex(viewHolder.getAdapterPosition());\n if (direction == ItemTouchHelper.LEFT) {\n listener.onSwipeLeft(message);\n } else if (direction == ItemTouchHelper.RIGHT) {\n listener.onSwipeRight(message);\n }\n\n if (listener.isRestoreSwiped()) {\n adapter.notifyDataSetChanged();\n } else {\n adapter.delete(message);\n }\n }\n });\n itemTouchHelper.attachToRecyclerView(this);\n }", "public List<MessageListItem> makeList(List<BMessage> list){\n return MessageListItem.makeList(mActivity, userID, list, customDateFormat);\n }" ]
[ "0.6858625", "0.6781842", "0.676211", "0.6740817", "0.67321557", "0.6731074", "0.67256063", "0.6713065", "0.668972", "0.6548658", "0.6546866", "0.6545928", "0.6533708", "0.6519664", "0.65065134", "0.6483621", "0.64830047", "0.64745915", "0.64273196", "0.64083046", "0.63760954", "0.63573337", "0.6330383", "0.63180417", "0.6309935", "0.63059556", "0.62751096", "0.62661594", "0.62320507", "0.62259895", "0.6207566", "0.6205977", "0.620492", "0.61954695", "0.6181073", "0.6178943", "0.6154591", "0.61336005", "0.61247873", "0.6122931", "0.6120556", "0.6118975", "0.61168534", "0.60990095", "0.609073", "0.60832196", "0.60708517", "0.60514903", "0.6045914", "0.6037104", "0.6025713", "0.6023356", "0.6020395", "0.59972686", "0.59910125", "0.5949852", "0.5931946", "0.59275705", "0.5916185", "0.5915425", "0.5910612", "0.59028983", "0.5883748", "0.5879066", "0.58723557", "0.5870616", "0.5865314", "0.5852397", "0.5851687", "0.5846008", "0.5835304", "0.58283925", "0.58022386", "0.57798946", "0.5778057", "0.57652384", "0.57630205", "0.5749745", "0.57492524", "0.57440263", "0.5739065", "0.573721", "0.5735375", "0.57304764", "0.57125396", "0.571237", "0.57118344", "0.5701463", "0.5696981", "0.56912315", "0.5689318", "0.56873095", "0.5682957", "0.56673634", "0.56621003", "0.5661097", "0.56472194", "0.5644488", "0.56404084", "0.5639701" ]
0.64197904
19
When a user clicks the logout button
@Override public void onClick(View view) { if (view == buttonLogout) { firebaseAuth.signOut(); finish(); startActivity(new Intent(this, LoginActivity.class)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logout() {\n \n }", "void logout();", "void logout();", "void onLogout(boolean loggedIn);", "private void logout() {\n Utils.showConfirmationDialogCallBack(MainActivity.this, getString(R.string.logout_sure), this);\n }", "public void logout() {\n showLoginScreen();\n }", "public static void logout() {\n click(MY_ACCOUNT_DROPDOWN);\n click(LOGOUT_BUTTON);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n //your actions\n Main.Logout();\n }", "@Override\r\n\tpublic void logout() {\n\t\t\r\n\t}", "public void logout(){\n logger.debug(\"logout from the application\");\n driver.findElement(oLogout).click();\n new WebDriverWait(driver,10).until(\n ExpectedConditions.titleIs(\"Sign-on: Mercury Tours\"));\n\n }", "@FXML\r\n\tvoid logout_btn_clicked(MouseEvent event) {\r\n\t\tString quary = \"UPDATE users SET connection_status = 0 WHERE userID = \" + MainClientGUI.getUserID();\r\n\t\tMessage message = new Message(MessageType.LOGOUT, \"MarketingAgentSalesMainController_logout_clicked\", quary);\r\n\t\tMainClientGUI.client.handleMessageFromClientUI(message);\r\n\t}", "private void logout() {\n\t\tgetUI().get().navigate(\"login\");\r\n\t\tgetUI().get().getSession().close();\r\n\t}", "@Override\n public void performLogout(){\n }", "@Override\n public void onLogoutClick() {\n session.doLogout();\n addFragment();\n }", "public void logout(){\n\t\t\n\t\tcurrentUser.logout();\n\t\tcurrentUser = null;\n\t\tchangeViewPort(new GUI_Logout(\"\", \"\", this));\n\t}", "public void onLogout() {\n ParseUser.logOut();\n\n promptForLogin();\n }", "@Override\n\tpublic void logout() {\n\t}", "public void Logout() {\n \t\t\t\n \t\t}", "public static void handleLogoutGUI()\n\t{\n\t\tOp logOp = new Op(Operations.LOGOUT,userLogin);\n\t\tclient.handleMessageFromClientUI(logOp);\n\t}", "@FXML\r\n private void handleButtonLogOut() {\r\n sessionContent.remove(\"activeId\");\r\n user = null;\r\n MobileApplication.getInstance().switchView(LOGIN_VIEW);\r\n }", "private void logout() {\n\t\tParseUser.logOut();\n\n\t\t// Go to the login view\n\t\tstartLoginActivity();\n\t}", "void logoutDone();", "public abstract void logout();", "public void doLogout() {\n loggedIn = false;\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n .getExternalContext().getSession(false);\r\n session.invalidate(); \r\n String pag= \"/login.xhtml\";\r\n redireccionar(pag);\r\n }", "@Override\r\n\t\t\tpublic void onLogout() {\n\t\t\t\tshowToast(\"onLogout---\");\r\n\t\t\t}", "private void checkToLogout() {\n logout();\n checkToHome();\n drawViewSideMenu();\n }", "private void logoutHandler() {\n AlertDialog.Builder builder = new AlertDialog.Builder(context, android.R.style.Theme_DeviceDefault_Dialog);\n builder.setTitle(\"Logout?\");\n builder.setMessage(\"Are you sure you want to logout?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Util.setLoggedInFlag(false);\n\n HPIApp.getAppContext().stopService(new Intent(HPIApp.getAppContext(), StepService.class));\n\n Intent intent = new Intent(HomeActivity.this, SplashActivity.class);\n startActivity(intent);\n HomeActivity.this.finish();\n }\n });\n\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n builder.show();\n }", "private void logOut() {\n mApi.getSession().unlink();\n\n // Clear our stored keys\n clearKeys();\n // Change UI state to display logged out version\n setLoggedIn(false);\n }", "void successLogout();", "@FXML\n private void logout(ActionEvent event) throws IOException {\n if (CurrentUser.getInstance().getUser() != null) {\n CurrentUser.getInstance().init(null); //Logs off\n App.setRoot(\"default\");\n }\n }", "protected void userLoggedOut() {\n\t\tRuvego.userLoggedOut();\n\t\tResultsActivityMenu.userLoggedOut();\n\t\tHistory.newItem(\"homePage\");\n\t}", "@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}", "@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}", "public static void signOut(){\n\t\tActions action_logout = new Actions(driver);\n\t\tWebElement UI = driver.findElement(By.id(\"UserNavigationTabsContainer\"));\n\t\taction_logout.moveToElement(UI).build().perform();\n\t\tdriver.findElement(By.linkText(\"Logout\")).click();\t\n\t\tpause(500);\n\t}", "public void logout() {\n\n $(logOutNavigator).click();\n driver = commonMethods.waitForElement(driver, logOffBtn);\n $(logOffBtn).click();\n $(loadingProgressIcon).should(disappear);\n }", "public void logout() {\n loggedIn = \"\";\n FacesContext.getCurrentInstance().getExternalContext()\n .getSessionMap().put(\"loggedIn\", \"\");\n }", "private void logout()\r\n {\r\n LogoutRequest request = new LogoutRequest();\r\n request.setUsername(username);\r\n this.sendRequest(request);\r\n }", "public void signOut() {\n ReusableActionsPageObjects.clickOnElement(driver, signOut, logger, \"log out.\");\n }", "private void logout() {\n userModel.setLoggedInUser(null);\n final Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlogout_click(e);\r\n\t\t\t}", "void logoutSuccessful();", "public void logOut() {\n try {\n // getGlobalNavigation().clickSignOut();\n } catch (TimeoutException e) {\n Log.log(\"logOut\", \"page loads for more than 30 seconds\", true);\n }\n }", "@Override\r\n\tpublic void userLogout(String login) {\n\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tsession.logoutUser();\n\t\t\t\tToast.makeText(getApplicationContext(), \"Anda Sudah Keluar!\", Toast.LENGTH_LONG).show();\n\t\t\t}", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n /*\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n \n \n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n */\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n\n this.setVisible(false);\n }\n\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(EnterActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "public void logout() {\n\t\tthis.setCurrentUser(null);\n\t\tthis.setUserLoggedIn(false);\t\t\n\t}", "private void logout() {\n getSharedPreferences(HELP_CATEGORIES, MODE_PRIVATE).edit().clear().apply();\n getSharedPreferences(LOGIN, MODE_PRIVATE).edit().putBoolean(IS_LOGGED_IN, false).apply();\n\n OkHttpClient client = new OkHttpClient();\n Request request = new Request.Builder()\n .url(URL + \"/nuh/logout\")\n .build();\n AsyncTask.execute(() -> {\n try {\n client.newCall(request).execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n LogoutAbstract.Logout();\r\n }", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n\n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n }\n\n }", "public static void Logout(){\n\t\tloginSystem();\r\n\t\t\r\n\t}", "private void logout(){\n showLoadingDialog();\n TwitterController.getInstance().logout(logoutCallback);\n }", "private void signOutUser() {\n mAuth.signOut();\n LoginManager.getInstance().logOut();\n Toast.makeText(ChatMessage.this, \"You have been logout\", Toast.LENGTH_SHORT).show();\n finishAffinity();\n proceed();\n }", "private void onLogoutButtonClick() {\r\n mViewModel.logout();\r\n //Clear input fields\r\n mUsernameInput.setText(\"\");\r\n mTokenInput.setText(\"\");\r\n\r\n //Clear saved credentials\r\n FragmentActivity activity = getActivity();\r\n if (activity == null) {\r\n return;\r\n }\r\n SharedPreferences sharedPreferences = activity.getApplicationContext().getSharedPreferences(getString(R.string.key_pref_file), MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.putString(getString(R.string.key_pref_username), \"\");\r\n editor.putString(getString(R.string.key_pref_token), \"\");\r\n editor.apply();\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t\tUserHandler.logOut();\n\t\t\t}", "@Override\n public void onClick(View v) {\n Log.d(\"prof\",\"log_out\");\n vibrations(1);\n logoutPopup();\n }", "@Override\n public void Logout() {\n\t \n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tlogOut();\n\t\t\t}", "public String logout(){\r\n this.user = null;\r\n loggedIn = false;\r\n return \"/index?faces-redirect=true\";\r\n }", "@Override\n\tpublic void logOutUser() {\n\t\t\n\t}", "public static void logout(){\n driver.findElement(By.id(\"ctl00_logout\")).click();\n\n }", "private void signOut () {\n mAuth.signOut();\n textViewStatus.setText(\"Signed Out\");\n }", "private void logout() {\n ((MyApplication)this.getApplication()).setLoggedIn(false);\n// Intent intent = new Intent(this, StartupActivity.class);\n// startActivity(intent);\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(MainActivity.this, Login.class);\n startActivity(intent);\n finish();\n }", "@Step(\"Log out\")\n public void logOut() {\n open();\n sighOutButton.click();\n }", "void onSignOutButtonClicked();", "public String logout()\n \t{\n \t\t_session.remove(GlobalConstants.USER_KEY);\n\t\treturn \"home\";\n \t}", "public void doLogout() {\n mSingleton.getCookieStore().removeUser(mUser);\n mPreferences.setUser(null);\n new ActivityTable().flush();\n\n //update variables\n mUser = null;\n mLogin = false;\n\n //reset drawer\n restartActivity();\n }", "@When(\"^user should signout to exit from the loggedin page$\")\n\tpublic void user_should_signout_to_exit_from_the_loggedin_page() throws Throwable {\n\t\telementClick(pa.getAp().getLogout());\n\t\t\n\t \n\t}", "public void logout() {\n javafx.application.Platform.runLater(clientBar::logOut);\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(Activity_Main.this, Activity_Login.class);\n startActivity(intent);\n finish();\n }", "@Override\n\tpublic String logout() {\n\t\treturn null;\n\t}", "public void btnLogout(View view) {\n actionButton.collapse();\n\n SetSharedPreference setSharedPreference = new SetSharedPreference(this);\n // signout from app.\n setSharedPreference.setBooleanLogin(getString(R.string.boolean_login_sharedPref), \"false\");\n\n Intent intent = new Intent(this, StartupActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n finish();\n startActivity(intent);\n\n }", "public String logout()\n\t{\n\t\tsession.remove(\"user_name\");\n\t\tsession.remove(\"password\");\n\t\tsession.clear();\n\t\tsession.invalidate();\t\n\t\taddActionMessage(\"You Have Been Successfully Logged Out\");\n\t\treturn SUCCESS;\n\t}", "@Override\n public void doLogout() {\n // Toast.makeText(getApplicationContext(),\"Session Expired\",Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(), activity_Login.class);\n startActivity(intent);\n }", "public void LogoutListener()\n {\n \tLogout.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString sql = \"UPDATE admin_login SET isLogedin = '0' WHERE isLogedin = '1'\";\n\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(card, \"You have logged Out from admin \");\n\n\t\t\t\ttry {\n\t\t\t\t\t\t\tdb.ExecuteStatement(sql);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tLoginName.setText(\"\");\n\t\t\t\t\t\t\tLoginLabel.setForeground(Color.red);//disable logout button on login\n\t\t\t\t\t\t\tLogout.setEnabled(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//enable login button on logout\n\t\t\t\t\t\t\tLogIn.setEnabled(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Reset staff id and password here\n\t\t\t\t\t\t\t UserName.setText(\"\");\n\t\t\t\t\t\t\t Password.setText(\"\");\n\t\t\t\t\t\t\tresetPassword.setEnabled(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t UserName.setEnabled(true);\n\t\t\t\t\t\t\t Password.setEnabled(true);\n\t\t\t\t\t} catch (SQLException e1) {}\n\t\t\t\t\n\t\t\t}\n \t\t\n \t});\n }", "private void logoutButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logoutButtonActionPerformed\n boolean isLoggedIn = uL.isLoggedIn();\n boolean isLoggedInNew = na.isLoggedIn();\n //boolean found = uL.isFound();\n if (isLoggedIn || isLoggedInNew) {\n na.setIsLoggedIn(false);\n uL.setIsLoggedIn(false);\n uL.setIsFound(false);\n dm.messageUserLoggedOut();\n } else {\n dm.messageUserNotLoggedIn();\n }\n }", "public void click_logout() {\n\t\tSystem.out.println(\" Logging out..\");\n\t\tWebElement el1 = driver.findElement(menu_item_logout);\n\t\tActions action = new Actions(driver);\n\t\taction.moveToElement(el1).click().perform();\n\t}", "private void logout() {\n LogoutTask mAuthTask = new LogoutTask();\n mAuthTask.execute((Void) null);\n }", "public void logout() {\n // Mengambil method clear untuk menghapus data Shared Preference\n editor.clear();\n // Mengeksekusi perintah clear\n editor.commit();\n // Membuat intent untuk berpindah halaman\n Intent intent = new Intent(context, LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(intent);\n }", "@When ( \"I log out\" )\n public void logOut () {\n driver.findElement( By.id( \"logout\" ) ).click();\n }", "@Override\r\n\tpublic void ShowLogout(Context _in_context) {\n\t\tTypeSDKLogger.e( \"ShowLogout\");\r\n\t\tthis.haimaLogout();\r\n\t}", "@Override\n public void doLogout() {\n // Toast.makeText(getApplicationContext(),\"Session Expired\",Toast.LENGTH_SHORT).show();\n Intent intent=new Intent(getApplicationContext(), activity_Login.class);\n startActivity(intent);\n }", "public void signOutClick()\n {\n if(mAuth.getCurrentUser() != null)\n {\n // sign out.\n mAuth.signOut();\n\n // switch activity to login form.\n finish();\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }\n }", "public void logoutClick(View v) {\n\n AsyncHttpClient client = new AsyncHttpClient();\n client.addHeader(\"Authorization\", \"Token token=\" + user.getToken().getAccess_token());\n client.get(LoginActivity.API_ROOT + \"logout\", new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n Toast.makeText(SelectionActivity.this, \"Logout success!\", Toast.LENGTH_LONG).show();\n\n // Return to the login screen (first instance of it)\n Intent toLoginScreen = new Intent(SelectionActivity.this, LoginActivity.class);\n toLoginScreen.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n SelectionActivity.this.finish();\n SelectionActivity.this.startActivity(toLoginScreen);\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody,\n Throwable error) {\n Toast.makeText(SelectionActivity.this, \"Logout failure\", Toast.LENGTH_LONG).show();\n }\n });\n }", "public void ClickLogout(View view ){\n logout();\n intent = new Intent(context,LoginActivity.class);\n //remove all previous stack activities\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n }", "public void logout() {\n updateToken(\"\");\n startActivity(new Intent(GarageListActivity.this, LoginScreenActivity.class));\n updateToken(\"\");\n finish();\n }", "@FXML\r\n void ClickLogout(MouseEvent event) throws IOException {\r\n //Display confirmation alert\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Exit Weechat\");\r\n alert.setHeaderText(\"Are you sure you want to Logout of Weechat\");\r\n //Add cancel button\r\n ButtonType confirmButton = new ButtonType(\"Don't Logout\", \r\n ButtonBar.ButtonData.CANCEL_CLOSE);\r\n //Wait for response\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if(result.get() == ButtonType.OK)\r\n {\r\n //If user selects okay, go to login\r\n Parent root = FXMLLoader.load(getClass().getResource(\"Login.fxml\"));\r\n Scene scene = new Scene(root);\r\n Stage stage = (Stage)\r\n ((Node)event.getSource()).getScene().getWindow();\r\n stage.setScene(scene);\r\n stage.show();\r\n }\r\n }", "protected void logout() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\t\tuserController.performLogout();\n\n\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t}", "public void logoutUser() {\n editor.remove(Is_Login).commit();\n editor.remove(Key_Name).commit();\n editor.remove(Key_Email).commit();\n editor.remove(KEY_CUSTOMERGROUP_ID).commit();\n // editor.clear();\n // editor.commit();\n // After logout redirect user to Loing Activity\n\n }", "public void logout() {\n getRequest().getSession().invalidate();\n }", "public void onClick(DialogInterface dialog, int id) {\n session.logoutUser();\r\n }", "private void signOut() {\n mAuth.signOut();\n updateUI(null);\n }", "@FXML\n\tprivate void logoutPressed(ActionEvent event) {\n\t\tclient.goOffline();\n\t\tSystem.exit(0);\n\t}", "public void logout(View v){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.clear();\n editor.apply();\n Button view = findViewById(R.id.buttonView);\n view.setVisibility(View.INVISIBLE);\n Button logout = findViewById(R.id.buttonLogout);\n logout.setVisibility(View.INVISIBLE);\n EditText username = findViewById(R.id.username);\n username.setText(\"\");\n username.setHint(\"Username\");\n username.setVisibility(View.VISIBLE);\n EditText pass = findViewById(R.id.password);\n pass.setText(\"\");\n pass.setHint(\"Password\");\n pass.setVisibility(View.VISIBLE);\n Button login = findViewById(R.id.buttonLogin);\n login.setVisibility(View.VISIBLE);\n Button createAcc = findViewById(R.id.buttonCreateAccount);\n createAcc.setVisibility(View.VISIBLE);\n TextView accountName = findViewById(R.id.accountName);\n accountName.setVisibility(View.INVISIBLE);\n notification(this.getWindow().getDecorView(),\"You have been logged out!\");\n }", "public LoginPage logUserOut() {\n if (browser.findElements(By.id(LOGOUT_BUTTON_ID)).isEmpty()) {\n throw new RuntimeException(\"Cannot log the user out because the logout button is not visible. Is user logged in?\");\n }\n\n browser.findElement(By.id(LOGOUT_BUTTON_ID)).click();\n\n LoginPage shown = new LoginPage(browser);\n shown.waitUntilPageIsOpen();\n return shown;\n }", "@FXML\n void OnActionLogout(ActionEvent event) {\n System.exit(0);\n }", "private void logoutBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_logoutBtnMouseClicked\n ((AppDraftGUI) this.getRootPane().getParent()).showPanel(0);\n frameInstance.p0.username.setText(\"\");\n frameInstance.p0.password.setText(\"\");\n }", "public void attemptLogout() {\n spEditor.clear();\n spEditor.putBoolean(LOGGEDIN_KEY, false);\n spEditor.commit();\n }", "public void onLogOut(View view) {\n\n\t\t// if (doubleBackToExitPressedOnce)\n\t\t// {\n\t\t// Satyen: we are removing PIN here\n\t\teditor.remove(\"pin\");\n\t\teditor.clear();\n\t\teditor.commit();\n\n\t\t// Satyen: unsubscribing to channels\n\t\tSet<String> setOfAllSubscriptions = PushService.getSubscriptions(this);\n\t\tSystem.out.println(\">>>>>>> Channels before clearing - \"\n\t\t\t\t+ setOfAllSubscriptions.toString());\n\t\tfor (String setOfAllSubscription : setOfAllSubscriptions) {\n\t\t\tSystem.out.println(\">>>>>>> MainActivity::onLogOut() - \"\n\t\t\t\t\t+ setOfAllSubscription);\n\t\t\tPushService.unsubscribe(this, setOfAllSubscription);\n\t\t}\n\t\tsetOfAllSubscriptions = PushService.getSubscriptions(this);\n\t\tSystem.out.println(\">>>>>>> Channels after cleared - \"\n\t\t\t\t+ setOfAllSubscriptions.toString());\n\t\tParseUser.logOut();\n\t\tglobalVariable.resetOnLogout2();\n\t\tGlobalVariable.resetOnLogout();\n\t\tnextIntent = new Intent(this, LoginActivity.class);\n\t\tnextIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t| Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\t\tstartActivity(nextIntent);\n\t\t// finish();\n\n\t\t// }\n\t\t//\n\t\t// doubleBackToExitPressedOnce = true;\n\t\t// Toast.makeText(this, \"Click again to logout\",\n\t\t// Toast.LENGTH_SHORT).show();\n\t\t//\n\t\t// new Handler().postDelayed(new Runnable() {\n\t\t//\n\t\t// @Override\n\t\t// public void run() {\n\t\t// doubleBackToExitPressedOnce=false;\n\t\t// }\n\t\t// }, 2000);\n\t\t//\n\n\t\t// nextIntent = new Intent(this, LoginActivity.class);\n\t\t// startActivity(nextIntent);\n\t}" ]
[ "0.8312311", "0.8216633", "0.8216633", "0.81297", "0.8121437", "0.8115028", "0.80748653", "0.800248", "0.7981263", "0.7949581", "0.7906157", "0.7880334", "0.78765506", "0.7861495", "0.78612155", "0.7858123", "0.7833581", "0.78299963", "0.7819206", "0.78074837", "0.78011143", "0.7800765", "0.7797936", "0.7796313", "0.77762955", "0.7753678", "0.7729461", "0.7698096", "0.7694143", "0.76916826", "0.7679534", "0.7675562", "0.7675562", "0.7667742", "0.76507026", "0.7649487", "0.76449263", "0.76292986", "0.76281583", "0.7627112", "0.76112294", "0.7607994", "0.7592018", "0.75880635", "0.75630945", "0.75546324", "0.7545798", "0.7535052", "0.75334066", "0.7531458", "0.75295377", "0.7517158", "0.7502274", "0.7474871", "0.7466364", "0.74561065", "0.74557185", "0.7453001", "0.74529666", "0.74509597", "0.7439565", "0.74340343", "0.74320465", "0.74214345", "0.74203825", "0.7415794", "0.74047357", "0.74025816", "0.7402204", "0.7390704", "0.73656553", "0.73500884", "0.73486996", "0.7331484", "0.7329698", "0.7328391", "0.7328039", "0.7321098", "0.7310354", "0.7310017", "0.7304994", "0.72964925", "0.7285817", "0.7275485", "0.7270747", "0.727056", "0.72627807", "0.7262745", "0.7256508", "0.72554195", "0.7255261", "0.72527885", "0.724228", "0.7238056", "0.7214571", "0.72081774", "0.7206992", "0.72060865", "0.7199232", "0.71952295", "0.7191326" ]
0.0
-1
Retrieve events from Wavefront Monitoring tool for the specified duration of time along with the tags specified.
public List<WavefrontEvent> getEvents(Map<String, String> tags, String servieFamilyName, String serviceName, long startTime, long endTime) { log.info(" Querying events from Wavefront. "); WavefrontEventResponse response = metricProviderHelper.queryEvents(tags, servieFamilyName, serviceName, String.valueOf(startTime), String.valueOf(endTime)); if (null == response || response.getEvents().isEmpty()) { log.debug(" Event Query returned error OR no events found . "); return new ArrayList<>(); } List<WavefrontEvent> events = response.getEvents(); return filterEvents(events, startTime, endTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DescribeEventsResult describeEvents(DescribeEventsRequest describeEventsRequest);", "private List<WavefrontEvent> filterEvents(List<WavefrontEvent> wavefrontEvents, Long startTime, Long endTime) {\n List<WavefrontEvent> filterEvents = wavefrontEvents.stream()\n .filter(event -> event.getEnd() >= startTime && event.getEnd() <= endTime).collect(Collectors.toList());\n log.debug(\"{} events were found out of time bound, startTime: {} and endTime: {}\",\n wavefrontEvents.size() - filterEvents.size(), startTime, endTime);\n return filterEvents;\n }", "com.google.speech.logs.timeline.InputEvent.Event getEvent();", "public void onTagsReceived(Map<String, Object> tags);", "private void getDataFromApi() throws IOException {\n DateTime now = new DateTime(System.currentTimeMillis());\n Events events = mService.events().list(\"primary\")\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n ScheduledEvents scheduledEvents;\n EventsList.clear();\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n start = event.getStart().getDate();\n }\n DateTime end = event.getEnd().getDateTime();\n if (end == null) {\n end = event.getStart().getDate();\n }\n scheduledEvents = new ScheduledEvents();\n scheduledEvents.setEventId(event.getId());\n scheduledEvents.setDescription(event.getDescription());\n scheduledEvents.setEventSummery(event.getSummary());\n scheduledEvents.setLocation(event.getLocation());\n scheduledEvents.setStartDate(dateTimeToString(start));\n scheduledEvents.setEndDate(dateTimeToString(end));\n StringBuffer stringBuffer = new StringBuffer();\n if(event.getAttendees()!=null) {\n for (EventAttendee eventAttendee : event.getAttendees()) {\n if(eventAttendee.getEmail()!=null)\n stringBuffer.append(eventAttendee.getEmail() + \" \");\n }\n scheduledEvents.setAttendees(stringBuffer.toString());\n }\n else{\n scheduledEvents.setAttendees(\"\");\n }\n EventsList.add(scheduledEvents);\n }\n }", "public Event(EventName name, EventTime time, Set<Tag> tags) {\n assert(name != null);\n requireNonNull(time);\n this.name = name;\n this.time = time;\n this.tags.addAll(tags);\n }", "private void queryEvents() {\n ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n // include data referred by user key\n query.include(Event.KEY_HOST);\n // limit query to latest 20 items\n query.setLimit(30);\n // order posts by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n // start an asynchronous call for events\n query.findInBackground(new FindCallback<Event>() {\n @Override\n public void done(List<Event> events, com.parse.ParseException e) {\n\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n // for debugging purposes let's print every event description to logcat\n for (Event event : events) {\n Log.i(TAG, \"Event: \" + event.getDescription() + \", username: \" + event.getHost().getUsername());\n }\n\n // save received events to list and notify adapter of new data\n allEvents.addAll(events);\n }\n\n });\n }", "void queryTimeSeries(final Message<JsonObject> msg) {\n\n final JsonObject query = msg.body();\n LOG.debug(\"{}\\n{}\", address, query.encodePrettily());\n\n // get the paramsters from the query\n final Range range = rangeParser.parse(query.getJsonObject(\"range\").getString(\"from\"),\n query.getJsonObject(\"range\").getString(\"to\"));\n final long interval = intervalParser.parseToLong(query.getString(\"interval\"));\n final JsonArray targets = query.getJsonArray(\"targets\")\n .stream()\n .map(o -> ((JsonObject) o).getString(\"target\"))\n .collect(toJsonArray());\n\n //build the query and options\n final JsonObject tsQuery = $and(obj(\"n.begin\", $gte(range.getStart())),\n obj(\"n.begin\", $lte(range.getEnd())),\n obj(\"t.name\", $in(targets)));\n\n final FindOptions findOptions = new FindOptions().setFields(obj().put(\"t.name\", 1)\n .put(\"n.begin\", 1)\n .put(\"n.value\", 1)\n .put(\"_id\", 0)).setSort(obj(\"n.begin\", 1));\n\n long start = System.currentTimeMillis();\n //execute search and process response\n client.findWithOptions(collectionName, tsQuery, findOptions, result -> {\n\n if (result.succeeded()) {\n JsonArray resp = processResponse(range, r -> range.splitEvery(interval), targets, result);\n long end = System.currentTimeMillis();\n LOG.debug(\n \"Sending response with {} timeseries and {} datapoints (after {} ms)\",\n resp.size(),\n resp.stream()\n .map(o -> ((JsonObject) o).getJsonArray(\"datapoints\"))\n .collect(Collectors.summingInt(JsonArray::size)),\n (end - start));\n msg.reply(resp);\n\n } else {\n LOG.error(\"Annotation query failed\", result.cause());\n msg.reply(arr());\n }\n\n });\n }", "public List<FrameTags> getVideoTags(long startTime, long endTime) {\n if(frameDataMap == null){\n return Collections.emptyList();\n }\n List<FrameTags> result = new ArrayList<>();\n final int size = frameDataMap.size();\n for (int i = 0; i < size ; i++) {\n long key = CommonUtils.timeToFrame(frameDataMap.keyAt(i), TimeUnit.SECONDS);\n if(key >= startTime && key <= endTime){\n FrameTags tag = frameDataMap.valueAt(i).getTag();\n if(tag != null) {\n result.add(tag);\n }\n }\n }\n return result;\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n Log.d(\"@@@@@LOOK HERE TIME@@\", show);\n Log.d(\"@@@@@LOOK HERE DATE@@\", show2);\n Log.d(\"@@@@@LOOK HERE DATETIME\", show3);\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n List<String> realStrings = new ArrayList<String>();\n for (String a:eventStrings\n ) {\n // Log.d(\"@@@@\", a);\n String day;\n String korTimeSpeech = null;\n String newSpeech = null;\n day = a.substring(a.indexOf(\"(\"), a.indexOf(\")\"));\n day = day.substring(1);\n\n if(day.length() > 16) {\n int hour = Integer.parseInt(day.substring(11, 13));\n if(hour < 12) {\n korTimeSpeech = \"오전 \";\n } else{\n korTimeSpeech = \"오후 \";\n hour = hour - 12;\n }\n korTimeSpeech = korTimeSpeech + hour + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = korTimeSpeech + newSpeech;\n //Make it in day format\n day = day.substring(0, day.indexOf(\"T\"));\n }else {\n // korTimeSpeech = day.substring(11, 13) + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = newSpeech;\n }\n\n if (day.equals(nowDay)) {\n realStrings.add(newSpeech);\n }\n }\n\n return realStrings;\n }", "public void onMonitor(double timestamp, double startTime){\n\t\n\t\tif(timestamp < startTime) {\n\t\t\t//don't start lagging before the start time\n\t\t\t//clear the logs\n\t\t\tlog.clear(); \n\t\t\treturn;\n\t\t}\n\n\t\t//count the number of waiting requests\n\t\tdouble w = 0;\n\t\tfor(Request r: queue){\n\t\t\tif(r.isWaiting()) w++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Monitor Event at time:\" + timestamp);\n\t\tSystem.out.println(\"---------------------\");\n\t\tdouble[] qAndW = new double[2];\n\t\tqAndW[0] = queue.size();\n\t\tqAndW[1] = w;\n\t\t\n\t\tQandW.add(qAndW);\n\t\t\t\t\n\t}", "@When(\"^all the events are retrieved$\")\n public void all_the_events_are_retrieved() throws Throwable {\n consumers = 1;\n clearMetrics();\n System.gc();\n long before = System.nanoTime();\n recordCount = ryvr.getSource().stream().count();\n long after = System.nanoTime();\n double localLatencyµs = (after - before) / 1000.0;\n LOGGER.info(\"total latency: {}µs\", localLatencyµs);\n LOGGER.info(\"MTPS(local): {}\", recordCount / localLatencyµs);\n\n if (httpThroughputCounter != null) {\n double byteCount = httpThroughputCounter.getBytes();\n double latencySeconds = httpThroughputCounter.getTotalLatency();\n LOGGER.info(\"bytes: {}MB\", byteCount / 1024.0 / 1024.0);\n LOGGER.info(\"throughput (local): {}MB/s\",\n byteCount / 1024.0 / 1024.0 / localLatencyµs * 1000000);\n LOGGER.info(\"throughput: {}MB/s\", byteCount / 1024.0 / 1024.0 / latencySeconds);\n LOGGER.info(\"total latency(prom): {}µs\", latencySeconds * 1000000.0);\n LOGGER.info(\"MTPS(prom): {}\", recordCount / latencySeconds / 1000000);\n httpThroughputCounter.logLatencies();\n }\n\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n return eventStrings;\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n\n\n java.text.SimpleDateFormat toDateTime = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\");\n //Date todayDate = new Date();\n // String todayName = dayName.format(todayDate);\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n\n calendar.setTime(nowToday);\n calendar.add(Calendar.HOUR, 2);\n Date twoFromNow = calendar.getTime();\n\n\n\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setTimeMax(new DateTime(twoFromNow, TimeZone.getDefault()))\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n // String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n\n // Only get events with exact start time set, exclude all day\n if (start != null) {\n eventStrings.add(\n String.format(\"%s //// %s)\", event.getSummary(), start));\n }\n\n\n }\n\n return eventStrings;\n }", "List<EventsWaitsSummaryByInstance> selectByExample(EventsWaitsSummaryByInstanceExample example);", "public DescribeEventsRequest withDuration(Integer duration) {\n this.duration = duration;\n return this;\n }", "public void MapMyTags() {\n\n\t\t// INITIALIZE THE DB AND ARRAYLIST FOR DB ELEMENTS \n\t\tMsgDatabaseHandler mdb = new MsgDatabaseHandler(getApplicationContext());\n\t\tArrayList<MessageData> message_array_from_db = mdb.Get_Messages();\n\t\t\n\t\tfinal MWMPoint[] points = new MWMPoint[message_array_from_db.size()];\n\t\t\n\t\t// CHECK IF TAGS EXISTS, IF SO PROCESS THE TAGS\n\t\tif (message_array_from_db.size() > 0) {\n\t\t\t\n\t\t\tfor (int i = 0; i < message_array_from_db.size(); i++) {\n\n\t\t\t String tag = message_array_from_db.get(i).getTag();\n\t\t\t String latitude = message_array_from_db.get(i).getLatitude();\n\t\t\t String longitude = message_array_from_db.get(i).getLongitude();\n\t\t\t String _time = message_array_from_db.get(i).getTime();\n\t\t\t \t\t \n\t\t\t Double lat = Double.parseDouble(latitude);\n\t\t\t Double lon = Double.parseDouble(longitude);\n\t\t\t \n\t\t // PROCESS THE TIME DIFFERENCE\n\t\t\t Long then = Long.parseLong(_time);\n\t\t\t\tLong now = System.currentTimeMillis();\n\t\t\t\tString difference = getDifference(now, then);\n\t\t\t\t\n\t\t\t\t// COUNTER FOR TIME SPLIT\n\t\t\t\tint colon = 0;\n\t\t\t\t\n\t\t\t\t// Count colons for proper output\n\t\t\t\tfor(int ix = 0; ix < difference.length(); ix++) {\n\t\t\t\t if(difference.charAt(ix) == ':') colon++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// SPLIT THE DIFFERENCE BY A \":\"\n\t\t\t\tString[] splitDiff = difference.split(\":\");\n\t\t\t\tString hours = null, minutes = null, seconds = null, str = null;\n\t\t\t\t\n\t\t\t\t// CALCULATE THE TIME DIFFERENCE\n\t\t\t\tswitch (colon) {\n\t\t\t\tcase 1:\n\t\t\t\t\tif (Integer.parseInt(splitDiff[0]) == DOUBLE_ZERO) {\n\t\t\t\t\t\tseconds = splitDiff[1];\n\t\t\t\t\t\tif (Integer.parseInt(seconds) > 1) {\n\t\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[1] + \" seconds ago\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (Integer.parseInt(seconds) == 1) {\n\t\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[1] + \" second ago\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (Integer.parseInt(seconds) == DOUBLE_ZERO) {\n\t\t\t\t\t\t\tstr = \"Occurred: \" + \"Happening Now\";\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tminutes = splitDiff[0];\n\t\t\t\t\t\tif (Integer.parseInt(minutes) > 1) {\t\t\t\t\t\t\n\t\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[0] + \" minutes ago\";\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[0] + \" minute ago\";\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\thours = splitDiff[0];\n\t\t\t\t\tif (Integer.parseInt(hours) > 1) {\n\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[0] + \" hours ago\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[0] + \" hour ago\";\n\t\t\t\t\t}\t\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstr = \"Happening Now\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString mPoint = tag + \"\\n\" + str;\n\t\t\t\t// CALL MAPS WITH ME AND PLOT POINTS ON THE MAP\n\t\t\t points[i] = new MWMPoint(lat, lon, mPoint);\n\t\t\t MapsWithMeApi.showPointsOnMap(this, \"Total Tags: \" + message_array_from_db.size(), points);\n\t\t\t}\n\t\t\tmdb.close();\n\t\t}\n\t\telse {\n\t\t\t// GET THE NAME OF THIS DEVICE \n\t\t\tpreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t\tString myTagName = preferences.getString(\"tagID\", \"Sender-01\");\n\t\t\t\n\t\t\tgps.getLocation();\n\t\t\tMapsWithMeApi.showPointOnMap(this, gps.getLatitude(), gps.getLongitude(), myTagName + \"\\nMy Position\");\n\t\t}\t\t\n\t}", "public static void analyzeEventsQueriesAmounts() throws SQLException\r\n\t{\r\n\t\tStatement stat = conn.createStatement();\r\n \r\n ResultSet result = stat.executeQuery(\"SELECT * FROM fraud.afm_fraudeventrecord;\");\r\n \r\n while (result.next())\r\n {\r\n \tString event = result.getString(\"eventType\");\r\n \tString user = result.getString(\"userId\");\r\n \t\r\n \tif (\r\n \t\t\t(event.contains(\"LOAD\"))\r\n \t&& \t\t(user.equals(\"user40\"))\r\n \t\t\t\r\n \t\t\t){\r\n \tSystem.out.print(new Date(result.getInt(\"timestamp\")));\r\n \tSystem.out.print(\" User : \" + user);\r\n \tSystem.out.print(\" Event : \" + event);\r\n \t\r\n \tString recordId = result.getString(\"fraudScoreRecordId\");\r\n \t\r\n \tif (recordId != null)\r\n \t{\r\n \t\tStatement stat2 = conn.createStatement();\r\n \t\tResultSet s = stat2.executeQuery(\"SELECT * FROM fraud.afm_fraudscorerecord where recordId='\"+recordId+\"';\");\r\n \t\twhile (s.next())\r\n \t\t{\r\n \t\t\tSystem.out.print(\" Query Type: \" + s.getString(\"queryType\"));\r\n \t\t\tSystem.out.print(\" Amount: \" + s.getDouble(\"transactionAmount\"));\r\n \t\t}\r\n \t}\r\n \t\r\n \t\r\n \tSystem.out.println();\r\n \t} \t\r\n }\r\n stat.close();\r\n\t}", "protected static List<EventMeta> listEvents(\n NotificationServiceGrpc.NotificationServiceBlockingStub serviceStub,\n String namespace,\n String sender,\n List<String> keys,\n long version,\n String eventType,\n long startTime,\n Integer timeoutSeconds)\n throws Exception {\n NotificationServiceOuterClass.ListEventsRequest request =\n NotificationServiceOuterClass.ListEventsRequest.newBuilder()\n .addAllKeys(keys)\n .setStartVersion(version)\n .setEventType(eventType)\n .setStartTime(startTime)\n .setNamespace(namespace)\n .setSender(sender)\n .setTimeoutSeconds(timeoutSeconds)\n .build();\n return parseEventsFromResponse(serviceStub.listEvents(request));\n }", "public MedicationEvents getMedicationEvents(int medicationEventsId);", "public Observable getEvents(){\n QBRequestGetBuilder requestBuilder = new QBRequestGetBuilder();\n requestBuilder.sortDesc(\"startDate\");\n return makeObservable(requestBuilder);\n }", "public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {\n if(request.getAttendees().isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n // nobody has time to meet for more than a day\n if(request.getDuration() > TimeRange.WHOLE_DAY.duration()){\n return Arrays.asList();\n }\n // if there're no already existing events, whole day is available, \n if(events.isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n\n Collection<String> listOfAttendees = request.getAttendees();\n List<TimeRange> unavailableTimes = getUnavailableTimesForAttendees(events, listOfAttendees);\n\n return getAvailableTimes(unavailableTimes, request.getDuration());\n }", "protected static List<String> getEventsFromProducer(HttpClient httpClient,GetMethod getMethod, String url,String contentType) throws RESTException\n\t{\n\t\tList<String> resultEvents = new ArrayList<String>();\n\t\t\n // Execute request\n try {\n \n int result = httpClient.executeMethod(getMethod);\n if (result != 200)\n {\n \tthrow new RESTException(\"Could not perform GET on producer \"+url+\", responce result: \"+result);\n }\n \n \n InputStream input = getMethod.getResponseBodyAsStream(); \n BufferedReader br = new BufferedReader(\n new InputStreamReader(input));\n String output; \n while ((output = br.readLine()) != null) \n {\n \t\n \tresultEvents.add(output);\n }\n \n }\n catch(Exception e)\n {\n \tthrow new RESTException(e);\n \t\n }\n \n return resultEvents;\n\t}", "public ResponseEvent get(OID oids[]) throws IOException {\n PDU pdu = new PDU();\n for (OID oid : oids) {\n pdu.add(new VariableBinding(oid));\n }\n pdu.setType(PDU.GET);\n ResponseEvent event = mSnmp.send(pdu, getTarget(), null);\n if (event != null) {\n return event;\n }\n throw new RuntimeException(\"GET timed out\");\n }", "public long getEventTime();", "private void retrieveRemoteEventData(){\n\n //This returns a JSON object with a {\"eventIndex\": int, \"event\": int} pattern.\n String data = getJSON(hostUrl + \"retrieve_remote_event.php?matchId=\" + matchId\n + \"&player=\" + oppositePlayer, 2000);\n\n // Parse the JSON information into an EventIndexPair object.\n Event e = new Gson().fromJson(data, Event.class);\n\n // Set event and eventIndex variables retrieved from JSON to the remoteActiveEvent and\n // remoteEventIndex global variables.\n // These variables will be used to process events locally on the next frame.\n if (e != null){\n if (e.getIndex() > remoteEventIndex){\n\n remoteActiveEvent = e;\n remoteEventIndex = e.getIndex();\n\n }\n }\n\n }", "com.walgreens.rxit.ch.cda.EIVLEvent getEvent();", "public EventDetails getByEventName(String eventName);", "public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }", "@Headers({\n \"Content-Type:application/json; charset=utf-8\"\n })\n @GET(\"entity/applications\")\n Call<List<Application>> getApplications(\n @Query(\"startTimestamp\") Long startTimestamp, @Query(\"endTimestamp\") Long endTimestamp, @Query(\"relativeTime\") String relativeTime, @Query(\"tag\") List<String> tag, @Query(\"entity\") List<String> entity\n );", "EventType getEvent();", "public List<PartitionedThermostatEvent> listAlgoProcessedEventsByThermostatAndTimeRange(Integer thermostatId, Calendar startTime, Calendar endTime) {\n\n String ql = \"SELECT te FROM PartitionedThermostatEvent te WHERE te.type=1 AND te.thermostatId = :thermostatId AND te.status = :status AND te.id.eventSysTime BETWEEN :startTime AND :endTime\";\n Map<String, Object> paramVals = new HashMap<String, Object>();\n paramVals.put(\"status\", ThermostatEventAttributeDef.Status.PROCESSED.status());\n paramVals.put(\"thermostatId\", thermostatId);\n paramVals.put(\"startTime\", startTime);\n paramVals.put(\"endTime\", endTime);\n\n List<PartitionedThermostatEvent> thermostatEvents = listByQuery(ql, paramVals);\n return thermostatEvents;\n }", "public ArrayList<ApplianceTimedEvent> generateRepeatedUsagePeriod(int startTime, int day, int addDays, int span, Time interval){\n\n ArrayList<ApplianceTimedEvent> hours = new ArrayList<ApplianceTimedEvent>();\n \n Time start = new Time(startTime, day);\n Time currentTime = universe.getUniverseTime();\n /*BUG FIX by Darius... The generated time was in the past so we need to make sure\n the new TimedEvent is in the future. I have added this code to adjust it therefore.*/\n if(start.compare(currentTime) < 0){\n\n start = new Time(start.getCurrentHour(), start.getCurrentDay());\n if(start.compare(currentTime) < 0) start = start.advanceTime(new Time(0,0,1,0,0));\n }\n\n //determine end time\n Time end = start.clone();\n\n end = end.advanceTime(new Time(span,0,0,0,0));\n \n //Create timed event to represent usage period\n ApplianceTimedEvent ate = new ApplianceTimedEvent(this,\n start,\n end,\n new ApplianceUseCommand(this),\n interval);\n //add event to list\n hours.add(ate); \n \n // Adds an identical timed event to the Arraylist\n //for every additional day specified.\n //Adds for a maximum of 6 additional days --> 7 days in a week.\n for(int i = 0; i<addDays && i<6; i++){\n //advance start and end times by one day\n start = start.advanceTime(new Time(0,1,0,0,0));\n end = end.advanceTime(new Time(0,1,0,0,0));\n //create identical timed event with start/end times advanced by one day.\n ate = new ApplianceTimedEvent(this,\n start,\n end,\n new ApplianceUseCommand(this),\n interval);\n //add to list\n hours.add(ate); \n }\n\n return hours;\n }", "public abstract Map<String, Event> getEvents();", "private void listEvents() {\n System.out.println(\"\\nEvents:\");\n for (Event event: world.getEvents()) {\n String name = event.getName();\n String coords = \" with x = \" + event.getX() + \" light seconds and t = \" + event.getTime() + \" seconds \";\n String frame = \"in \" + event.getFrame().getName() + \".\";\n System.out.println(name + coords + frame);\n }\n }", "IEvent[] getEvents();", "Deque<Event> getEvents(long inId);", "public List<MeteringDataSec> findWithinTimeRange(final Instant startTime, final Instant untilTime) {\n\t\tInstant until = untilTime == null ? startTime.plus(5, ChronoUnit.MINUTES) : untilTime;\n\n\t\tList<MeteringDataSec> matches = meteringDataRepository.findWithinTimeRange(Timestamp.from(startTime), Timestamp.from(until));\n\t\tif (!matches.isEmpty()) {\n\t\t\tLOG.info(\"findWithinTimeRange found {} entries starting with: {}\", matches.size(), matches.get(0).getCreationTime());\n\t\t}\n\n\t\treturn matches;\n\t}", "public List<Events> getAllSystemEventsListForAll();", "public QPEvent(String eventTime, EventType eventType, Long unitId, Map<String, Serializable> parameters) {\n this.eventTime = eventTime;\n this.unitId = unitId;\n this.parameters = parameters;\n this.setEventType(eventType);\n }", "@Path(\"device/stats/{deviceId}\")\n @GET\n @ApiOperation(\n consumes = MediaType.APPLICATION_JSON,\n httpMethod = \"GET\",\n value = \"Retrieve Sensor data for the device type\",\n notes = \"\",\n response = Response.class,\n tags = \"picavi\",\n extensions = {\n @Extension(properties = {\n @ExtensionProperty(name = PicaviConstants.SCOPE, value = \"perm:picavi:enroll\")\n })\n }\n )\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n Response getPicaviDeviceStats(@PathParam(\"deviceId\") String deviceId, @QueryParam(\"from\") long from,\n @QueryParam(\"to\") long to, @QueryParam(\"sensorType\") String sensorType);", "void print_statistics(long tot_arrived, long tot_processed, Double end_time){\n\n CloudEvent cloudEvent = new CloudEvent();\n CloudletEvent cletEvent = new CloudletEvent();\n PrintFile print = new PrintFile();\n\n\n // System response time & throughput\n\n float system_response_time = (float)(sum_service_times1_clet+ sum_service_times1_cloud + sum_service_times2_clet+ sum_service_times2_cloud)/ tot_processed;\n float response_time_class1 = (float) ((sum_service_times1_clet+ sum_service_times1_cloud)/ (completition_clet_type1 + completition_cloud_type1));\n float response_time_class2 = (float) ((sum_service_times2_clet+ sum_service_times2_cloud)/ (completition_clet_type2 + completition_cloud_type2));\n\n float lambda_tot = (float) (tot_arrived/end_time);\n float lambda_1 = (float)((arrival_type1_clet+arrival_type1_cloud)/end_time);\n float lambda_2 = (float)((arrival_type2_clet+arrival_type2_cloud)/end_time);\n\n\n // per-class effective cloudlet throughput\n\n float task_rate_clet1 = (float) ((float)completition_clet_type1 / end_time);\n float task_rate_clet2 = (float) ((float)completition_clet_type2 / end_time);\n\n\n // per-class cloud throughput\n\n float lambda_cloud1 = (float) ((arrival_type1_cloud)/end_time);\n float lambda_cloud2 = (float) ((arrival_type2_cloud)/end_time);\n\n\n // class response time and mean population\n\n float response_time_cloudlet = (float) (sum_service_times1_clet+ sum_service_times2_clet)/ (completition_clet_type1 + completition_clet_type2);\n float response_time_cloudlet1 = (float) sum_service_times1_clet/ completition_clet_type1;\n float response_time_cloudlet2 = (float) (sum_service_times2_clet/ completition_clet_type2);\n\n float response_time_cloud = (float) ((sum_service_times1_cloud+ sum_service_times2_cloud)/ (completition_cloud_type1 + completition_cloud_type2));\n float response_time_cloud1 = (float) (sum_service_times1_cloud/ completition_cloud_type1);\n float response_time_cloud2 = (float) (sum_service_times2_cloud/ completition_cloud_type2);\n\n // E[N] cloudlet\n float mean_cloudlet_jobs = cletEvent.mean_cloudlet_jobs_number();\n // E[N] class 1 cloudlet\n float mean_cloudlet_jobs1 = cletEvent.mean_cloudlet_jobs_number1();\n // E[N] class 2 cloudlet\n float mean_cloudlet_jobs2 = cletEvent.mean_cloudlet_jobs_number2();\n\n // E[N] cloud\n float mean_cloud_jobs = cloudEvent.mean_cloud_jobs_number();\n // E[N] class 1 cloud\n float mean_cloud_jobs1 = cloudEvent.mean_cloud_jobs_number1();\n // E[N] class 2 cloud\n float mean_cloud_jobs2 = cloudEvent.mean_cloud_jobs_number2();\n\n\n // Altre statistiche di interesse\n\n float lambda_clet = (float) ((arrival_type1_clet+ arrival_type2_clet)/end_time);\n float lambda_clet1 = (float) ((arrival_type1_clet)/end_time);\n float lambda_clet2 = (float) ((arrival_type2_clet)/end_time);\n float lambda_cloud = (float) ((arrival_type1_cloud+ arrival_type2_cloud)/end_time);\n\n double rate1_clet = mean_cloudlet_jobs1*0.45;\n double rate2_clet = mean_cloudlet_jobs2*0.27;\n\n\n\n NumberFormat numForm = NumberFormat.getInstance();\n numForm.setMinimumFractionDigits(6);\n numForm.setMaximumFractionDigits(6);\n numForm.setRoundingMode(RoundingMode.HALF_EVEN);\n\n\n System.out.println(\"\\n\\n\\n 1) SYSTEM RESPONSE TIME & THROUGHPUT \" + \"(GLOBAL & PER-CLASS)\");\n\n System.out.println(\"\\n Global System response time ...... = \" + numForm.format( system_response_time));\n System.out.println(\" Response time class 1 ...... = \" + numForm.format( response_time_class1));\n System.out.println(\" Response time class 2 ...... = \" + numForm.format( response_time_class2));\n\n System.out.println(\"\\n Global System throughput ...... = \" + numForm.format( lambda_tot));\n System.out.println(\" Throughput class 1 ...... = \" + numForm.format( lambda_1));\n System.out.println(\" Throughput class 2 ...... = \" + numForm.format( lambda_2));\n\n\n System.out.println(\"\\n\\n\\n 2) PER_CLASS EFFECTIVE CLOUDLET THROUGHPUT \");\n System.out.println(\" Task-rate cloudlet class 1 ...... = \" + numForm.format( rate1_clet));\n System.out.println(\" Task-rate cloudlet class 2 ...... = \" + numForm.format( rate2_clet));\n\n\n System.out.println(\"\\n\\n\\n 3) PER_CLASS CLOUD THROUGHPUT \");\n System.out.println(\" Throughput cloud class 1 ...... = \" + numForm.format( lambda_cloud1));\n System.out.println(\" Throughput cloud class 2 ...... = \" + numForm.format( lambda_cloud2));\n\n\n System.out.println(\"\\n\\n\\n 4) CLASS RESPONSE TIME & MEAN POPULATION \" + \"(CLOUDLET & CLOUD)\");\n\n System.out.println(\"\\n Response Time class 1 cloudlet ...... = \" + numForm.format( response_time_cloudlet1));\n System.out.println(\" Response Time class 2 cloudlet ...... = \" + numForm.format(response_time_cloudlet2));\n System.out.println(\" Response Time class 1 cloud ...... = \" + numForm.format( response_time_cloud1));\n System.out.println(\" Response Time class 2 cloud ...... = \" + numForm.format( response_time_cloud2));\n\n System.out.println(\"\\n Mean Population class 1 cloudlet ...... = \" + numForm.format( mean_cloudlet_jobs1));\n System.out.println(\" Mean Population class 2 cloudlet ...... = \" + numForm.format( mean_cloudlet_jobs2));\n System.out.println(\" Mean Population class 1 cloud ...... = \" + numForm.format( mean_cloud_jobs1));\n System.out.println(\" Mean Population class 2 cloud ...... = \" + numForm.format( mean_cloud_jobs2));\n\n }", "Map<Long,LinkedList<Event>> getAllEvents(List<Long> inRequestIds);", "Event getEvent();", "void parseEventList() {\n\t\tfor (int eventsId : events.keySet()) {\n\t\t\tfinal Event event = events.get(eventsId);\n\t\t\tif (users.get(event.getUser().getName()).isActiveStatus()\n\t\t\t\t\t&& !event.isViewed()\n\t\t\t\t\t&& event.getInnerSisdate().compareTo(\n\t\t\t\t\t\t\tnew GregorianCalendar()) >= 0) {\n\t\t\t\tevent.setViewed(true);\n\t\t\t\tfinal SimpleDateFormat fm = new SimpleDateFormat(\n\t\t\t\t\t\t\"dd.MM.yyyy-HH:mm:ss\");\n\t\t\t\tt.schedule(new TimerTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (event.isActive()) {\n\t\t\t\t\t\t\tgenerateEventMessage(\"User \"\n\t\t\t\t\t\t\t\t\t+ event.getUser().getName()\n\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t+ fm.format(event.getInnerSisdate()\n\t\t\t\t\t\t\t\t\t\t\t.getTime()) + \" \" + event.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, event.getInnerSisdate().getTime());\n\n\t\t\t}\n\t\t}\n\n\t}", "public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }", "public List<TimeseriesData> getTimeSeriesData(String query, long startTimeInEpocMillis, long endTimeInEpochMillis,\n String granularity) {\n List<TimeseriesData> timeSeriesData = new ArrayList<>();\n WavefrontMetricQueryResponse queryResponse =\n queryMetric(query, startTimeInEpocMillis, endTimeInEpochMillis, granularity);\n if (null != queryResponse && null != queryResponse.getTimeseries()) {\n for (Timeseries timeseries : queryResponse.getTimeseries()) {\n TimeseriesData data = new TimeseriesData();\n if (CollectionUtils.isEmpty(timeseries.getTags())) {\n data.setTags(new HashMap<>());\n } else {\n data.setTags(timeseries.getTags());\n }\n data.setData(timeseries.getData());\n data.getTags().put(\"host\", timeseries.getHost());\n timeSeriesData.add(data);\n }\n return timeSeriesData;\n }\n return timeSeriesData;\n }", "private void loadTimingInformation()\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile loadFile = new File(\"asdasda.save\");\n\t\t\tif(loadFile.exists())\n\t\t\t{\n\t\t\t\tqueryList.clear();\n\t\t\t\tScanner textScanner = new Scanner(loadFile);\n\t\t\t\twhile(textScanner.hasNext())\n\t\t\t\t{\n\t\t\t\t\tString query = textScanner.nextLine();\n\t\t\t\t\tlong queryTime = Long.parseLong(textScanner.nextLine());\n\t\t\t\t\tqueryList.add(new QueryInfo(query, queryTime));\n\t\t\t\t}\n\t\t\t\ttextScanner.close();\n\t\t\t\tJOptionPane.showMessageDialog(getAppFrame(), queryList.size() + \" QueryInfo objects were loaded into the application\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(getAppFrame(), \"File not present. No QueryInfo objects loaded\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException currentError)\n\t\t{\n\t\t\tdataController.displayErrors(currentError);\n\t\t}\n\t}", "public MedicationEvents getMedicationEventsByTitle(MedicationEvents medicationEvents);", "@DISPID(7) //= 0x7. The runtime will prefer the VTID if present\r\n @VTID(14)\r\n visiotool.IVEventList eventList();", "public List<EventMeta> listEvents(\n String namespace, List<String> keys, long version, String eventType, long startTime, String sender)\n throws Exception {\n return listEvents(\n notificationServiceStub,\n StringUtils.isEmpty(namespace) ? defaultNamespace : namespace,\n sender,\n keys,\n version,\n eventType,\n startTime,\n 0);\n }", "@Override\n\tpublic List<JsonEvent> getEvents(final EventQuery query) throws Exception {\n\t\tList<JsonEvent> events = null;\n\n\t\t// Set the HTTP status code to the special value for failed connection attempt.\n\n\t\thttp_status_code = -2;\n\n\t\t// Construct the URL that contains the query.\n\t\t// Throws MalformedURLException (subclass of IOException) if error in forming URL.\n\n\t\tURL url = getUrl (query, Format.GEOJSON);\n\n\t\t// Create a connection.\n\t\t// This is a local operation that does not call out to the network.\n\t\t// Throws IOException if there is a problem.\n\t\t// The object returned should be an HttpURLConnection (subclass of URLConnection).\n\n\t\tURLConnection conn = url.openConnection();\n\n\t\t// Add a property to indicate we can accept gzipped data.\n\t\t// This should not throw an exception.\n\n\t\tconn.addRequestProperty(\"Accept-encoding\", UrlUtil.GZIP_ENCODING);\n\n\t\t// Connect to Comcat.\n\t\t// Throws SocketTimeoutException (subclass of IOException) if timeout trying to establish connection.\n\t\t// Throws IOException if there is some other problem.\n\n\t\tconn.connect();\n\n\t\t// Here is where we can examine the HTTP status code.\n\t\t// The connection should be an HTTP connection.\n\n\t\tif (conn instanceof HttpURLConnection) {\n\t\t\tHttpURLConnection http_conn = (HttpURLConnection)conn;\n\n\t\t\t// This is the HTTP status code\n\n\t\t\thttp_status_code = http_conn.getResponseCode();\n\n\t\t\tswitch (http_status_code) {\n\t\t\t\n\t\t\tcase HttpURLConnection.HTTP_OK:\t\t\t\t// 200 = OK\n\t\t\tcase HttpURLConnection.HTTP_PARTIAL:\t\t// 206 = Partial content\n\t\t\tcase -1:\t\t\t\t\t\t\t\t\t// -1 = unknown status (getResponseCode returns -1 if it can't determine the status code)\n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t// continue\n\n\t\t\tcase HttpURLConnection.HTTP_NO_CONTENT:\t\t// 204 = No data matches the selection\n\t\t\tcase HttpURLConnection.HTTP_NOT_FOUND:\t\t// 404 = Not found, also used by Comcat to indicate no data matches the selection\n\t\t\tcase HttpURLConnection.HTTP_CONFLICT:\t\t// 409 = Conflict, used by Comcat to indicate event deleted\n\t\t\t\treturn new ArrayList<JsonEvent>();\t\t// return empty list to indicate nothing found\n\n\t\t\tdefault:\t\t\t\t\t\t\t\t\t// any other status code is an error\n\t\t\t\tthrow new IOException (\"Call to Comcat failed with HTTP status code \" + http_status_code);\n\t\t\t}\n\n\t\t} else {\n\t\t\n\t\t\t// Connection is not HTTP, so set status code to unknown status\n\n\t\t\thttp_status_code = -1;\n\t\t}\n\n\t\ttry (\n\n\t\t\t// Open an input stream on the connection.\n\t\t\t// Throws SocketTimeoutException (subclass of IOException) if timeout while reading.\n\t\t\t// Throws UnknownServiceException (subclass of IOException) if input is not supported.\n\t\t\t// Might throw FileNotFoundException (subclass of IOException) if server indicated no data available.\n\t\t\t// Throws IOException if there is some other problem.\n\n\t\t\tInputStreamHolder stream_holder = new InputStreamHolder (conn.getInputStream());\n\t\t\n\t\t){\n\n\t\t\t// Test if we received a gzipped response.\n\t\t\t// Note getContentEncoding should not throw an exception, but it can return null, in\n\t\t\t// which case the equals function will be false.\n\n\t\t\tif (UrlUtil.GZIP_ENCODING.equals(conn.getContentEncoding())) {\n\n\t\t\t\t// Make a gzip wrapper around the stream.\n\t\t\t\t// Throws ZipException (subclass of IOException) if input is not supported.\n\t\t\t\t// Throws IOException if there is an I/O error.\n\n\t\t\t\tGZIPInputStream zip_stream = new GZIPInputStream (stream_holder.get_stream());\n\t\t\t\tstream_holder.set_stream (zip_stream);\n\t\t\t}\n\n\t\t\t// Parse the input stream.\n\t\t\t// Throws IOException if there is an I/O error reading from the network.\n\t\t\t// Throws Exception if there is a problem parsing the data.\n\t\t\t// Might throw other exceptions.\n\t\t\n\t\t\tevents = parseJsonEventCollection (stream_holder.get_stream());\n\t\t}\n\n\t\treturn events;\n\t}", "public static void test(Context context)\n {\n TrackingService trackingService = TrackingService.getSingletonInstance(context);\n Log.i(LOG_TAG, \"Parsed File Contents:\");\n trackingService.logAll();\n\n try\n {\n // 5 mins either side of 05/07/2018 1:05:00 PM\n // PRE: make sure tracking_data.txt contains valid matches\n // PRE: make sure device locale matches provided DateFormat (you can change either device settings or String param)\n DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM);\n String searchDate = \"05/07/2018 1:05:00 PM\";\n int searchWindow = 5; // +/- 5 mins\n Date date = dateFormat.parse(searchDate);\n List<TrackingService.TrackingInfo> matched = trackingService\n .getTrackingInfoForTimeRange(date, searchWindow, 0);\n Log.i(LOG_TAG, String.format(\"Matched Query: %s, +/-%d mins\", searchDate, searchWindow));\n trackingService.log(matched);\n }\n catch (ParseException e)\n {\n e.printStackTrace();\n }\n }", "protected void onGetDailyTimerSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public void getEventDetails() {\r\n\t\t// Query DB to get specific event information based on EventID.\r\n\t}", "private void fireTimeAdvanced(long time, long duration) {\r\n\t\tSimulationTimeListener[] listeners = this.listeners.getListeners(\r\n\t\t\t\tSimulationTimeListener.class);\r\n\t\tfor(int i = 0; i < listeners.length; i++) {\r\n\t\t\tlisteners[i].timeAdvanced(new SimulationTimeEvent(this, time, duration));\r\n\t\t}\r\n\t}", "@WebMethod public Vector<Event> getEvents(Date date);", "public HashMap<String, Object> sendMonitorRequest(String facilityName, short duration){\n\t\tHashMap<String, Object> request = new HashMap<String, Object>();\n\t\trequest.put(\"service_type\", Constants.MONITOR_AVALIABILITY);\n\t\trequest.put(\"facility_name\", facilityName);\n\t\trequest.put(\"duration\", duration);\n\t\treturn this.sendRequest(request);\n\t}", "public List<TimeRange> getUnavailableTimesForAttendees(Collection<Event> events, Collection<String> listOfAttendees){\n List<TimeRange> unavailableTimes = new ArrayList<>();\n for(String attendee : listOfAttendees) {\n for(Event event : events) {\n Set<String> eventAttendees = event.getAttendees();\n if(eventAttendees.contains(attendee)) {\n unavailableTimes.add(event.getWhen());\n }\n }\n }\n return unavailableTimes;\n }", "public Task addEvent(String specifications) throws DukeException {\n try {\n if (!specifications.contains(\"/at\")) {\n throw new DukeException(\"Please use /at to specify a date and time!\");\n }\n String[] specificationsArray = specifications.split(\"/at \", 2);\n String[] dateTimeArray = specificationsArray[1].split(\" \", 2);\n String[] timeArray = dateTimeArray[1].split(\"-\", 2);\n String date = dateTimeArray[0];\n String startTime = timeArray[0];\n String endTime = timeArray[1];\n String startDateTime = date + \" \" + startTime;\n String endDateTime = date + \" \" + endTime;\n Task newTask = new Events(specificationsArray[0], startDateTime, endDateTime);\n tasks.add(newTask);\n return newTask;\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new DukeException(\"Please specify a date and time range! \\nEg. /at 18/10/2020 10pm - 11pm\");\n }\n }", "@Override\r\n\tpublic void endElement(String uri, String localName, String qName)\r\n\t\t\tthrows SAXException {\n\t\tif(qName.equalsIgnoreCase(\"item\")){\r\n\t\t\t//tempEvent = new PragyanEventData();\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"item\")){\r\n\t\t\ttempEvent = new PragyanEventData();\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"itemname\")){\r\n\t\t\ttempEvent.setEventName(tempString);\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"one\")){\r\n\t\t\ttempEvent.setEventCaption(tempString);\r\n\t\t}\r\n\t\t\r\n\t\tif(qName.equalsIgnoreCase(\"imgurl\")){\r\n\t\t\ttempEvent.setEventImage(tempString);\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"starttime\")){\r\n\t\t\ttry { \r\n\t\t\t\t//Log.d(\"TIMESTART\", tempString);\r\n\t\t\t Date time = format.parse(dateWriter.toString()); \r\n\t\t\t \r\n\t\t\t tempEvent.addStartTime(time);\r\n\t\t\t\t\r\n\t\t\t\twritingDate = false;\r\n\t\t\t\tdateWriter.reset();\r\n\t\t\t} catch (java.text.ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\ttempString=\"\";\r\n\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tfinally{}\r\n\t\t}\r\n\t\t\r\n\t\tif(qName.equalsIgnoreCase(\"endtime\")){\r\n\t\t\ttry { \r\n\t\t\t\t//Log.d(\"TIMEEND\", tempString);\r\n\t\t\t Date time = format.parse(dateWriter.toString()); \r\n\t\t\t\ttempEvent.addEndTime(time);\r\n\t\t\t\ttempString=\"\";\r\n\t\t\t\twritingDate = false;\r\n\t\t\t\tdateWriter.reset();\r\n\r\n\t\t\t} catch (java.text.ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t//Log.d(\"ERROR\", tempEvent.getEventName());\r\n\t\t\t\t//Log.d(\"ERROR\", tempString);\r\n\t\t\t\ttempString=\"\";\r\n\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tfinally{}\r\n\t\t}\r\n\t\t\r\n\t\tif(qName.equalsIgnoreCase(\"children\")){\r\n\t\t\ttempEvent =stackEvents.pop();\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"main\")){\r\n\t\t\ttempEvent.addPageTitle(\"About\");\r\n\t\t\ttempString = tempString.replace(\"$$##$$\", \"\\n\");\r\n\t\t\ttempString = tempString.replace(\"$$!!$$\", \" \");\r\n\t\t\ttempString = tempString.replace(\"$$%%$$\", \" \");\r\n\t\t\t//Log.d(\"MAIN\",tempString);\r\n\t\t\ttempEvent.addPageContent(tempString);\r\n\t\t\tstartPage=false;\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"pagename\")){\r\n\t\t\tif(startPage){\r\n\t\t\t\t////Log.d(\"FIXIT\",tempString.trim());\r\n\t\t\t\ttempEvent.addPageTitle(tempString.trim());\r\n\t\t\t\ttempString=\"\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"pgimg\")){\r\n\t\t\tif(startPage){\r\n\t\t\t\ttempEvent.setEventSecondaryImage(rootUrl+tempString);\r\n\t\t\t\ttempString=\"\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"content\")){\r\n\t\t\t//Log.d(\"ACTION\",\"hit contentend\"+String.valueOf(startPage)+\":\"+tempString);\r\n\t\t\tif(startPage){\r\n\t\t\t\ttempEvent.addPageContent(charWriter.toString());\r\n\t\t\t\t////Log.d(\"CONT\",charWriter.toString());\r\n\t\t\t\ttempString=\"\";\r\n\t\t\t\tcharWriter.reset();\r\n\t\t\t\tstartContent = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"page\")){\r\n\t\t\t////Log.d(\"FOXIT\",\"pageend:\"+String.valueOf(tempEvent.pageTitles.size()));\r\n\t\t\tstartPage=false;\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void updateFilter(List<String> tags) {\n currentTags = tags;\n clearAllMarkers();\n String query = generateQuery(tags, 0);\n List<Event> newEvents = dbHelper.getMatchingEvents(query);\n for (Event e : newEvents) {\n addMarker(e);\n }\n\n notifyEventsInCircle();\n }", "public void eventPost(String name, String description, String date, String startTime, String endTime){\n Callback<Events> callback = new Callback<Events>() {\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postEvent(name, description, date, startTime, endTime, callback);\n }", "private static List<RSQSimEvent> readEventsFile(\n\t\t\tInputStream eListStream, InputStream pListStream, InputStream dListStream, InputStream tListStream,\n\t\t\tList<SimulatorElement> elements, Collection<? extends RuptureIdentifier> rupIdens, boolean bigEndian,\n\t\t\tboolean skipSlipsAndTimes) throws IOException {\n\t\tList<RSQSimEvent> events = Lists.newArrayList();\n\t\t\n\t\tpopulateEvents(eListStream, pListStream, dListStream, tListStream, elements, rupIdens, bigEndian, events, skipSlipsAndTimes);\n\t\t\n\t\treturn events;\n\t}", "DataFrameEvents events();", "private void initEventList() {\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.MINUTE, -1 * 60 * 12);\n startTime = calendar.getTimeInMillis();\n stopTime = System.currentTimeMillis();\n mSearchType = 0;\n eventType = AVIOCTRLDEFs.AVIOCTRL_EVENT_ALL;\n searchEventList(startTime, stopTime, eventType, mCameraChannel);\n }", "public Events getEventDetailsByEventId(int eventId);", "public static List<Event> loadEvents() throws JSONException {\n \t\t\n \t\tString data = getJSON(Constants.GOOGLEEVENTS);\n \t\t\n \t\tJSONObject json_obj = new JSONObject(data).getJSONObject(\"feed\");\n \t\tJSONArray json_arr = json_obj.getJSONArray(\"entry\");\n \t\t\t\n \t\tList<Event> events = new ArrayList<Event>();\n \t\t\t\n \t\t//Collection the right content from JSON\n \t\tfor (int i = 0; i < json_arr.length(); i++){\n \t\t\tString title = json_arr.getJSONObject(i).getJSONObject(\"title\").optString(\"$t\");\n \t\t\tString description = json_arr.getJSONObject(i).getJSONObject(\"content\").optString(\"$t\");\n \t\t\tString time = json_arr.getJSONObject(i).getJSONArray(\"gd$when\").getJSONObject(0).optString(\"startTime\");\n \t\t\tString where = json_arr.getJSONObject(i).getJSONArray(\"gd$where\").getJSONObject(0).optString(\"valueString\");\n \t\t\t\t\n \t\t\t//If time is not an all day event\n \t\t\tif(time.length() > \"1967-09-03\".length()){\n \t\t\t\ttime = fromDate(time);\n \t\t\t}\n \t\t\t\n \t\t\t//Add events if it has i title\n \t\t\tif (!title.equals(\"\")){\n \t\t\t\tevents.add(new Event(title, description, where, time + \". \"));\n \t\t\t}\n \t\t}\t\n \t\treturn events;\n \t}", "public EventList getEvents(String userName) {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT userId, eventName, startMonth, startDay, startYear, startHour, startMinute\" +\n \", endMonth, endDay, endYear, endHour, endMinute FROM Events WHERE userId=?\");\n s.setInt(1, getIdOfUser(userName));\n s.execute();\n ResultSet results = s.getResultSet();\n\n EventList events = new EventList();\n if (!results.isBeforeFirst()) {\n return events;\n }\n\n while (!results.isLast()) {\n results.next();\n Event e = new Event(userName, results.getString(2),\n results.getInt(3), results.getInt(4), results.getInt(5),\n results.getInt(6), results.getInt(7), results.getInt(8),\n results.getInt(9), results.getInt(10), results.getInt(11),\n results.getInt(12));\n events.add(e);\n }\n results.close();\n s.close();\n events.sort();\n\n return events;\n } catch (SQLException e) {\n System.err.println(\"SQLE\");\n sqlException(e);\n return null;\n }\n }", "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "public List<UnpausedEventResponse> getUnpausedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt) {\n List<SmartContract.EventValuesWithLog> valueList = extractEventParametersWithLog(UNPAUSED_EVENT, transactionReceipt);\n ArrayList<UnpausedEventResponse> responses = new ArrayList<UnpausedEventResponse>(valueList.size());\n for (SmartContract.EventValuesWithLog eventValues : valueList) {\n UnpausedEventResponse typedResponse = new UnpausedEventResponse();\n typedResponse.log = eventValues.getLog();\n typedResponse.account = (String) eventValues.getNonIndexedValues().get(0).getValue();\n responses.add(typedResponse);\n }\n return responses;\n }", "public GameEvent[] getEvents();", "public List<PausedEventResponse> getPausedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt) {\n List<SmartContract.EventValuesWithLog> valueList = extractEventParametersWithLog(PAUSED_EVENT, transactionReceipt);\n ArrayList<PausedEventResponse> responses = new ArrayList<PausedEventResponse>(valueList.size());\n for (SmartContract.EventValuesWithLog eventValues : valueList) {\n PausedEventResponse typedResponse = new PausedEventResponse();\n typedResponse.log = eventValues.getLog();\n typedResponse.account = (String) eventValues.getNonIndexedValues().get(0).getValue();\n responses.add(typedResponse);\n }\n return responses;\n }", "public DescribeEventsRequest() {}", "@RequestMapping(value = \"/{objectId:.+}\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic ResponseEntity<Response> getById(@RequestParam(name = \"graphId\", required = true) String graphId,\n\t\t\t@PathVariable(value = \"objectId\") String objectId,\n\t\t\t@RequestParam(name = \"start\", required = false) String startTime,\n\t\t\t@RequestParam(name = \"end\", required = false) String endTime,\n\t\t\t@RequestHeader(value = \"user-id\") String userId) {\n\t\tString apiId = \"ekstep.learning.audit_history.read\";\n\n\t\tTelemetryManager.log(\"get AuditHistory By ObjectId | \" + \"GraphId: \" + graphId + \" | TimeStamp1: \" + startTime\n\t\t\t\t+ \" | Timestamp2: \" + endTime + \" | ObjectId: \" + objectId);\n\t\ttry {\n\t\t\tResponse response = auditHistoryManager.getAuditHistoryById(graphId, objectId, startTime, endTime, versionId);\n\t\t\tTelemetryManager.log(\"Find Item | Response: \" + response.getResponseCode());\n\t\t\treturn getResponseEntity(response, apiId, null);\n\t\t} catch (Exception e) {\n\t\t\tTelemetryManager.error(\"Find Item | Exception: \" + e.getMessage(), e);\n\t\t\treturn getExceptionResponseEntity(e, apiId, null);\n\t\t}\n\t}", "@Timeout(duration = 30, timeUnit = TimeUnit.SECONDS)\npublic interface CloudWatchApi {\n /**\n * \n * @return the Region codes configured\n */\n @Provides\n @Region\n Set<String> getConfiguredRegions();\n \n /**\n * This call returns data for one or more statistics of given a metric. For more information, see\n * Statistic and Metric.\n *\n * <p/>\n * <h3>Note</h3> The maximum number of datapoints that the Amazon CloudWatch service will return\n * in a single GetMetricStatistics request is 1,440. If a request is made that would generate\n * more datapoints than this amount, Amazon CloudWatch will return an error. You can alter your\n * request by narrowing the time range (StartTime, EndTime) or increasing the Period in your\n * single request. You may also get all of the data at the granularity you originally asked for\n * by making multiple requests with adjacent time ranges.\n * \n * @param region\n * region to gather metrics in\n * @param metricName\n * The measure name that corresponds to the measure for the gathered metric.\n * <p/>\n * note\n * <p/>\n * Must be a valid collected metric with the corresponding measure name, please see\n * Available Amazon CloudWatch Metrics\n * @param namespace\n * The namespace of the metric (e.g. AWS/EC2)\n * @param startTime\n * The timestamp of the first datapoint to return, inclusive. We round your value down\n * to the nearest minute. You can set your start time for more than two weeks in the\n * past. However, you will only get data for the past two weeks.\n * @param endTime\n * The timestamp to use for determining the last datapoint to return. This is the last\n * datapoint to fetch, exclusive.\n * @param period\n * The granularity (in seconds) of the returned datapoints.\n * @param statistics\n * The statistics to be returned for the given metric. ex. Average\n * @param options\n * more filtering options (e.g. instance ID)\n * @see MetricApi#getMetricStatistics(org.jclouds.cloudwatch.domain.GetMetricStatistics)\n */\n @Deprecated\n Set<Datapoint> getMetricStatisticsInRegion(@Nullable String region, String metricName, String namespace,\n Date startTime, Date endTime, int period, Statistics statistics, GetMetricStatisticsOptions... options);\n \n /**\n * Provides synchronous access to Metric features.\n */\n @Delegate\n MetricApi getMetricApi();\n \n /**\n * Provides synchronous access to Metric features.\n */\n @Delegate\n MetricApi getMetricApiForRegion(@EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region);\n}", "@WebMethod public List<BetMade> getBetsFromEvents(Event ev);", "public void getEventDetails(String eventId,String venueId,String eventName,String venue,String date,String category){\n String url = \"https://eng-empire-315722.wl.r.appspot.com/eventDetails?event=\"+eventId;\n System.out.println(url);\n\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n System.out.println(response);\n\n// res_list.add(response.toString());\n Intent intent = new Intent(context, EventDetails.class);\n intent.putExtra(\"eventdetails\", response.toString());\n intent.putExtra(\"eventId\",eventId);\n intent.putExtra(\"venueId\", venueId);\n intent.putExtra(\"venue\", venue);\n intent.putExtra(\"date\", date);\n intent.putExtra(\"category\", date);\n intent.putExtra(\"eventname\", eventName);\n context.startActivity(intent);\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n\n }\n });\n mQueue.add(request);\n }", "public static DataSet Make_DataSetFromEvents( String EventFileName,\n String DetCalFileName,\n String bankInfoFileName,\n String MappingFileName,\n float firstToLoad,\n float numToLoad,\n float min,\n float max,\n boolean isLog,\n float first_logStep,\n int nUniformbins,\n String x_axis_type )\n throws Exception\n {\n if ( ! x_axis_type.equalsIgnoreCase( MAG_Q ) &&\n ! x_axis_type.equalsIgnoreCase( WAVELENGTH ) &&\n ! x_axis_type.equalsIgnoreCase( D_SPACING ) && \n ! x_axis_type.equalsIgnoreCase( RAW_TOF ) && \n ! x_axis_type.equalsIgnoreCase( TOF ) )\n\n throw new IllegalArgumentException( \"x_axis_type MUST be one of \" +\n MAG_Q + \", \" + WAVELENGTH + \" or \" + D_SPACING );\n\n String Instrument = FileIO.getSNSInstrumentName( EventFileName );\n SNS_Tof_to_Q_map SMap = new SNS_Tof_to_Q_map( Instrument,\n DetCalFileName,\n bankInfoFileName,\n MappingFileName,\n null );\n\n SNS_TofEventList STOF = new SNS_TofEventList( EventFileName );\n\n IEventBinner binner;\n if ( isLog )\n binner = new LogEventBinner( min, max, first_logStep);\n else\n binner = new UniformEventBinner( min,max,nUniformbins);\n\n long firstEvent = (long)firstToLoad;\n long NumEventsToLoad = (long)numToLoad;\n\n if ( firstEvent >= STOF.numEntries() )\n throw new IllegalArgumentException(\"first event \" + firstEvent +\n \" exceeds number of events in file \" + STOF.numEntries());\n\n // keep events in range\n long last = firstEvent + NumEventsToLoad - 1;\n if ( last >= STOF.numEntries() )\n last = STOF.numEntries() - 1;\n\n long num_to_load = last - firstEvent + 1;\n long seg_size = DEFAULT_SEG_SIZE;\n long num_segments = num_to_load / seg_size + 1;\n long num_loaded = 0;\n\n Vector ops = new Vector();\n for ( int i = 0; i < num_segments; i ++ )\n {\n seg_size = Math.min( seg_size, num_to_load - num_loaded );\n\n Make_Histograms_Op op;\n op = new Make_Histograms_Op( SMap,\n x_axis_type,\n STOF, firstEvent, seg_size,\n binner );\n ops.add( op );\n num_loaded += seg_size;\n firstEvent += seg_size;\n }\n\n ParallelExecutor pe = new ParallelExecutor(ops, n_threads, max_time);\n Vector results = pe.runOperators();\n\n float[][] Histograms = CombinePartialHistograms( results );\n\n if ( Histograms == null)\n return null;\n\n int run_num = getRunNumber( EventFileName );\n\n String title = Instrument + \"_\"+ run_num;\n\n String log_message = \"Mapped events to \" + x_axis_type;\n\n DataSet DS = MakeDataSet( Histograms, \n binner, \n title, \n log_message, \n false );\n String x_units = \"\";\n if ( x_axis_type.equalsIgnoreCase(MAG_Q) )\n x_units = \"Inverse Angstroms\";\n else if ( x_axis_type.equalsIgnoreCase(WAVELENGTH) ||\n x_axis_type.equalsIgnoreCase(D_SPACING) )\n x_units = \"Angstroms\";\n else if ( x_axis_type.equalsIgnoreCase(TOF) )\n x_units = \"Time(us)\";\n\n DS.setX_units( x_units );\n DS.setX_label( x_axis_type );\n DS.setY_units( \"Counts\" );\n DS.setY_label( \"Scattering Intensity\" );\n\n AddBankDetectorPositions( DS, SMap );\n SetAttributes( DS, EventFileName, SMap );\n\n if ( x_axis_type.equalsIgnoreCase(MAG_Q) )\n DataSetFactory.add_q_Operators( DS );\n else if ( x_axis_type.equalsIgnoreCase(D_SPACING) )\n DataSetFactory.add_d_Operators( DS );\n else if ( x_axis_type.equalsIgnoreCase(TOF) )\n DataSetFactory.addOperators( DS, InstrumentType.TOF_DIFFRACTOMETER );\n\n return DS;\n }", "public void logEvent(long timestamp, int componentTag, int eventTag, Parcelable data) {\n }", "public List<ExperimentSummaryResource> searchExperiments(Timestamp fromTime, Timestamp toTime, Map<String, String> filters, int limit,\n int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException {\n List<ExperimentSummaryResource> result = new ArrayList();\n EntityManager em = null;\n try {\n String query = \"SELECT e FROM ExperimentSummary e \" +\n \"WHERE \";\n\n if (filters.get(ExperimentStatusConstants.STATE) != null) {\n String experimentState = ExperimentState.valueOf(filters.get(ExperimentStatusConstants.STATE)).toString();\n query += \"e.state='\" + experimentState + \"' AND \";\n }\n\n if (toTime != null && fromTime != null && toTime.after(fromTime)) {\n query += \"e.creationTime > '\" + fromTime + \"' \" + \"AND e.creationTime <'\" + toTime + \"' AND \";\n }\n\n filters.remove(ExperimentStatusConstants.STATE);\n if (filters != null && filters.size() != 0) {\n for (String field : filters.keySet()) {\n String filterVal = filters.get(field);\n if (field.equals(ExperimentConstants.USER_NAME)) {\n query += \"e.\" + field + \"= '\" + filterVal + \"' AND \";\n } else if (field.equals(ExperimentConstants.GATEWAY_ID)) {\n query += \"e.\" + field + \"= '\" + filterVal + \"' AND \";\n } else if (field.equals(ExperimentConstants.PROJECT_ID)) {\n query += \"e.\" + field + \"= '\" + filterVal + \"' AND \";\n } else {\n if (filterVal.contains(\"*\")) {\n filterVal = filterVal.replaceAll(\"\\\\*\", \"\");\n }\n query += \"e.\" + field + \" LIKE '%\" + filterVal + \"%' AND \";\n }\n }\n }\n query = query.substring(0, query.length() - 5);\n\n //ordering\n if (orderByIdentifier != null && resultOrderType != null\n && orderByIdentifier.equals(Constants.FieldConstants.ExperimentConstants.CREATION_TIME)) {\n String order = (resultOrderType == ResultOrderType.ASC) ? \"ASC\" : \"DESC\";\n query += \" ORDER BY e.\" + ExperimentConstants.CREATION_TIME + \" \" + order;\n }\n\n em = ExpCatResourceUtils.getEntityManager();\n em.getTransaction().begin();\n Query q;\n\n //pagination\n if (offset >= 0 && limit >= 0) {\n q = em.createQuery(query).setFirstResult(offset).setMaxResults(limit);\n } else {\n q = em.createQuery(query);\n }\n\n List resultList = q.getResultList();\n for (Object o : resultList) {\n ExperimentSummary experimentSummary = (ExperimentSummary) o;\n ExperimentSummaryResource experimentSummaryResource =\n (ExperimentSummaryResource) Utils.getResource(ResourceType.EXPERIMENT_SUMMARY,\n experimentSummary);\n result.add(experimentSummaryResource);\n }\n em.getTransaction().commit();\n em.close();\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n throw new RegistryException(e);\n } finally {\n if (em != null && em.isOpen()) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n }\n }\n return result;\n }", "public List<JsonEvent> getEvents(final EventQuery query) throws Exception {\n\t\tInputStream result = null;\n\t\tList<JsonEvent> events = null;\n\n\t\ttry {\n\t\t\tresult = UrlUtil.getInputStream(getUrl(query, Format.GEOJSON));\n\t\t\tevents = parseJsonEventCollection(result);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresult.close();\n\t\t\t} catch (NullPointerException npx) {\n\t\t\t\t// Don't throw null pointer exceptions because they mask the real\n\t\t\t\t// exception, eg, that an error occurred during I/O.\n\t\t\t}\n\t\t}\n\n\t\treturn events;\n\t}", "public List<TransferEventResponse> getTransferEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt) {\n List<SmartContract.EventValuesWithLog> valueList = extractEventParametersWithLog(TRANSFER_EVENT, transactionReceipt);\n ArrayList<TransferEventResponse> responses = new ArrayList<TransferEventResponse>(valueList.size());\n for (SmartContract.EventValuesWithLog eventValues : valueList) {\n TransferEventResponse typedResponse = new TransferEventResponse();\n typedResponse.log = eventValues.getLog();\n typedResponse.from = (String) eventValues.getIndexedValues().get(0).getValue();\n typedResponse.to = (String) eventValues.getIndexedValues().get(1).getValue();\n typedResponse.value = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue();\n responses.add(typedResponse);\n }\n return responses;\n }", "@GET\n @Path(\"generate/metrics/{startTime}/{endTime}\")\n public Response generateAndSendAlertForMetrics(\n @PathParam(\"startTime\") Long startTime, @PathParam(\"endTime\") Long endTime,\n @QueryParam(\"metrics\") String metrics, @QueryParam(\"from\") String fromAddr,\n @QueryParam(\"to\") String toAddr,@QueryParam(\"subject\") String subject,\n @QueryParam(\"includeSentAnomaliesOnly\") boolean includeSentAnomaliesOnly,\n @QueryParam(\"isApplyFilter\") boolean isApplyFilter,\n @QueryParam(\"teHost\") String teHost, @QueryParam(\"smtpHost\") String smtpHost,\n @QueryParam(\"smtpPort\") int smtpPort,\n @QueryParam(\"phantomJsPath\") String phantomJsPath) {\n if (Strings.isNullOrEmpty(metrics)) {\n throw new WebApplicationException(\"metrics null or empty: \" + metrics);\n }\n String [] metricsArr = metrics.split(\",\");\n if (metricsArr.length == 0) {\n throw new WebApplicationException(\"metrics empty : \" + metricsArr);\n }\n if (Strings.isNullOrEmpty(toAddr)) {\n throw new WebApplicationException(\"Empty : list of recipients\" + toAddr);\n }\n if(Strings.isNullOrEmpty(teHost)) {\n throw new WebApplicationException(\"Invalid TE host\" + teHost);\n }\n if (Strings.isNullOrEmpty(smtpHost)) {\n throw new WebApplicationException(\"invalid smtp host\" + smtpHost);\n }\n AnomalyReportGenerator anomalyReportGenerator = AnomalyReportGenerator.getInstance();\n List<MergedAnomalyResultDTO> anomalies = anomalyReportGenerator\n .getAnomaliesForMetrics(Arrays.asList(metricsArr), startTime, endTime);\n if(isApplyFilter){\n anomalies = AlertFilterHelper.applyFiltrationRule(anomalies, alertFilterFactory);\n }\n ThirdEyeAnomalyConfiguration configuration = new ThirdEyeAnomalyConfiguration();\n SmtpConfiguration smtpConfiguration = new SmtpConfiguration();\n smtpConfiguration.setSmtpHost(smtpHost);\n smtpConfiguration.setSmtpPort(smtpPort);\n\n configuration.setSmtpConfiguration(smtpConfiguration);\n configuration.setDashboardHost(teHost);\n configuration.setPhantomJsPath(phantomJsPath);\n String emailSub = Strings.isNullOrEmpty(subject) ? \"Thirdeye Anomaly Report\" : subject;\n anomalyReportGenerator\n .buildReport(startTime, endTime, null, null, anomalies, emailSub, configuration,\n includeSentAnomaliesOnly, toAddr, fromAddr, \"Thirdeye Anomaly Report\", true);\n return Response.ok().build();\n }", "public List<ParserEventInfo> queryEventInfoList(int chainId, int groupId,\n String contractAddress, BigInteger blockNumber, String eventName) throws BaseException {\n String tableName = TableName.PARSER.getTableName(chainId, groupId);\n List<String> nameList =\n Arrays.asList(\"tableName\", \"contractAddress\", \"blockNumber\", \"eventName\");\n List<Object> valueList = Arrays.asList(tableName, contractAddress, blockNumber, eventName);\n Map<String, Object> param = CommonTools.buidMap(nameList, valueList);\n\n List<ParserEventInfo> listOfEventInfo = parserMapper.listOfEventInfo(param);\n return listOfEventInfo;\n }", "@Path(\"/showAll\")\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<EventData> getAllEvent() throws JSONException {\n\t\tString today_frm = DateUtil.getNow(DateUtil.SHORT_FORMAT_TYPE);\n\t\tList<Event> list = eventService.getEventsByType(today_frm,\n\t\t\t\tEventType.EVENTTODAY);\n\t\tList<EventData> d = null;\n\t\tif (null != list && list.size() > 0) {\n\t\t\td = getEventsByDateList(list);\n\t\t} else {\n\t\t\td = new ArrayList<EventData>();\n\t\t}\n\t\treturn d;\n\t}", "@Override\n\tpublic ArrayList<VODRecord> getMoreVideoList(InviteUtils client, String startTime, String endTime) {\n\t\tArrayList<VODRecord> mList = new ArrayList<VODRecord>();\n\t\t\n\n\t\treturn super.getMoreVideoList(client, startTime, endTime);\n\t}", "public void readInEvents() {\n // read CSV file for events\n allEvents = new ArrayList<Event>();\n InputStream inputStream = getResources().openRawResource(R.raw.events);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] eventData = (String[]) scoreList.get(i);\n\n // group together description\n String description = getDescription(8, eventData);\n\n // inputs to Event constructor:\n // String name, String date, String startTime, String endTime, String location,\n // int photoID, String organizations, String categories, String description\n\n // get image ID according to its name\n int photoID = context.getResources().getIdentifier(eventData[5], \"drawable\", context.getPackageName());\n allEvents.add(new Event(eventData[0], eventData[1], eventData[2], eventData[3], eventData[4],\n photoID, eventData[6], eventData[7], description));\n\n\n //System.out.println(\"ADD Event: \" + eventData[0]);\n }\n\n }", "private void viewEvents() {\n ReferenceFrame frame = selectFrame(\"What frame would you like to view the events from?\");\n List<Event> transformedEvents = new ArrayList<>();\n for (Event event: world.getEvents()) {\n transformedEvents.add(event.lorentzTransform(frame));\n }\n for (Event event: transformedEvents) {\n System.out.println(event.getName() + \" occurs at t = \" + event.getTime() + \" and x = \" + event.getX());\n }\n }", "public List<String> activityDuration(List<MonitoredData> timeline) {\n return timeline\n .stream()\n .collect(\n Collectors\n .groupingBy(\n MonitoredData::getActivity_label,\n Collectors\n .mapping(\n MonitoredData::computeDuration,\n Collectors\n .averagingDouble(duration -> (duration / 60) < 5 ? 1 : 0))))\n .entrySet()\n .stream()\n .filter(md -> md.getValue() > 0.9)\n .collect(\n Collectors\n .toMap(\n md -> md.getKey(),\n md -> md.getValue()))\n .keySet()\n .stream()\n .collect(\n Collectors\n .toList());\n }", "private void fetchAllEvents() {\n progressDialog.show();\n StringRequest stringRequest = new StringRequest(Request.Method.GET,\n Constants.URL_ALL_EVENTS,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try {\n progressDialog.dismiss();\n\n // response is a JSONArray\n JSONArray jArray = new JSONArray(response);\n\n // extracting JSONObjects from each element of JSONArray\n for (int i = 0; i < jArray.length(); i++) {\n JSONObject jb = jArray.getJSONObject(i);\n int id = jb.getInt(\"id\");\n String name = jb.getString(\"name\");\n String venue = jb.getString(\"venue\");\n String event_date = jb.getString(\"event_date\");\n String reg_deadline = jb.getString(\"reg_deadline\");\n String description = jb.getString(\"description\");\n int organizer_id = jb.getInt(\"organizer_id\");\n\n // creating a new Event object\n Event event = new Event(id, name, venue, event_date,\n reg_deadline, description, organizer_id);\n\n // add object to the array list\n arrayList.add(event);\n // notifying the adapter for the change\n adapter.notifyDataSetChanged();\n\n }\n } catch (JSONException e) {\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.hide();\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();\n }\n }) {\n\n };\n RequestHandler.getInstance(this).addToRequestQueue(stringRequest);\n }", "List<EventDetail> selectByExample(EventDetail eventDetail);", "@Override\n public List<Audit> searchAuditRecord(List<String> eventTypeList, String userId,\n List<String> remoteHcidList, Date startDate, Date endDate, Map<String, String> remoteHcidOrgNameMap) {\n QueryAuditEventsRequestType auditRequest = new QueryAuditEventsRequestType();\n auditRequest.setEventTypeList(createEventTypeList(eventTypeList));\n auditRequest.setUserId(userId);\n auditRequest.setRemoteHcidList(createRemoteHcidList(remoteHcidList));\n auditRequest.setEventBeginDate(getXMLGregorianCalendarFrom(startDate));\n auditRequest.setEventEndDate(getXMLGregorianCalendarFrom(endDate));\n return createAuditObjects(auditRetrieve.retrieveAudits(auditRequest), remoteHcidOrgNameMap);\n }", "public Event getEvent(File eventPath,File nodesPath, File coursePath, File entrantPath, File nodePath, File trackPath, File timesPath)\n {\n //log this event\n Start.log(\"Populating Event\");\n //get the relevant info for the event to process the details and make findings on the information \n ArrayList<String> nameFile = getFile(eventPath);\n ArrayList<Node> nodes = getNodes(nodesPath);\n ArrayList<Entrant> entrants = getEntrants(entrantPath,getCourses(coursePath,nodes));\n addTimes(timesPath,nodes,entrants);\n return new Event(nameFile.get(0),nameFile.get(1),nameFile.get(2),getTrack(trackPath),entrants,nodes);\n }", "public interface OnSearchRecDataListener {\n\n public void OnSearchRecData(int startTime, int endTime, int recType, int index, int end);\n}", "public void testEventStatusFilter(final String programName) throws ParseException;", "private void findNearByEvents() {\n LatLng latLng = mMapFragment.getCenterOfScreen();\n double longitude = latLng.longitude;\n double latitude = latLng.latitude;\n\n int spEventsPosition = mEventsSpinner.getSelectedItemPosition();\n int spTimesPosition = mTimesSpinner.getSelectedItemPosition();\n\n Log.e(\"MainAct\", \"Lat: \" + latitude + \" Lon: \" + longitude);\n mEventInteractor = new EventInteractor(this);\n EventSearchRequest eventSearchRequest = new EventSearchRequest();\n eventSearchRequest.setLat(String.valueOf(latitude));\n eventSearchRequest.setLon(String.valueOf(longitude));\n eventSearchRequest.setEventTime(spTimesPosition);\n eventSearchRequest.setEventType(spEventsPosition);\n mEventInteractor.eventSearch(eventSearchRequest, new EventSearchListener() {\n @Override\n public void onEventSearch(EventSearchResponse response) {\n mBottomSheetListFragment.refreshEvents(response.getEvents());\n mMapFragment.getEventsAndPin(response.getEvents());\n }\n\n @Override\n public void onError(String errorMessage) {\n showErrorMessage(errorMessage);\n }\n\n @Override\n public void onBeforeRequest() {\n showWaitingDialog();\n }\n\n @Override\n public void onAfterRequest() {\n dismissWaitingDialog();\n }\n });\n }", "private Map<String, Map<String, String>> getEventsFromAnXML(Activity activity)throws XmlPullParserException, IOException {\n\t\tMap<String, Map<String, String>>detailMap = new HashMap<String, Map<String,String>>();\n//\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\tResources res = activity.getResources();\n//\t\tXmlResourceParser xpp = res.getXml(R.xml.vacc_detail_eng);\n\t\tXmlResourceParser xpp = MiraConstants.LANGUAGE.equals(MiraConstants.HINDI)?res.getXml(R.xml.vacc_detail_hnd):res.getXml(R.xml.vacc_detail_eng);\n\t\txpp.next();\n\t\tint eventType = xpp.getEventType();\n\t\tString name = \"sorry\";\n\t\tString text = \"sorry\";\n\t\tHashMap<String, String>map= new HashMap<String, String>();\n\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\n\t\t\tif (eventType == XmlPullParser.START_TAG) {\n\t\t\t\tname = xpp.getName();\n\n\t\t\t\tif(name.equals(\"VaccId\")){\n\t\t\t\t\tmap= new HashMap<String, String>();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (eventType == XmlPullParser.TEXT) {\n\t\t\t\ttext = xpp.getText();\n //System.out.println(\"Parsing \"+name +\" Value \"+text);\n\t\t\t}\n\t\t\tif (eventType == XmlPullParser.END_TAG) {\n\t\t\t\tif(xpp.getName().equals(\"VaccId\")){\n//\t\t\t\t\tpreArrayList.add(map);\n\t\t\t\t\tdetailMap.put(map.get(\"VaccName\"), map);\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (name.equals(\"VaccName\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"VaccMessage\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"AdministrationMSG\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"AboutMsg\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\t\t\t\n\t\t\t}\n System.out.println(\"In Xml....\"+detailMap);\n\t\t\teventType = xpp.next();\n\t\t}\n\t\treturn detailMap;\n\t}", "@Override\n public List<Event> searchByDescription(String description) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.description = :description \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"description\", description);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "List<LoggingEvent> parse(String xml) throws ParseException;" ]
[ "0.5380937", "0.5252974", "0.50014323", "0.49982154", "0.49974373", "0.49814913", "0.4963917", "0.49002567", "0.48683923", "0.4826601", "0.48243564", "0.4815689", "0.47509944", "0.47214094", "0.47134414", "0.46588725", "0.46576363", "0.4647894", "0.4626297", "0.46228307", "0.46152684", "0.45819762", "0.4574319", "0.45670012", "0.45632163", "0.4563123", "0.4548288", "0.45462194", "0.45338783", "0.4526461", "0.45252147", "0.45165914", "0.45081744", "0.4494504", "0.4486982", "0.4475845", "0.44683644", "0.44548765", "0.44524348", "0.4450229", "0.44429675", "0.44297838", "0.44216508", "0.44121", "0.43737283", "0.4365026", "0.43554354", "0.4341659", "0.43411103", "0.4328538", "0.43190306", "0.43166614", "0.43124127", "0.4309955", "0.43033475", "0.43000686", "0.4293596", "0.42907783", "0.4275745", "0.42750013", "0.42663947", "0.42605516", "0.42552784", "0.4254319", "0.4239751", "0.4239416", "0.42386103", "0.4238568", "0.4236982", "0.42253724", "0.42200512", "0.421984", "0.42113394", "0.41970843", "0.41943386", "0.41910043", "0.4189537", "0.41888994", "0.41647607", "0.41558862", "0.41517735", "0.4148446", "0.4144831", "0.41435137", "0.41434917", "0.41424906", "0.41415513", "0.41383222", "0.41353613", "0.4134388", "0.41249502", "0.41244155", "0.4123815", "0.4121866", "0.41211796", "0.41108426", "0.41084382", "0.41040856", "0.41036057", "0.41004372" ]
0.6399061
0
The events retrieved from the method: retrieveEvents(..) contains events out of the time range specified. Hence, we will apply the filter to remove all the events those fall outside of time boundary specified
private List<WavefrontEvent> filterEvents(List<WavefrontEvent> wavefrontEvents, Long startTime, Long endTime) { List<WavefrontEvent> filterEvents = wavefrontEvents.stream() .filter(event -> event.getEnd() >= startTime && event.getEnd() <= endTime).collect(Collectors.toList()); log.debug("{} events were found out of time bound, startTime: {} and endTime: {}", wavefrontEvents.size() - filterEvents.size(), startTime, endTime); return filterEvents; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ObservableList<ReadOnlyEvent> getFilteredEventList();", "public List<TimeRange> getUnavailableTimesForAttendees(Collection<Event> events, Collection<String> listOfAttendees){\n List<TimeRange> unavailableTimes = new ArrayList<>();\n for(String attendee : listOfAttendees) {\n for(Event event : events) {\n Set<String> eventAttendees = event.getAttendees();\n if(eventAttendees.contains(attendee)) {\n unavailableTimes.add(event.getWhen());\n }\n }\n }\n return unavailableTimes;\n }", "private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }", "public List<ScheduledInterview> getForPositionWithoutShadowInRange(\n Job position, Instant minTime, Instant maxTime) {\n List<ScheduledInterview> interviewsInRange = getInRange(minTime, maxTime);\n Set<ScheduledInterview> notValidInterviews = new HashSet<ScheduledInterview>();\n for (ScheduledInterview interview : interviewsInRange) {\n if (!interview.position().equals(position) || !interview.shadowId().equals(\"\")) {\n notValidInterviews.add(interview);\n }\n }\n interviewsInRange.removeAll(notValidInterviews);\n return interviewsInRange;\n }", "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "private void purgeStampedEvents(long paramLong1, long paramLong2)\n/* */ {\n/* 1337 */ if (paramLong1 < 0L) {\n/* 1338 */ return;\n/* */ }\n/* */ \n/* 1341 */ for (Iterator localIterator = this.enqueuedKeyEvents.iterator(); localIterator.hasNext();) {\n/* 1342 */ KeyEvent localKeyEvent = (KeyEvent)localIterator.next();\n/* 1343 */ long l = localKeyEvent.getWhen();\n/* */ \n/* 1345 */ if ((paramLong1 < l) && ((paramLong2 < 0L) || (l <= paramLong2))) {\n/* 1346 */ localIterator.remove();\n/* */ }\n/* */ \n/* 1349 */ if ((paramLong2 >= 0L) && (l > paramLong2)) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ }", "private static List<Event> filterEvents(List<Event> allEvents) {\n Set<String> myLocations = MainActivity.getPreferences()\n .getStringSet(LOCATIONS_INTEREST.get(), null);\n if (myLocations != null) {\n List<Event> result = new ArrayList<>();\n for (Event event : allEvents) {\n String location = event.getLocation().getName();\n if (myLocations.contains(location)) {\n result.add(event);\n }\n }\n return result;\n }\n return allEvents;\n }", "private List grepTopLevelEvents(Collection events) throws Exception {\n\t // Grep all events that are contained by other events\n\t Set containedEvents = new HashSet();\n\t GKInstance event = null;\n\t for (Iterator it = events.iterator(); it.hasNext();) {\n\t event = (GKInstance) it.next();\n\t if (event.getSchemClass().isValidAttribute(ReactomeJavaConstants.hasEvent)) {\n\t List components = event.getAttributeValuesList(ReactomeJavaConstants.hasEvent);\n\t if (components != null && components.size() > 0) { \n\t for (Iterator it1 = components.iterator(); it1.hasNext();) {\n\t GKInstance tmp = (GKInstance) it1.next();\n\t Boolean dnr = (Boolean) tmp.getAttributeValue(DO_NOT_RELEASE);\n\t if (dnr != null && !dnr.booleanValue())\n\t containedEvents.add(tmp);\n\t }\n\t }\n\t }\n\t }\n\t List topEvents = new ArrayList(events);\n\t topEvents.removeAll(containedEvents);\n\t return topEvents;\n\t}", "public ArrayList<Event> remainingEventsForTheWeek() {\n\t\tArrayList<Event> result = new ArrayList();\n\n\t\tLocalDateTime now = this.now.get();\n\t\tLocalDate today = now.toLocalDate();\n\t\tLocalTime moment = now.toLocalTime();\n\t\tboolean after = false;\n\n\t\tdo {\n\t\t\tTreeSet<Event> todayEvents = this.events.get(today);\n\t\t\tif (todayEvents != null) {\n\t\t\t\t// Events are sorted\n\t\t\t\tfor (Event e: todayEvents) {\n\t\t\t\t\tif (after) {\n\t\t\t\t\t\tresult.add(e);\n\t\t\t\t\t} else if (e.startTime.compareTo(moment) >= 0) {\n\t\t\t\t\t\tresult.add(e);\n\t\t\t\t\t\tafter = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\tafter = true;\n\t\ttoday = today.plusDays(1);\n\t\t// Week ends on Sunday.\n\t\t} while (today.getDayOfWeek() != DayOfWeek.MONDAY);\n\n\t\treturn result;\n\t}", "public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {\n if(request.getAttendees().isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n // nobody has time to meet for more than a day\n if(request.getDuration() > TimeRange.WHOLE_DAY.duration()){\n return Arrays.asList();\n }\n // if there're no already existing events, whole day is available, \n if(events.isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n\n Collection<String> listOfAttendees = request.getAttendees();\n List<TimeRange> unavailableTimes = getUnavailableTimesForAttendees(events, listOfAttendees);\n\n return getAvailableTimes(unavailableTimes, request.getDuration());\n }", "@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }", "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "private ArrayList<Task> filterByDate(ArrayList<Task> toFilter, Date date) {\n ArrayList<Integer> toDelete = new ArrayList<Integer>();\n Calendar calAim = Calendar.getInstance();\n Calendar calTest = Calendar.getInstance();\n calAim.setTime(date);\n\n //remove all on different dates\n for (int i = 0; i < toFilter.size(); i++) {\n if (toFilter.get(i).getClass().equals(Deadline.class)) {\n Deadline temp = (Deadline) toFilter.get(i);\n calTest.setTime(temp.getTime());\n } else if (toFilter.get(i).getClass().equals(Event.class)) {\n Event temp = (Event) toFilter.get(i);\n calTest.setTime(temp.getTime());\n } else if (toFilter.get(i).getClass().equals(Period.class)) {\n Period temp = (Period) toFilter.get(i);\n calTest.setTime(temp.getStart());\n }\n boolean sameDay = calAim.get(Calendar.DAY_OF_YEAR) == calTest.get(Calendar.DAY_OF_YEAR)\n && calAim.get(Calendar.YEAR) == calTest.get(Calendar.YEAR);\n if (!sameDay) {\n toDelete.add(i);\n }\n }\n\n for (int i = toDelete.size() - 1; i >= 0; ) {\n toFilter.remove((int) toDelete.get(i));\n i--;\n }\n return toFilter;\n }", "public List<Events> getAllSystemEventsListForAll();", "@RequestMapping(\n value = \"/{start}/{end}\",\n method = RequestMethod.GET\n )\n public final Iterable<Entry> filter(\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date start,\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date end\n ) {\n if (end.before(start)) {\n throw new IllegalArgumentException(\"Start date must be before end\");\n }\n final List<Entry> result = new LinkedList<Entry>();\n List<Entry> entries = SecurityUtils.actualUser().getEntries();\n if (entries == null) {\n entries = Collections.emptyList();\n }\n for (final Entry entry : entries) {\n if (entry.getDate().after(start)\n && entry.getDate().before(end)) {\n result.add(entry);\n }\n }\n return result;\n }", "UncommittedEvents events() {\n var events = get().stream()\n .flatMap(segment -> segment.getEventList()\n .stream())\n .collect(toList());\n return UncommittedEvents.ofNone()\n .append(events);\n }", "@Override\n public List<Revenue> revenuesForTime(long startTime, long endTime) {\n List<Revenue> revenues = revenueRepository.findAll();\n List<Revenue> foundRevenues = new ArrayList<>();\n for(Revenue revenue : revenues){\n if(revenue.getTimestamp() == startTime || revenue.getTimestamp() == endTime){\n foundRevenues.add(revenue);\n continue;\n }\n if(revenue.getTimestamp() > startTime && revenue.getTimestamp() < endTime ){\n foundRevenues.add(revenue);\n }\n }\n return foundRevenues;\n }", "DomainEventStream getUncommittedEvents();", "public String arrangeEvents() throws Exception {\n JSONArray scheduledEventList = calObj.retrieveEvents(\"primary\").getJSONArray(\"items\");\n JSONArray unScheduledEventList = calObj.retrieveEvents(this.user.getCalId()).getJSONArray(\"items\");\n\n //Filter events for this week\n\n\n //Make a list of all events\n\n //Prioritise all unscheduled events\n\n\n //Send the list to client to display\n String events = \"\";\n for (int i = 0; i < scheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = scheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n // Unscheduled events set in bot created aPAS calendar\n for (int i = 0; i < unScheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = unScheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n return events;\n }", "public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }", "static <T> void performEviction(List<T> source, TimestampSelector<T> selector, long startTime) {\n if(source != null) {\n int from = 0, to = 0;\n boolean clear = false;\n while (to < source.size()) {\n if (selector.select(source.get(to)) < startTime) {\n to++;\n clear = true;\n } else {\n break;\n }\n }\n\n if (clear)\n source.subList(from, to).clear();\n }\n }", "private ArrayList<Task> removeNoTimeTask(ArrayList<Task> toFilter) {\n ArrayList<Integer> toDelete = new ArrayList<Integer>();\n\n //remove all without dates (ToDos and Lasts)\n for (int i = 0; i < toFilter.size(); i++) {\n if (toFilter.get(i).getClass().equals(ToDo.class)) {\n toDelete.add(i);\n }\n if (toFilter.get(i).getClass().equals(Last.class)) {\n toDelete.add(i);\n }\n }\n\n for (int i = toDelete.size() - 1; i >= 0; ) {\n toFilter.remove((int) toDelete.get(i));\n i--;\n }\n return toFilter;\n }", "@Override\n public Collection<CoreEventInfo> getEvents(final Collection<BwCalendar> calendars,\n final FilterBase filter,\n final BwDateTime startDate, final BwDateTime endDate,\n final List<String> retrieveList,\n RecurringRetrievalMode recurRetrieval,\n final boolean freeBusy) throws CalFacadeException {\n recurRetrieval = defaultRecurringRetrieval(recurRetrieval,\n startDate, endDate);\n\n if (debug) {\n trace(\"getEvents for start=\" + startDate + \" end=\" + endDate);\n }\n\n Collection<String> colPaths = null;\n\n if (calendars != null) {\n colPaths = new ArrayList<String>();\n for (BwCalendar c: calendars) {\n colPaths.add(c.getPath());\n\n if (debug) {\n trace(\" calendar:\" + c.getPath());\n }\n }\n }\n\n FieldnamesList retrieveListFields = null;\n\n if (retrieveList != null) {\n // Convert property names to field names\n retrieveListFields = new FieldnamesList(retrieveList.size() +\n FieldNamesMap.reqFlds.size());\n\n for (String pname: retrieveList) {\n FieldNamesEntry fent = FieldNamesMap.getEntry(pname);\n\n if ((fent == null) || (fent.getMulti())) {\n // At this stage it seems better to be inefficient\n retrieveListFields = null;\n break;\n }\n\n retrieveListFields.add(fent);\n }\n\n if (retrieveListFields != null) {\n retrieveListFields.addAll(FieldNamesMap.reqFlds);\n }\n }\n\n /* eventsQuery covers some of what is outlined here.\n *\n * 1. Get events and annotations in range and satisfying the filter.\n * If there is a date range exclude the recurring master events as they\n * turn up later attached to the instances.\n *\n * If there is no date range we will not expand recurrences so we need\n * to send master events and overrrides.\n *\n * We also exclude overrides to recurring instances.\n *\n * If no date range was supplied we now have all the master events.\n * Otherwise we have all the non-recurring events\n * (XXX or recurring reference by an annotation???)\n *\n * 2. If there is a date range supplied, get all instances in date range and\n * add their masters to the set.\n *\n * 3. If there is a date range supplied, get all overrides in date range and\n * add their masters to the set.\n *\n * 4. For each event\n * 4a. if not recurring add to result\n * 4b. if recurring {\n * if expanding\n * find all instances (in range) and add to result set\n * else {\n * find all overrides (in override range if supplied)\n * find all instances (IF instance range)\n * attach them to the master\n * add master to set.\n * }\n * }\n *\n * Some points to remind ourselves. We have to fetch overides and instances\n * because the master may be out of the range of a date limited query - usually\n * is, but we need the master to construct a proxy.\n *\n * We could probably just use the overrides and instances obtained in\n * steps 2 and 3 except for the CalDAV complications which allow a different\n * date range for overrides and instances.\n */\n\n int desiredAccess = privRead;\n if (freeBusy) {\n // DORECUR - freebusy events must have enough info for expansion\n desiredAccess = privReadFreeBusy;\n }\n\n EventsQueryResult eqr = new EventsQueryResult();\n eqr.flt = new Filters(filter);\n eqr.colPaths = colPaths;\n\n eventsQuery(eqr, startDate, endDate,\n retrieveListFields,\n freeBusy,\n null, // master\n null, // masters\n null, // uids\n getEvents);\n\n Collection<CoreEventInfo> ceis = postGetEvents(eqr.es, desiredAccess,\n returnResultAlways,\n null);\n\n /* Now get the annotations - these are not overrides */\n eventsQuery(eqr, startDate, endDate,\n retrieveListFields,\n freeBusy,\n null, // master\n null, // masters\n null, // uids\n getAnnotations);\n\n if (!eqr.es.isEmpty()) {\n ceis.addAll(postGetEvents(eqr.es, desiredAccess, returnResultAlways,\n eqr.flt));\n }\n\n ceis = getRecurrences(eqr, ceis,\n startDate, endDate,\n retrieveListFields, recurRetrieval, desiredAccess,\n freeBusy);\n\n return buildVavail(ceis);\n }", "@Test\n public void testFilterOutEvent_equals() {\n List<CalendarItem> calendarItems = new ArrayList<CalendarItem>();\n calendarItems.addAll(overdueEvents);\n assertEquals(calendarItems, FilterUtil.filterOutEvent(calendarItems));\n }", "public void filterByFoMostRece(){\n // for each mood event in the list\n for (int i = 0; i < moodListBeforeFilterFo.getCount(); i++ ){\n // get the mood's date\n dateOfMood = moodListBeforeFilterFo.getMoodEvent(i).getDateOfRecord();\n // if it within the range, then add it to the new list\n if (dateOfMood.compareTo(lowerBoundDATE) >= 0 && dateOfMood.compareTo(currentDATE) <= 0) {\n moodListAfterFilter.add(moodListBeforeFilterFo.getMoodEvent(i));\n }\n }\n }", "protected void RemoveEvents()\r\n {\r\n INotifyPropertyChanged propParent = (INotifyPropertyChanged)getProxyParent();\r\n propParent.getPropertyChanged().removeObservers(filterPropertyChanges);\r\n }", "private void getDataFromApi() throws IOException {\n DateTime now = new DateTime(System.currentTimeMillis());\n Events events = mService.events().list(\"primary\")\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n ScheduledEvents scheduledEvents;\n EventsList.clear();\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n start = event.getStart().getDate();\n }\n DateTime end = event.getEnd().getDateTime();\n if (end == null) {\n end = event.getStart().getDate();\n }\n scheduledEvents = new ScheduledEvents();\n scheduledEvents.setEventId(event.getId());\n scheduledEvents.setDescription(event.getDescription());\n scheduledEvents.setEventSummery(event.getSummary());\n scheduledEvents.setLocation(event.getLocation());\n scheduledEvents.setStartDate(dateTimeToString(start));\n scheduledEvents.setEndDate(dateTimeToString(end));\n StringBuffer stringBuffer = new StringBuffer();\n if(event.getAttendees()!=null) {\n for (EventAttendee eventAttendee : event.getAttendees()) {\n if(eventAttendee.getEmail()!=null)\n stringBuffer.append(eventAttendee.getEmail() + \" \");\n }\n scheduledEvents.setAttendees(stringBuffer.toString());\n }\n else{\n scheduledEvents.setAttendees(\"\");\n }\n EventsList.add(scheduledEvents);\n }\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n\n\n java.text.SimpleDateFormat toDateTime = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\");\n //Date todayDate = new Date();\n // String todayName = dayName.format(todayDate);\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n\n calendar.setTime(nowToday);\n calendar.add(Calendar.HOUR, 2);\n Date twoFromNow = calendar.getTime();\n\n\n\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setTimeMax(new DateTime(twoFromNow, TimeZone.getDefault()))\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n // String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n\n // Only get events with exact start time set, exclude all day\n if (start != null) {\n eventStrings.add(\n String.format(\"%s //// %s)\", event.getSummary(), start));\n }\n\n\n }\n\n return eventStrings;\n }", "public List<WavefrontEvent> getEvents(Map<String, String> tags, String servieFamilyName, String serviceName,\n long startTime, long endTime) {\n log.info(\" Querying events from Wavefront. \");\n WavefrontEventResponse response = metricProviderHelper.queryEvents(tags, servieFamilyName, serviceName,\n String.valueOf(startTime), String.valueOf(endTime));\n if (null == response || response.getEvents().isEmpty()) {\n log.debug(\" Event Query returned error OR no events found . \");\n return new ArrayList<>();\n }\n List<WavefrontEvent> events = response.getEvents();\n return filterEvents(events, startTime, endTime);\n }", "private Collection getReleasedEvents() {\n Set events = new HashSet();\n Collection topEvents = eventPane.getTopLevelEvents();\n Set current = new HashSet();\n current.addAll(topEvents);\n Set next = new HashSet();\n GKInstance event = null;\n List values = null;\n Boolean dnr = null;\n try {\n while (current.size() > 0) {\n for (Iterator it = current.iterator(); it.hasNext();) {\n event = (GKInstance) it.next();\n dnr = (Boolean) event.getAttributeValue(DO_NOT_RELEASE);\n if (dnr != null && !dnr.booleanValue())\n events.add(event);\n if (event.getSchemClass().isValidAttribute(\"hasComponent\")) {\n values = event.getAttributeValuesList(\"hasComponent\");\n if (values != null)\n next.addAll(values);\n }\n if (event.getSchemClass().isValidAttribute(\"hasInstance\")) {\n values = event.getAttributeValuesList(\"hasInstance\");\n if (values != null)\n next.addAll(values);\n }\n }\n current.clear();\n current.addAll(next);\n next.clear();\n }\n }\n catch(Exception e) {\n System.err.println(\"EventReleaseCheckPane.getReleasedEvents(): \" + e);\n e.printStackTrace();\n }\n return events;\n }", "public ArrayList<CampusEvent> eventListFilter (ArrayList<CampusEvent> campusEvents, Filters filter) {\n ArrayList<CampusEvent> newList = new ArrayList<CampusEvent>();\n //if all the filters are zero, return original list\n Log.d(Globals.TAGG, \"Showing what the filters are\");\n\n if (filter == null) {\n Log.d(Globals.TAGG, \"All filters are null\");\n return campusEvents;\n } else {\n if (filter.getfFood() == 0 && filter.getfEventType() == 0 && filter.getfProgramType() == 0 && filter.getfGender() == 0 && filter.getfGreekSociety() == 0 && filter.getfMajor() == 0 && filter.getfYear() == 0) {\n return campusEvents;\n }\n if (filter.getfFood() != 0) {\n for (CampusEvent event : campusEvents) {\n int scaleval = filter.getfFood() - 1;\n if (event.getFood() == scaleval) {\n newList.add(event);\n }\n }\n }\n if (filter.getfEventType() != 0) {\n for (CampusEvent event : campusEvents) {\n int scaleval = filter.getfEventType() - 1;\n if (event.getEventType() == scaleval) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfProgramType() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getProgramType() == filter.getfProgramType()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfYear() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getYear() == filter.getfYear()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfMajor() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getMajor() == filter.getfMajor()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfGender() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getGender() == filter.getfGender()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfGreekSociety() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getGreekSociety() == filter.getfGreekSociety()) {\n newList.add(event);\n }\n }\n }\n\n return newList;\n }\n }", "@Test\n public void testRemoveEventConvinienceMethod() {\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n CalendarEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n Assert.assertEquals(1, calendar.getEvents(start, end).size());\n // Remove event\n calendar.removeEvent(event);\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n }", "ObservableList<Appointment> getFilteredAppointmentList();", "private void queryEvents() {\n ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n // include data referred by user key\n query.include(Event.KEY_HOST);\n // limit query to latest 20 items\n query.setLimit(30);\n // order posts by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n // start an asynchronous call for events\n query.findInBackground(new FindCallback<Event>() {\n @Override\n public void done(List<Event> events, com.parse.ParseException e) {\n\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n // for debugging purposes let's print every event description to logcat\n for (Event event : events) {\n Log.i(TAG, \"Event: \" + event.getDescription() + \", username: \" + event.getHost().getUsername());\n }\n\n // save received events to list and notify adapter of new data\n allEvents.addAll(events);\n }\n\n });\n }", "public List<PluginStatsEvent> getPastEvents() {\n\t\tsynchronized (queue) {\n\t\t\tPluginStatsEvent[] info = new PluginStatsEvent[queue.size()];\n\t\t\tList<PluginStatsEvent> returnList = new ArrayList<PluginStatsEvent>();\n\t\t\tCollections.addAll(returnList, queue.toArray(info));\n\t\t\treturn returnList;\n\t\t}\n\t}", "protected void clearOutEvents() {\n\t}", "protected void clearOutEvents() {\n\t}", "public void removePendingTimeout() {\n if (logger.isTraceEnabled()) {\n logger.trace(\"Remove expired timeout event\");\n }\n try {\n queueLock.lock();\n if (pendingResponseEvents != null && !pendingResponseEvents.isEmpty()) {\n for (Iterator<Event> iterator = pendingResponseEvents.iterator(); iterator\n .hasNext();) {\n Event pendingEvent = iterator.next();\n if (pendingEvent instanceof TimeoutEvent) {\n iterator.remove();\n if (logger.isTraceEnabled()) {\n logger.trace(\"Expired timeout event: {} was removed from the context\",\n pendingEvent.getId());\n }\n break;\n }\n }\n }\n } finally {\n queueLock.unlock();\n }\n }", "@RequestMapping(path = \"/specificDeliveryIssues\", method = RequestMethod.GET)\n\tpublic List<DeliveryIssue> getIssuesByTimeframe(Date from, Date to) {\n\t\tQuery queryObject = new Query(\"Select * from delivery_issue\", \"blablamove\");\n\t\tQueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n\t\tInfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n\t\tList<DeliveryIssue> deliveryIssueList = resultMapper\n\t\t\t\t.toPOJO(queryResult, DeliveryIssue.class);\n\n\t\treturn deliveryIssueList.stream().filter(\n\t\t\t\tdeliveryIssue -> !instantIsBetweenDates(\n\t\t\t\t\t\tdeliveryIssue.getTime(),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tto.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tfrom.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t)\n\t\t\t\t)\n\t\t).collect(Collectors.toList());\n\t}", "List<Event> fetchRecentEvents(User user, int limit) throws PersistenceException, InvalidArgumentException;", "@Override\n public List<ScheduledInterview> getScheduledInterviewsInRangeForUser(\n String userId, Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviews = getForPerson(userId);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<ScheduledInterview>();\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n return scheduledInterviewsInRange;\n }", "public static ArrayList<Date> events(Task task, Date start, Date end){\n ArrayList<Date> dates = new ArrayList<>();\n for (Date i = task.nextTimeAfter(start); !end.before(i); i = task.nextTimeAfter(i))\n dates.add(i);\n return dates;\n }", "public void removeEvents(){\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n List<EventTrigger> eventTriggers = new ArrayList<EventTrigger>(eventGroup.getValue());\n for(EventTrigger trigger : eventTriggers){\n if(trigger.getServer()==this) { // do not send own events...\n ESRemoveEvent esre = new ESRemoveEvent(annotation, trigger.getTrigger());\n for(EventShare es : EventShare.getEventShareServers()){\n if(es!=this) {\n if (es.isShareOut()) {\n try {\n es.getEventBusServer().write(esre);\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }\n }\n HandlerRegistry.getHandlers().get(eventGroup.getKey()).remove(trigger);\n System.out.println(HandlerRegistry.getHandlers());\n }\n }\n }\n }", "public void removeOverTime(){\r\n\t\tlong latest = timeQueue.getLast();\r\n\t\twhile( !timeQueue.isEmpty() && overlapRatioQueue.isEmpty() ){\r\n\t\t\tlong temp = timeQueue.getFirst();\r\n\t\t\tif( latest - temp > SMOOTING_INTERVAL ){\r\n\t\t\t\ttimeQueue.removeFirst();\r\n\t\t\t\toverlapRatioQueue.removeFirst();\r\n\t\t\t}else{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean deletePastEvents (Event event){\r\n\t int currentDate = getCurrentDate();\r\n\t int date = event.date;\r\n\t if (date<currentDate){\r\n\t\t masterEventsFile.remove(event.getEventLine());\r\n\t\t return true;\r\n\t }\r\n\t return false;\r\n }", "protected static<T extends FitbitInterval> List<T> filterResults( List<T> results, FitbitQuery query ) {\n\t\tif ( query.atResolution( ) == FitbitResolution.DAILY )\n\t\t\treturn results;\n\t\t\n\t\tList<T> filteredResults = new ArrayList<T>( );\n\t\tfor ( T r : results )\n\t\t\tif ( r.getInterval( ).getStart( ).isAfter( query.from( ) ) && r.getInterval( ).getStart( ).isBefore( query.to( ) ) )\n\t\t\t\tfilteredResults.add( r );\n\t\t\t\t\n\t\treturn filteredResults;\n\t}", "public ArrayList<Event> getCalendarEventsBetween(Calendar startingDate, Calendar endingDate)\n {\n ArrayList<Event> list = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n Calendar eventCalendar = events.get(i).getCalendar();\n\n if(isSame(startingDate, eventCalendar) || isSame(endingDate, eventCalendar) ||\n (eventCalendar.before(endingDate) && eventCalendar.after(startingDate)))\n {\n list.add(events.get(i));\n }\n }\n return list;\n }", "public ArrayList<BoardGame> filterByTime(ArrayList<BoardGame> list) {\n int time = extractInt(playTime);\n ArrayList<BoardGame> tempList = new ArrayList<>();\n for (BoardGame game: list) {\n //Debug print out\n Log.i(\"FILTER TIME\", \"Game: \" + game.getName() + \" Min Time: \" + game.getMinPlayTime() +\n \" Max Time: \" + game.getMaxPlayTime() + \" Target Time: \" + time);\n if((game.getMinPlayTime() <= time && game.getMaxPlayTime() >= time) || game.getMaxPlayTime() <= time) {\n addGameToList(tempList, game);\n }\n }\n return tempList;\n }", "@Test\n public void cancelEventsBySizeNonzero(){\n List<String> s1=new ArrayList<>();\n s1.add(\"sSeyon\");\n List<String> a1=new ArrayList<>();\n a1.add(\"aHelen\");\n List<String> s2=new ArrayList<>();\n s2.add(\"sSeyon\");\n s2.add(\"sHelen\");\n List<String> a2=new ArrayList<>();\n a2.add(\"aHelen\");\n a2.add(\"aLeo\");\n List<String> s3=new ArrayList<>();\n List<String> a3=new ArrayList<>();\n\n\n es.addEvent(EventType.SINGLE_SPEAKER_EVENT, 3, \"CSC207\",t1,t2,\"HL205\",\n s1,a1);\n es.addEvent(EventType.MULTI_SPEAKER_EVENT,5,\"MAT224\",t3,t4,\"Bahen\",\n s2,a2);\n es.addEvent(EventType.NO_SPEAKER_EVENT,6,\"Party\",t5,t6,\"Party Room\",\n s3,a3);\n\n //cancels the 2-speakers event\n assertTrue(es.cancelEventsBySize(2, true));\n assertEquals(2,es.getListEvents().size());\n HashMap<String,String> expected1 = toMap(EventType.SINGLE_SPEAKER_EVENT, 3, \"CSC207\",t1,t2,\"HL205\",\n s1,a1);\n HashMap<String,String> actual1 = listToMap(es.getListEvents().get(0));\n assertEquals(expected1,actual1);\n HashMap<String,String> expected2 = toMap(EventType.NO_SPEAKER_EVENT,6,\"Party\",t5,t6,\"Party Room\",\n s3,a3);\n HashMap<String,String> actual2 = listToMap(es.getListEvents().get(1));\n assertEquals(expected2,actual2);\n\n // this leaves only the non_speaker event left\n assertTrue(es.cancelEventsBySize(1, true));\n assertEquals(1,es.getListEvents().size());\n HashMap<String,String> expected3 = toMap(EventType.NO_SPEAKER_EVENT,6,\"Party\",t5,t6,\"Party Room\",\n s3,a3);\n HashMap<String,String> actual3 = listToMap(es.getListEvents().get(0));\n assertEquals(expected3,actual3);\n }", "@RequestMapping(path = \"/specificCanceledRoutes\", method = RequestMethod.GET)\n\tpublic List<RouteCanceled> getRoutesCanceledByTimeframe(Date from, Date to) {\n\t\tQuery queryObject = new Query(\"Select * from route_canceled\", \"blablamove\");\n\t\tQueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n\t\tInfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n\t\tList<RouteCanceled> routeCanceledList = resultMapper\n\t\t\t\t.toPOJO(queryResult, RouteCanceled.class);\n\n\t\treturn routeCanceledList.stream().filter(\n\t\t\t\trouteCanceled -> !instantIsBetweenDates(\n\t\t\t\t\t\trouteCanceled.getTime(),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tto.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tfrom.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t)\n\t\t\t\t)\n\t\t).collect(Collectors.toList());\n\t}", "private void removeOutOfDateData(List<DetailedData> detailedDatas)\n {\n for (Iterator<DetailedData> it = detailedDatas.iterator(); it.hasNext();)\n {\n DetailedData data = it.next();\n if (TuvState.OUT_OF_DATE.getName().equalsIgnoreCase(data.getState()))\n {\n it.remove();\n }\n }\n }", "public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }", "public List<PartitionedThermostatEvent> listAlgoProcessedEventsByThermostatAndTimeRange(Integer thermostatId, Calendar startTime, Calendar endTime) {\n\n String ql = \"SELECT te FROM PartitionedThermostatEvent te WHERE te.type=1 AND te.thermostatId = :thermostatId AND te.status = :status AND te.id.eventSysTime BETWEEN :startTime AND :endTime\";\n Map<String, Object> paramVals = new HashMap<String, Object>();\n paramVals.put(\"status\", ThermostatEventAttributeDef.Status.PROCESSED.status());\n paramVals.put(\"thermostatId\", thermostatId);\n paramVals.put(\"startTime\", startTime);\n paramVals.put(\"endTime\", endTime);\n\n List<PartitionedThermostatEvent> thermostatEvents = listByQuery(ql, paramVals);\n return thermostatEvents;\n }", "public void filterByMyMostRece() {\n // for each mood event in the list\n for (int i = 0; i < moodListBeforeFilterMy.getCount(); i++ ){\n // get the mood's date\n dateOfMood = moodListBeforeFilterMy.getMoodEvent(i).getDateOfRecord();\n // if it within the range, then add it to the new list\n if (dateOfMood.compareTo(lowerBoundDATE) >= 0 && dateOfMood.compareTo(currentDATE) <= 0) {\n moodListAfterFilter.add(moodListBeforeFilterMy.getMoodEvent(i));\n }\n }\n }", "EventChannelFilter filter();", "public ArrayList<FbEvent> getOngoingEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" >= ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "private void findNearByEvents() {\n LatLng latLng = mMapFragment.getCenterOfScreen();\n double longitude = latLng.longitude;\n double latitude = latLng.latitude;\n\n int spEventsPosition = mEventsSpinner.getSelectedItemPosition();\n int spTimesPosition = mTimesSpinner.getSelectedItemPosition();\n\n Log.e(\"MainAct\", \"Lat: \" + latitude + \" Lon: \" + longitude);\n mEventInteractor = new EventInteractor(this);\n EventSearchRequest eventSearchRequest = new EventSearchRequest();\n eventSearchRequest.setLat(String.valueOf(latitude));\n eventSearchRequest.setLon(String.valueOf(longitude));\n eventSearchRequest.setEventTime(spTimesPosition);\n eventSearchRequest.setEventType(spEventsPosition);\n mEventInteractor.eventSearch(eventSearchRequest, new EventSearchListener() {\n @Override\n public void onEventSearch(EventSearchResponse response) {\n mBottomSheetListFragment.refreshEvents(response.getEvents());\n mMapFragment.getEventsAndPin(response.getEvents());\n }\n\n @Override\n public void onError(String errorMessage) {\n showErrorMessage(errorMessage);\n }\n\n @Override\n public void onBeforeRequest() {\n showWaitingDialog();\n }\n\n @Override\n public void onAfterRequest() {\n dismissWaitingDialog();\n }\n });\n }", "public void pruneEvents(final int maxNumToPrune) {\n final SQLiteDatabase db = this.helper.getWritableDatabase();\n \n final Cursor c = db.rawQuery(\n \"SELECT MAX(date) \" +\n \"FROM (SELECT date \" +\n \" FROM events \" +\n \" ORDER BY date \" +\n \" LIMIT \" + maxNumToPrune + \")\",\n null);\n long pruneDate = -1;\n try {\n if (!c.moveToFirst()) {\n Logger.debug(LOG_TAG, \"No max date found in events: table is likely empty. Not pruning \" +\n \"events.\");\n return;\n }\n pruneDate = c.getLong(0);\n } finally {\n c.close();\n }\n \n final String selection = \"date < \" + pruneDate;\n db.beginTransaction();\n try {\n db.delete(EVENTS_INTEGER, selection, null);\n db.delete(EVENTS_TEXTUAL, selection, null);\n db.setTransactionSuccessful();\n } finally {\n db.endTransaction();\n }\n }", "void parseEventList() {\n\t\tfor (int eventsId : events.keySet()) {\n\t\t\tfinal Event event = events.get(eventsId);\n\t\t\tif (users.get(event.getUser().getName()).isActiveStatus()\n\t\t\t\t\t&& !event.isViewed()\n\t\t\t\t\t&& event.getInnerSisdate().compareTo(\n\t\t\t\t\t\t\tnew GregorianCalendar()) >= 0) {\n\t\t\t\tevent.setViewed(true);\n\t\t\t\tfinal SimpleDateFormat fm = new SimpleDateFormat(\n\t\t\t\t\t\t\"dd.MM.yyyy-HH:mm:ss\");\n\t\t\t\tt.schedule(new TimerTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (event.isActive()) {\n\t\t\t\t\t\t\tgenerateEventMessage(\"User \"\n\t\t\t\t\t\t\t\t\t+ event.getUser().getName()\n\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t+ fm.format(event.getInnerSisdate()\n\t\t\t\t\t\t\t\t\t\t\t.getTime()) + \" \" + event.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, event.getInnerSisdate().getTime());\n\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public void clear()\n {\n super.clear();\n \n /*\n * we handle the aborting timed events here so that it\n * doesn't occur in the write lock which could result\n * in deadlock since the events might have locks of their own\n */\n Collection<ITimedEvent> events = Collections.emptyList();\n try\n {\n getLock().readLock().lock();\n if (_pendingTimedEvents.size() != 0)\n events = new ArrayList<ITimedEvent>(_pendingTimedEvents);\n }\n finally\n {\n getLock().readLock().unlock();\n }\n \n for (ITimedEvent element : events)\n element.abort();\n \n }", "public List<Event> retrieveJobStatusAsEvent(String fromJobStatusId, String toJobStatusId, Calendar fromDate, Calendar toDate, int maxElements, String userId) throws DatabaseException, IllegalArgumentException;", "@objid (\"2c133f02-d778-4c15-874c-c08e507222c0\")\n <T extends Event> List<T> getEOccurence(java.lang.Class<T> filterClass);", "public ArrayList<Question> filterByEnd(ArrayList<Question> input, LocalDate end) {\n\n /* The final filtered arrayList */\n ArrayList<Question> filtered = new ArrayList<>();\n\n /* Go through the entire input arraylist checking each question. */\n for (int i = 0 ; i < input.size(); i++) {\n\n /* If the question date is before the end date, then add it to the new ArrayList. */\n if (input.get(i).getDate().compareTo(end) <= 0) {\n filtered.add(input.get(i));\n }\n }\n\n return filtered;\n }", "public ArrayList<Event> getEventsByInterval(Calendar initial_date, Calendar final_date) {\n\t\tArrayList<Event> result = new ArrayList<Event>();\n\t\tboolean insert = true;\n\t\t\n\t\tfor (int i = 0; i < events.size(); i++) {\t\t\t\n\t\t\tif (initial_date != null && final_date != null) {\t\t\n\t\t\t\tif (!events.get(i).getInitial_date().after(initial_date)\n\t\t\t\t\t\t|| !events.get(i).getFinal_date().before(final_date)) {\n\t\t\t\t\tinsert = false;\n\t\t\t\t}\n\t\t\t} else if (initial_date != null) {\n\t\t\t\tif (!events.get(i).getInitial_date().after(initial_date)) {\n\t\t\t\t\tinsert = false;\n\t\t\t\t}\n\t\t\t} else if (final_date != null) {\n\t\t\t\tif (!events.get(i).getFinal_date().before(final_date)) {\n\t\t\t\t\tinsert = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (insert) {\n\t\t\t\tresult.add(events.get(i));\n\t\t\t}\n\t\t\tinsert = true;\n\t\t}\n\t\treturn result;\n\t}", "public void clearReceivedEvents() {\n this.receivedEvents.clear();\n }", "public Observable getEvents(){\n QBRequestGetBuilder requestBuilder = new QBRequestGetBuilder();\n requestBuilder.sortDesc(\"startDate\");\n return makeObservable(requestBuilder);\n }", "@Override\n\t\tprotected ArrayList<MotivatorEvent> doInBackground(Void... arg0) {\n\t\t\tif (mSelectedSprint.getEndTime() > System.currentTimeMillis()) {\n\t\t\t\treturn mEventDataHandler.getUncheckedEventsBetween(mSelectedSprint.getStartTime(), System.currentTimeMillis());\n\t\t\t}\n\t\t\treturn mEventDataHandler.getUncheckedEventsBetween(mSelectedSprint.getStartTime(), mSelectedSprint.getEndTime());\n\t\t}", "@Override\n public List<Event> searchByInterval(Date leftDate, Date rightDate) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin BETWEEN :leftDate and :rightDate \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"leftDate\", leftDate)\n .setParameter(\"rightDate\", rightDate);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "@WebMethod public List<Event> getAllEvents();", "@Override\n public Flux<PersistentAuditEvent> findAllByAuditEventDateBetween(Instant fromDate, Instant toDate, Pageable pageable) {\n OffsetDateTime fromDateH2 = OffsetDateTime.ofInstant(fromDate, ZoneId.systemDefault());\n OffsetDateTime toDateH2 = OffsetDateTime.ofInstant(toDate, ZoneId.systemDefault());\n Criteria criteria = Criteria\n .where(\"event_date\").greaterThan(fromDateH2)\n .and(\"event_date\").lessThan(toDateH2);\n return findAllFromSpec(select().matching(criteria).page(pageable));\n }", "public void checkBlackOutPeriod(){\n\n\n // loop through all filings and output filing date value in milli seconds\n System.out.println(\"checking black out period status for filings : \"+blackOutPeriodDuration);\n\n BaseTradeMarkApplicationService baseTradeMarkApplicationService = serviceBeanFactory.getBaseTradeMarkApplicationService();\n\n\n for(Iterator<BaseTrademarkApplication> iter = baseTradeMarkApplicationService.findAll().iterator(); iter.hasNext(); ) {\n BaseTrademarkApplication current = iter.next();\n\n if((current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"TEAS RF New Application\") )|| (current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"New Application\") ) ){\n // check that date + duration against current time\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod()) < new Date().getTime()){\n\n System.out.println(\"Filing has expired from the black out period\");\n\n //baseTradeMarkApplicationService.save(current);\n\n // we need to check current filings to make sure there are no active office action\n\n if(current.hasActiveOfficeAction() == false){\n\n OfficeActions officeActions = new OfficeActions();\n officeActions.setParentMarkImagePath(current.getTradeMark().getTrademarkImagePath());\n officeActions.setStandardCharacterMark(current.isStandardTextMark());\n officeActions.setStandardCharacterText(current.getTradeMark().getTrademarkStandardCharacterText());\n officeActions.setParentMarkOwnerName(current.getPrimaryOwner().getOwnerDisplayname());\n officeActions.setParentSerialNumber(current.getTrademarkName());\n officeActions.setParentRegistrationNumber(current.getRegistrationID());\n officeActions.setActiveAction(true);\n long dueDate = new Date().getTime()+current.getBlackOutPeriod()+current.getOfficeActionResponsePeriod();\n officeActions.setDueDate(new Date(dueDate));\n //officeActions.setOfficeActionCode(\"Missing transliteration\");\n\n\n // create office action event here\n // filing document is only created if an office action is created with required actions\n\n\n\n\n // required actions section\n\n\n // required action Translation\n if (current.getTradeMark().isStandardCharacterMark() || current.getTradeMark().getTrademarkDesignType().equals(\"Design with Text\")) {\n if (current.getTradeMark().getForeignLanguageTranslationUSText() == null || current.getTradeMark().getForeignLanguageTranslationUSText() == null || current.getTradeMark().getForeignLanguageType_translation() == null ){\n\n // create required action here\n RequiredActions requiredActions = new RequiredActions();\n requiredActions.setRequiredActionType(\"Translation of Foreign Wording\");\n requiredActions.setTranslationTextForeign(current.getTradeMark().getForeignLanguageTranslationOriginalText());\n requiredActions.setTranslationTextEnglish(current.getTradeMark().getForeignLanguageTranslationUSText());\n requiredActions.setTranslationTextLanguage(current.getTradeMark().getForeignLanguageType_translation());\n\n\n\n officeActions.addRequiredActions(requiredActions);\n\n\n\n }\n\n\n }\n\n // required action disclaimer\n\n if(current.getTradeMark().getDisclaimerDeclarationList().size() == 0){\n // you have to provide at least one disclaimer\n RequiredActions requiredActions = new RequiredActions();\n requiredActions.setRequiredActionType(\"Disclaimer Required\");\n\n officeActions.addRequiredActions(requiredActions);\n\n }\n\n\n // office action is created only if there are required actions\n if(officeActions.getRequiredActions().size() > 0){\n current.setFilingStatus(\"Non-Final Action Mailed\");\n officeActions.setOfficeActionCode(\"Non-Final Action Mailed\");\n\n\n // create an default office action object and attach it to filing\n current.addOfficeAction(officeActions);\n officeActions.setTrademarkApplication(current);\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Office Action Outgoing\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n }\n\n baseTradeMarkApplicationService.save(current);\n\n\n\n\n }\n\n\n\n\n // also check for number of required actions.\n // if there are none. office action is not saved\n\n\n\n\n\n // set relevant office actions\n\n\n\n }\n else{\n System.out.println(\"filing is still in the black out period\");\n\n }\n }\n else{\n System.out.println(\"Filing is not Submitted yet.\");\n }\n }\n\n\n }", "public Collection<String> retrieveOrphanTraceEventInfoTracingID(Hashtable criteria)\n { \n Long fromStartDateTime = (Long)criteria.get(IArchiveConstant.CRITERIA_FROM_START_DATE_TIME);\n Long toStartDateTime = (Long)criteria.get(IArchiveConstant.CRITERIA_TO_START_DATE_TIME);\n if(fromStartDateTime == null)\n throw new NullPointerException(\"[AuditTrailArchiveManager.archiveOrphanTraceEventInfo] fromStartDateTime can't be Null ...\");\n if(toStartDateTime == null)\n {\n throw new NullPointerException(\"[AuditTrailArchiveManager.archiveOrphanTraceEventInfo] toStartDateTime can't be Null ...\");\n } \n else\n {\n TraceEventInfoDAO dao = new TraceEventInfoDAO();\n List<String> tracingIDs = dao.getTraceEventInfoTracingIDByEventOccuredTime(new Date(fromStartDateTime), new Date(toStartDateTime));\n return filterTracingIDs(tracingIDs, false, null);\n }\n }", "public static List<Row> filterDate(List<Row> inputList, LocalDateTime startOfDateRange, LocalDateTime endOfDateRange) {\n\t\t//checks to ensure that the start of the range (1st LocalDateTime input) is before the end of the range (2nd LocalDateTime input)\n\t\tif(startOfDateRange.compareTo(endOfDateRange) > 0) {\n\t\t\t//if not, then send an error and return empty list\n\t\t\tGUI.sendError(\"Error: start of date range must be before end of date range.\");\n\t\t\treturn Collections.emptyList();\n\t\t}\n\n\t\tList<Row> outputList = new ArrayList<>();\n\n\t\t//iterate through inputList, adding all rows that fall within the specified date range to the outputList\n\t\tfor(Row row : inputList) {\n\t\t\tif(row.getDispatchTime().compareTo(startOfDateRange) >= 0 && row.getDispatchTime().compareTo(endOfDateRange) <= 0) {\n\t\t\t\toutputList.add(row);\n\t\t\t}\n\t\t}\n\n\t\t//outputList is returned after being populated\n\t\treturn outputList;\n\t}", "Deque<Event> getEvents(long inId);", "public static Collection<CalendarEvent> collectEventsFromJsonArray(JSONArray eventsArray) {\n Collection<CalendarEvent> events = new ArrayList<CalendarEvent>();\n for (Object object : eventsArray) {\n if (object instanceof JSONObject) {\n JSONObject eventJsonObject = (JSONObject) object;\n String name = eventJsonObject.getString(\"name\");\n Instant startTime = Instant.parse(eventJsonObject.getString(\"startTime\"));\n Instant endTime = Instant.parse(eventJsonObject.getString(\"endTime\"));\n CalendarEvent newEvent = new CalendarEvent(name, startTime, endTime);\n events.add(newEvent);\n }\n }\n return events;\n }", "public final void loadEvents() {\n\n if (selectedUser == null || selectedUser.equals(\"All\")) {\n for (Absence a : AbsenceService.getAllUnacknowledged()) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n } else {\n for (Absence a : AbsenceService.getAbsenceByUserAndUnacknowledged(BenutzerverwaltungService.getUser(selectedUser))) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType() + \" \" + a.getReason(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n }\n\n DefaultScheduleEvent holidayevent;\n\n for (Holiday h : HolidayService.getList()) {\n holidayevent = new DefaultScheduleEvent(h.getHolidayComment(), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()));\n holidayevent.setAllDay(true);\n holidayevent.setStyleClass(\"feiertag\");\n\n this.addEvent(holidayevent);\n }\n }", "ArrayList<Transaction> getFilteredTransactions(long startTimestamp,\n long endTimestamp, long accountNumber, boolean showExpense, boolean showIncome) {\n ArrayList<Transaction> filteredTransactionList = new ArrayList<>();\n int low = 0;\n int high = transactionList.size() - 1;\n if (startTimestamp != -1 && endTimestamp != -1) {\n /*\n If start and end time are set, then get the range of\n transaction corresponding to the time range.\n */\n Points p = getTransactions(startTimestamp, endTimestamp);\n if (p.x == -1 && p.y == -1)\n return filteredTransactionList;\n low = p.x;\n high = p.y;\n }\n for (int i = low; i <= high; i++) {\n if (accountNumber != -1 && transactionList.get(i).transactionAccountNumber != accountNumber)\n continue;\n if (!showExpense && (transactionList.get(i).transactionType == 0 || transactionList.get(i).transactionType == 2))\n continue;\n if (!showIncome && (transactionList.get(i).transactionType == 1 || transactionList.get(i).transactionType == 3))\n continue;\n filteredTransactionList.add(transactionList.get(i));\n }\n return filteredTransactionList;\n }", "public static ArrayList<Event> getEvents(String accessToken) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n try {\n JsonObject eventsJson = getWebService(params, EVENTS_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"RESULT: \" + eventsJson.toString());\n if (eventsJson != null) {\n GsonBuilder builder = new GsonBuilder();\n builder.registerTypeAdapter(Event.class, new Event.EventDeserializer());\n\n Gson gson = builder.create();\n ArrayList<Event> eventList = gson.fromJson(\n eventsJson.get(\"events\"),\n new TypeToken<ArrayList<Event>>() {\n }.getType());\n return eventList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when getting events - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when getting events\", e);\n return null;\n } // end try-catch\n }", "private void removeExpired() {\n Map<K,CacheableObject> removeMap = new HashMap<K,CacheableObject>(valueMap.size()/2);\n List<CacheListener<K>> tempListeners = new ArrayList<CacheListener<K>>();\n\n // Retrieve a list of everything that's to be removed\n synchronized(theLock) {\n for (Map.Entry<K,CacheableObject> entry : valueMap.entrySet()) {\n if (isExpired(entry.getValue())) {\n removeMap.put(entry.getKey(), entry.getValue());\n }\n }\n tempListeners.addAll(listeners);\n }\n\n // Remove the entries one-at-a-time, notifying the listener[s] in the process\n for (Map.Entry<K,CacheableObject> entry : removeMap.entrySet()) {\n synchronized(theLock) {\n currentCacheSize -= entry.getValue().containmentCount;\n valueMap.remove(entry.getKey());\n }\n Thread.yield();\n\n for (CacheListener<K> listener : tempListeners) {\n listener.expiredElement(entry.getKey());\n }\n }\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n Log.d(\"@@@@@LOOK HERE TIME@@\", show);\n Log.d(\"@@@@@LOOK HERE DATE@@\", show2);\n Log.d(\"@@@@@LOOK HERE DATETIME\", show3);\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n List<String> realStrings = new ArrayList<String>();\n for (String a:eventStrings\n ) {\n // Log.d(\"@@@@\", a);\n String day;\n String korTimeSpeech = null;\n String newSpeech = null;\n day = a.substring(a.indexOf(\"(\"), a.indexOf(\")\"));\n day = day.substring(1);\n\n if(day.length() > 16) {\n int hour = Integer.parseInt(day.substring(11, 13));\n if(hour < 12) {\n korTimeSpeech = \"오전 \";\n } else{\n korTimeSpeech = \"오후 \";\n hour = hour - 12;\n }\n korTimeSpeech = korTimeSpeech + hour + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = korTimeSpeech + newSpeech;\n //Make it in day format\n day = day.substring(0, day.indexOf(\"T\"));\n }else {\n // korTimeSpeech = day.substring(11, 13) + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = newSpeech;\n }\n\n if (day.equals(nowDay)) {\n realStrings.add(newSpeech);\n }\n }\n\n return realStrings;\n }", "public static List<Event> loadEvents() throws JSONException {\n \t\t\n \t\tString data = getJSON(Constants.GOOGLEEVENTS);\n \t\t\n \t\tJSONObject json_obj = new JSONObject(data).getJSONObject(\"feed\");\n \t\tJSONArray json_arr = json_obj.getJSONArray(\"entry\");\n \t\t\t\n \t\tList<Event> events = new ArrayList<Event>();\n \t\t\t\n \t\t//Collection the right content from JSON\n \t\tfor (int i = 0; i < json_arr.length(); i++){\n \t\t\tString title = json_arr.getJSONObject(i).getJSONObject(\"title\").optString(\"$t\");\n \t\t\tString description = json_arr.getJSONObject(i).getJSONObject(\"content\").optString(\"$t\");\n \t\t\tString time = json_arr.getJSONObject(i).getJSONArray(\"gd$when\").getJSONObject(0).optString(\"startTime\");\n \t\t\tString where = json_arr.getJSONObject(i).getJSONArray(\"gd$where\").getJSONObject(0).optString(\"valueString\");\n \t\t\t\t\n \t\t\t//If time is not an all day event\n \t\t\tif(time.length() > \"1967-09-03\".length()){\n \t\t\t\ttime = fromDate(time);\n \t\t\t}\n \t\t\t\n \t\t\t//Add events if it has i title\n \t\t\tif (!title.equals(\"\")){\n \t\t\t\tevents.add(new Event(title, description, where, time + \". \"));\n \t\t\t}\n \t\t}\t\n \t\treturn events;\n \t}", "private ArrayList<Event> getSemesterTwoEvents(EventList eventList) throws PacException {\n ArrayList<Event> list = new ArrayList<>();\n for (int i = 0; i < eventList.list.size(); i++) {\n Event event = eventList.find(i);\n if (event.dateTimeIsParsed()) {\n if (event.getMonth() > 0 && event.getMonth() < 7) {\n list.add(event);\n }\n }\n }\n return list;\n }", "private List<XmTimeline> filterResult(Page<XmTimeline> timelines) {\n List<XmTimeline> content = timelines.getContent();\n\n if (hidePayload()) {\n content.forEach(xmTimeline -> {\n xmTimeline.setResponseBody(null);\n xmTimeline.setRequestBody(null);\n });\n }\n\n return content;\n }", "public List<Event> getEvents(int offset, int limit) throws DBException {\n DBTransaction transaction = dbService.getTransaction();\n List<Event> result =\n transaction.getObjects(Event.class, \"select e from Event e\", null, offset, limit);\n\n transaction.close();\n return result;\n }", "private synchronized void removeStreams() {\n Iterator<Map.Entry<Query, Long>> it = sheduledRemovals.entrySet().iterator();\n\n while (it.hasNext()) {\n Map.Entry<Query, Long> entry = it.next();\n if (entry.getValue() < System.currentTimeMillis()) {\n it.remove();\n Closeable stream = streams.get(entry.getKey());\n try {\n stream.close();\n }catch (IOException e){\n // TweetStreams can not throw IO-Exceptions on close.\n // Nothing to do here\n }\n streams.remove(entry.getKey());\n counts.remove(entry.getKey());\n }\n }\n }", "Map<Long,LinkedList<Event>> getAllEvents(List<Long> inRequestIds);", "protected void clearEvents() {\n\t\tsCIButtons.clearEvents();\n\t\tsCILogicUnit.clearEvents();\n\t\tsCIState.clearEvents();\n\n\t\tfor (int i = 0; i < timeEvents.length; i++) {\n\t\t\ttimeEvents[i] = false;\n\t\t}\n\t}", "public void sortEventsByTime() {\n for (OrgEvent event : events) {\n event.setCompareByTime(true);\n }\n Collections.sort(events);\n }", "public interface EventFilter {\n\n /**\n * Filter an event\n *\n * @param eventName\n * name of the event to filter\n * @param params\n * objects sent with the event\n * @param eventBus\n * event bus used to fire the event\n * @return false if event should be stopped, true otherwise\n */\n boolean filterEvent(String eventName, Object[] params, Object eventBus);\n}", "private void cleanUpConsumedEsnRecords() {\n\t\tesnInfoRepository.findAllByIsConsumed(true).removeIf(item -> (Days\n\t\t\t\t.daysBetween(new DateTime(item.getDateImported()), new DateTime()).isGreaterThan(Days.days(30))));\n\t}", "public List<PauserRemovedEventResponse> getPauserRemovedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt) {\n List<SmartContract.EventValuesWithLog> valueList = extractEventParametersWithLog(PAUSERREMOVED_EVENT, transactionReceipt);\n ArrayList<PauserRemovedEventResponse> responses = new ArrayList<PauserRemovedEventResponse>(valueList.size());\n for (SmartContract.EventValuesWithLog eventValues : valueList) {\n PauserRemovedEventResponse typedResponse = new PauserRemovedEventResponse();\n typedResponse.log = eventValues.getLog();\n typedResponse.account = (String) eventValues.getIndexedValues().get(0).getValue();\n responses.add(typedResponse);\n }\n return responses;\n }", "@Test\n void nonMatchDiffsAreSavedAsSubEvents() {\n wm.stubFor(get(\"/right\").willReturn(ok()));\n\n testClient.get(\"/wrong\");\n\n ServeEvent serveEvent = wm.getAllServeEvents().get(0);\n SubEvent subEvent = serveEvent.getSubEvents().stream().findFirst().get();\n assertThat(subEvent.getType(), is(\"REQUEST_NOT_MATCHED\"));\n assertThat(subEvent.getTimeOffsetNanos(), greaterThan(0L));\n assertThat(subEvent.getDataAs(DiffEventData.class).getReport(), containsString(\"/wrong\"));\n }", "public List<UnpausedEventResponse> getUnpausedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt) {\n List<SmartContract.EventValuesWithLog> valueList = extractEventParametersWithLog(UNPAUSED_EVENT, transactionReceipt);\n ArrayList<UnpausedEventResponse> responses = new ArrayList<UnpausedEventResponse>(valueList.size());\n for (SmartContract.EventValuesWithLog eventValues : valueList) {\n UnpausedEventResponse typedResponse = new UnpausedEventResponse();\n typedResponse.log = eventValues.getLog();\n typedResponse.account = (String) eventValues.getNonIndexedValues().get(0).getValue();\n responses.add(typedResponse);\n }\n return responses;\n }", "public EventList getEvents(String userName) {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT userId, eventName, startMonth, startDay, startYear, startHour, startMinute\" +\n \", endMonth, endDay, endYear, endHour, endMinute FROM Events WHERE userId=?\");\n s.setInt(1, getIdOfUser(userName));\n s.execute();\n ResultSet results = s.getResultSet();\n\n EventList events = new EventList();\n if (!results.isBeforeFirst()) {\n return events;\n }\n\n while (!results.isLast()) {\n results.next();\n Event e = new Event(userName, results.getString(2),\n results.getInt(3), results.getInt(4), results.getInt(5),\n results.getInt(6), results.getInt(7), results.getInt(8),\n results.getInt(9), results.getInt(10), results.getInt(11),\n results.getInt(12));\n events.add(e);\n }\n results.close();\n s.close();\n events.sort();\n\n return events;\n } catch (SQLException e) {\n System.err.println(\"SQLE\");\n sqlException(e);\n return null;\n }\n }", "public static void sortEvents(){\n if(events.size()>0){\n Comparator<Event> comp = new Comparator<Event>(){\n public int compare(Event e1, Event e2){\n if(e1.getEventStartTime().before(e2.getEventStartTime())){\n return -1;\n }\n else if(e1.getEventStartTime().after(e2.getEventStartTime())){\n return 1;\n }\n else{\n return 0;\n }\n }\n \n };\n Collections.sort(events, comp);\n \n }}", "public Collection<TimeRange> getAvailableTimes(List<TimeRange> unavailableTimes, long requestDuration) {\n int startTime = TimeRange.START_OF_DAY;\n Collections.sort(unavailableTimes, TimeRange.ORDER_BY_START);\n Collection<TimeRange> availableTimes = new ArrayList<>();\n \n for(TimeRange unavailableTime : unavailableTimes) {\n if(startTime < unavailableTime.start()) {\n TimeRange availableTime = TimeRange.fromStartEnd(startTime, unavailableTime.start(), false);\n if(availableTime.duration() >= requestDuration){\n availableTimes.add(availableTime);\n }\n }\n if(unavailableTime.end() > startTime){\n startTime = unavailableTime.end();\n }\n }\n\n if(startTime != TimeRange.END_OF_DAY+1){\n availableTimes.add(TimeRange.fromStartEnd(startTime, TimeRange.END_OF_DAY, true));\n }\n \n return availableTimes;\n }", "@Test\n public void testRemoveEventConvinienceMethodWithCustomEventProvider() {\n calendar.setEventProvider(new ContainerEventProvider(new com.vaadin.v7.data.util.BeanItemContainer<BasicEvent>(BasicEvent.class)));\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n BasicEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n List<CalendarEvent> events = calendar.getEvents(start, end);\n Assert.assertEquals(1, events.size());\n // Remove event\n calendar.removeEvent(event);\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n }", "protected void normalizeEventTimes()\n {\n this.m_eventStartTime = (this.event_start_time == EASMessage.IMMEDIATE_START_TIME) ? System.currentTimeMillis()\n : (this.event_start_time * 1000L) + EASMessage.START_TIME_EPOCH;\n\n this.m_eventExpirationTime = (this.event_duration == EASMessage.INDEFINITE_EVENT_DURATION) ? Long.MAX_VALUE\n : this.m_eventStartTime + (this.event_duration * 60L * 1000L);\n }", "public static List<Event> generateExpiredEvents() {\n\t\tEvent event1 = Event.create(0);\r\n\t\tevent1.infoStore().add(Info.create(1, 2, 3));\r\n\t\tList<Event> events = new ArrayList<Event>();\r\n\t\tevents.add(event1);\r\n\t\treturn events;\r\n\t}", "@Override\n\tpublic CalendarEventVector getEvents(List references, TimeRange range) {\n\t\treturn null;\n\t}" ]
[ "0.6256077", "0.6171599", "0.6010873", "0.59533465", "0.59399337", "0.5889694", "0.5883613", "0.5866596", "0.5835859", "0.5830047", "0.5813403", "0.56816125", "0.5649748", "0.5593654", "0.55749786", "0.5545306", "0.5537975", "0.5523402", "0.5488195", "0.54837257", "0.548188", "0.5472234", "0.5453276", "0.5442959", "0.5424628", "0.5423876", "0.5407793", "0.5344543", "0.53413224", "0.5320367", "0.531197", "0.530253", "0.5298416", "0.5297793", "0.5285255", "0.5279582", "0.5279582", "0.52733445", "0.5250832", "0.5246474", "0.5231254", "0.5230282", "0.5222695", "0.52124286", "0.5195692", "0.51911676", "0.51900136", "0.5188106", "0.51875687", "0.5184997", "0.51704824", "0.51534414", "0.51494306", "0.5128792", "0.5111026", "0.51065785", "0.509943", "0.5095369", "0.50782907", "0.5055443", "0.50366867", "0.50244844", "0.50237006", "0.5023497", "0.5008112", "0.5003937", "0.5002469", "0.49977347", "0.4994533", "0.49925748", "0.49830675", "0.49817812", "0.4978686", "0.49654746", "0.49615452", "0.49584714", "0.49517763", "0.494899", "0.49487785", "0.49465218", "0.4931921", "0.49260324", "0.49189416", "0.4900209", "0.4897902", "0.48861352", "0.48803523", "0.4879242", "0.48676777", "0.4867384", "0.48652613", "0.48637345", "0.48622644", "0.48616654", "0.4854684", "0.48471272", "0.484684", "0.48451164", "0.48391575", "0.4834058" ]
0.7438216
0
Helper method to retrieve the time series data for the query specified between specified time range.
public WavefrontMetricQueryResponse queryMetric(String query, long startTimeInEpocMillis, long endTimeInEpochMillis, String granulirity) { log.info(" Running the query: " + query + " between start time: " + startTimeInEpocMillis + " and end time: " + endTimeInEpochMillis); WavefrontMetricQueryResponse queryResponse = metricProviderHelper.queryMetrics(query, startTimeInEpocMillis, endTimeInEpochMillis, granulirity); if (null == queryResponse) { log.error(" Query didn't return any thing. Please check the query. "); return null; } return queryResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<TimeseriesData> getTimeSeriesData(String query, long startTimeInEpocMillis, long endTimeInEpochMillis,\n String granularity) {\n List<TimeseriesData> timeSeriesData = new ArrayList<>();\n WavefrontMetricQueryResponse queryResponse =\n queryMetric(query, startTimeInEpocMillis, endTimeInEpochMillis, granularity);\n if (null != queryResponse && null != queryResponse.getTimeseries()) {\n for (Timeseries timeseries : queryResponse.getTimeseries()) {\n TimeseriesData data = new TimeseriesData();\n if (CollectionUtils.isEmpty(timeseries.getTags())) {\n data.setTags(new HashMap<>());\n } else {\n data.setTags(timeseries.getTags());\n }\n data.setData(timeseries.getData());\n data.getTags().put(\"host\", timeseries.getHost());\n timeSeriesData.add(data);\n }\n return timeSeriesData;\n }\n return timeSeriesData;\n }", "void queryTimeSeries(final Message<JsonObject> msg) {\n\n final JsonObject query = msg.body();\n LOG.debug(\"{}\\n{}\", address, query.encodePrettily());\n\n // get the paramsters from the query\n final Range range = rangeParser.parse(query.getJsonObject(\"range\").getString(\"from\"),\n query.getJsonObject(\"range\").getString(\"to\"));\n final long interval = intervalParser.parseToLong(query.getString(\"interval\"));\n final JsonArray targets = query.getJsonArray(\"targets\")\n .stream()\n .map(o -> ((JsonObject) o).getString(\"target\"))\n .collect(toJsonArray());\n\n //build the query and options\n final JsonObject tsQuery = $and(obj(\"n.begin\", $gte(range.getStart())),\n obj(\"n.begin\", $lte(range.getEnd())),\n obj(\"t.name\", $in(targets)));\n\n final FindOptions findOptions = new FindOptions().setFields(obj().put(\"t.name\", 1)\n .put(\"n.begin\", 1)\n .put(\"n.value\", 1)\n .put(\"_id\", 0)).setSort(obj(\"n.begin\", 1));\n\n long start = System.currentTimeMillis();\n //execute search and process response\n client.findWithOptions(collectionName, tsQuery, findOptions, result -> {\n\n if (result.succeeded()) {\n JsonArray resp = processResponse(range, r -> range.splitEvery(interval), targets, result);\n long end = System.currentTimeMillis();\n LOG.debug(\n \"Sending response with {} timeseries and {} datapoints (after {} ms)\",\n resp.size(),\n resp.stream()\n .map(o -> ((JsonObject) o).getJsonArray(\"datapoints\"))\n .collect(Collectors.summingInt(JsonArray::size)),\n (end - start));\n msg.reply(resp);\n\n } else {\n LOG.error(\"Annotation query failed\", result.cause());\n msg.reply(arr());\n }\n\n });\n }", "public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }", "public List<Pair<Integer>> getTrend(String collectionId, String analysisId, String query, String beginDate, String endDate,\r\n String interval) {\r\n List<Pair<Integer>> toReturn = new ArrayList<Pair<Integer>>();\r\n if (null == collectionId || null == analysisId || null == query || null == beginDate || null == endDate\r\n || 0 == collectionId.length() || 0 == analysisId.length() || 0 == beginDate.length() || 0 == endDate.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n if (!IntervalType.DAY.equals(interval) && !IntervalType.MONTH.equals(interval) && !IntervalType.YEAR.equals(interval)) {\r\n setError(\"APIL_0165\", \"interval type's not valid: \" + interval);\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\", \"analysis_id\", \"query\", \"date_begin\", \"date_end\", \"interval\", \"item_delimiter\",\r\n \"freq_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"time_series\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\",\r\n paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n request.setValue(\"analysis_id\", analysisId);\r\n request.setValue(\"query\", query);\r\n request.setValue(\"date_begin\", beginDate);\r\n request.setValue(\"date_end\", endDate);\r\n request.setValue(\"interval\", interval);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n request.setValue(\"freq_delimiter\", FREQ_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0501\", \"getting trend wasn't successful: coll_id=\" + collectionId + \"/analysis_id=\" + analysisId\r\n + \"/query=\" + query);\r\n } else {\r\n wrapError(\"APIL_0501\", \"getting trend wasn't successful: coll_id=\" + collectionId + \"/analysis_id=\" + analysisId\r\n + \"/query=\" + query);\r\n }\r\n } else {\r\n toReturn = Tools.getPairListInt(response.getValue(\"time_series\"), ITEM_DELIMITER, FREQ_DELIMITER);\r\n }\r\n return toReturn;\r\n }", "@Override\n public List<UserQuery> getQueries(LocalDateTime rangeStart, LocalDateTime rangeEnd) {\n return jdbi.withHandle(handle -> {\n handle.registerRowMapper(ConstructorMapper.factory(UserQuery.class));\n return handle.createQuery(UserQuery.getExtractQuery(rangeStart, rangeEnd))\n .mapTo(UserQuery.class)\n .list();\n });\n }", "public List<QueryStats> getQueryStats(boolean inTest,\n LocalDateTime rangeStart, LocalDateTime rangeEnd) {\n return jdbi.withHandle(handle -> {\n handle.registerRowMapper(ConstructorMapper.factory(QueryStats.class));\n return handle.createQuery(inTest ? QueryStats.getExtractQueryinTest(rangeStart, rangeEnd)\n : QueryStats.getExtractQuery(rangeStart, rangeEnd))\n .mapTo(QueryStats.class)\n .list();\n });\n }", "public List<Pair<Integer>> getCustomTrend(String collectionId, String analysisId, String fieldValue, String query,\r\n String beginDate, String endDate, String interval) {\r\n List<Pair<Integer>> toReturn = new ArrayList<Pair<Integer>>();\r\n // query can be length of 0 (in the case of \"DOCUMENT\" as Frequency Type), so it's not included in wrong argument condition\r\n if (null == collectionId || null == analysisId || null == fieldValue || null == query || null == beginDate\r\n || null == endDate || 0 == collectionId.length() || 0 == analysisId.length() || 0 == fieldValue.length()\r\n || 0 == beginDate.length() || 0 == endDate.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n if (!IntervalType.DAY.equals(interval) && !IntervalType.MONTH.equals(interval) && !IntervalType.YEAR.equals(interval)) {\r\n setError(\"APIL_0165\", \"interval type's not valid: \" + interval);\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\", \"analysis_id\", \"field_value\", \"query\", \"date_begin\", \"date_end\", \"interval\",\r\n \"item_delimiter\", \"freq_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"custom_time_series\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY,\r\n \"\", paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n request.setValue(\"analysis_id\", analysisId);\r\n request.setValue(\"field_value\", fieldValue);\r\n request.setValue(\"query\", query);\r\n request.setValue(\"date_begin\", beginDate);\r\n request.setValue(\"date_end\", endDate);\r\n request.setValue(\"interval\", interval);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n request.setValue(\"freq_delimiter\", FREQ_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0491\", \"getting custom trend wasn't successful: coll_id=\" + collectionId + \"/analysis_id=\"\r\n + analysisId + \"/field_value=\" + fieldValue + \"/query=\" + query);\r\n } else {\r\n wrapError(\"APIL_0491\", \"getting custom trend wasn't successful: coll_id=\" + collectionId + \"/analysis_id=\"\r\n + analysisId + \"/field_value=\" + fieldValue + \"/query=\" + query);\r\n }\r\n } else {\r\n toReturn = Tools.getPairListInt(response.getValue(\"time_series\"), ITEM_DELIMITER, FREQ_DELIMITER);\r\n }\r\n\r\n return toReturn;\r\n }", "public interface TimeSeriesQuerier {\n /**\n * Initialize method. Any one time initialization is done here.\n *\n * @param conf Configuration for implementation of TopologyMetrics.\n * @throws ConfigException throw when instance can't be initialized with this configuration (misconfigured).\n */\n void init (Map<String, String> conf) throws ConfigException;\n\n /**\n * Query metrics to time-series DB. The result should aggregate all components metrics to one (meaning topology level).\n *\n * @param topologyName topology name (not ID)\n * @param metricName metric name\n * @param aggrFunction function to apply while aggregating task level series\n * @param from beginning of the time period: timestamp (in milliseconds)\n * @param to end of the time period: timestamp (in milliseconds)\n * @return Map of data points which are paired to (timestamp, value)\n */\n Map<Long, Double> getTopologyLevelMetrics(String topologyName, String metricName, AggregateFunction aggrFunction, long from, long to);\n\n /**\n * Query metrics to time-series DB.\n *\n * @param topologyName topology name (not ID)\n * @param componentId component id\n * @param metricName metric name\n * @param aggrFunction function to apply while aggregating task level series\n * @param from beginning of the time period: timestamp (in milliseconds)\n * @param to end of the time period: timestamp (in milliseconds)\n * @return Map of data points which are paired to (timestamp, value)\n */\n Map<Long, Double> getMetrics(String topologyName, String componentId, String metricName, AggregateFunction aggrFunction, long from, long to);\n\n /**\n * Query metrics without modification (raw) to time-series DB.\n *\n * @param metricName metric name\n * @param parameters parameters separated by ',', and represented as 'key=value'\n * @param from beginning of the time period: timestamp (in milliseconds)\n * @param to end of the time period: timestamp (in milliseconds)\n * @return Map of metric name and Map of data points which are paired to (timestamp, value)\n */\n Map<String, Map<Long, Double>> getRawMetrics(String metricName, String parameters, long from, long to);\n\n /**\n * Function to apply while aggregating multiple series\n */\n enum AggregateFunction {\n SUM, AVG, MIN, MAX\n }\n}", "@Query(\"SELECT id, measured_at FROM measurements WHERE measured_at >= :startDate AND measured_at < :endDate\")\n @TypeConverters({DateConverter.class})\n List<MeasurementEvent> findForPeriodTest(Date startDate, Date endDate);", "public List<Pair<Integer>> getTrend(String collectionId, String analysisId, String query, String beginDate, String endDate) {\r\n return getTrend(collectionId, analysisId, query, beginDate, endDate, IntervalType.MONTH);\r\n }", "Stream<DataPoint> getHistoryData(Symbol symbol, LocalDateTime startTime, LocalDateTime endTime, int numberOfPoints);", "public org.eclipse.stardust.engine.api.runtime.DataQueryResult\n getAllData(org.eclipse.stardust.engine.api.query.DataQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;", "@Override\r\n\tpublic Vector<Log> get(Timestamp begin, Timestamp end) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tVector<Log> ret = new Vector<Log>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetAll);\r\n\t\t\tps.setTimestamp(1, begin);\r\n\t\t\tps.setTimestamp(2, end);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tret.add(generate(rs));\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public Map<Map<String, Object>, Map<String, Object>> queryFromAndTo(String siteId, int lastHours, String from, String to, String timeType) {\n String[] fromToIndices = filterRangeDateIndices(from, to, lastHours, timeType);\n boolean isLoggedTime = false;\n if (lastHours > 0 || timeType.equals(\"h\") || timeType.equals(\"m\")) {\n isLoggedTime = true;\n }\n return doMultiRequestForDays(siteId, fromToIndices, isLoggedTime, lastHours, timeType);\n }", "public String assembleGetObservationsQuery(Set<DataStream> dataStreams, Date minTimestamp, Date maxTimestamp) {\n\t\tString sqlQuery = null;\r\n\t\t\r\n\t\tString queryPrefix = \"SELECT * FROM observation\";\r\n\t\tString whereStr = \"\";\r\n\t\t\r\n\t\tSet<DataStream> localDataStreams = new HashSet<DataStream>();\r\n\t\tlocalDataStreams.addAll(dataStreams);\r\n\t\t\r\n\t\t// ~~~ sensorIds and phenomenon constraint ~~~\r\n\t\tIterator<DataStream> iterator = localDataStreams.iterator();\r\n\t\t\r\n\t\tif(iterator.hasNext()) { \r\n\t\t\t\r\n\t\t\twhereStr = \" WHERE \";\r\n\t\t\t\r\n\t\t\tDataStream ds = iterator.next();\r\n\t\t\t\r\n\t\t\twhereStr = whereStr + \"((procedure_id = '\" + ds.getSensorId() + \"'\";\r\n\t\t\t\r\n\t\t\tif(ds.getPhenomenon() != null)\r\n\t\t\t\twhereStr = whereStr + \" AND phenomenon_id='\" + ds.getPhenomenon() + \"')\";\r\n\t\t\t\r\n\t\t\twhile(iterator.hasNext()) {\r\n\t\t\t\t\r\n\t\t\t\tds = iterator.next();\r\n\t\t\t\t\r\n\t\t\t\twhereStr = whereStr + \" OR \" ;\r\n\t\t\t\t\r\n\t\t\t\twhereStr = whereStr + \"(procedure_id = '\" + ds.getSensorId() + \"'\";\r\n\t\t\t\t\r\n\t\t\t\tif(ds.getPhenomenon() != null)\r\n\t\t\t\t\twhereStr = whereStr + \" AND phenomenon_id='\" + ds.getPhenomenon() + \"')\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twhereStr = whereStr + \")\";\r\n\t\t}\r\n\t\t\r\n\t\t// TODO: Supports only the same phenomenon for all sid. Do we want to support sensor streams with different phneomenon? \r\n\t\t// Phenomenon restriction\r\n\t\t//if (sensorStreamSet.size() > 0) {\r\n\t\t//\twhereStr = whereStr + \" AND phenomenon_id='\" + sensorStreamSet.iterator().next().getPhenomenon() + \"'\";\r\n\t\t//}\r\n\t\t\r\n\t\t// time constraint\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(DateTimeUtils.DATE_FORMAT);\r\n\t\t\t\r\n\t\tif(maxTimestamp != null)\r\n\t\t\twhereStr = whereStr + \" AND time_stamp <= TIMESTAMP WITH TIME ZONE '\" + sdf.format(maxTimestamp) + \"'\";\r\n\t\t\r\n\t\tif(minTimestamp != null) {\r\n\t\t\twhereStr = whereStr + \" AND time_stamp > TIMESTAMP WITH TIME ZONE '\" + sdf.format(minTimestamp) + \"'\"; \r\n\t\t}\r\n\t\t\r\n\t\tString querySuffix = \" ORDER BY time_stamp ASC\";\r\n\t\t\r\n\t\tsqlQuery = queryPrefix + whereStr + querySuffix;\r\n\t\t\r\n\t\treturn sqlQuery;\r\n\t}", "public Collection<BaseData> getBaseDataByDate(Date startDate, Date endDate){\n\t\tQuery query = em.createQuery(\"from BaseData c where c.date_time >= :sDate AND c.date_time <= :eDate\");\n\t\tquery.setParameter(\"sDate\",startDate);\n\t\tquery.setParameter(\"eDate\", endDate);\n\t\treturn (List<BaseData>)query.getResultList();\n\t}", "TemperatureQuery createTemperatureQuery();", "private List<ProductionData> getProdData(LocalDateTime from, LocalDateTime to) {\n List<ProductionData> data = null;\n try {\n data = prodDao.getData(from, to);\n } catch (IOException e) {\n // Throw generic exception\n }\n\n return data;\n }", "public Set<DataTime> timeInvariantQuery(\n Map<String, RequestConstraint> query) throws VizException;", "public SolrQuery buildSolrQueryForPeriod(String query, String startDate, String endDate) {\n log.info(\"query between \" + startDate + \"T00:00:00Z and \" + endDate + \"T23:59:59Z\");\n SolrQuery solrQuery = new SolrQuery();\n solrQuery.setQuery(query); //Smurf labs forces text:query\n solrQuery.setRows(0); // 1 page only\n solrQuery.add(\"fl\", \"id\");// rows are 0 anyway\n solrQuery.add(\"fq\",\"content_type_norm:html\"); // only html pages\n solrQuery.add(\"fq\",\"crawl_date:[\" + startDate + \"T00:00:00Z TO \" + endDate + \"T23:59:59Z]\");\n return solrQuery;\n }", "@Cacheable(value = \"getShardsAndDaysHint\",\n key = \"{#root.target.dateIndexTableName,#root.target.auths,#root.target.collapseDatePercentThreshold,#field,#begin,#end,#rangeBegin,#rangeEnd,#datatypeFilter}\",\n cacheManager = \"dateIndexHelperCacheManager\")\n public String getShardsAndDaysHint(String field, Date begin, Date end, Date rangeBegin, Date rangeEnd, Set<String> datatypeFilter)\n throws TableNotFoundException {\n log.debug(\"cache fault for getShardsAndDaysHint(\" + dateIndexTableName + \", \" + auths + \", \" + collapseDatePercentThreshold + \", \" + field + \", \"\n + begin + \", \" + end + \", \" + rangeBegin + \", \" + rangeEnd + \", \" + datatypeFilter + \")\");\n if (log.isTraceEnabled()) {\n this.showMeDaCache(\"before getShardsAndDaysHint\");\n }\n long startTime = System.currentTimeMillis();\n if (log.isDebugEnabled()) {\n log.debug(\"timeTravel is \" + this.timeTravel);\n }\n SimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n String minShard = format.format(rangeBegin);\n String maxShard = format.format(rangeEnd);\n\n TreeMap<String,BitSet> bitsets = new TreeMap<>();\n\n BatchScanner bs = ScannerHelper.createBatchScanner(client, dateIndexTableName, auths, numQueryThreads);\n\n try {\n bs.setRanges(Arrays.asList(new Range(DateIndexUtil.format(begin), DateIndexUtil.format(end) + '~')));\n\n Iterator<Entry<Key,Value>> iterator = bs.iterator();\n\n while (iterator.hasNext()) {\n Entry<Key,Value> entry = iterator.next();\n Key k = entry.getKey();\n String[] parts = StringUtils.split(k.getColumnQualifier().toString(), '\\0');\n String date = parts[0];\n\n // If the event date is more than one day before the event actually happened,\n // then skip it, unless time-travel has been enabled.\n String[] columnFamilyParts = StringUtils.split(k.getColumnFamily().toString(), '\\0');\n if (timeTravel == false && columnFamilyParts.length > 0 && columnFamilyParts[0].equals(\"ACTIVITY\")) {\n try {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyyMMdd\");\n String rowDateString = k.getRow().toString();\n // the row may be sharded, i need to get the date part\n if (rowDateString.contains(\"_\")) {\n // strip off the shard number part of the rowDate string\n rowDateString = rowDateString.substring(0, rowDateString.indexOf(\"_\"));\n }\n LocalDate rowDate = LocalDate.parse(rowDateString, formatter);\n LocalDate shardDate = LocalDate.parse(date, formatter);\n if (shardDate.isBefore(rowDate.minusDays(1))) {\n continue;\n }\n } catch (Exception ex) {\n // likely a problem parsing the dates, Move on....\n log.info(\"problem during delorean check\", ex);\n }\n }\n\n // If the date is outside of the min and max shard, then continue to the next entry\n if (date.compareTo(minShard) < 0) {\n continue;\n }\n if (date.compareTo(maxShard) > 0) {\n continue;\n }\n\n if (parts[2].equals(field)) {\n if (datatypeFilter == null || datatypeFilter.isEmpty() || datatypeFilter.contains(parts[1])) {\n BitSet bits = BitSet.valueOf(entry.getValue().get());\n BitSet mappedBits = bitsets.get(date);\n if (mappedBits == null) {\n bitsets.put(date, bits);\n } else {\n mappedBits.or(bits);\n }\n }\n }\n }\n\n } finally {\n bs.close();\n }\n\n StringBuilder builder = new StringBuilder();\n for (Map.Entry<String,BitSet> entry : bitsets.entrySet()) {\n appendToShardsAndDays(builder, entry.getValue(), entry.getKey());\n }\n\n String shardsAndDays = builder.toString();\n\n if (log.isDebugEnabled()) {\n long endTime = System.currentTimeMillis();\n log.debug(\"getShardsAndDaysHint from table: \" + dateIndexTableName + \", \" + auths + \", \" + collapseDatePercentThreshold + \", \" + field + \", \"\n + begin + \", \" + end + \", \" + rangeBegin + \", \" + rangeEnd + \", \" + datatypeFilter + \" returned \" + shardsAndDays + \" in \"\n + (endTime - startTime) + \"ms\");\n }\n\n return shardsAndDays;\n }", "public HashMap<String/* concept path */, List<TimelineEvent> /* events */> runTimelineQuery(Query query){\n\t\tList<String> requiredFieldsForTimeline = query.getRequiredFields();\n\t\tList<String> fieldsForTimeline = new ArrayList(query.getRequiredFields());\n\t\tfieldsForTimeline.addAll(query.getRequiredFields());\n\n\t\t// todo: copy the query?\n\t\t// wipe out required fields to not limit the patients by it\n\t\tquery.setRequiredFields(new ArrayList<>());\n\n\t\t// list patients involved\n\t\tSet<Integer> patientIds = abstractProcessor.getPatientSubsetForQuery(query);\n\n\t\t// get start time for the timeline\n\t\tlong startTime = Long.MAX_VALUE;\n\t\tfor(String field : requiredFieldsForTimeline) {\n\t\t\tPhenoCube cube = abstractProcessor.getCube(field);\n\t\t\tList<KeyAndValue> values = cube.getValuesForKeys(patientIds);\n\t\t\tfor(KeyAndValue value : values) {\n\t\t\t\tif(value.getTimestamp()!=null && value.getTimestamp() > 0 && value.getTimestamp() < startTime) {\n\t\t\t\t\tstartTime = value.getTimestamp();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinal long _startTime = startTime;\n\t\tLinkedHashMap<String/* concept path */, List<TimelineEvent> /* events */> timelineEvents = \n\t\t\t\tnew LinkedHashMap<>();\n\t\t// fetch results for selected fields\n\t\tfor(String concept : fieldsForTimeline) {\n\t\t\tPhenoCube cube = abstractProcessor.getCube(concept);\n\t\t\tList<KeyAndValue> values = cube.getValuesForKeys(patientIds);\n\t\t\ttimelineEvents.put(concept, \n\t\t\t\t\tvalues.parallelStream()\n\t\t\t\t\t.map( value->{\n\t\t\t\t\t\treturn new TimelineEvent(value, _startTime);\n\t\t\t\t\t})\n\t\t\t\t\t.filter(event -> {\n\t\t\t\t\t\treturn event.getTimestamp() > -1;\n\t\t\t\t\t})\n\t\t\t\t\t.sorted(TimelineEvent.timestampComparator)\n\t\t\t\t\t.collect(Collectors.toList()));\n\t\t}\n\n\t\tList<Entry<String, List<TimelineEvent>>> entries = new ArrayList<>(timelineEvents.entrySet());\n\n\t\tCollections.sort(entries, (a, b)->{\n\t\t\tif(a.getValue().isEmpty()) return 1;\n\t\t\tif(b.getValue().isEmpty()) return -1;\n\t\t\treturn TimelineEvent.timestampComparator.compare(a.getValue().get(0), b.getValue().get(0));\n\t\t});\n\n\t\ttimelineEvents.clear();\n\t\tentries.stream().forEach(\n\t\t\t\t(entry)->{\n\t\t\t\t\ttimelineEvents.put(entry.getKey(), entry.getValue());\n\t\t\t\t});\n\n\t\treturn timelineEvents;\n\t}", "public List<DataCenterForecast> execute(TimeSlotBasedEntity timeRange) {\n \tlogger.debug(\"Starting power planning loop for time range: \" + timeRange);\n \tlogger.debug(\"Requesting energy forecasts...\");\n\t\tList<DataCenterForecast> forecasts = erdsHandler.getEnergyForecasts(timeRange);\n logger.debug(\"Got energy forecasts: \" + forecasts);\n return forecasts;\n }", "public java.util.List<DataEntry> findAll(int start, int end);", "public MetricValuesReader(Date startTime, Date endTime, CassandraConnectionInfo connectionInfo) {\n super(startTime, endTime, connectionInfo);\n timeSeriesReader = new MetricTimeSeriesReader(startTime, endTime, connectionInfo);\n }", "public ArrayList<Double> getGraphData(String dependent_variable, Date start_time, Date end_time, String increment) {\n ArrayList<Double> valueList = new ArrayList<Double>();\n\n try {\n FileInputStream in = context.openFileInput(increment + \"_\" + dependent_variable + \"_data\");\n InputStreamReader inputStreamReader = new InputStreamReader(in);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String line;\n\n while ((line = bufferedReader.readLine()) != null) {\n try {\n String time_string = line.substring(0, line.indexOf(';'));\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n df.setTimeZone(SimpleTimeZone.getTimeZone(\"US/Central\"));\n Date time = df.parse(time_string);\n Double value = Double.parseDouble(line.substring(line.indexOf(';') + 1, line.length()));\n if (!time.after(end_time) && !time.before(start_time)) {\n valueList.add(value);\n }\n }\n catch (Exception e){\n Log.i(\"getGraphData\", \"exception: line = \" + line);\n e.printStackTrace();\n }\n }\n }\n catch (Exception e){\n e.printStackTrace();\n }\n return valueList;\n }", "@Test\n public void testTransplantListEndpointQueryAge() {\n String lowerBound = \"1970-01-01\";\n String upperBound = \"2018-09-27\";\n ResponseEntity response = dataController.getTransplantWaitingListRange(null,null,\"12\",null,upperBound, lowerBound);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@GetMapping(\"/get\")\n public List<Task> getTasksBetweenDateAndTime(@RequestParam(\"dstart\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateStart,\n @RequestParam(\"dend\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateEnd,\n @RequestParam(value = \"number\", required = false, defaultValue = \"0\") int number) {\n return taskService.filterTasks(dateStart, dateEnd, number);\n }", "public List<MeteringDataSec> findWithinTimeRange(final Instant startTime, final Instant untilTime) {\n\t\tInstant until = untilTime == null ? startTime.plus(5, ChronoUnit.MINUTES) : untilTime;\n\n\t\tList<MeteringDataSec> matches = meteringDataRepository.findWithinTimeRange(Timestamp.from(startTime), Timestamp.from(until));\n\t\tif (!matches.isEmpty()) {\n\t\t\tLOG.info(\"findWithinTimeRange found {} entries starting with: {}\", matches.size(), matches.get(0).getCreationTime());\n\t\t}\n\n\t\treturn matches;\n\t}", "public Object getReports(String indicatorName, int indicatorId,\n\t\t\tint startTimeperiod, int endTimeperiod);", "private synchronized void getRawData (Date begin, Date end, Vector<SensorData> data) {\n for (SensorData sensorData : rawData) {\n if ((sensorData.getDate().before(end) || sensorData.getDate()\n .equals(end))\n && (sensorData.getDate().after(begin) || sensorData\n .getDate().equals(begin))) {\n data.add(sensorData);\n }\n }\n }", "public static void main(String[] args) {\n DataFactory df = new DataFactory();\n Date minDate = df.getDate(2000, 1, 1);\n Date maxDate = new Date();\n \n for (int i = 0; i <=1400; i++) {\n Date start = df.getDateBetween(minDate, maxDate);\n Date end = df.getDateBetween(start, maxDate);\n System.out.println(\"Date range = \" + dateToString(start) + \" to \" + dateToString(end));\n }\n\n}", "public List<Pair<Integer>> getCustomTrend(String collectionId, String analysisId, String fieldValue, String query,\r\n String beginDate, String endDate) {\r\n return getCustomTrend(collectionId, analysisId, fieldValue, query, beginDate, endDate, IntervalType.MONTH);\r\n }", "public synchronized Vector<SensorData> getRawData(Date begin, Date end) {\n Date firstLocallyHoldDate;\n Vector<SensorData> data = new Vector<SensorData>();\n if (rawData.size() == 0) {\n firstLocallyHoldDate = new Date();\n } else {\n firstLocallyHoldDate = rawData.get(0).getDate();\n }\n if (begin.after(firstLocallyHoldDate) || begin.equals(firstLocallyHoldDate)) {\n getRawData(begin, end, data);\n } else {\n SensorDataDeSerializer deSerializer =\n new SensorDataDeSerializer(sensorID, data,\n Utils.dateToLongUnix(begin), Utils.dateToLongUnix(end), 0);\n deSerializer.work();\n if (!end.before(firstLocallyHoldDate)) {\n getRawData(begin, end, data);\n }\n }\n return data;\n }", "HumidityQuery createHumidityQuery();", "@Override\n public List<Revenue> revenuesForTime(long startTime, long endTime) {\n List<Revenue> revenues = revenueRepository.findAll();\n List<Revenue> foundRevenues = new ArrayList<>();\n for(Revenue revenue : revenues){\n if(revenue.getTimestamp() == startTime || revenue.getTimestamp() == endTime){\n foundRevenues.add(revenue);\n continue;\n }\n if(revenue.getTimestamp() > startTime && revenue.getTimestamp() < endTime ){\n foundRevenues.add(revenue);\n }\n }\n return foundRevenues;\n }", "@GetMapping(\"/_search/charts\")\n @Timed\n public List<Chart> searchCharts(@RequestParam String query) {\n log.debug(\"REST request to search Charts for query {}\", query);\n List<Chart> list = StreamSupport\n .stream(chartSearchRepository.search(wrapperQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n return list;\n }", "@Override\n\tpublic Plot2DDataSet getValues(float xmin, float xmax) throws UnsupportedOperationException {\n\t\tfinal JSONArray arr = new JSONArray();\n\t\tfinal Iterator<Object> it = data.getJSONArray(\"data\").iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal JSONObject point = (JSONObject) it.next();\n\t\t\tfinal long x = point.getLong(\"x\");\n\t\t\t// TODO more efficient way to find first relevant timestamp\n\t\t\tif (x >= xmin && x <= xmax)\n\t\t\t\tarr.put(point);\n\t\t\telse if (x > xmax)\n\t\t\t\tbreak;\n\t\t}\n\t\tfinal JSONObject json = new JSONObject();\n\t\tjson.put(\"label\", id);\n\t\tjson.put(\"data\", arr);\n\t\treturn new ChartjsDataSet(id, json);\n\t}", "public List<Timetable> getListSearch(String from, String to) throws Exception;", "public List<TimeSheet> getTimeSheetsBetweenTwoDateForAllEmp(LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheetByPid Method\");\n return timeSheetRepository.getTimeSheets(startDate, endDate);\n }", "public ArrayList<Timestamp> getQueryParameters(Timestamp from, Timestamp to) {\n ArrayList<Timestamp> params = new ArrayList<Timestamp>();\n params.add(to);\n params.add(to);\n return params;\n }", "@Test\n public void testTransplantListEndpointQueryRegion() {\n String lowerBound = \"1970-01-01\";\n String upperBound = \"2018-09-27\";\n ResponseEntity response = dataController.getTransplantWaitingListRange(null,null,null,\"Auckland\",upperBound, lowerBound);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "public DateRange getDateRange();", "@Override\n\tpublic List<PositionData> getPositionDataBetweenTime(String terminalId,\n\t\t\tString start_time, String stop_time) {\n\t\tList<PositionData> position_between = new ArrayList<PositionData>();\n\t\ttry {\n\t\t\tString start_time_in_format = start_time.substring(0,2) + \"-\" + start_time.substring(2,4) + \"-\" + start_time.substring(4,6) + \" \" + start_time.substring(6,8) + \":\" + start_time.substring(8,10) + \":\" + start_time.substring(10,12);\n\t\t\tString stop_time_in_format = stop_time.substring(0,2) + \"-\" + stop_time.substring(2,4) + \"-\" + stop_time.substring(4,6) + \" \" + stop_time.substring(6,8) + \":\" + stop_time.substring(8,10) + \":\" + stop_time.substring(10,12);\n\t\t\tposition_between = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' and date>'\" + start_time_in_format + \"' and date<'\" + stop_time_in_format + \"' order by date desc\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn position_between;\n\t}", "private void buildQueryFilterTemporal(String dateField,\n String startDate,\n String endDate,\n boolean isDatesContainedChecked,\n String namedTimescale, \n String namedTimescaleQueryType,\n TermsList termsList\n ) \n \t\tthrows UnsupportedEncodingException {\n\t boolean endDateSpecified = false;\n\t boolean startDateSpecified = false;\n\t \n /* If the user specified a named time-scale query, search for it\n * in the \"timescale\" field.\n */\n if ((namedTimescale != null) && (!(namedTimescale.equals(\"\")))) {\n termsList.addTerm(namedTimescale);\n String parenthesizedValue = parenthesizeQueryValue(namedTimescale);\n String escapedValue = Search.escapeQueryChars(parenthesizedValue);\n String encodedValue = URLEncoder.encode(escapedValue, \"UTF-8\");\n String timescaleQuery = String.format(\"timescale:%s\", encodedValue);\n updateQString(timescaleQuery);\n }\n \n if ((startDate == null) || (startDate.equals(\"\"))) {\n \tstartDate = \"*\";\n }\n else {\n startDate = ISO8601Utility.formatTimestamp(startDate, \"DAY\");\n if (startDate != null) startDateSpecified = true;\n }\n\n if ((endDate == null) || (endDate.equals(\"\"))) {\n \tendDate = \"NOW\";\n }\n else {\n \tendDate = ISO8601Utility.formatTimestamp(endDate, \"DAY\");\n \tif (endDate != null) endDateSpecified = true;\n }\n\n validateDateRange(startDate, endDate);\n \n // If a start date or an end date was specified, search temporal coverage\n //\n if (startDateSpecified || endDateSpecified) {\n \tString temporalFilter = null;\n \tString collectionFilter = null;\n \tString pubDateFilter = null;\n \tString LEFT_BRACKET = \"%5B\";\n \tString RIGHT_BRACKET = \"%5D\";\n\n if (dateField.equals(\"ALL\") || dateField.equals(\"COLLECTION\")) {\n \t String singleDateQuery = String.format(\"singledate:%s%s+TO+%s%s\", LEFT_BRACKET, startDate, endDate, RIGHT_BRACKET);\n \t String startDateQuery = String.format(\"begindate:%s*+TO+%s%s\", LEFT_BRACKET, endDate, RIGHT_BRACKET);\n \t String endDateQuery = String.format(\"enddate:%s%s+TO+NOW%s\", LEFT_BRACKET, startDate, RIGHT_BRACKET);\n \t collectionFilter = String.format(\"(%s+OR+(%s+AND+%s))\", singleDateQuery, startDateQuery, endDateQuery);\n }\n \n if (dateField.equals(\"ALL\") || dateField.equals(\"PUBLICATION\")) {\n \t pubDateFilter = String.format(\"pubdate:%s%s+TO+%s%s\", LEFT_BRACKET, startDate, endDate, RIGHT_BRACKET);\n }\n \n if (dateField.equals(\"ALL\")) {\n \t temporalFilter = String.format(\"(%s+OR+%s)\", pubDateFilter, collectionFilter);\n }\n else if (dateField.equals(\"COLLECTION\")) {\n \t temporalFilter = collectionFilter;\n }\n else if (dateField.equals(\"PUBLICATION\")) {\n \t temporalFilter = pubDateFilter;\n }\n \n updateFQString(temporalFilter); \n }\n\n }", "@GET(\"planetary/apod?api_key=\" + API_KEY)\n Single<List<Picture>> getPicturesFromDateRange (@Query(\"start_date\") String startDate, @Query(\"end_date\") String endDate);", "private List<T> findRange(RequestData requestData) {\n javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();\n cq.select(cq.from(getEntityClass()));\n javax.persistence.Query q = getEntityManager().createQuery(cq);\n q.setMaxResults(requestData.getLength());\n q.setFirstResult(requestData.getStart());\n return q.getResultList();\n }", "public static Iterable<AnalyticsResults> getAllEvents(Date start, Date end) {\n\t\ttry {\n\t\t\treturn Common.query(\n\t\t\t\t\t\"{CALL GetAnalyticsForDateRange(?,?)}\",\n\t\t\t\t\tprocedure -> {\n\t\t\t\t\t\tprocedure.setDate(1, start);\n\t\t\t\t\t\tprocedure.setDate(2, end);\n\t\t\t\t\t},\n\t\t\t\t\tAnalyticsResults::listFromResults\n\t\t\t);\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(\"GetAnalyticsForDateRange\");\n\t\t\treturn Collections.emptyList();\n\t\t}\n\t}", "public HHisItem[] onHisRead(HDict rec, HDateTimeRange range)\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n if (LOG.isTraceOn())\r\n LOG.trace(\"onHisRead \" + rec.id() + \", \" + range);\r\n\r\n try\r\n {\r\n BHistoryConfig cfg = tagMgr.lookupHistoryConfig(rec.id());\r\n if (cfg == null) return new HHisItem[0];\r\n\r\n HStr unit = (HStr) rec.get(\"unit\", false);\r\n\r\n // ASSUMPTION: the tz in both ends of the range matches the \r\n // tz of the historized point, which in turn matches the \r\n // history's tz in its historyConfig.\r\n HTimeZone tz = range.start.tz;\r\n\r\n BAbsTime rangeStart = BAbsTime.make(range.start.millis(), cfg.getTimeZone());\r\n BAbsTime rangeEnd = BAbsTime.make(range.end.millis(), cfg.getTimeZone());\r\n\r\n // NOTE: be careful, timeQuery() is inclusive of both start and end\r\n BIHistory history = service.getHistoryDb().getHistory(cfg.getId());\r\n BITable table = (BITable) history.timeQuery(rangeStart, rangeEnd);\r\n ColumnList columns = table.getColumns();\r\n Column timestampCol = columns.get(\"timestamp\");\r\n\r\n // this will be null if its not a BTrendRecord\r\n boolean isTrendRecord = cfg.getRecordType().getResolvedType().is(BTrendRecord.TYPE);\r\n Column valueCol = isTrendRecord ? columns.get(\"value\") : null;\r\n\r\n Array arr = new Array(HHisItem.class, table.size());\r\n for (int i = 0; i < table.size(); i++)\r\n {\r\n BAbsTime timestamp = (BAbsTime) table.get(i, timestampCol);\r\n\r\n // ignore inclusive start value\r\n if (timestamp.equals(rangeStart)) continue;\r\n\r\n // create ts\r\n HDateTime ts = HDateTime.make(timestamp.getMillis(), tz);\r\n\r\n // create val\r\n HVal val = null;\r\n if (isTrendRecord)\r\n {\r\n // extract value from BTrendRecord\r\n BValue value = (BValue) table.get(i, valueCol);\r\n\r\n Type recType = cfg.getRecordType().getResolvedType();\r\n if (recType.is(BNumericTrendRecord.TYPE))\r\n {\r\n BNumber num = (BNumber) value;\r\n val = (unit == null) ? \r\n HNum.make(num.getDouble()) :\r\n HNum.make(num.getDouble(), unit.val);\r\n }\r\n else if (recType.is(BBooleanTrendRecord.TYPE))\r\n {\r\n BBoolean bool = (BBoolean) value;\r\n val = HBool.make(bool.getBoolean());\r\n }\r\n else if (recType.is(BEnumTrendRecord.TYPE))\r\n {\r\n BDynamicEnum dyn = (BDynamicEnum) value;\r\n BFacets facets = (BFacets) cfg.get(\"valueFacets\");\r\n BEnumRange er = (BEnumRange) facets.get(\"range\");\r\n val = HStr.make(SlotUtil.fromEnum(\r\n er.getTag(dyn.getOrdinal()),\r\n service.getTranslateEnums()));\r\n }\r\n else\r\n {\r\n val = HStr.make(value.toString());\r\n }\r\n }\r\n else\r\n {\r\n // if its not a BTrendRecord, just do a toString() \r\n // of the whole record\r\n val = HStr.make(table.get(i).toString());\r\n }\r\n\r\n // add item\r\n arr.add(HHisItem.make(ts, val));\r\n }\r\n\r\n // done\r\n return (HHisItem[]) arr.trim();\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "public ArrayList<QueryParameter> downloadExcel() {\n ArrayList<QueryParameter> queries = new ArrayList<QueryParameter>(this.query.interval);\n for (int i = 0; i < this.query.interval; i++) {\n QueryParameter query = new QueryParameter(this.query.year - i);\n queries.add(query);\n this.downloadSingleExcel(query);\n }\n return queries;\n }", "@Override\r\n\tpublic Vector<Log> get(Department department, Timestamp begin, Timestamp end) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tVector<Log> ret = new Vector<Log>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetD);\r\n\t\t\tps.setInt(1, department.getId());\r\n\t\t\tps.setTimestamp(2, begin);\r\n\t\t\tps.setTimestamp(3, end);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tret.add(generate(rs));\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public MetricDataset(long startTime, long endTime, long minTimestampPeriod)\n\t{\n\t\tsuper();\n\t\tthis.startTime = startTime;\n\t\tthis.endTime = endTime;\n\t\tthis.minTimestampPeriod = minTimestampPeriod;\n\t}", "@Override\r\n\tpublic Vector<Log> get(Employee employee, Timestamp begin, Timestamp end) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tVector<Log> ret = new Vector<Log>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetE);\r\n\t\t\tps.setInt(1, employee.getId());\r\n\t\t\tps.setTimestamp(2, begin);\r\n\t\t\tps.setTimestamp(3, end);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tret.add(generate(rs));\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public String[][][] getSchedule(int userId)throws SQLException{\n //create the arrays\n String[] startTimes;\n String[] endTimes;\n String[] titles;\n String[] locations;\n String[][] times;\n String[][] data;\n String[][][] results;\n \n //declare the size int, used to initialize the arrays\n int size = 0;\n \n //Create the LocalDate objects to use in query\n LocalDate date = LocalDate.now();\n Month month = date.getMonth();\n int year = date.getYear();\n int firstDay = 1;\n int lastDay = date.lengthOfMonth();\n LocalDate begin = LocalDate.of(year, month, firstDay);\n LocalDate end = LocalDate.of(year, month, lastDay);\n \n //Establish the connection\n Connection conn = DriverManager.getConnection(url, user, pass);\n \n //Run query and set size value\n String query = \"SELECT COUNT(*) FROM appointment WHERE userId = \"\n + userId + \" AND start BETWEEN '\" + begin + \"' AND '\" + end + \"'\";\n PreparedStatement ps = conn.prepareStatement(query);\n \n ResultSet set = ps.executeQuery(query);\n ResultSetMetaData meta = set.getMetaData();\n int columns = meta.getColumnCount();\n \n while(set.next()){\n for(int i = 1; i <= columns; i++){\n size = set.getInt(i);\n }\n } \n \n //initialize the arrays\n startTimes = new String[size];\n endTimes = new String[size];\n titles = new String[size];\n locations = new String[size];\n \n //Populate the startTimes array\n int x = 0;\n query = \"SELECT start FROM appointment WHERE userId = \" + userId \n + \" AND start BETWEEN '\" + begin + \"' AND '\" + end + \"'\";\n ps = conn.prepareStatement(query);\n \n set = ps.executeQuery(query);\n meta = set.getMetaData();\n columns = meta.getColumnCount();\n \n while(set.next()){\n for(int i = 1; i <= columns; i++){\n String value = set.getString(i);\n startTimes[x] = value;\n x++;\n }\n } \n \n //Populate the endTimes array\n x = 0;\n set = ps.executeQuery(\"SELECT end FROM appointment WHERE userId = \" + userId + \n \" AND start BETWEEN '\" + begin + \"' AND '\" + end + \"'\");\n meta = set.getMetaData();\n columns = meta.getColumnCount();\n while(set.next()){\n for(int i = 1; i <= columns; i++){\n String value = set.getString(i);\n endTimes[x] = value;\n x++;\n }\n }\n \n //Populate the titles array\n x = 0;\n set = ps.executeQuery(\"SELECT title FROM appointment WHERE userId = \" + userId + \n \" AND start BETWEEN '\" + begin + \"' AND '\" + end + \"'\");\n meta = set.getMetaData();\n columns = meta.getColumnCount();\n while(set.next()){\n for(int i = 1; i <= columns; i++){\n String value = set.getString(i);\n titles[x] = value;\n x++;\n }\n }\n \n //Populate the descriptions array\n x = 0;\n set = ps.executeQuery(\"SELECT location FROM appointment WHERE userId = \" + userId + \n \" AND start BETWEEN '\" + begin + \"' AND '\" + end + \"'\");\n meta = set.getMetaData();\n columns = meta.getColumnCount();\n while(set.next()){\n for(int i = 1; i <= columns; i++){\n String value = set.getString(i);\n locations[x] = value;\n x++;\n }\n }\n \n //initialize the matrices\n data = new String[][]{titles, locations};\n times = new String[][]{startTimes, endTimes};\n \n results = new String[][][]{data, times};\n return results;\n \n }", "public interface TimeSeriesCollection {\n\n /** The getData() methods returns List of objects of this Class */\n public Class getDataClass();\n\n /** Get number of points in the series */\n public int getNumTimes();\n\n /** get the time of the nth point. */\n public double getTime(int timePt);\n\n /**\n * Get the units of Calendar time.\n * To get a Date, from a time value, call DateUnit.getStandardDate(double value).\n * To get units as a String, call DateUnit.getUnitsString().\n */\n public ucar.nc2.units.DateUnit getTimeUnits();\n\n /** Get the data for the nth point. @return Object of type getDataClass() */\n public Object getData(int timePt);\n}", "public List<Statistic> queryPageData(Integer startIndex, Integer pagesize) {\n\t\tString sql=\"select * from statistics order by creat_date desc limit ?,? \";\n\t\treturn getList(sql,startIndex,pagesize);\n\t}", "public List<TimeSheet> getTimeSheetByPid(Integer pid, LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheetByPid Method\");\n return timeSheetRepository.getTimeSheetByPid(pid, startDate, endDate);\n }", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "private Query getDoubleRange(final String fieldName, String[] range) {\n double lower = Double.parseDouble(range[0]);\n double upper = Double.parseDouble(range[1]);\n return DoublePoint.newRangeQuery(fieldName, lower, upper);\n }", "public abstract LocalDateDoubleTimeSeries getTimeSeries(ObservableKey key);", "@SuppressWarnings(\"unchecked\")\n public List<ConnectionMeterEvent> findConnectionMeterEventsForPeriod(LocalDate fromDate, LocalDate endDate) {\n StringBuilder queryString = new StringBuilder();\n queryString.append(\"SELECT cme FROM ConnectionMeterEvent cme \");\n queryString.append(\" WHERE cme.dateTime >= :fromDate \");\n // it is inclusive because i add a day to the endDate\n queryString.append(\" AND cme.dateTime < :endDate \");\n\n Query query = getEntityManager().createQuery(queryString.toString());\n query.setParameter(\"fromDate\", fromDate.toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n query.setParameter(\"endDate\", endDate.plusDays(1).toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n\n return query.getResultList();\n }", "@Test\n public void learnToQueryWithDomainSpecificRangeParam() throws Exception {\n SqlSession session = null;\n\n List<Country> lc = session.selectList(\"getCountryRange3\", new Range(22, 33));\n\n assertEquals(12, lc.size());\n Country finland = lc.get(11);\n assertEquals(\"Finland\", finland.getCountry());\n\n }", "public void queryData() throws SolrServerException {\n\t\tfinal SolrQuery query = new SolrQuery(\"*:*\");\r\n\t\tquery.setRows(2000);\r\n\t\t// 5. Executes the query\r\n\t\tfinal QueryResponse response = client.query(query);\r\n\r\n\t\t/*\t\tassertEquals(1, response.getResults().getNumFound());*/\r\n\r\n\t\t// 6. Gets the (output) Data Transfer Object.\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tif (response.getResults().iterator().hasNext())\r\n\t\t{\r\n\t\t\tfinal SolrDocument output = response.getResults().iterator().next();\r\n\t\t\tfinal String from = (String) output.getFieldValue(\"from\");\r\n\t\t\tfinal String to = (String) output.getFieldValue(\"to\");\r\n\t\t\tfinal String body = (String) output.getFieldValue(\"body\");\r\n\t\t\t// 7.1 In case we are running as a Java application print out the query results.\r\n\t\t\tSystem.out.println(\"It works! I found the following book: \");\r\n\t\t\tSystem.out.println(\"--------------------------------------\");\r\n\t\t\tSystem.out.println(\"ID: \" + from);\r\n\t\t\tSystem.out.println(\"Title: \" + to);\r\n\t\t\tSystem.out.println(\"Author: \" + body);\r\n\t\t}\r\n\t\t\r\n\t\tSolrDocumentList list = response.getResults();\r\n\t\tSystem.out.println(\"list size is: \" + list.size());\r\n\r\n\r\n\r\n\t\t/*\t\t// 7. Otherwise asserts the query results using standard JUnit procedures.\r\n\t\tassertEquals(\"1\", id);\r\n\t\tassertEquals(\"Apache SOLR Essentials\", title);\r\n\t\tassertEquals(\"Andrea Gazzarini\", author);\r\n\t\tassertEquals(\"972-2-5A619-12A-X\", isbn);*/\r\n\t}", "public JavaRDD<P> getJavaRDDProgramsBetweenTimes(LocalDateTime startTargetTime, LocalDateTime endTargetTime) {\n\t\treturn tvPrograms.filter(program -> startTargetTime.isBefore(program.endTime()) && endTargetTime.isAfter(program.startTime()));\n\t}", "private DateRange setDefaultTemporalSubset(DimensionDescriptor timeDimension, SimpleFeature f) {\n final String start = timeDimension.getStartAttribute();\n final String end = timeDimension.getEndAttribute();\n Date startTime = (Date) f.getAttribute(start);\n Date endTime = startTime;\n if (end != null) {\n endTime = (Date) f.getAttribute(end);\n }\n return new DateRange(startTime, endTime);\n }", "public List<TblPurchaseOrder>getAllDataPurchaseOrder(Date startDate,Date endDate,TblPurchaseOrder po,TblSupplier supplier);", "public List<Food> getFoodsInDateTimeRange(LocalDateTime start, LocalDateTime end) {\n List<FoodEntry> entriesInRange = FoodListManager.filterListByDate(foodEntries, start, end);\n return FoodListManager.convertListToFoods(entriesInRange);\n }", "public List<WavefrontEvent> getEvents(Map<String, String> tags, String servieFamilyName, String serviceName,\n long startTime, long endTime) {\n log.info(\" Querying events from Wavefront. \");\n WavefrontEventResponse response = metricProviderHelper.queryEvents(tags, servieFamilyName, serviceName,\n String.valueOf(startTime), String.valueOf(endTime));\n if (null == response || response.getEvents().isEmpty()) {\n log.debug(\" Event Query returned error OR no events found . \");\n return new ArrayList<>();\n }\n List<WavefrontEvent> events = response.getEvents();\n return filterEvents(events, startTime, endTime);\n }", "@Override\n\tpublic void runRead(SolrDocument option, String time_field, long start, long end, Statistic stat, String... fq) {\n\t\tSystem.out.println(\"SolrReaderSingle\");\n\t\t\n\t\tSolrClient solr = new HttpSolrClient.Builder((String) option.get(\"solr_reader_url_s\")).build();\n\t\t\n\t\tString[] var_list = option.get(\"indexList_s\").toString().split(\"\\\\^\");\n\t\tSystem.out.println(option.get(\"indexList_s\").toString());\n\t\tSystem.out.println(var_list.length);\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t\n\t\tString query_field = option.get(\"query_field_s\").toString(); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\tString value_field = option.get(\"value_field_s\").toString(); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\tSystem.out.println(query_field + \" \" + value_field);\n\t\t\n\t\tlong interval = (long) option.get(\"interval_l\");\n\t\tlong gap = (long) option.get(\"gap_l\");\n\t\tint group_num = (int) (gap/interval);\n\t\t\n\t\tHashMap<String, ArrayList<ArrayList<Double>>> resource = new HashMap<String, ArrayList<ArrayList<Double>>>();\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tresource.put(var_list[i], new ArrayList<ArrayList<Double>>());\n\t\t\tfor (int j = 0; j < group_num; j++) {\n\t\t\t\tresource.get(var_list[i]).add(new ArrayList<Double>()); //+++++++++++++++++++++++++++++++++++++++++\n\t\t\t}\n\t\t}\n\t\t\n\t\tSolrQuery solrQuery = new SolrQuery();\n\t\tsolrQuery.setQuery(\"*:*\");\n\t\tString[] fq_list = new String[fq.length+1];\n\t\tfor (int j = 0; j < fq.length; j++) {\n\t\t\tfq_list[j] = fq[j];\n\t\t}\n\t\tfq_list[fq.length] = \"timestamp_l:[\" + start + \" TO \" + end + \"]\";\n\t\tsolrQuery.setFilterQueries(fq_list);\n\t\tsolrQuery.setRows(100000);\n\t\tsolrQuery.setSort(\"timestamp_l\", ORDER.asc);\n\t\tsolrQuery.setFields(query_field, value_field, \"timestamp_l\");\n\t\t\n\t\tqueryList = new ArrayList<String>();\n\t\tqueryMap = new HashMap<String, Integer>();\n\t\tqueryArray = new ArrayList<ArrayList<Double>>();\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tqueryList.add(var_list[i]);\n\t\t\tqueryMap.put(var_list[i], i);\n\t\t\tqueryArray.add(new ArrayList<Double>());\n\t\t}\n\t\t\n\t\tQueryResponse response = new QueryResponse();\n\t\tSolrDocumentList docs = new SolrDocumentList();\n\t\t\n\t\t\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tresponse = solr.query(solrQuery);\n\t\t\t\tbreak;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.print(\"ÍøÂçreadÒì³£\");\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tsolr.close();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tdocs = response.getResults();\n\t\t\n\t\tSystem.out.println(\"Êý¾ÝÁ¿£º\"+docs.size());\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < docs.size(); i++) {\n\t\t\tString var = docs.get(i).get(query_field).toString();\n\t\t\tif (!queryMap.keySet().contains(var)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlong timestamp_tmp = (long) docs.get(i).get(\"timestamp_l\");\n\t\t\tint x = (int) ((timestamp_tmp-start)/interval);\n\t\t\tdouble tmp_double = 0;\n\t\t\tif (docs.get(i).get(value_field) instanceof Double) {\n\t\t\t\ttmp_double = (Double) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Float) {\n\t\t\t\ttmp_double = (Float) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Integer) {\n\t\t\t\ttmp_double = (Integer) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Long) {\n\t\t\t\ttmp_double = (Long) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof String){\n\t\t\t\ttry {\n\t\t\t\t\ttmp_double = Double.parseDouble((String) docs.get(i).get(value_field));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x >= group_num) continue;\n\t\t\tresource.get(var).get(x).add(tmp_double);\n\t\t}\n\t\t\n\t\tfor (String it : queryMap.keySet()) {\n\t\t\tfor (int i = 0; i < group_num; i++) {\n\t\t\t\tqueryArray.get(queryMap.get(it)).add(stat.run(resource.get(it).get(i)));\n\t\t\t}\n\t\t}\n\t\t\n\t\tattrList = new String[var_list.length];\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tattrList[i] = \"_\" + (new Integer(i)).toString();\n\t\t}\n\t\t\n//\t\tWriteCSV writer = new WriteCSV();\n//\t\ttry {\n//\t\t\twriter.writeArrayCSV(queryArray, attrList, \".\", \"data.csv\");\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}", "@Override\n\tpublic JSONObject[] gettrain(String start, String mid, String end, String startdate) throws Exception {\n\t\treturn trainDao.gettrain(start, mid, end, startdate);\n\t}", "public TimeSeries getTimeSeries(String serie_name){ \n //First, we create the TimeSeries to return \n TimeSeries time_serie= new TimeSeries(serie_name,Second.class); \n \n //Gets the Bezier curves \n Point2D[] points_bezier = getPoint2DArray(); \n \n for(int j = 0 ; j < points_bezier.length; j++){ \n //System.out.println(j + \" X --> \" + points_bezier[j].getX()); \n //time_serie.add(RegularTimePeriod.createInstance(Second.class,new Date((long)points_bezier[j].getX()),RegularTimePeriod.DEFAULT_TIME_ZONE),points_bezier[j].getY()); \n time_serie.add(new Second(new Date((long)points_bezier[j].getX())),points_bezier[j].getY()); \n } \n \n \n return time_serie; \n}", "private void getRecords(LocalDate startDate, LocalDate endDate) {\n foods = new ArrayList<>();\n FoodRecordDao dao = new FoodRecordDao();\n try {\n foods = dao.getFoodRecords(LocalDate.now(), LocalDate.now(), \"\");\n } catch (DaoException ex) {\n Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "List<SpotPrice> getByCommodityAndFromDateAndToDateAndLocation(\n Commodity commodity,\n Date fromDate,\n Date toDate,\n Location location\n );", "public List<Register> testTimeQuery(){\n NativeSearchQueryBuilder queryBuilder = new NativeSearchQueryBuilder();\n queryBuilder.withQuery(QueryBuilders.rangeQuery(\"order_time\").gt(\"2016-11-01T00:00:00.000Z\"));\n\n // 初始化分页参数\n int page =50;\n int size =3000;\n\n\n // 设置分页参数\n queryBuilder.withPageable(PageRequest.of(page, size));\n // 执行搜索,获取结果\n Page<OrderImes> Ot = this.orderImesRepository.search(queryBuilder.build());\n List<Register> Rt = new ArrayList<Register>();\n System.out.println(Ot.getTotalElements());\n // List<Page<Test>> Lt=new ArrayList<Page<Test> >();\n\n // Page<JtSelfRegisterDay> Jt = this.jtSelfRegisterDayRepository.search(queryBuilder.build());\n\n for (OrderImes O:Ot)\n {\n SearchQuery searchQuery1=new NativeSearchQueryBuilder().withQuery(QueryBuilders.matchQuery(\"meid\",O.getImes())).build();\n //System.out.println(J.getRow_id().getClass());\n List<Register> Te = elasticsearchTemplate.queryForList(searchQuery1, Register.class);\n //System.out.println(Te.size());\n for (int i = 0; i <Te.size() ; i++) {\n Rt.add(Te.get(i));\n }\n\n }\n System.out.println(Rt.size());\n\n\n return Rt;\n\n\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<GuideStatisticDTO> getGuidesStatisticByPeriod(LocalDateTime start, LocalDateTime end) {\n\t\tStringBuilder query = new StringBuilder(\n\t\t\t\t\"SELECT XS.guide.firstName AS firstName, XS.guide.lastName AS lastName, COUNT(id) AS totalExcursions, \"\n\t\t\t\t\t\t+ \"SUM(XS.details.durationSec) AS excursionsTotalDuration \" + \"FROM Excursion AS XS \"\n\t\t\t\t\t\t+ \"WHERE (XS.start >= :startDate AND XS.end <= :endDate) GROUP BY XS.guide\");\n\t\tSystem.out.println(query.toString());\n\t\tQuery result = sessionFactory.getCurrentSession().createQuery(query.toString());\n\t\tresult.setTimestamp(\"startDate\", Timestamp.valueOf(start));\n\t\tresult.setTimestamp(\"endDate\", Timestamp.valueOf(end));\n\t\tList<GuideStatisticDTO> returnResult = new ArrayList<GuideStatisticDTO>();\n\t\tfor (Object[] obj : (List<Object[]>) result.list()) {\n\t\t\tGuideStatisticDTO listElement = new GuideStatisticDTO();\n\t\t\tlistElement.setFirstName(String.valueOf(obj[0]));\n\t\t\tlistElement.setLastName(String.valueOf(obj[1]));\n\t\t\tlistElement.setTotalExcursions((long) obj[2]);\n\t\t\tlistElement.setExcursionsTotalDuration(LocalTime.MIN.plusSeconds((long) obj[3]));\n\t\t\treturnResult.add(listElement);\n\n\t\t}\n\n\t\treturn returnResult;\n\t\t// return result.list();\n\t}", "public List<DataValue> getDataListByDeviceIdAndSensorTypeAndDateSortedByTimestamp(DataValue dataVal) throws Exception;", "@RequestMapping(value = \"/co\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<CarbonMonoxideMeasurement>> getCarbonMonoxideMeasurementsBetweenTimestamps(\n\t\t\t@PathVariable String username, @RequestParam(\"from\") long from,\n\t\t\t@RequestParam(\"to\") long to, @RequestParam(value = \"room\", required = false) String room_name) {\n\n\t\tLOG.debug(\"getCarbonMonoxideMeasurementsBetweenTimestamps: \" + from + \" and \"\n\t\t\t\t+ to);\n\n\t\tList<CarbonMonoxideMeasurement> carbonMonoxideMeasurementList;\n\n\t\ttry {\n\t\t\tcarbonMonoxideMeasurementList = gasesMeasurementService\n\t\t\t\t\t.getCarbonMonoxideMeasurementBetweenTimestamps(username, from,\n\t\t\t\t\t\t\tto, room_name);\n\n\t\t\tif (carbonMonoxideMeasurementList != null) {\n\t\t\t\treturn new ResponseEntity<List<CarbonMonoxideMeasurement>>(\n\t\t\t\t\t\tcarbonMonoxideMeasurementList, HttpStatus.OK);\n\t\t\t} else {\n\t\t\t\treturn new ResponseEntity<List<CarbonMonoxideMeasurement>>(\n\t\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOG.warn(e.getMessage());\n\t\t\treturn new ResponseEntity<List<CarbonMonoxideMeasurement>>(\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\n\t}", "private TimeSeries createEURTimeSeries(String WellID, String lang) {\n int count = 0;\n String precipitation = \"\";\n if(lang.equals(\"EN\")){\n precipitation = precipitation_en;\n }else{\n precipitation = precipitation_fr;\n }\n TimeSeries t1 = new TimeSeries(precipitation + \" (mm)\");\n //System.out.println (t1.getMaximumItemCount()); \n Hour begin = new Hour( 1, 1, 1, 2005);\n Hour end = new Hour(23, 31, 12, 2012);\n String endStr = end.toString();\n String str = begin.toString();\n \n for(Hour h1 = begin; !str.equals(endStr) ; h1 = (Hour) h1.next()){\n Second s = new Second(0, 0, h1.getHour(), h1.getDayOfMonth(), h1.getMonth(), h1.getYear());\n t1.addOrUpdate(s, new Double(Double.NaN)); \n str = h1.toString();\n }\n \n try {\n // Open the file that is the first \n // command line parameter\n FileInputStream fstream = new FileInputStream(\"Y:\\\\PGMN\\\\Precipitation\\\\\" + WellID + \".csv\");\n // Get the object of DataInputStream\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n //Read File Line By Line\n int i = 0;\n while ((strLine = br.readLine()) != null) {\n if(i>0){ \n String [] temp = strLine.split(\",\");\n //System.out.println (i);\n String [] dateTimeAM = (temp[2]).split(\" \"); //08/20/2009 10:35:00 AM\n \n String [] dates = (dateTimeAM[0]).split(\"/\"); //6/10/2009\n int month = Integer.parseInt(dates[0]);\n int day = Integer.parseInt(dates[1]);\n int year = Integer.parseInt(dates[2]);\n //System.out.println (i);\n int hour = 0;\n int minute = 0;\n int second = 0; \n if (dateTimeAM.length > 1) {\n String [] temp3 = (dateTimeAM[1]).split(\":\"); //10:35:00\n hour = Integer.parseInt(temp3[0]);\n minute = Integer.parseInt(temp3[1]);\n second = Integer.parseInt(temp3[2]);\n //08/20/2009 10:35:00 AM\n if ((dateTimeAM[2]).equals(\"PM\")) {\n if (hour < 12) {\n hour = hour + 12;\n }\n }\n if ((dateTimeAM[2]).equals(\"AM\") && (hour == 12)) {\n hour = 0;\n }\n }\n Second s = new Second(second, minute, hour, day, month, year);\n //System.out.println(strLine);\n //System.out.println(year + \", \" + month + \", \" + day + \", \" + hour + \", \" + minute + \", \" + second);\n //Hour h = new Hour(hour, day, month, year);\n Double d = new Double(Double.NaN);\n //System.out.println(temp[2]);\n if (temp.length > 2){\n d = Double.parseDouble(temp[3]);// - depth;\n count ++;\n }\n t1.addOrUpdate(s, d);\n }\n i = i + 1;\n }\n in.close();\n \n }\n catch (Exception e) {\n System.err.println(e.getMessage());\n }\n \n return t1;\n }", "@Override\n public List<Event> searchByInterval(Date leftDate, Date rightDate) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin BETWEEN :leftDate and :rightDate \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"leftDate\", leftDate)\n .setParameter(\"rightDate\", rightDate);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "@RequestMapping(value = \"${app.paths.historical-path}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<Collection<Bitcoin>> getBitcoinHistoricalRatesInDateRange(\n @RequestParam(\"dateFrom\") String dateFromString, @RequestParam(\"dateTo\") String dateToString)\n throws InterruptedException, ExecutionException {\n log.info(\"> BitcoinController :: getBitcoinPricesInDateTimeRange\");\n ZonedDateTime dateTimeFrom = LocalDate.parse(dateFromString).atStartOfDay(ZoneId.systemDefault());\n ZonedDateTime dateTimeTo = LocalDate.parse(dateToString).atStartOfDay(ZoneId.systemDefault()).plusDays(1)\n .minusNanos(1);\n Collection<Bitcoin> response = service.findAllInRange(dateTimeFrom, dateTimeTo);\n log.info(\"< BitcoinController :: getBitcoinPricesInDateTimeRange\");\n return new ResponseEntity<Collection<Bitcoin>>(response, HttpStatus.OK);\n }", "public void getRecords(LVValue query) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\tmyData.record=createRecord(myData.spec,null);\n\t\ttry\n\t\t{\n\t\t\tString s=null;\n\t\t\tif (query!=null) s=query.getStringValue();\n\t\t\tmyData.record.getRecords(background.getClient(),s);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "private ResultSet GetData(String query){\n\t\ttry{\n\t\t\tstat = connection.createStatement();\n\t\t\treturn stat.executeQuery(query);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}", "public ResponseEntityJsonArrayStream[] getPointValues (String xid, Date from, Date to, String rollup, String timePeriodType, Integer timePeriods) throws ApiException {\n Object postBody = null;\n byte[] postBinaryBody = null;\n\n // verify the required parameter 'xid' is set\n if (xid == null) {\n throw new ApiException(400, \"Missing the required parameter 'xid' when calling getPointValues\");\n }\n\n // create path and map variables\n String path = API_VERSION + \"/point-values/{xid}\".replaceAll(\"\\\\{\" + \"xid\" + \"\\\\}\", apiClient.escapeString(xid.toString()));\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n Map<String, String> headerParams = new HashMap<String, String>();\n Map<String, Object> formParams = new HashMap<String, Object>();\n\n queryParams.addAll(apiClient.parameterToPairs(\"\", \"from\", from));\n queryParams.addAll(apiClient.parameterToPairs(\"\", \"to\", to));\n queryParams.addAll(apiClient.parameterToPairs(\"\", \"rollup\", rollup));\n queryParams.addAll(apiClient.parameterToPairs(\"\", \"timePeriodType\", timePeriodType));\n queryParams.addAll(apiClient.parameterToPairs(\"\", \"timePeriods\", timePeriods));\n\n final String[] accepts = { \"application/json\" };\n\n final String accept = apiClient.selectHeaderAccept(accepts);\n\n final String[] contentTypes = { };\n\n final String contentType = apiClient.selectHeaderContentType(contentTypes);\n\n String[] authNames = getAuthNames();\n\n TypeRef returnType = new TypeRef<ResponseEntityJsonArrayStream[]>() { };\n\n return apiClient.invokeAPI(path, \"GET\", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);\n }", "List<InsureUnitTrend> queryInsureDate();", "public List<cn.edu.nju.teamwiki.jooq.tables.pojos.Document> fetchRangeOfUploadedTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(Document.DOCUMENT.UPLOADED_TIME, lowerInclusive, upperInclusive);\n }", "public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {\n if(request.getAttendees().isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n // nobody has time to meet for more than a day\n if(request.getDuration() > TimeRange.WHOLE_DAY.duration()){\n return Arrays.asList();\n }\n // if there're no already existing events, whole day is available, \n if(events.isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n\n Collection<String> listOfAttendees = request.getAttendees();\n List<TimeRange> unavailableTimes = getUnavailableTimesForAttendees(events, listOfAttendees);\n\n return getAvailableTimes(unavailableTimes, request.getDuration());\n }", "public List<ExperimentSummaryResource> searchExperiments(Timestamp fromTime, Timestamp toTime, Map<String, String> filters, int limit,\n int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException {\n List<ExperimentSummaryResource> result = new ArrayList();\n EntityManager em = null;\n try {\n String query = \"SELECT e FROM ExperimentSummary e \" +\n \"WHERE \";\n\n if (filters.get(ExperimentStatusConstants.STATE) != null) {\n String experimentState = ExperimentState.valueOf(filters.get(ExperimentStatusConstants.STATE)).toString();\n query += \"e.state='\" + experimentState + \"' AND \";\n }\n\n if (toTime != null && fromTime != null && toTime.after(fromTime)) {\n query += \"e.creationTime > '\" + fromTime + \"' \" + \"AND e.creationTime <'\" + toTime + \"' AND \";\n }\n\n filters.remove(ExperimentStatusConstants.STATE);\n if (filters != null && filters.size() != 0) {\n for (String field : filters.keySet()) {\n String filterVal = filters.get(field);\n if (field.equals(ExperimentConstants.USER_NAME)) {\n query += \"e.\" + field + \"= '\" + filterVal + \"' AND \";\n } else if (field.equals(ExperimentConstants.GATEWAY_ID)) {\n query += \"e.\" + field + \"= '\" + filterVal + \"' AND \";\n } else if (field.equals(ExperimentConstants.PROJECT_ID)) {\n query += \"e.\" + field + \"= '\" + filterVal + \"' AND \";\n } else {\n if (filterVal.contains(\"*\")) {\n filterVal = filterVal.replaceAll(\"\\\\*\", \"\");\n }\n query += \"e.\" + field + \" LIKE '%\" + filterVal + \"%' AND \";\n }\n }\n }\n query = query.substring(0, query.length() - 5);\n\n //ordering\n if (orderByIdentifier != null && resultOrderType != null\n && orderByIdentifier.equals(Constants.FieldConstants.ExperimentConstants.CREATION_TIME)) {\n String order = (resultOrderType == ResultOrderType.ASC) ? \"ASC\" : \"DESC\";\n query += \" ORDER BY e.\" + ExperimentConstants.CREATION_TIME + \" \" + order;\n }\n\n em = ExpCatResourceUtils.getEntityManager();\n em.getTransaction().begin();\n Query q;\n\n //pagination\n if (offset >= 0 && limit >= 0) {\n q = em.createQuery(query).setFirstResult(offset).setMaxResults(limit);\n } else {\n q = em.createQuery(query);\n }\n\n List resultList = q.getResultList();\n for (Object o : resultList) {\n ExperimentSummary experimentSummary = (ExperimentSummary) o;\n ExperimentSummaryResource experimentSummaryResource =\n (ExperimentSummaryResource) Utils.getResource(ResourceType.EXPERIMENT_SUMMARY,\n experimentSummary);\n result.add(experimentSummaryResource);\n }\n em.getTransaction().commit();\n em.close();\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n throw new RegistryException(e);\n } finally {\n if (em != null && em.isOpen()) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n }\n }\n return result;\n }", "@RequestMapping(value = \"/lpg\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<LiquefiedPetroleumGasMeasurement>> getLiquefiedPetroleumGasMeasurementBetweenTimestamps(\n\t\t\t@PathVariable String username, @RequestParam(\"from\") long from,\n\t\t\t@RequestParam(\"to\") long to, @RequestParam(value = \"room\", required = false) String room_name) {\n\n\t\tLOG.debug(\"getLiquefiedPetroleumGasMeasurementBetweenTimestamps: \" + from + \" and \"\n\t\t\t\t+ to);\n\n\t\tList<LiquefiedPetroleumGasMeasurement> liquefiedPetroleumGasMeasurement;\n\n\t\ttry {\n\t\t\tliquefiedPetroleumGasMeasurement = gasesMeasurementService\n\t\t\t\t\t.getLiquefiedPetroleumGasMeasurementBetweenTimestamps(username, from,\n\t\t\t\t\t\t\tto, room_name);\n\n\t\t\tif (liquefiedPetroleumGasMeasurement != null) {\n\t\t\t\treturn new ResponseEntity<List<LiquefiedPetroleumGasMeasurement>>(\n\t\t\t\t\t\tliquefiedPetroleumGasMeasurement, HttpStatus.OK);\n\t\t\t} else {\n\t\t\t\treturn new ResponseEntity<List<LiquefiedPetroleumGasMeasurement>>(\n\t\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOG.warn(e.getMessage());\n\t\t\treturn new ResponseEntity<List<LiquefiedPetroleumGasMeasurement>>(\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\n\t}", "private Get prepareGet(final byte[] row, final byte[][] columnFamilies,\t\n\t\t\t\t\t\t\t\tfinal long timeStamp, final long[] timeRange) throws IOException {\n\t\t\n\t\tGet get = new Get(row);\n\t\t\n\t\tif(columnFamilies != null)\n\t\t\tfor(byte[] cf : columnFamilies)\n\t\t\t\tget.addFamily(cf);\n\t\t\n\t\tif(timeRange == null)\n\t\t\treturn get.setTimeStamp(timeStamp);\n\t\telse\n\t\t\treturn get.setTimeRange(timeRange[0], timeRange[1]);\t\t\n\t}", "private List<Object[]> executeDayQuery(\n List<Object> segments, List<Object> workplaces,\n String Eq1startTime, String Eq1endTime,\n String Eq2startTime, String Eq2endTime,\n String Eq3startTime, String Eq3endTime) {\n try {\n //Clear all tables\n //################# Declared Harness Data #################### \n Helper.startSession();\n\n String query_str_1 = \"(SELECT 'Matin' as shift,'%s' As start_time, '%s' as end_time, \"\n + \"bh.segment AS segment, \"\n + \"bh.workplace AS workplace, \"\n + \"bh.harness_part AS harness_part, \"\n + \"bh.std_time AS std_time, \"\n + \"COUNT(bh.harness_part) AS produced_qty, \"\n + \"SUM(bh.std_time) AS produced_hours \"\n + \"FROM base_harness bh, base_container bc \"\n + \"WHERE bc.id = bh.container_id \"\n + \"AND bh.create_time BETWEEN '%s' AND '%s' \"\n + \"AND bh.segment IN (:segments) \"\n + \"AND bh.workplace IN (:workplaces) \"\n + \"GROUP BY bh.segment, bh.workplace, bh.harness_part, bh.std_time)\";\n\n query_str_1 = String.format(query_str_1, Eq1startTime, Eq1endTime, Eq1startTime, Eq1endTime);\n\n String query_str_2 = \"(SELECT 'Soir' as shift,'%s' As start_time, '%s' as end_time, \"\n + \"bh.segment AS segment, \"\n + \"bh.workplace AS workplace, \"\n + \"bh.harness_part AS harness_part, \"\n + \"bh.std_time AS std_time, \"\n + \"COUNT(bh.harness_part) AS produced_qty, \"\n + \"SUM(bh.std_time) AS produced_hours \"\n + \"FROM base_harness bh, base_container bc \"\n + \"WHERE bc.id = bh.container_id \"\n + \"AND bh.create_time BETWEEN '%s' AND '%s' \"\n + \"AND bh.segment IN (:segments) \"\n + \"AND bh.workplace IN (:workplaces) \"\n + \"GROUP BY bh.segment, bh.workplace, bh.harness_part, bh.std_time)\";\n\n query_str_2 = String.format(query_str_2, Eq2startTime, Eq2endTime, Eq2startTime, Eq2endTime);\n\n String query_str_3 = \"(SELECT 'Nuit' as shift,'%s' As start_time, '%s' as end_time, \"\n + \"bh.segment AS segment, \"\n + \"bh.workplace AS workplace, \"\n + \"bh.harness_part AS harness_part, \"\n + \"bh.std_time AS std_time, \"\n + \"COUNT(bh.harness_part) AS produced_qty, \"\n + \"SUM(bh.std_time) AS produced_hours \"\n + \"FROM base_harness bh, base_container bc \"\n + \"WHERE bc.id = bh.container_id \"\n + \"AND bh.create_time BETWEEN '%s' AND '%s' \"\n + \"AND bh.segment IN (:segments) \"\n + \"AND bh.workplace IN (:workplaces)\"\n + \"GROUP BY bh.segment, bh.workplace, bh.harness_part, bh.std_time) \";\n\n query_str_3 = String.format(query_str_3, Eq3startTime, Eq3endTime, Eq3startTime, Eq3endTime);\n\n String query_str = \"SELECT * FROM (\"\n + query_str_1 + \" UNION \"\n + query_str_2 + \" UNION \"\n + query_str_3\n + \") results ORDER BY start_time ASC, segment ASC, workplace ASC, harness_part ASC\";\n\n SQLQuery query = Helper.sess.createSQLQuery(query_str);\n\n query.addScalar(\"shift\", StandardBasicTypes.STRING)\n .addScalar(\"start_time\", StandardBasicTypes.STRING)\n .addScalar(\"end_time\", StandardBasicTypes.STRING)\n .addScalar(\"segment\", StandardBasicTypes.STRING)\n .addScalar(\"workplace\", StandardBasicTypes.STRING)\n .addScalar(\"harness_part\", StandardBasicTypes.STRING)\n .addScalar(\"std_time\", StandardBasicTypes.DOUBLE)\n .addScalar(\"produced_qty\", StandardBasicTypes.INTEGER)\n .addScalar(\"produced_hours\", StandardBasicTypes.DOUBLE)\n .setParameterList(\"segments\", segments)\n .setParameterList(\"workplaces\", workplaces);\n\n this.dataResultList = query.list();\n\n Helper.sess.getTransaction().commit();\n\n return this.dataResultList;\n\n } catch (HibernateException e) {\n if (Helper.sess.getTransaction() != null) {\n Helper.sess.getTransaction().rollback();\n }\n }\n\n return this.dataResultList;\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n\n\n java.text.SimpleDateFormat toDateTime = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\");\n //Date todayDate = new Date();\n // String todayName = dayName.format(todayDate);\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n\n calendar.setTime(nowToday);\n calendar.add(Calendar.HOUR, 2);\n Date twoFromNow = calendar.getTime();\n\n\n\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setTimeMax(new DateTime(twoFromNow, TimeZone.getDefault()))\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n // String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n\n // Only get events with exact start time set, exclude all day\n if (start != null) {\n eventStrings.add(\n String.format(\"%s //// %s)\", event.getSummary(), start));\n }\n\n\n }\n\n return eventStrings;\n }", "public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfTransactionDate(LocalDate lowerInclusive, LocalDate upperInclusive) {\n return fetchRange(Income.INCOME.TRANSACTION_DATE, lowerInclusive, upperInclusive);\n }", "public abstract Statement queryToRetrieveData();", "@QueryProvider(providerClass = SpacecraftInstrumentsQueryProvider.class, \n entityHelpers = { SpacecraftTemperatureOverTime.class, SpacecraftPressureOverTime.class, \n SpacecraftLocationOverTime.class, SpacecraftSpeedOverTime.class})\n PagingIterable<SpacecraftTemperatureOverTime> getTemperatureReading(\n String spacecraftName, UUID JourneyId, \n Optional<Integer> pageSize, \n Optional<String> pagingState);", "private DescriptiveStatistics calculateStatsForRange(List<JsonObject> datapoints, String targetName, Range range) {\n\n return datapoints.stream()\n .filter(js -> targetName.equals(js.getJsonObject(\"t\").getString(\"name\"))\n && range.contains(js.getJsonObject(\"n\").getLong(\"begin\")))\n .map(js -> js.getJsonObject(\"n\").getLong(\"value\"))\n .map(Long::doubleValue)\n .collect(descStatsCollector());\n }", "Map<Date, Double> getValues(final FinancialAnalysisParameter financialParameter,\n final Date dateFrom, final Date dateTo);", "public Flux<SolarFlare> getForRange(Date startDate, Date endDate) {\n return solarFlareRepository.findByBeginTimeBetween(startDate, endDate);\n }", "public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }", "public static ArrayList<Object[]> getData(String query){\n ArrayList<Object[]> resultList = new ArrayList<Object[]>();\n ResultSet result;\n ResultSetMetaData rsmd;\n connect();\n try{\n Statement stm = conn.createStatement();\n result = stm.executeQuery(query);\n rsmd = result.getMetaData();\n Object[] obj = new Object[rsmd.getColumnCount()];\n while(result.next()){\n for(int col = 1; col < rsmd.getColumnCount(); col++){\n obj[col-1] = result.getObject(col);\n }\n resultList.add(obj);\n }\n }catch(Exception e) {\n System.out.println(e.getMessage());\n }\n disconnect();\n return resultList;\n }", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}" ]
[ "0.7422926", "0.69073313", "0.6726744", "0.6259348", "0.61844176", "0.60671544", "0.59921455", "0.59760976", "0.5963128", "0.5922322", "0.5779738", "0.5668602", "0.56451863", "0.55550706", "0.55514175", "0.5539159", "0.55301315", "0.5501482", "0.54367894", "0.5405903", "0.53869885", "0.53852654", "0.5369467", "0.53423214", "0.53399205", "0.5308047", "0.52911425", "0.52829915", "0.5275422", "0.5275038", "0.52718216", "0.52606434", "0.5241179", "0.52366596", "0.5226312", "0.5221478", "0.5212353", "0.5211825", "0.5210456", "0.5177875", "0.51601154", "0.51542956", "0.5149762", "0.5129645", "0.51246476", "0.5100837", "0.5088202", "0.5067604", "0.50565064", "0.5040318", "0.50401497", "0.5039643", "0.5024172", "0.50121087", "0.49645063", "0.49638918", "0.49417832", "0.48904088", "0.48770288", "0.48659116", "0.4864511", "0.48572823", "0.48477536", "0.48463947", "0.48455417", "0.4839102", "0.4836262", "0.4831169", "0.48292512", "0.48273063", "0.4824156", "0.48190242", "0.4818016", "0.48159492", "0.48084322", "0.48052898", "0.48005697", "0.47922713", "0.47762296", "0.47748917", "0.47675005", "0.47604722", "0.4757045", "0.47498888", "0.47467843", "0.474527", "0.47420835", "0.4741773", "0.47363824", "0.47352344", "0.4733654", "0.47316998", "0.473018", "0.4726413", "0.47250077", "0.47224656", "0.47204572", "0.47204092", "0.47182104", "0.47164106" ]
0.51493204
43
Retrieve only the time series data from the specified query in the specified time window. The Time Series data retrieved will have only tags and time series data in it. We will keep the "host" value as well in the tags list.
public List<TimeseriesData> getTimeSeriesData(String query, long startTimeInEpocMillis, long endTimeInEpochMillis, String granularity) { List<TimeseriesData> timeSeriesData = new ArrayList<>(); WavefrontMetricQueryResponse queryResponse = queryMetric(query, startTimeInEpocMillis, endTimeInEpochMillis, granularity); if (null != queryResponse && null != queryResponse.getTimeseries()) { for (Timeseries timeseries : queryResponse.getTimeseries()) { TimeseriesData data = new TimeseriesData(); if (CollectionUtils.isEmpty(timeseries.getTags())) { data.setTags(new HashMap<>()); } else { data.setTags(timeseries.getTags()); } data.setData(timeseries.getData()); data.getTags().put("host", timeseries.getHost()); timeSeriesData.add(data); } return timeSeriesData; } return timeSeriesData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void queryTimeSeries(final Message<JsonObject> msg) {\n\n final JsonObject query = msg.body();\n LOG.debug(\"{}\\n{}\", address, query.encodePrettily());\n\n // get the paramsters from the query\n final Range range = rangeParser.parse(query.getJsonObject(\"range\").getString(\"from\"),\n query.getJsonObject(\"range\").getString(\"to\"));\n final long interval = intervalParser.parseToLong(query.getString(\"interval\"));\n final JsonArray targets = query.getJsonArray(\"targets\")\n .stream()\n .map(o -> ((JsonObject) o).getString(\"target\"))\n .collect(toJsonArray());\n\n //build the query and options\n final JsonObject tsQuery = $and(obj(\"n.begin\", $gte(range.getStart())),\n obj(\"n.begin\", $lte(range.getEnd())),\n obj(\"t.name\", $in(targets)));\n\n final FindOptions findOptions = new FindOptions().setFields(obj().put(\"t.name\", 1)\n .put(\"n.begin\", 1)\n .put(\"n.value\", 1)\n .put(\"_id\", 0)).setSort(obj(\"n.begin\", 1));\n\n long start = System.currentTimeMillis();\n //execute search and process response\n client.findWithOptions(collectionName, tsQuery, findOptions, result -> {\n\n if (result.succeeded()) {\n JsonArray resp = processResponse(range, r -> range.splitEvery(interval), targets, result);\n long end = System.currentTimeMillis();\n LOG.debug(\n \"Sending response with {} timeseries and {} datapoints (after {} ms)\",\n resp.size(),\n resp.stream()\n .map(o -> ((JsonObject) o).getJsonArray(\"datapoints\"))\n .collect(Collectors.summingInt(JsonArray::size)),\n (end - start));\n msg.reply(resp);\n\n } else {\n LOG.error(\"Annotation query failed\", result.cause());\n msg.reply(arr());\n }\n\n });\n }", "public org.eclipse.stardust.engine.api.runtime.DataQueryResult\n getAllData(org.eclipse.stardust.engine.api.query.DataQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;", "public Set<DataTime> timeInvariantQuery(\n Map<String, RequestConstraint> query) throws VizException;", "public List<Pair<Integer>> getCustomTrend(String collectionId, String analysisId, String fieldValue, String query,\r\n String beginDate, String endDate, String interval) {\r\n List<Pair<Integer>> toReturn = new ArrayList<Pair<Integer>>();\r\n // query can be length of 0 (in the case of \"DOCUMENT\" as Frequency Type), so it's not included in wrong argument condition\r\n if (null == collectionId || null == analysisId || null == fieldValue || null == query || null == beginDate\r\n || null == endDate || 0 == collectionId.length() || 0 == analysisId.length() || 0 == fieldValue.length()\r\n || 0 == beginDate.length() || 0 == endDate.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n if (!IntervalType.DAY.equals(interval) && !IntervalType.MONTH.equals(interval) && !IntervalType.YEAR.equals(interval)) {\r\n setError(\"APIL_0165\", \"interval type's not valid: \" + interval);\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\", \"analysis_id\", \"field_value\", \"query\", \"date_begin\", \"date_end\", \"interval\",\r\n \"item_delimiter\", \"freq_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"custom_time_series\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY,\r\n \"\", paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n request.setValue(\"analysis_id\", analysisId);\r\n request.setValue(\"field_value\", fieldValue);\r\n request.setValue(\"query\", query);\r\n request.setValue(\"date_begin\", beginDate);\r\n request.setValue(\"date_end\", endDate);\r\n request.setValue(\"interval\", interval);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n request.setValue(\"freq_delimiter\", FREQ_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0491\", \"getting custom trend wasn't successful: coll_id=\" + collectionId + \"/analysis_id=\"\r\n + analysisId + \"/field_value=\" + fieldValue + \"/query=\" + query);\r\n } else {\r\n wrapError(\"APIL_0491\", \"getting custom trend wasn't successful: coll_id=\" + collectionId + \"/analysis_id=\"\r\n + analysisId + \"/field_value=\" + fieldValue + \"/query=\" + query);\r\n }\r\n } else {\r\n toReturn = Tools.getPairListInt(response.getValue(\"time_series\"), ITEM_DELIMITER, FREQ_DELIMITER);\r\n }\r\n\r\n return toReturn;\r\n }", "public List<Pair<Integer>> getTrend(String collectionId, String analysisId, String query, String beginDate, String endDate,\r\n String interval) {\r\n List<Pair<Integer>> toReturn = new ArrayList<Pair<Integer>>();\r\n if (null == collectionId || null == analysisId || null == query || null == beginDate || null == endDate\r\n || 0 == collectionId.length() || 0 == analysisId.length() || 0 == beginDate.length() || 0 == endDate.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n if (!IntervalType.DAY.equals(interval) && !IntervalType.MONTH.equals(interval) && !IntervalType.YEAR.equals(interval)) {\r\n setError(\"APIL_0165\", \"interval type's not valid: \" + interval);\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\", \"analysis_id\", \"query\", \"date_begin\", \"date_end\", \"interval\", \"item_delimiter\",\r\n \"freq_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"time_series\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\",\r\n paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n request.setValue(\"analysis_id\", analysisId);\r\n request.setValue(\"query\", query);\r\n request.setValue(\"date_begin\", beginDate);\r\n request.setValue(\"date_end\", endDate);\r\n request.setValue(\"interval\", interval);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n request.setValue(\"freq_delimiter\", FREQ_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0501\", \"getting trend wasn't successful: coll_id=\" + collectionId + \"/analysis_id=\" + analysisId\r\n + \"/query=\" + query);\r\n } else {\r\n wrapError(\"APIL_0501\", \"getting trend wasn't successful: coll_id=\" + collectionId + \"/analysis_id=\" + analysisId\r\n + \"/query=\" + query);\r\n }\r\n } else {\r\n toReturn = Tools.getPairListInt(response.getValue(\"time_series\"), ITEM_DELIMITER, FREQ_DELIMITER);\r\n }\r\n return toReturn;\r\n }", "private void doRemoteSearch(String query) {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.YEAR,2018);\n cal.set(Calendar.MONTH,12);\n\n String[] titles = {\"Search Party\", \"Lunchtime Search Basketball\", \"Search Games\", \"Pickup Soccer Search\"};\n\n for(int i = 0 ; i < 10; i++ ) {\n cal.set(Calendar.DAY_OF_MONTH,i);\n eventList.add(new Event(titles[i % titles.length], \"test description\", \"test host\", cal.getTime(),cal.getTime(), cal.getTime(), \"test category\", \"test URL\", \"test owner\", \"test location\"));\n }\n }", "public HashMap<String/* concept path */, List<TimelineEvent> /* events */> runTimelineQuery(Query query){\n\t\tList<String> requiredFieldsForTimeline = query.getRequiredFields();\n\t\tList<String> fieldsForTimeline = new ArrayList(query.getRequiredFields());\n\t\tfieldsForTimeline.addAll(query.getRequiredFields());\n\n\t\t// todo: copy the query?\n\t\t// wipe out required fields to not limit the patients by it\n\t\tquery.setRequiredFields(new ArrayList<>());\n\n\t\t// list patients involved\n\t\tSet<Integer> patientIds = abstractProcessor.getPatientSubsetForQuery(query);\n\n\t\t// get start time for the timeline\n\t\tlong startTime = Long.MAX_VALUE;\n\t\tfor(String field : requiredFieldsForTimeline) {\n\t\t\tPhenoCube cube = abstractProcessor.getCube(field);\n\t\t\tList<KeyAndValue> values = cube.getValuesForKeys(patientIds);\n\t\t\tfor(KeyAndValue value : values) {\n\t\t\t\tif(value.getTimestamp()!=null && value.getTimestamp() > 0 && value.getTimestamp() < startTime) {\n\t\t\t\t\tstartTime = value.getTimestamp();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinal long _startTime = startTime;\n\t\tLinkedHashMap<String/* concept path */, List<TimelineEvent> /* events */> timelineEvents = \n\t\t\t\tnew LinkedHashMap<>();\n\t\t// fetch results for selected fields\n\t\tfor(String concept : fieldsForTimeline) {\n\t\t\tPhenoCube cube = abstractProcessor.getCube(concept);\n\t\t\tList<KeyAndValue> values = cube.getValuesForKeys(patientIds);\n\t\t\ttimelineEvents.put(concept, \n\t\t\t\t\tvalues.parallelStream()\n\t\t\t\t\t.map( value->{\n\t\t\t\t\t\treturn new TimelineEvent(value, _startTime);\n\t\t\t\t\t})\n\t\t\t\t\t.filter(event -> {\n\t\t\t\t\t\treturn event.getTimestamp() > -1;\n\t\t\t\t\t})\n\t\t\t\t\t.sorted(TimelineEvent.timestampComparator)\n\t\t\t\t\t.collect(Collectors.toList()));\n\t\t}\n\n\t\tList<Entry<String, List<TimelineEvent>>> entries = new ArrayList<>(timelineEvents.entrySet());\n\n\t\tCollections.sort(entries, (a, b)->{\n\t\t\tif(a.getValue().isEmpty()) return 1;\n\t\t\tif(b.getValue().isEmpty()) return -1;\n\t\t\treturn TimelineEvent.timestampComparator.compare(a.getValue().get(0), b.getValue().get(0));\n\t\t});\n\n\t\ttimelineEvents.clear();\n\t\tentries.stream().forEach(\n\t\t\t\t(entry)->{\n\t\t\t\t\ttimelineEvents.put(entry.getKey(), entry.getValue());\n\t\t\t\t});\n\n\t\treturn timelineEvents;\n\t}", "@GetMapping(\"/_search/charts\")\n @Timed\n public List<Chart> searchCharts(@RequestParam String query) {\n log.debug(\"REST request to search Charts for query {}\", query);\n List<Chart> list = StreamSupport\n .stream(chartSearchRepository.search(wrapperQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n return list;\n }", "TemperatureQuery createTemperatureQuery();", "HumidityQuery createHumidityQuery();", "public interface TimeSeriesQuerier {\n /**\n * Initialize method. Any one time initialization is done here.\n *\n * @param conf Configuration for implementation of TopologyMetrics.\n * @throws ConfigException throw when instance can't be initialized with this configuration (misconfigured).\n */\n void init (Map<String, String> conf) throws ConfigException;\n\n /**\n * Query metrics to time-series DB. The result should aggregate all components metrics to one (meaning topology level).\n *\n * @param topologyName topology name (not ID)\n * @param metricName metric name\n * @param aggrFunction function to apply while aggregating task level series\n * @param from beginning of the time period: timestamp (in milliseconds)\n * @param to end of the time period: timestamp (in milliseconds)\n * @return Map of data points which are paired to (timestamp, value)\n */\n Map<Long, Double> getTopologyLevelMetrics(String topologyName, String metricName, AggregateFunction aggrFunction, long from, long to);\n\n /**\n * Query metrics to time-series DB.\n *\n * @param topologyName topology name (not ID)\n * @param componentId component id\n * @param metricName metric name\n * @param aggrFunction function to apply while aggregating task level series\n * @param from beginning of the time period: timestamp (in milliseconds)\n * @param to end of the time period: timestamp (in milliseconds)\n * @return Map of data points which are paired to (timestamp, value)\n */\n Map<Long, Double> getMetrics(String topologyName, String componentId, String metricName, AggregateFunction aggrFunction, long from, long to);\n\n /**\n * Query metrics without modification (raw) to time-series DB.\n *\n * @param metricName metric name\n * @param parameters parameters separated by ',', and represented as 'key=value'\n * @param from beginning of the time period: timestamp (in milliseconds)\n * @param to end of the time period: timestamp (in milliseconds)\n * @return Map of metric name and Map of data points which are paired to (timestamp, value)\n */\n Map<String, Map<Long, Double>> getRawMetrics(String metricName, String parameters, long from, long to);\n\n /**\n * Function to apply while aggregating multiple series\n */\n enum AggregateFunction {\n SUM, AVG, MIN, MAX\n }\n}", "public List<Pair<Integer>> getTrend(String collectionId, String analysisId, String query, String beginDate, String endDate) {\r\n return getTrend(collectionId, analysisId, query, beginDate, endDate, IntervalType.MONTH);\r\n }", "public void getRecords(LVValue query) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\tmyData.record=createRecord(myData.spec,null);\n\t\ttry\n\t\t{\n\t\t\tString s=null;\n\t\t\tif (query!=null) s=query.getStringValue();\n\t\t\tmyData.record.getRecords(background.getClient(),s);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "Stream<DataPoint> getHistoryData(Symbol symbol, LocalDateTime startTime, LocalDateTime endTime, int numberOfPoints);", "String getAllTitlesDataQuery(String graph);", "public List<JsonEvent> getEvents(final EventQuery query) throws Exception {\n\t\tInputStream result = null;\n\t\tList<JsonEvent> events = null;\n\n\t\ttry {\n\t\t\tresult = UrlUtil.getInputStream(getUrl(query, Format.GEOJSON));\n\t\t\tevents = parseJsonEventCollection(result);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresult.close();\n\t\t\t} catch (NullPointerException npx) {\n\t\t\t\t// Don't throw null pointer exceptions because they mask the real\n\t\t\t\t// exception, eg, that an error occurred during I/O.\n\t\t\t}\n\t\t}\n\n\t\treturn events;\n\t}", "public List<DataStoreRow> select(Query query) {\n\t\tquery.prepare();\n\t\tSchema.ensure(query);\t\t\n\t\tString selectTarget = SchemaMapper.kindToColumnFamily(query.getKind());\n\t\tStringBuilder b = new StringBuilder();\n\t\tb.append(\"Select * from \\\"\");\n\t\tb.append(DataStore.KEYSPACE_NAME);\n\t\tb.append(\"\\\".\\\"\");\n\t\tb.append(selectTarget);\n\t\tb.append(\"\\\"\");\t\t\n\t\tb.append(query.getQuery());\n\t\tb.append(\" ALLOW FILTERING;\");\n\t\tResultSet results = this.query(b.toString(), query.getValues().toArray());\n\t\tList<DataStoreRow> rows = new ArrayList<DataStoreRow>();\n\t\tfor (Row row : results.all()) {\n\t\t\tDataStoreRow r = new DataStoreRow(row);\n\t\t\trows.add(r);\n\t\t}\n\t\trows = this.sort(query, rows);\n\t\treturn rows;\n\t}", "void execute(TimelyQuery timelyQuery, GraphSchema schema, long timeout, String queryId);", "public InfluxDBParameter setQuery(String query) {\n this.query = query;\n return this;\n }", "public String assembleGetObservationsQuery(Set<DataStream> dataStreams, Date minTimestamp, Date maxTimestamp) {\n\t\tString sqlQuery = null;\r\n\t\t\r\n\t\tString queryPrefix = \"SELECT * FROM observation\";\r\n\t\tString whereStr = \"\";\r\n\t\t\r\n\t\tSet<DataStream> localDataStreams = new HashSet<DataStream>();\r\n\t\tlocalDataStreams.addAll(dataStreams);\r\n\t\t\r\n\t\t// ~~~ sensorIds and phenomenon constraint ~~~\r\n\t\tIterator<DataStream> iterator = localDataStreams.iterator();\r\n\t\t\r\n\t\tif(iterator.hasNext()) { \r\n\t\t\t\r\n\t\t\twhereStr = \" WHERE \";\r\n\t\t\t\r\n\t\t\tDataStream ds = iterator.next();\r\n\t\t\t\r\n\t\t\twhereStr = whereStr + \"((procedure_id = '\" + ds.getSensorId() + \"'\";\r\n\t\t\t\r\n\t\t\tif(ds.getPhenomenon() != null)\r\n\t\t\t\twhereStr = whereStr + \" AND phenomenon_id='\" + ds.getPhenomenon() + \"')\";\r\n\t\t\t\r\n\t\t\twhile(iterator.hasNext()) {\r\n\t\t\t\t\r\n\t\t\t\tds = iterator.next();\r\n\t\t\t\t\r\n\t\t\t\twhereStr = whereStr + \" OR \" ;\r\n\t\t\t\t\r\n\t\t\t\twhereStr = whereStr + \"(procedure_id = '\" + ds.getSensorId() + \"'\";\r\n\t\t\t\t\r\n\t\t\t\tif(ds.getPhenomenon() != null)\r\n\t\t\t\t\twhereStr = whereStr + \" AND phenomenon_id='\" + ds.getPhenomenon() + \"')\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twhereStr = whereStr + \")\";\r\n\t\t}\r\n\t\t\r\n\t\t// TODO: Supports only the same phenomenon for all sid. Do we want to support sensor streams with different phneomenon? \r\n\t\t// Phenomenon restriction\r\n\t\t//if (sensorStreamSet.size() > 0) {\r\n\t\t//\twhereStr = whereStr + \" AND phenomenon_id='\" + sensorStreamSet.iterator().next().getPhenomenon() + \"'\";\r\n\t\t//}\r\n\t\t\r\n\t\t// time constraint\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(DateTimeUtils.DATE_FORMAT);\r\n\t\t\t\r\n\t\tif(maxTimestamp != null)\r\n\t\t\twhereStr = whereStr + \" AND time_stamp <= TIMESTAMP WITH TIME ZONE '\" + sdf.format(maxTimestamp) + \"'\";\r\n\t\t\r\n\t\tif(minTimestamp != null) {\r\n\t\t\twhereStr = whereStr + \" AND time_stamp > TIMESTAMP WITH TIME ZONE '\" + sdf.format(minTimestamp) + \"'\"; \r\n\t\t}\r\n\t\t\r\n\t\tString querySuffix = \" ORDER BY time_stamp ASC\";\r\n\t\t\r\n\t\tsqlQuery = queryPrefix + whereStr + querySuffix;\r\n\t\t\r\n\t\treturn sqlQuery;\r\n\t}", "@GetMapping(\"/_search/all-charts\")\n @Timed\n public ResponseEntity<List<ChartVO>> searchAllCharts(@RequestParam String query, Pageable pageable) throws URISyntaxException {\n log.debug(\"REST request to search Charts for query {}\", query);\n Page<Chart> charts = chartSearchRepository.search(wrapperQuery(query), pageable);\n List<ChartVO> chartVOS = charts.getContent().stream()\n .map(chart -> {\n String bed = (chart.getBed() != null) ? chart.getBed().getName() : \"\";\n String patientProgram = (chart.getTypePatientPrograms() != null) ? chart.getTypePatientPrograms().getName() : \"\";\n String picture = (chart.getPictureRef() != null) ? chart.getPictureRef().getPicture() : \"\";\n String pictureCT = (chart.getPictureRef() != null) ? chart.getPictureRef().getPictureContentType() : \"\";\n ChartVO chartVO = new ChartVO(chart.getId(), chart.getPatient().getFirstName(), chart.getPatient().getLastName(),\n chart.getMrNo(), bed, patientProgram, chart.getTypePaymentMethods().getName(), chart.getFacility().getName(),\n picture, pictureCT\n );\n chartVO.setAdmissionDate(chart.getAdmissionDate());\n chartVO.setDischargeDate(chart.getDischargeDate());\n chartVO.setWaitingRoom(chart.isWaitingRoom());\n return chartVO;\n })\n// .sorted(Comparator.comparing(ChartVO::getFirstName))\n .collect(Collectors.toList());\n HttpHeaders httpHeaders = PaginationUtil.generatePaginationHttpHeaders(charts, \"api/_search/all-charts\");\n return new ResponseEntity<>(chartVOS, httpHeaders, HttpStatus.OK);\n }", "private DBObject queryMeta(String query,\n\t\t\tCollection<Entry<String, String>> tableDefs, boolean debug)\n\t\t\tthrows IOException, DeserializationException {\n\t\tListenableFuture<Response> response = asyncClient.preparePost(yqlBaseURI).setParameters(toParameterMap(query, tableDefs, debug)).execute();\n\t\t\n\t\tInputStream in = null;\n\t\ttry {\n\t\t\tin = response.get().getResponseBodyAsStream();\n\t\t\treturn parse(in);\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\tthrow new IOException(\"Unable to fetch date from YQL endpoint!\" ,e);\n\t\t} finally {\n\t\t\tif(in!=null) {\n\t\t\t\tin.close();\n\t\t\t}\n\t\t}\n\t}", "public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }", "@QueryProvider(providerClass = SpacecraftInstrumentsQueryProvider.class, \n entityHelpers = { SpacecraftTemperatureOverTime.class, SpacecraftPressureOverTime.class, \n SpacecraftLocationOverTime.class, SpacecraftSpeedOverTime.class})\n PagingIterable<SpacecraftTemperatureOverTime> getTemperatureReading(\n String spacecraftName, UUID JourneyId, \n Optional<Integer> pageSize, \n Optional<String> pagingState);", "private ArrayList<TweetData> query(QueryTargetInfo info) {\n String url;\n ArrayList<TweetData> tweets = new ArrayList<TweetData>();\n InputStream is = null;\n\n // lastSeenId should have been set earlier.\n // However, if it is still null, just use \"0\".\n if (info.lastSeenId == null) {\n url = String.format(\"%s?q=%s&count=%d&result_type=recent&since_id=0\",\n URL_BASE, info.query, RPP);\n } else if (info.smallestId == null) {\n url = String.format(\"%s?q=%s&count=%d&result_type=recent&since_id=%s\",\n URL_BASE, info.query, RPP, info.lastSeenId);\n } else {\n url = String.format(\"%s?q=%s&count=%d&result_type=recent&since_id=%s&max_id=%s\",\n URL_BASE, info.query, RPP, info.lastSeenId, info.smallestId);\n }\n\n try {\n do {\n URL searchURL = new URL(url);\n HttpsURLConnection searchConnection = (HttpsURLConnection)searchURL.openConnection();\n\n searchConnection.setRequestProperty(\"Host\", \"api.twitter.com\");\n searchConnection.setRequestProperty(\"User-Agent\", \"BirdCatcher\");\n searchConnection.setRequestProperty(\"Authorization\", \"Bearer \" + kBearerToken);\n\n is = searchConnection.getInputStream();\n\n JSONTokener jsonTokener = new JSONTokener(is);\n\n JSONObject json = new JSONObject(jsonTokener);\n\n is.close();\n\n url = getNextLink(json, url, info);\n\n tweets.addAll(getTweets(json, info));\n\n Thread.sleep(1000);\n\n is = null;\n } while (url != null);\n } catch (Exception e) {\n Logger.logError(\"Error performing query\", e);\n\n if (is != null) {\n try {\n java.io.BufferedReader in =\n new java.io.BufferedReader(new java.io.InputStreamReader(is));\n\n String response = \"Response from Twitter:\\n\";\n String temp;\n\n while ((temp = in.readLine()) != null) {\n response += (temp + \"\\n\");\n }\n\n Logger.logDebug(response);\n\n response = null;\n temp = null;\n } catch (Exception ex) {\n }\n }\n\n return tweets;\n }\n\n return tweets;\n }", "public SolrQuery buildSolrQueryForPeriod(String query, String startDate, String endDate) {\n log.info(\"query between \" + startDate + \"T00:00:00Z and \" + endDate + \"T23:59:59Z\");\n SolrQuery solrQuery = new SolrQuery();\n solrQuery.setQuery(query); //Smurf labs forces text:query\n solrQuery.setRows(0); // 1 page only\n solrQuery.add(\"fl\", \"id\");// rows are 0 anyway\n solrQuery.add(\"fq\",\"content_type_norm:html\"); // only html pages\n solrQuery.add(\"fq\",\"crawl_date:[\" + startDate + \"T00:00:00Z TO \" + endDate + \"T23:59:59Z]\");\n return solrQuery;\n }", "public static SearchHit[] query(String query) {\n \tNode node = nodeBuilder().client(true).clusterName(\"clarke\").node();\r\n\t\tClient client = node.client();\r\n\r\n SearchResponse scrollResp = client.prepareSearch(index).addField(\"url\")\r\n .setSearchType(SearchType.QUERY_THEN_FETCH)\r\n .setScroll(new TimeValue(60000))\r\n .setQuery(QueryBuilders.matchQuery(\"text\", query)).setSize(200)\r\n .execute().actionGet();\r\n\r\n return scrollResp.getHits().getHits();\r\n\r\n }", "private void queryEvents() {\n ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n // include data referred by user key\n query.include(Event.KEY_HOST);\n // limit query to latest 20 items\n query.setLimit(30);\n // order posts by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n // start an asynchronous call for events\n query.findInBackground(new FindCallback<Event>() {\n @Override\n public void done(List<Event> events, com.parse.ParseException e) {\n\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n // for debugging purposes let's print every event description to logcat\n for (Event event : events) {\n Log.i(TAG, \"Event: \" + event.getDescription() + \", username: \" + event.getHost().getUsername());\n }\n\n // save received events to list and notify adapter of new data\n allEvents.addAll(events);\n }\n\n });\n }", "@Override\n\tpublic List<DayTradingPo> selectDayTradingByPageByCondition(DayTradingQuery dayTradingQuery) {\n List<DayTradingPo> dayTradings = dayTradingMapper.selectDayTradingByPageByCondition(dayTradingQuery);\n\t\treturn dayTradings;\n\t}", "private ResultSet GetData(String query){\n\t\ttry{\n\t\t\tstat = connection.createStatement();\n\t\t\treturn stat.executeQuery(query);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}", "public List<WavefrontEvent> getEvents(Map<String, String> tags, String servieFamilyName, String serviceName,\n long startTime, long endTime) {\n log.info(\" Querying events from Wavefront. \");\n WavefrontEventResponse response = metricProviderHelper.queryEvents(tags, servieFamilyName, serviceName,\n String.valueOf(startTime), String.valueOf(endTime));\n if (null == response || response.getEvents().isEmpty()) {\n log.debug(\" Event Query returned error OR no events found . \");\n return new ArrayList<>();\n }\n List<WavefrontEvent> events = response.getEvents();\n return filterEvents(events, startTime, endTime);\n }", "public GetTrendingResponse getTrending(Trending.GetTrendingMediaTypeParam mediaType, Trending.GetTrendingTimeWindowParam timeWindow) {\n // /trending/{media_type}/{time_window}\n String path = String.format(\"/trending/%s/%s\", mediaType, timeWindow);\n Map<String, Object> requestParams = Collections.emptyMap();\n return restClient.get(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "public static ArrayList<Object[]> getData(String query){\n ArrayList<Object[]> resultList = new ArrayList<Object[]>();\n ResultSet result;\n ResultSetMetaData rsmd;\n connect();\n try{\n Statement stm = conn.createStatement();\n result = stm.executeQuery(query);\n rsmd = result.getMetaData();\n Object[] obj = new Object[rsmd.getColumnCount()];\n while(result.next()){\n for(int col = 1; col < rsmd.getColumnCount(); col++){\n obj[col-1] = result.getObject(col);\n }\n resultList.add(obj);\n }\n }catch(Exception e) {\n System.out.println(e.getMessage());\n }\n disconnect();\n return resultList;\n }", "@Override\n\tpublic DataGrid dataGrid(Query query) {\n\t\tDataGrid<SysActionLog> dg = new DataGrid<SysActionLog>();\n\t\tdg.setTotal(sysActionLogDao.getRecordCount(query.getQueryParams()));\n\t\tdg.setRows(sysActionLogDao.queryByCondition(query));\n\t\treturn dg;\n\t}", "@Override\n\tpublic Collection<Instance> getByQuery(Query query) {\n\t\treturn null;\n\t}", "@Test\n public void testQueryLessKeys1() throws Exception {\n File file = new File(testInfo.getDir());\n FileUtils.deleteDirectory(file);\n\n EventSchema eventSchema = GenericAggregateSerializerTest.getEventSchema();\n\n String[] dimensionSpecs = new String[] {\n \"time=\" + TimeUnit.MINUTES,\n \"time=\" + TimeUnit.MINUTES + \":adUnit\",\n \"time=\" + TimeUnit.MINUTES + \":adId\",\n \"time=\" + TimeUnit.MINUTES + \":pubId\",\n \"time=\" + TimeUnit.MINUTES + \":adId:adUnit\",\n \"time=\" + TimeUnit.MINUTES + \":pubId:adUnit\",\n \"time=\" + TimeUnit.MINUTES + \":pubId:adId\",\n \"time=\" + TimeUnit.MINUTES + \":pubId:adId:adUnit\"\n };\n\n GenericAggregator[] aggregators = new GenericAggregator[dimensionSpecs.length];\n for (int i = dimensionSpecs.length; i-- > 0;) {\n GenericAggregator aggregator = new GenericAggregator(eventSchema);\n aggregator.init(dimensionSpecs[i]);\n aggregators[i] = aggregator;\n }\n\n DimensionStoreOperator hdsOut = new DimensionStoreOperator() {\n @Override\n public void setup(OperatorContext arg0)\n {\n super.setup(arg0);\n super.writeExecutor = super.queryExecutor = MoreExecutors.sameThreadExecutor(); // synchronous processing\n }\n };\n TFileImpl hdsFile = new TFileImpl.DefaultTFileImpl();\n hdsOut.setFileStore(hdsFile);\n hdsFile.setBasePath(testInfo.getDir());\n //GenericAggregator aggregator = new GenericAggregator(eventSchema);\n //aggregator.init(\"time=MINUTES:pubId:adId:adUnit\");\n hdsOut.setEventSchemaJSON(GenericAggregateSerializerTest.TEST_SCHEMA_JSON);\n hdsOut.setAggregator(aggregators[0]);\n hdsOut.setMaxCacheSize(100);\n hdsOut.setFlushIntervalCount(100);\n hdsOut.setup(null);\n\n CollectorTestSink<DimensionStoreOperator.HDSRangeQueryResult> queryResults = new CollectorTestSink<DimensionStoreOperator.HDSRangeQueryResult>();\n @SuppressWarnings({\"unchecked\", \"rawtypes\"})\n CollectorTestSink<Object> tmp = (CollectorTestSink) queryResults;\n hdsOut.queryResult.setSink(tmp);\n\n\n long baseTime = System.currentTimeMillis();\n long baseMinute = TimeUnit.MILLISECONDS.convert(TimeUnit.MINUTES.convert(baseTime, TimeUnit.MILLISECONDS), TimeUnit.MINUTES);\n\n int numMinutes = 5;\n int wid = 1;\n for(int i = 0; i < numMinutes; i++) {\n hdsOut.beginWindow(wid);\n\n long timestamp = baseMinute - TimeUnit.MINUTES.toMillis(i);\n\n // Check aggregation for ae1 and ae2 as they have same key.\n Map<String, Object> eventMap = Maps.newHashMap();\n eventMap.put(\"timestamp\", timestamp);\n eventMap.put(\"pubId\", 1);\n eventMap.put(\"adId\", 2);\n eventMap.put(\"adUnit\", 3);\n eventMap.put(\"clicks\", 10L);\n\n GenericEvent ge = eventSchema.convertMapToGenericEvent(eventMap);\n\n int aggrIdx = 0;\n for (GenericAggregator aggregator : aggregators) {\n GenericAggregate aggr = aggregator.getGroup(ge, aggrIdx);\n aggregator.aggregate(aggr, ge);\n hdsOut.input.process(aggr);\n aggrIdx++;\n }\n hdsOut.endWindow();\n wid++;\n }\n\n hdsOut.beginWindow(wid);\n\n int pubId = 1;\n int adId = 2;\n int adUnit = 3;\n\n for(int i = 0; i < 8; i++) {\n JSONObject keys = new JSONObject();\n if ((i & 0x1) != 0)\n keys.put(\"pubId\", pubId);\n if ((i & 0x2) != 0)\n keys.put(\"adId\", adId);\n if ((i & 0x4) != 0)\n keys.put(\"adUnit\", adUnit);\n\n JSONObject query = new JSONObject();\n query.put(\"keys\", keys);\n query.put(\"id\", \"query\" + i);\n query.put(\"startTime\", baseMinute - TimeUnit.MILLISECONDS.convert(20, TimeUnit.MINUTES));\n query.put(\"endTime\", baseMinute);\n\n hdsOut.query.process(query.toString());\n }\n Assert.assertEquals(\"timeSeriesQueries \" + hdsOut.rangeQueries, 8, hdsOut.rangeQueries.size());\n hdsOut.endWindow();\n\n Assert.assertEquals(\"queryResults \" + queryResults.collectedTuples, 8, queryResults.collectedTuples.size());\n System.out.println(\"basetime \" + baseMinute);\n\n for(HDSRangeQueryResult r : queryResults.collectedTuples) {\n Assert.assertEquals(\"result points \" + r, Math.min(numMinutes, 20), r.data.size());\n for(Object o : r.data)\n System.out.println(o);\n }\n }", "public QueryResponse query(PqlQuery query, QueryOptions options) {\n Span span = this.tracer.buildSpan(\"Client.Query\").start();\n try {\n QueryRequest request = QueryRequest.withQuery(query);\n request.setRetrieveColumnAttributes(options.isColumns());\n request.setExcludeRowAttributes(options.isExcludeAttributes());\n request.setExcludeColumns(options.isExcludeColumns());\n request.setShards(options.getShards());\n return queryPath(request);\n } finally {\n span.finish();\n }\n }", "private String getHistoryQueryWithTimeStampCheck(Query requestQuery, String tempQuery) {\n\t\treturn tempQuery + \" \" + getTimeStampCheckPart(requestQuery);\n\t}", "T getQueryInfo();", "@GetMapping(\"/td\")\r\n\tpublic List<TimeDimension> getAllTimeDimension() {\r\n\t\treturn timeDimensionRepository.findAll();\r\n\t}", "private HashMap<String,String> createQueryMap() {\n\t\t\n\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\n\t\t// Only include Pages with the CenterNet Event template\n\t\tmap.put(\"type\",\"cq:Page\");\n\t\tmap.put(\"path\", Constants.EVENTS);\n\t\tmap.put(\"property\",\"jcr:content/cq:template\");\n\t map.put(\"property.value\", Constants.EVENT_TEMPLATE);\n\n\t if (tags != null) {\n\t \tmap = addTagFilter(map);\n\t }\n\n\t // Only include Events whose start time is in the future\n\t map.put(\"relativedaterange.property\", PN_QUERY_START_TIME);\n\t map.put(\"relativedaterange.lowerBound\", \"-0d\");\n\t \n\t // Include all hits\n\t //map.put(\"p.limit\", maxNum.toString());\n\t map.put(\"p.limit\", maxNum);\n\t map.put(\"p.guessTotal\", \"true\");\n\t \n\t // Order by Start Time\n\t map.put(\"orderby\", PN_QUERY_START_TIME);\n\t map.put(\"orderby.sort\", \"asc\");\n\t \n\t\treturn map;\n\t\t\n\t}", "public List<QueryStats> getQueryStats(boolean inTest,\n LocalDateTime rangeStart, LocalDateTime rangeEnd) {\n return jdbi.withHandle(handle -> {\n handle.registerRowMapper(ConstructorMapper.factory(QueryStats.class));\n return handle.createQuery(inTest ? QueryStats.getExtractQueryinTest(rangeStart, rangeEnd)\n : QueryStats.getExtractQuery(rangeStart, rangeEnd))\n .mapTo(QueryStats.class)\n .list();\n });\n }", "@Override\n\tpublic List<JsonEvent> getEvents(final EventQuery query) throws Exception {\n\t\tList<JsonEvent> events = null;\n\n\t\t// Set the HTTP status code to the special value for failed connection attempt.\n\n\t\thttp_status_code = -2;\n\n\t\t// Construct the URL that contains the query.\n\t\t// Throws MalformedURLException (subclass of IOException) if error in forming URL.\n\n\t\tURL url = getUrl (query, Format.GEOJSON);\n\n\t\t// Create a connection.\n\t\t// This is a local operation that does not call out to the network.\n\t\t// Throws IOException if there is a problem.\n\t\t// The object returned should be an HttpURLConnection (subclass of URLConnection).\n\n\t\tURLConnection conn = url.openConnection();\n\n\t\t// Add a property to indicate we can accept gzipped data.\n\t\t// This should not throw an exception.\n\n\t\tconn.addRequestProperty(\"Accept-encoding\", UrlUtil.GZIP_ENCODING);\n\n\t\t// Connect to Comcat.\n\t\t// Throws SocketTimeoutException (subclass of IOException) if timeout trying to establish connection.\n\t\t// Throws IOException if there is some other problem.\n\n\t\tconn.connect();\n\n\t\t// Here is where we can examine the HTTP status code.\n\t\t// The connection should be an HTTP connection.\n\n\t\tif (conn instanceof HttpURLConnection) {\n\t\t\tHttpURLConnection http_conn = (HttpURLConnection)conn;\n\n\t\t\t// This is the HTTP status code\n\n\t\t\thttp_status_code = http_conn.getResponseCode();\n\n\t\t\tswitch (http_status_code) {\n\t\t\t\n\t\t\tcase HttpURLConnection.HTTP_OK:\t\t\t\t// 200 = OK\n\t\t\tcase HttpURLConnection.HTTP_PARTIAL:\t\t// 206 = Partial content\n\t\t\tcase -1:\t\t\t\t\t\t\t\t\t// -1 = unknown status (getResponseCode returns -1 if it can't determine the status code)\n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t// continue\n\n\t\t\tcase HttpURLConnection.HTTP_NO_CONTENT:\t\t// 204 = No data matches the selection\n\t\t\tcase HttpURLConnection.HTTP_NOT_FOUND:\t\t// 404 = Not found, also used by Comcat to indicate no data matches the selection\n\t\t\tcase HttpURLConnection.HTTP_CONFLICT:\t\t// 409 = Conflict, used by Comcat to indicate event deleted\n\t\t\t\treturn new ArrayList<JsonEvent>();\t\t// return empty list to indicate nothing found\n\n\t\t\tdefault:\t\t\t\t\t\t\t\t\t// any other status code is an error\n\t\t\t\tthrow new IOException (\"Call to Comcat failed with HTTP status code \" + http_status_code);\n\t\t\t}\n\n\t\t} else {\n\t\t\n\t\t\t// Connection is not HTTP, so set status code to unknown status\n\n\t\t\thttp_status_code = -1;\n\t\t}\n\n\t\ttry (\n\n\t\t\t// Open an input stream on the connection.\n\t\t\t// Throws SocketTimeoutException (subclass of IOException) if timeout while reading.\n\t\t\t// Throws UnknownServiceException (subclass of IOException) if input is not supported.\n\t\t\t// Might throw FileNotFoundException (subclass of IOException) if server indicated no data available.\n\t\t\t// Throws IOException if there is some other problem.\n\n\t\t\tInputStreamHolder stream_holder = new InputStreamHolder (conn.getInputStream());\n\t\t\n\t\t){\n\n\t\t\t// Test if we received a gzipped response.\n\t\t\t// Note getContentEncoding should not throw an exception, but it can return null, in\n\t\t\t// which case the equals function will be false.\n\n\t\t\tif (UrlUtil.GZIP_ENCODING.equals(conn.getContentEncoding())) {\n\n\t\t\t\t// Make a gzip wrapper around the stream.\n\t\t\t\t// Throws ZipException (subclass of IOException) if input is not supported.\n\t\t\t\t// Throws IOException if there is an I/O error.\n\n\t\t\t\tGZIPInputStream zip_stream = new GZIPInputStream (stream_holder.get_stream());\n\t\t\t\tstream_holder.set_stream (zip_stream);\n\t\t\t}\n\n\t\t\t// Parse the input stream.\n\t\t\t// Throws IOException if there is an I/O error reading from the network.\n\t\t\t// Throws Exception if there is a problem parsing the data.\n\t\t\t// Might throw other exceptions.\n\t\t\n\t\t\tevents = parseJsonEventCollection (stream_holder.get_stream());\n\t\t}\n\n\t\treturn events;\n\t}", "@RequestMapping(value = \"/_search/temperaturas/{query}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Temperatura> searchTemperaturas(@PathVariable String query) {\n log.debug(\"REST request to search Temperaturas for query {}\", query);\n return StreamSupport\n .stream(temperaturaSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "public TagDescriptor queryTagInformation(KbQuery query) {\r\n \t\tString cleanQuary = query.getFullLastTagName();\r\n \r\n \t\tCollection<KbTldResource> needResources = convertQueryTldResourceToRegistretedTldResource(query.getResources());\r\n \r\n \t\tString key = needResources.hashCode() + cleanQuary;\r\n \r\n \t\tboolean faceletsHtml = cleanQuary.indexOf(\"0fHP:\")>-1;\r\n \t\tObject o = faceletsHtml?getFaceletsHtmlTagInfoCache().get(key):getTagInfoCache().get(key);\r\n \t\tif(o!=null) {\r\n \t \treturn (TagDescriptor)o;\r\n \t}\r\n \r\n \t\tString tagName = query.getLastTagName();\r\n \t\tif(tagName==null) {\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\tString prefixName = query.getLastTagPrefixName();\r\n \t\tif(prefixName == null) {\r\n \t\t\treturn null;\r\n \t\t}\r\n \r\n \t\tactivateResources(needResources);\r\n \r\n \t\tif(!checkQuery(query.getQuery())) {\r\n \t\t\treturn null;\r\n \t\t}\r\n \r\n \t\tArrayList tldElementTypes = getTldElementsByName(needResources, prefixName, tagName, false);\r\n \t\tif(tldElementTypes.size()==0) {\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\tElement elementType = ((TldElement)tldElementTypes.get(0)).getElement();\r\n \r\n \t\tCollection dinamicResources = query.getDinamicResources();\r\n \t\tSet<String> types = new HashSet<String>();\r\n \t\tfor (Iterator iter = dinamicResources.iterator(); iter.hasNext();) {\r\n \t\t\tKbDinamicResource resource = (KbDinamicResource) iter.next();\r\n \t\t\tString type = resource.getType();\r\n \t\t\ttypes.add(type);\r\n \t\t}\r\n \t\ttypes.add(KbDinamicResource.JSF_VARIABLES_TYPE);\r\n \t\ttypes.add(SchemaNodeFactory.ENUMERATION_TYPE);\r\n \r\n \t\tTagDescriptor tagInfo = KbSchemaUtil.getTagInformationFromElementType(elementType, types);\r\n \t\tif(tagInfo!=null) {\r\n \t\t\ttagInfo.setPrefix(prefixName);\r\n \t\t}\r\n \r\n \t\tif(faceletsHtml) {\r\n \t\t\tgetFaceletsHtmlTagInfoCache().put(key, tagInfo);\r\n \t\t} else {\r\n \t\t\tgetTagInfoCache().put(key, tagInfo);\r\n \t\t}\r\n \t\treturn tagInfo;\r\n \t}", "private List<Object[]> executeWeekQuery(String week, String year) {\n try {\n //Clear all tables\n //################# Declared Harness Data #################### \n Helper.startSession();\n\n String query_str_1 = \"(SELECT \"\n + year + \" as year, \" + week + \" as week, 'Matin' as SHIFT, segment, workplace, harness_part, harness_index, supplier_part_number, harness_type, SUM(qty_read) as total_qty \"\n + \"FROM base_container bc \"\n + \"WHERE EXTRACT(HOUR FROM bc.closed_time) in (6,7,8,9,10,11,12,13) \"\n + \"AND EXTRACT(WEEK FROM bc.closed_time) = \" + week\n + \"AND EXTRACT(YEAR FROM bc.closed_time) = \" + year\n + \"GROUP BY segment, workplace, harness_part, harness_index, supplier_part_number, harness_type)\";\n\n String query_str_2 = \"(SELECT \"\n + year + \" as year, \" + week + \" as week, 'Soir' as SHIFT, segment, workplace, harness_part, harness_index, supplier_part_number, harness_type, SUM(qty_read) as total_qty \"\n + \"FROM base_container bc \"\n + \"WHERE EXTRACT(HOUR FROM bc.closed_time) in (14,15,16,17,18,19,20,21) \"\n + \"AND EXTRACT(WEEK FROM bc.closed_time) = \" + week\n + \"AND EXTRACT(YEAR FROM bc.closed_time) = \" + year\n + \"GROUP BY segment, workplace, harness_part, harness_index, supplier_part_number, harness_type)\";\n\n String query_str_3 = \"(SELECT \"\n + year + \" as year, \" + week + \" as week, 'Nuit' as SHIFT, segment, workplace, harness_part, harness_index, supplier_part_number, harness_type, SUM(qty_read) as total_qty \"\n + \"FROM base_container bc \"\n + \"WHERE EXTRACT(HOUR FROM bc.closed_time) in (22,23,0,1,2,3,4,5) \"\n + \"AND EXTRACT(WEEK FROM bc.closed_time) = \" + week\n + \"AND EXTRACT(YEAR FROM bc.closed_time) = \" + year\n + \"GROUP BY segment, workplace, harness_part, harness_index, supplier_part_number, harness_type)\";\n\n String query_str = \"SELECT * FROM (\"\n + query_str_1 + \" UNION \"\n + query_str_2 + \" UNION \"\n + query_str_3\n + \") results ORDER BY shift, segment, workplace;\";\n\n SQLQuery query = Helper.sess.createSQLQuery(query_str);\n\n this.dataResultList = query.list();\n\n Helper.sess.getTransaction().commit();\n\n return this.dataResultList;\n\n } catch (HibernateException e) {\n if (Helper.sess.getTransaction() != null) {\n Helper.sess.getTransaction().rollback();\n }\n }\n\n return this.dataResultList;\n }", "protected static<T extends FitbitInterval> List<T> filterResults( List<T> results, FitbitQuery query ) {\n\t\tif ( query.atResolution( ) == FitbitResolution.DAILY )\n\t\t\treturn results;\n\t\t\n\t\tList<T> filteredResults = new ArrayList<T>( );\n\t\tfor ( T r : results )\n\t\t\tif ( r.getInterval( ).getStart( ).isAfter( query.from( ) ) && r.getInterval( ).getStart( ).isBefore( query.to( ) ) )\n\t\t\t\tfilteredResults.add( r );\n\t\t\t\t\n\t\treturn filteredResults;\n\t}", "private QueryResponse query(Query query) throws ElasticSearchException{\r\n\t\tQueryResponse response = executor.executeQuery(query);\r\n\t\tresponse.setObjectMapper(mapper);\r\n\t\treturn response;\t\t\r\n\t}", "private void buildQueryFilterTemporal(String dateField,\n String startDate,\n String endDate,\n boolean isDatesContainedChecked,\n String namedTimescale, \n String namedTimescaleQueryType,\n TermsList termsList\n ) \n \t\tthrows UnsupportedEncodingException {\n\t boolean endDateSpecified = false;\n\t boolean startDateSpecified = false;\n\t \n /* If the user specified a named time-scale query, search for it\n * in the \"timescale\" field.\n */\n if ((namedTimescale != null) && (!(namedTimescale.equals(\"\")))) {\n termsList.addTerm(namedTimescale);\n String parenthesizedValue = parenthesizeQueryValue(namedTimescale);\n String escapedValue = Search.escapeQueryChars(parenthesizedValue);\n String encodedValue = URLEncoder.encode(escapedValue, \"UTF-8\");\n String timescaleQuery = String.format(\"timescale:%s\", encodedValue);\n updateQString(timescaleQuery);\n }\n \n if ((startDate == null) || (startDate.equals(\"\"))) {\n \tstartDate = \"*\";\n }\n else {\n startDate = ISO8601Utility.formatTimestamp(startDate, \"DAY\");\n if (startDate != null) startDateSpecified = true;\n }\n\n if ((endDate == null) || (endDate.equals(\"\"))) {\n \tendDate = \"NOW\";\n }\n else {\n \tendDate = ISO8601Utility.formatTimestamp(endDate, \"DAY\");\n \tif (endDate != null) endDateSpecified = true;\n }\n\n validateDateRange(startDate, endDate);\n \n // If a start date or an end date was specified, search temporal coverage\n //\n if (startDateSpecified || endDateSpecified) {\n \tString temporalFilter = null;\n \tString collectionFilter = null;\n \tString pubDateFilter = null;\n \tString LEFT_BRACKET = \"%5B\";\n \tString RIGHT_BRACKET = \"%5D\";\n\n if (dateField.equals(\"ALL\") || dateField.equals(\"COLLECTION\")) {\n \t String singleDateQuery = String.format(\"singledate:%s%s+TO+%s%s\", LEFT_BRACKET, startDate, endDate, RIGHT_BRACKET);\n \t String startDateQuery = String.format(\"begindate:%s*+TO+%s%s\", LEFT_BRACKET, endDate, RIGHT_BRACKET);\n \t String endDateQuery = String.format(\"enddate:%s%s+TO+NOW%s\", LEFT_BRACKET, startDate, RIGHT_BRACKET);\n \t collectionFilter = String.format(\"(%s+OR+(%s+AND+%s))\", singleDateQuery, startDateQuery, endDateQuery);\n }\n \n if (dateField.equals(\"ALL\") || dateField.equals(\"PUBLICATION\")) {\n \t pubDateFilter = String.format(\"pubdate:%s%s+TO+%s%s\", LEFT_BRACKET, startDate, endDate, RIGHT_BRACKET);\n }\n \n if (dateField.equals(\"ALL\")) {\n \t temporalFilter = String.format(\"(%s+OR+%s)\", pubDateFilter, collectionFilter);\n }\n else if (dateField.equals(\"COLLECTION\")) {\n \t temporalFilter = collectionFilter;\n }\n else if (dateField.equals(\"PUBLICATION\")) {\n \t temporalFilter = pubDateFilter;\n }\n \n updateFQString(temporalFilter); \n }\n\n }", "public void tabCall(String query, SearchTimeline.ResultType type) {\n searchTimeline = new SearchTimeline.Builder().query(query).resultType(type).build();\n switch (AppCompatDelegate.getDefaultNightMode()) {\n case AppCompatDelegate.MODE_NIGHT_YES:\n adapter = new TweetTimelineRecyclerViewAdapter.Builder(getContext()).setTimeline(searchTimeline)\n .setViewStyle(R.style.tw__TweetDarkStyle)\n .build();\n break;\n case AppCompatDelegate.MODE_NIGHT_NO:\n adapter = new TweetTimelineRecyclerViewAdapter.Builder(getContext()).setTimeline(searchTimeline)\n .setViewStyle(R.style.tw__TweetLightStyle)\n .build();\n break;\n }\n mProgressBar.setVisibility(View.INVISIBLE);\n rv.setAdapter(adapter);\n\n }", "public WavefrontMetricQueryResponse queryMetric(String query, long startTimeInEpocMillis, long endTimeInEpochMillis,\n String granulirity) {\n log.info(\" Running the query: \" + query + \" between start time: \" + startTimeInEpocMillis + \" and end time: \"\n + endTimeInEpochMillis);\n WavefrontMetricQueryResponse queryResponse =\n metricProviderHelper.queryMetrics(query, startTimeInEpocMillis, endTimeInEpochMillis, granulirity);\n if (null == queryResponse) {\n log.error(\" Query didn't return any thing. Please check the query. \");\n return null;\n }\n return queryResponse;\n }", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "public List<Statistic> queryPageData(Integer startIndex, Integer pagesize) {\n\t\tString sql=\"select * from statistics order by creat_date desc limit ?,? \";\n\t\treturn getList(sql,startIndex,pagesize);\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "List<T> getAllWithQuery(String query);", "public void setQuery(String query) {\n this.query = query;\n }", "private <T> List<T> executeQuery(Object key, String query) {\r\n\t\tlogger.entering(CLASSNAME, \"executeQuery\", new Object[] {key, query});\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement statement = null;\r\n\t\tResultSet rs = null;\r\n\t\tList<T> data = new ArrayList<T>();\r\n\t\tObjectInputStream objectIn = null;\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\t\t\tstatement = conn.prepareStatement(query);\r\n\t\t\tstatement.setObject(1, key);\r\n\t\t\trs = statement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tbyte[] buf = rs.getBytes(\"obj\");\r\n\t\t\t\tif (buf != null) {\r\n\t\t\t\t\tobjectIn = new ObjectInputStream(new ByteArrayInputStream(buf));\r\n\t\t\t\t}\r\n\t\t\t\tT deSerializedObject = (T) objectIn.readObject();\r\n\t\t\t\tdata.add(deSerializedObject);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} finally {\r\n\t\t\tif (objectIn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tobjectIn.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tthrow new PersistenceException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcleanupConnection(conn, rs, statement);\r\n\t\t}\r\n\t\tlogger.exiting(CLASSNAME, \"executeQuery\");\r\n\t\treturn data;\t\r\n\t}", "public void setQuery(String query) {\n this.query = query;\n }", "private void queryPosts() {\n ParseQuery<OutfitPost> query = ParseQuery.getQuery(OutfitPost.class);\n // only include data referred by user key\n query.include(OutfitPost.KEY_USER);\n query.whereEqualTo(OutfitPost.KEY_USER, ParseUser.getCurrentUser());\n // limit query to latest 20 items\n query.setLimit(20);\n // order posts by creation date (newest first)\n query.addDescendingOrder(OutfitPost.KEY_CREATED_KEY);\n // start an asynchronous call for posts\n query.findInBackground(new FindCallback<OutfitPost>() {\n @Override\n public void done(List<OutfitPost> posts, ParseException e) {\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n // Save oldest post in query for loading more posts\n if (posts.size() > 0) {\n oldestPost = posts.get(posts.size() - 1).getCreatedAt();\n }\n // update adapter with posts list\n adapter.clear();\n adapter.addAll(posts);\n }\n });\n }", "@Override\n\tpublic ResultSetCloseable query(String szQuery, String szTag) {\n\t\treturn null;\n\t}", "@Query(\n \"SELECT wayToWellbeing, SUM(num) AS value FROM ( \" +\n \"SELECT wellbeing_questions.way_to_wellbeing AS wayToWellbeing, SUM(wellbeing_questions.weighting) AS num FROM wellbeing_questions \" +\n \"INNER JOIN wellbeing_records ON wellbeing_records.question_id == wellbeing_questions.wellbeing_question_id \" +\n \"WHERE user_input == 1 AND wellbeing_records.time BETWEEN :startTime AND :endTime \" +\n \"GROUP BY wellbeing_questions.way_to_wellbeing \" +\n \"UNION ALL \" +\n \"SELECT activity_records.way_to_wellbeing AS wayToWellbeing, SUM(\" + ACTIVITY_OF_TYPE_VALUE + \") AS num FROM survey_activity \" +\n \"INNER JOIN activity_records ON survey_activity.activity_record_id == activity_records.id \" +\n \"INNER JOIN survey_response ON survey_activity.survey_response_id == survey_response.id \" +\n \"WHERE survey_response.timestamp BETWEEN :startTime AND :endTime \" +\n \"GROUP BY activity_records.way_to_wellbeing ) \" +\n \"GROUP BY wayToWellbeing\"\n )\n List<WellbeingGraphItem> getWaysToWellbeingBetweenTimesNotLive(long startTime, long endTime);", "public PostingsList intersect(Query query){\n\n LinkedList<PostingsList> listQueriedPostings = new LinkedList<PostingsList>();\n // List with postings corresponding to the queries\n for (int i = 0; i<query.size(); i++){\n // If any query has zero matches, return 0 results\n //if(!(new File(\"postings/t\"+hash(query.terms.get(i))+\".json\")).exists()){\n if (!this.index.containsKey(query.terms.get(i))){\n return null;\n }\n // Otherwise store postings in the list\n listQueriedPostings.add(this.getPostings(query.terms.get(i)));\n }\n\n // Order the posting list by increasing document frequency\n listQueriedPostings = sortByIncreasingFrequency(listQueriedPostings);\n\n PostingsList result = (PostingsList)listQueriedPostings.get(0);\n\n // In case only one word is queried\n if (listQueriedPostings.size() == 1){\n return result;\n }\n\n // Apply algorithm as many times as words in the query\n for(int i = 1; i < listQueriedPostings.size(); i++){\n result = intersect(result, listQueriedPostings.get(i));\n if (result.isEmpty()){\n return null;\n }\n }\n return result;\n }", "void execute(TimelyQuery timelyQuery, ExecuteConfig executeConfig, GraphSchema schema, long timeout, String queryId);", "public void callQuery(String query) throws SQLException {\n for(int i = 0; i < queryHistory.size(); i++) {\n if(queryHistory.get(i).equalsIgnoreCase(query))\n data.get(i).OUPUTQUERY(data.get(i).getConversionArray(), data.get(i).getResultSet());\n }\n }", "private void handleTemporalQuery(RoutingContext routingContext) {\n LOGGER.debug(\"Info: handleTemporalQuery method started.\");\n /* Handles HTTP request from client */\n HttpServerRequest request = routingContext.request();\n /* Handles HTTP response from server to client */\n HttpServerResponse response = routingContext.response();\n /* HTTP request instance/host details */\n String instanceID = request.getHeader(HEADER_HOST);\n // get query parameters\n MultiMap params = getQueryParams(routingContext, response).get();\n MultiMap headerParams = request.headers();\n // validate request params\n Future<Boolean> validationResult = validator.validate(params);\n validationResult.onComplete(validationHandler -> {\n if (validationHandler.succeeded()) {\n // parse query params\n NGSILDQueryParams ngsildquery = new NGSILDQueryParams(params);\n // create json\n QueryMapper queryMapper = new QueryMapper();\n JsonObject json = queryMapper.toJson(ngsildquery, true);\n Future<List<String>> filtersFuture =\n catalogueService.getApplicableFilters(json.getJsonArray(\"id\").getString(0));\n json.put(JSON_INSTANCEID, instanceID);\n LOGGER.debug(\"Info: IUDX temporal json query;\" + json);\n /* HTTP request body as Json */\n JsonObject requestBody = new JsonObject();\n requestBody.put(\"ids\", json.getJsonArray(\"id\"));\n filtersFuture.onComplete(filtersHandler -> {\n if (filtersHandler.succeeded()) {\n json.put(\"applicableFilters\", filtersHandler.result());\n if (json.containsKey(IUDXQUERY_OPTIONS)\n && JSON_COUNT.equalsIgnoreCase(json.getString(IUDXQUERY_OPTIONS))) {\n executeCountQuery(json, response);\n } else {\n executeSearchQuery(json, response);\n }\n } else {\n LOGGER.error(\"catalogue item/group doesn't have filters.\");\n }\n });\n } else if (validationHandler.failed()) {\n LOGGER.error(\"Fail: Bad request;\");\n handleResponse(response, ResponseType.BadRequestData,\n validationHandler.cause().getMessage());\n }\n });\n\n }", "@Override\n public List<Ares2ClusterDO> selectByQuery(Ares2ClusterQuery query) {\n return ares2ClusterExtMapper.selectByQuery(query);\n }", "public org.eclipse.stardust.engine.api.query.LogEntries\n getAllLogEntries(org.eclipse.stardust.engine.api.query.LogEntryQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;", "public Post[] wallSearch(String query, String domain) {\n return null;\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n LogAnalyticsQueryPackQueryInner get(String resourceGroupName, String queryPackName, String id);", "public Map<Map<String, Object>, Map<String, Object>> queryFromAndTo(String siteId, int lastHours, String from, String to, String timeType) {\n String[] fromToIndices = filterRangeDateIndices(from, to, lastHours, timeType);\n boolean isLoggedTime = false;\n if (lastHours > 0 || timeType.equals(\"h\") || timeType.equals(\"m\")) {\n isLoggedTime = true;\n }\n return doMultiRequestForDays(siteId, fromToIndices, isLoggedTime, lastHours, timeType);\n }", "@QueryProvider(providerClass = SpacecraftInstrumentsQueryProvider.class, \n entityHelpers = { SpacecraftTemperatureOverTime.class, SpacecraftPressureOverTime.class, \n SpacecraftLocationOverTime.class, SpacecraftSpeedOverTime.class})\n PagingIterable<SpacecraftPressureOverTime> getPressureReading(\n String spacecraftName, UUID JourneyId, Optional<Integer> pageSize, Optional<String> pagingState);", "public ArrayList<QueryParameter> downloadExcel() {\n ArrayList<QueryParameter> queries = new ArrayList<QueryParameter>(this.query.interval);\n for (int i = 0; i < this.query.interval; i++) {\n QueryParameter query = new QueryParameter(this.query.year - i);\n queries.add(query);\n this.downloadSingleExcel(query);\n }\n return queries;\n }", "public List getResultSummaries(Query query)\n throws UnsupportedQueryException, IndexException, DocumentNotFoundException {\n List r = getResult(query);\n List result = new ArrayList();\n for (Object o : r) {\n ProbDoc pd = (ProbDoc) o;\n result.add(new XMLDoc(pd, getSummary(pd)));\n }\n return result;\n }", "@Query(\"SELECT id, measured_at FROM measurements WHERE measured_at >= :startDate AND measured_at < :endDate\")\n @TypeConverters({DateConverter.class})\n List<MeasurementEvent> findForPeriodTest(Date startDate, Date endDate);", "public List<Pair<Integer>> getCustomTrend(String collectionId, String analysisId, String fieldValue, String query,\r\n String beginDate, String endDate) {\r\n return getCustomTrend(collectionId, analysisId, fieldValue, query, beginDate, endDate, IntervalType.MONTH);\r\n }", "Query query();", "public JavaRDD<MetricDto> readMetrics() {\n Date windowStartTime = DateUtil.getWindowStartTime();\n Date windowEndTime = DateUtil.getWindowEndTime();\n return CassandraJavaUtil.javaFunctions(sparkContext)\n .cassandraTable(\"hw2\", \"metric\", CassandraJavaUtil.mapRowTo(MetricDto.class))\n //Select only log message time and priority\n .select(\"id\", \"time\", \"value\")\n .where(\"time >= ? and time <= ?\", windowStartTime, windowEndTime);\n }", "public List<DataValue> getDataListByDeviceIdAndSensorTypeAndDateSortedByTimestamp(DataValue dataVal) throws Exception;", "@Override\n\tpublic List<TopicSummary> discoverTopics(String query) {\n\t\treturn null;\n\t}", "@Override\npublic JsonArray queryStatistics(String date, Employee em) throws Exception {\n\tint [] montharr= {31,28,31,30,31,30,31,31,30,31,30,31};\n\tSystem.out.println(date);\n\tint year;\n\tint month;\n\tif(date.length()==0){\n\t\tmonth = new Date().getMonth()+1;\n\t\tyear= new Date().getYear()+1900;\n\t}else{\n\t\tString[] s=date.split(\"-\");\n\t\tyear=Integer.parseInt(s[0]);\n\t\tmonth=Integer.parseInt(s[1]);\n\t}\n\t\n\t\n\tList<Map<String,Object>> lstMap = new LinkedList<Map<String,Object>>();\n\tfor (int i = 1; i <=montharr[month-1] ; i++) {\n\t\tStringBuffer buffer =new StringBuffer(\"select SUM(c.golds) from consumption c,machineinfo m where c.fmachineid=m.id and m.state!=-1 and c.type=-1 and m.empid=\")\n\t\t\t\t.append(em.getId()).append(\" and year(c.createtime) =\").append(year)\n\t\t\t\t.append(\" and month(c.createtime) =\").append(month).append(\" and day(c.createtime) =\").append(i);;\n\t\t\t\tSystem.out.println(buffer);\n\t\t\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\t\t\tList<Object> lst = databaseHelper.getResultListBySql(buffer.toString());\n\t\t\t\t\n\t\t\t\tmap.put(\"nums\", lst==null?\"0\":lst.size()==0?\"0\":lst.get(0)==null?\"0\":lst.get(0).toString());\n\t\t\t\tmap.put(\"time\", i+\"日\");\n\t\t\t\tmap.put(\"month\", month);\n\t\t\t\tlstMap.add(map);\n\t}\n\tString result = new Gson().toJson(lstMap);\n\tJsonArray jarr = (JsonArray) new JsonParser().parse(result);\n\treturn jarr;\n}", "public TSResponse generateTimestamp(TSRequest tsQuery)\n throws IOException;", "boolean hasQueryTimeNsec();", "public QueryResponse query(PqlQuery query) {\n return query(query, QueryOptions.defaultOptions());\n }", "List<HostSummaryByStatementType> selectAll();", "private String createCSWQuery(Map<String, String[]> parametros) throws Exception {\n\n\t\ttry {\n\n\t\t\tArrayList<String> filterRules = new ArrayList<String>();\n\t\t\tGetRecords getrecords = new GetRecords();\n\t\t\tgetrecords.setResulType(\"results\"); //$NON-NLS-1$\n\t\t\tgetrecords.setOutputSchema(\"csw:IsoRecord\"); //$NON-NLS-1$\n\t\t\tgetrecords.setTypeNames(\"gmd:MD_Metadata\"); //$NON-NLS-1$\n\t\t\tgetrecords.setElementSetName(GetRecords.FULL);\n\t\t\t\n\t\t\tSearch search = new Search();\n\t\t\tif (getUser() != null)\n\t\t\t\tsearch.setUserBean(user);\n\t\t\t\n\t\t\t// bboxes\n\t\t\tOperator orBBox = new Operator(OR);\n\n\t\t\tString stringBBoxes = parametros.get(\"bboxes\")[FIRST]; //$NON-NLS-1$\n\t\t\tArrayList<BBox> bboxes = Utils.extractToBBoxes(stringBBoxes);\n\t\t\tif (bboxes != null) {\n\t\t\t\tif (bboxes.size() > 1) {\n\t\t\t\t\tArrayList<String> rulesBBox = new ArrayList<String>();\n\t\t\t\t\tfor (BBox bbox : bboxes) {\n\t\t\t\t\t\trulesBBox.add(bbox.toOGCBBox());\n\t\t\t\t\t}\n\t\t\t\t\torBBox.setRules(rulesBBox);\n\t\t\t\t\tfilterRules.add(orBBox.getExpresion());\n\t\t\t\t} else {\n\t\t\t\t\tfilterRules.add(bboxes.get(FIRST).toOGCBBox());\n\t\t\t\t}\n\t\t\t\tsearch.setBboxes(stringBBoxes);\n\t\t\t}\n\n\t\t\t// temporal range\n\t\t\tProperty fromDate = null, toDate = null;\n\n\t String start_date = parametros.get(\"start_date\")[FIRST]; //$NON-NLS-1$\n\t\t\tif (start_date != \"\") { //$NON-NLS-1$\n\t\t\t fromDate = new Property(\"PropertyIsGreaterThanOrEqualTo\"); //$NON-NLS-1$\n\t\t\t fromDate.setPropertyName(\"TempExtent_end\"); //$NON-NLS-1$\n\t\t\t // From the beginning of the day ('t' and 'z' must be lowercase)\n\t\t\t fromDate.setLiteral(start_date+\"t00:00:00.00z\"); //$NON-NLS-1$\n\t\t\t}\n\n String end_date = parametros.get(\"end_date\")[FIRST]; //$NON-NLS-1$\n\t\t\tif (end_date != \"\") { //$NON-NLS-1$\n\t\t\t\ttoDate = new Property(\"PropertyIsLessThanOrEqualTo\"); //$NON-NLS-1$\n\t\t\t\ttoDate.setPropertyName(\"TempExtent_begin\"); //$NON-NLS-1$\n\t\t\t\t // To the end of the day ('t' and 'z' must be lowercase)\n\t\t\t\ttoDate.setLiteral(end_date+\"t23:59:59.99z\"); //$NON-NLS-1$\n\t\t\t}\n\t\t\t\n\t\t\tif (fromDate != null && toDate != null) {\n ArrayList<String> dates = new ArrayList<String>(2);\n dates.add(fromDate.getExpresion());\n dates.add(toDate.getExpresion());\n Operator withinDates = new Operator(\"And\"); //$NON-NLS-1$\n withinDates.setRules(dates);\n filterRules.add(withinDates.getExpresion());\n search.setStartDate(Utils.convertToDate(start_date));\n search.setEndDate(Utils.convertToDate(end_date));\n\t\t\t} else if (fromDate != null) {\n\t\t\t filterRules.add(fromDate.getExpresion());\n\t\t\t search.setStartDate(Utils.convertToDate(start_date));\n\t\t\t} else if (toDate != null) {\n\t\t\t filterRules.add(toDate.getExpresion());\n\t\t\t search.setEndDate(Utils.convertToDate(end_date));\n\t\t\t}\n\t\t\t\n\t\t\t// variables\n\t\t\tString variables = parametros.get(\"variables\")[FIRST]; //$NON-NLS-1$\n\t\t\tif (variables != \"\") { //$NON-NLS-1$\n\t\t\t\tString queryVariables[] = variables.split(\",\"); //$NON-NLS-1$\n\n\t\t\t\tif (queryVariables.length > 1) {\n\t\t\t\t\tOperator orVariables = new Operator(\"Or\"); //$NON-NLS-1$\n\t\t\t\t\tArrayList<String> arrayVariables = new ArrayList<String>();\n\t\t\t\t\tfor (String aVariable : queryVariables) {\n\t\t\t\t\t\tProperty propVariable = new Property(\"PropertyIsLike\"); //$NON-NLS-1$\n\t\t\t\t\t\tpropVariable.setPropertyName(\"ContentInfo\"); //$NON-NLS-1$\n\t\t\t\t\t\tpropVariable.setLiteral(aVariable);\n\t\t\t\t\t\tarrayVariables.add(propVariable.getExpresion());\n\t\t\t\t\t}\n\t\t\t\t\torVariables.setRules(arrayVariables);\n\t\t\t\t\tfilterRules.add(orVariables.getExpresion());\n\t\t\t\t} else {\n\t\t\t\t\tProperty propVariable = new Property(\"PropertyIsLike\"); //$NON-NLS-1$\n\t\t\t\t\tpropVariable.setPropertyName(\"ContentInfo\"); //$NON-NLS-1$\n\t\t\t\t\tpropVariable.setLiteral(queryVariables[FIRST]);\n\t\t\t\t\tfilterRules.add(propVariable.getExpresion());\n\t\t\t\t}\n\t\t\t\tsearch.setVariables(variables);\n\t\t\t}\n\n\t\t\t// free text\n\t\t\tString freeText = parametros.get(\"text\")[FIRST]; //$NON-NLS-1$\n\t\t\tif (freeText != \"\") { //$NON-NLS-1$\n\t\t\t\tProperty propFreeText = new Property(\"PropertyIsLike\"); //$NON-NLS-1$\n\t\t\t\tpropFreeText.setPropertyName(\"AnyText\"); //$NON-NLS-1$\n\t\t\t\tpropFreeText.setLiteral(freeText);\n\t\t\t\tfilterRules.add(propFreeText.getExpresion());\n\t\t\t\tsearch.setText(freeText);\n\t\t\t}\n\n\t\t\t// Default pagination & ordering values\n\t\t\tString startPosition = \"1\"; //$NON-NLS-1$\n\t\t\tString maxRecords = \"25\"; //$NON-NLS-1$\n\t\t\tString sort = \"title\"; //$NON-NLS-1$\n\t\t\tString dir = \"asc\"; //$NON-NLS-1$\n\n\t\t\tstartPosition = String.valueOf(Integer.valueOf(parametros\n\t\t\t\t\t.get(\"start\")[FIRST]) + 1); //$NON-NLS-1$\n\t\t\tgetrecords.setStartPosition(startPosition);\n\n\t\t\tmaxRecords = parametros.get(\"limit\")[FIRST]; //$NON-NLS-1$\n\t\t\tgetrecords.setMaxRecords(maxRecords);\n\n\t\t\tsort = parametros.get(\"sort\")[FIRST]; //$NON-NLS-1$\n\t\t\tdir = parametros.get(\"dir\")[FIRST]; //$NON-NLS-1$\n\n\t\t\tMap<String, String> sortPropertyDict = new HashMap<String, String>();\n\t\t\tsortPropertyDict.put(\"id\", \"Identifier\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tsortPropertyDict.put(\"title\", \"Title\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tsortPropertyDict.put(\"start_time\", \"TempExtent_begin\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tsortPropertyDict.put(\"end_time\", \"TempExtent_end\"); //$NON-NLS-1$ //$NON-NLS-2$\n\n\t\t\tSortBy sortby = new SortBy();\n\t\t\tsortby.setPropertyName(sortPropertyDict.get(sort));\n\t\t\tsortby.setOrder(dir);\n\n\t\t\tgetrecords.setSortby(sortby);\n\t\t\t\n\t\t\tFilter filtro = new Filter();\n\t\t\t\n\t\t\tif (filterRules.size() > 1) {\n\t\t\t\tOperator and = new Operator(AND);\n\t\t\t\tand.setRules(filterRules);\n\t\t\t\tArrayList<String> andRules = new ArrayList<String>(1);\n\t\t\t\tandRules.add(and.getExpresion());\n\t\t\t\tfiltro.setRules(andRules);\n\t\t\t} else {\n\t\t\t\tfiltro.setRules(filterRules);\n\t\t\t}\t\t\t\n\n\t\t\tgetrecords.setFilter(filtro);\n\n\t\t\tlogger.debug(getrecords.getExpresion());\n\t\t\t\n\t\t\tsearchJPAController = new JPASearchController();\n\t\t\tsearch.setTimestamp(Utils.extractDateSystemTimeStamp());\n\t\t\tsearchJPAController.insert(search);\n\n\t\t\treturn getrecords.getExpresion();\n\n\t\t} catch (XMLStreamException e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t}", "public String queryTopLocations(int top, String[] query, Date start, Date end) {\n String str = \"\";\n LocationInterface location = queryLocation(query);\n\n if (location != null) {\n for (Map.Entry<Integer, LocationInterface> l : location.getSortedSubdivisions().entrySet()) {\n if (start == null || end == null) {\n str += l.getValue() + \"\\n\";\n top--;\n } else {\n if (l.getValue().getDateManager().contains(start) &&\n l.getValue().getDateManager().contains(end)) {\n str += l.getValue() + \"\\n\";\n top--;\n }\n }\n if (top <= 0) {\n break;\n }\n }\n }\n\n return str;\n }", "IQuery getQuery();", "@QueryProvider(providerClass = SpacecraftInstrumentsQueryProvider.class, \n entityHelpers = { SpacecraftTemperatureOverTime.class, SpacecraftPressureOverTime.class, \n SpacecraftLocationOverTime.class, SpacecraftSpeedOverTime.class})\n PagingIterable<SpacecraftSpeedOverTime> getSpeedReading(\n String spacecraftName, UUID JourneyId, Optional<Integer> pageSize, Optional<String> spagingState);", "public Weet[] toArray(String query) {\n c = 0;\n\n Weet[] dwArray = new Weet[size]; // If M is the number of Date-Weet pairs, dwArray has size M. \n Weet[] chArray = new Weet[c]; // If N is the number of children per node, chArray has size N. \n\n /**\n * Make a call to an overloaded method with the generics of the B-Tree, the to-be-queried array\n * and the given query as parameters.\n */\n toArray(root, height, dwArray, query);\n /**\n * Clone dwArray into chArray for indices up to and including 'c', in order to return\n * exclusively those weets requested.\n */\n chArray = dwArray.clone();\n return chArray;\n }", "@Override\n\tpublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {\n\t\treturn monthlyTradingPersistence.findWithDynamicQuery(dynamicQuery);\n\t}", "public List<TimesheetRow> getAllTimesheetRows(Timesheet timesheet){\n\t\tcurrentTimesheet = timesheet;\n\t\ttimesheetRowList = service.getAllTimesheetRows(currentTimesheet.getTimesheetId());\n\t\ttimesheetRowList.add(new TimesheetRow(currentTimesheet.getTimesheetId()));\n\t\treturn service.getAllTimesheetRows(currentTimesheet.getTimesheetId());\n\t}", "boolean hasQueryTimeSec();", "public List<Register> testTimeQuery(){\n NativeSearchQueryBuilder queryBuilder = new NativeSearchQueryBuilder();\n queryBuilder.withQuery(QueryBuilders.rangeQuery(\"order_time\").gt(\"2016-11-01T00:00:00.000Z\"));\n\n // 初始化分页参数\n int page =50;\n int size =3000;\n\n\n // 设置分页参数\n queryBuilder.withPageable(PageRequest.of(page, size));\n // 执行搜索,获取结果\n Page<OrderImes> Ot = this.orderImesRepository.search(queryBuilder.build());\n List<Register> Rt = new ArrayList<Register>();\n System.out.println(Ot.getTotalElements());\n // List<Page<Test>> Lt=new ArrayList<Page<Test> >();\n\n // Page<JtSelfRegisterDay> Jt = this.jtSelfRegisterDayRepository.search(queryBuilder.build());\n\n for (OrderImes O:Ot)\n {\n SearchQuery searchQuery1=new NativeSearchQueryBuilder().withQuery(QueryBuilders.matchQuery(\"meid\",O.getImes())).build();\n //System.out.println(J.getRow_id().getClass());\n List<Register> Te = elasticsearchTemplate.queryForList(searchQuery1, Register.class);\n //System.out.println(Te.size());\n for (int i = 0; i <Te.size() ; i++) {\n Rt.add(Te.get(i));\n }\n\n }\n System.out.println(Rt.size());\n\n\n return Rt;\n\n\n }", "List<RequestHistory> getQueries() throws RemoteException;", "public static Recordset findtasks(final TaskQuery taskQuery) {\r\n try {\r\n return ServerFactory.getServer().getSecurityManager().executeAsSystem(new Callable<Recordset>() {\r\n public Recordset call() throws Exception {\r\n return Ivy.wf().getTaskQueryExecutor().getRecordset(taskQuery);\r\n }\r\n });\r\n\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n }\r\n return null;\r\n }", "@Query(\n \"SELECT wayToWellbeing, SUM(num) AS value FROM ( \" +\n \"SELECT wellbeing_questions.way_to_wellbeing AS wayToWellbeing, SUM(wellbeing_questions.weighting) AS num FROM wellbeing_questions \" +\n \"INNER JOIN wellbeing_records ON wellbeing_records.question_id == wellbeing_questions.wellbeing_question_id \" +\n \"WHERE user_input == 1 AND wellbeing_records.time BETWEEN :startTime AND :endTime \" +\n \"GROUP BY wellbeing_questions.way_to_wellbeing \" +\n \"UNION ALL \" +\n \"SELECT activity_records.way_to_wellbeing AS wayToWellbeing, SUM(\"+ ACTIVITY_OF_TYPE_VALUE +\") AS num FROM survey_activity \" +\n \"INNER JOIN activity_records ON survey_activity.activity_record_id == activity_records.id \" +\n \"INNER JOIN survey_response ON survey_activity.survey_response_id == survey_response.id \" +\n \"WHERE survey_response.timestamp BETWEEN :startTime AND :endTime \" +\n \"GROUP BY activity_records.way_to_wellbeing )\" +\n \"GROUP BY wayToWellbeing\"\n )\n LiveData<List<WellbeingGraphItem>> getWaysToWellbeingBetweenTimes(long startTime, long endTime);", "private TimeSeries createEURTimeSeries(String WellID, String lang) {\n int count = 0;\n String precipitation = \"\";\n if(lang.equals(\"EN\")){\n precipitation = precipitation_en;\n }else{\n precipitation = precipitation_fr;\n }\n TimeSeries t1 = new TimeSeries(precipitation + \" (mm)\");\n //System.out.println (t1.getMaximumItemCount()); \n Hour begin = new Hour( 1, 1, 1, 2005);\n Hour end = new Hour(23, 31, 12, 2012);\n String endStr = end.toString();\n String str = begin.toString();\n \n for(Hour h1 = begin; !str.equals(endStr) ; h1 = (Hour) h1.next()){\n Second s = new Second(0, 0, h1.getHour(), h1.getDayOfMonth(), h1.getMonth(), h1.getYear());\n t1.addOrUpdate(s, new Double(Double.NaN)); \n str = h1.toString();\n }\n \n try {\n // Open the file that is the first \n // command line parameter\n FileInputStream fstream = new FileInputStream(\"Y:\\\\PGMN\\\\Precipitation\\\\\" + WellID + \".csv\");\n // Get the object of DataInputStream\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n //Read File Line By Line\n int i = 0;\n while ((strLine = br.readLine()) != null) {\n if(i>0){ \n String [] temp = strLine.split(\",\");\n //System.out.println (i);\n String [] dateTimeAM = (temp[2]).split(\" \"); //08/20/2009 10:35:00 AM\n \n String [] dates = (dateTimeAM[0]).split(\"/\"); //6/10/2009\n int month = Integer.parseInt(dates[0]);\n int day = Integer.parseInt(dates[1]);\n int year = Integer.parseInt(dates[2]);\n //System.out.println (i);\n int hour = 0;\n int minute = 0;\n int second = 0; \n if (dateTimeAM.length > 1) {\n String [] temp3 = (dateTimeAM[1]).split(\":\"); //10:35:00\n hour = Integer.parseInt(temp3[0]);\n minute = Integer.parseInt(temp3[1]);\n second = Integer.parseInt(temp3[2]);\n //08/20/2009 10:35:00 AM\n if ((dateTimeAM[2]).equals(\"PM\")) {\n if (hour < 12) {\n hour = hour + 12;\n }\n }\n if ((dateTimeAM[2]).equals(\"AM\") && (hour == 12)) {\n hour = 0;\n }\n }\n Second s = new Second(second, minute, hour, day, month, year);\n //System.out.println(strLine);\n //System.out.println(year + \", \" + month + \", \" + day + \", \" + hour + \", \" + minute + \", \" + second);\n //Hour h = new Hour(hour, day, month, year);\n Double d = new Double(Double.NaN);\n //System.out.println(temp[2]);\n if (temp.length > 2){\n d = Double.parseDouble(temp[3]);// - depth;\n count ++;\n }\n t1.addOrUpdate(s, d);\n }\n i = i + 1;\n }\n in.close();\n \n }\n catch (Exception e) {\n System.err.println(e.getMessage());\n }\n \n return t1;\n }", "private VoltTable[] getTransactionData(long interval, final long now) {\n ParameterSet parameters = new ParameterSet();\n parameters.setParameters((byte)interval, now);\n \n return this.executeOncePerSite(SysProcFragmentId.PF_txnData,\n SysProcFragmentId.PF_txnDataAggregator,\n parameters);\n }", "public abstract Statement queryToRetrieveData();", "public HHisItem[] onHisRead(HDict rec, HDateTimeRange range)\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n if (LOG.isTraceOn())\r\n LOG.trace(\"onHisRead \" + rec.id() + \", \" + range);\r\n\r\n try\r\n {\r\n BHistoryConfig cfg = tagMgr.lookupHistoryConfig(rec.id());\r\n if (cfg == null) return new HHisItem[0];\r\n\r\n HStr unit = (HStr) rec.get(\"unit\", false);\r\n\r\n // ASSUMPTION: the tz in both ends of the range matches the \r\n // tz of the historized point, which in turn matches the \r\n // history's tz in its historyConfig.\r\n HTimeZone tz = range.start.tz;\r\n\r\n BAbsTime rangeStart = BAbsTime.make(range.start.millis(), cfg.getTimeZone());\r\n BAbsTime rangeEnd = BAbsTime.make(range.end.millis(), cfg.getTimeZone());\r\n\r\n // NOTE: be careful, timeQuery() is inclusive of both start and end\r\n BIHistory history = service.getHistoryDb().getHistory(cfg.getId());\r\n BITable table = (BITable) history.timeQuery(rangeStart, rangeEnd);\r\n ColumnList columns = table.getColumns();\r\n Column timestampCol = columns.get(\"timestamp\");\r\n\r\n // this will be null if its not a BTrendRecord\r\n boolean isTrendRecord = cfg.getRecordType().getResolvedType().is(BTrendRecord.TYPE);\r\n Column valueCol = isTrendRecord ? columns.get(\"value\") : null;\r\n\r\n Array arr = new Array(HHisItem.class, table.size());\r\n for (int i = 0; i < table.size(); i++)\r\n {\r\n BAbsTime timestamp = (BAbsTime) table.get(i, timestampCol);\r\n\r\n // ignore inclusive start value\r\n if (timestamp.equals(rangeStart)) continue;\r\n\r\n // create ts\r\n HDateTime ts = HDateTime.make(timestamp.getMillis(), tz);\r\n\r\n // create val\r\n HVal val = null;\r\n if (isTrendRecord)\r\n {\r\n // extract value from BTrendRecord\r\n BValue value = (BValue) table.get(i, valueCol);\r\n\r\n Type recType = cfg.getRecordType().getResolvedType();\r\n if (recType.is(BNumericTrendRecord.TYPE))\r\n {\r\n BNumber num = (BNumber) value;\r\n val = (unit == null) ? \r\n HNum.make(num.getDouble()) :\r\n HNum.make(num.getDouble(), unit.val);\r\n }\r\n else if (recType.is(BBooleanTrendRecord.TYPE))\r\n {\r\n BBoolean bool = (BBoolean) value;\r\n val = HBool.make(bool.getBoolean());\r\n }\r\n else if (recType.is(BEnumTrendRecord.TYPE))\r\n {\r\n BDynamicEnum dyn = (BDynamicEnum) value;\r\n BFacets facets = (BFacets) cfg.get(\"valueFacets\");\r\n BEnumRange er = (BEnumRange) facets.get(\"range\");\r\n val = HStr.make(SlotUtil.fromEnum(\r\n er.getTag(dyn.getOrdinal()),\r\n service.getTranslateEnums()));\r\n }\r\n else\r\n {\r\n val = HStr.make(value.toString());\r\n }\r\n }\r\n else\r\n {\r\n // if its not a BTrendRecord, just do a toString() \r\n // of the whole record\r\n val = HStr.make(table.get(i).toString());\r\n }\r\n\r\n // add item\r\n arr.add(HHisItem.make(ts, val));\r\n }\r\n\r\n // done\r\n return (HHisItem[]) arr.trim();\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }" ]
[ "0.6171575", "0.55987537", "0.5480419", "0.5446879", "0.54174364", "0.5200391", "0.51692146", "0.507658", "0.5052321", "0.504197", "0.4924245", "0.48087588", "0.48019508", "0.47994745", "0.47243932", "0.47099286", "0.47024313", "0.46828526", "0.46427166", "0.4617013", "0.4582615", "0.4561334", "0.45608726", "0.45352423", "0.45282248", "0.45256785", "0.450873", "0.448918", "0.44680765", "0.44303924", "0.44272074", "0.4422889", "0.4409361", "0.43968675", "0.4392479", "0.43873802", "0.43861312", "0.43815", "0.4369897", "0.43649188", "0.43591478", "0.43575233", "0.4350843", "0.434734", "0.43467543", "0.43399352", "0.43397102", "0.43157616", "0.43134752", "0.4296645", "0.42964077", "0.42931372", "0.42868465", "0.42812863", "0.42768207", "0.4276582", "0.4274367", "0.42728552", "0.42588365", "0.425456", "0.42494205", "0.4247463", "0.4245984", "0.42419365", "0.42378488", "0.42331725", "0.4232603", "0.42306828", "0.4222804", "0.42143753", "0.42095858", "0.41829216", "0.41765395", "0.41762748", "0.41679695", "0.4167549", "0.41659343", "0.41608638", "0.41594744", "0.41512084", "0.41489536", "0.41422024", "0.4141224", "0.41411492", "0.4136633", "0.413331", "0.41278884", "0.4125514", "0.4124632", "0.41244292", "0.41230223", "0.41223514", "0.41182345", "0.41177118", "0.4116735", "0.4108595", "0.41032347", "0.41016242", "0.40967375", "0.40920773" ]
0.6634777
0
BufferedImage image = ImageIO.read(new URL("
@RequestMapping(value = "/success", method = RequestMethod.POST) public String profileSave(@ModelAttribute("userForm") UserDetails userForm,Principal principal ) throws IOException { userService.saveEditProfile(userForm,principal); return "redirect:dashboard"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "public static BufferedImage loadBufferedImage( URL theUrl )\n\t\tthrows IOException\n\t{\n\t\tBufferedImage im = null;\n\t\ttry\n\t\t{\n\t\t\tim = ImageIO.read( theUrl );\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new IOException( \"Couldn't Load \" + theUrl, e );\n\t\t}\n\t\tcatch (Error e)\n\t\t{\n\t\t\tthrow new IOException( e );\n\t\t}\n\n\t\treturn im;\n\n\t}", "public static BufferedImage getBufferedImage(String name) {\n try {\n URL url = getURL(name);\n marg.util.Log.GlobalLogger.info(\"Loaded image from \"+ url);\n return ImageIO.read(url);\n } catch (Exception e) {\n e.printStackTrace();\n return new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB);\n }\n }", "String getImage();", "private Image getImage(String url) {\r\n\t\ttry {\r\n\t\t\treturn ImageIO.read(new URL(url));\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static BufferedImage loadImage(String ref) {\n BufferedImage b1 = null;\n try {\n b1 = ImageIO.read(new File(ref));\n } catch (IOException e) {\n System.out.println(\"error loading the image: \" + ref + \" : \" + e);\n }\n return b1;\n }", "private void loadImage(URL url) {\n //do resource intensive operation to load image\n }", "private Image getImage(String url) {\n\t\ttry {\n\t\t\treturn ImageIO.read(new URL(url));\n\t\t} catch(IOException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "private Image establishConnection(String url) throws IOException {\n\n String imgUrl = url;\n URLConnection connection = new URL(imgUrl).openConnection();\n connection.addRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0\");\n Image image = new Image(connection.getInputStream());\n return image;\n }", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }", "static Image bityNaObraz(String image) throws IOException\n {\n byte[] rysunek = DatatypeConverter.parseBase64Binary(image); \n BufferedImage img = ImageIO.read(new ByteArrayInputStream(rysunek));\n return img;\n }", "public static BufferedImage readImage(String imageName) {\n\t\tBufferedImage image = null;\n\t\ttry {\n\t\t\tURL url = Main.class.getResource(\"/\"+imageName);\n\t\t\tString file = (url.getPath());\n\t\t\tSystem.out.println(url);\n\t\t\timage = ImageIO.read(new File(file));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[Error in DisplayObject.java:readImage] Could not read image \" + imageName);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "public static Image loadImage(URL imagePath)\n {\n Image image = new ImageIcon(imagePath).getImage();\n\n if (image == null)\n System.out.println(\"URL Image not loaded! \" + imagePath);\n\n return image;\n }", "public BufferedImage readImage(String path) {\n File file = new File(path);\n BufferedImage image = null;\n try {\n image = ImageIO.read(file);\n } catch (IOException ex) {\n Logger.getLogger(ProcessImage.class.getName()).log(Level.SEVERE, null, ex);\n }\n return image;\n }", "private BufferedImage loadImage(String path) {\n try {\n return ImageIO.read(getClass().getClassLoader().getResource(path));\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n\n return null;\n }", "java.lang.String getImage();", "static BufferedImage loadImage(String filename){\r\n\t\t\r\n\t\tBufferedImage image = null;\r\n\t\ttry{\r\n\t\t\timage = ImageIO.read(View.class.getResource(filename));\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "public TailoredImage getImageUrl(String url) throws IOException {\n\t\treturn doProcess(ImageIO.read(new URL(url)));\n\t}", "private static ByteString readImageBytes(URL url) throws IOException {\n ByteString imageBytes;\n\n try (InputStream imageInputStream = url.openStream()) {\n imageBytes = ByteString.readFrom(imageInputStream);\n }\n\n return imageBytes;\n }", "private static Bitmap readImageUrl(String urlString) {\n\n // Create an empty bitmap image\n Bitmap image = null;\n\n try {\n // Create and open an inputStream on the urlString\n InputStream in = new java.net.URL(urlString).openStream();\n\n // Decode the inputStream and set that to the bitmap image\n image = BitmapFactory.decodeStream(in);\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error reading image url: \" + e);\n }\n\n // Return the image\n return image;\n }", "private BufferedImage getImage(String f) {\n BufferedImage image = null;\n File file = new File(f);\n\n try {\n image = ImageIO.read(file);\n }\n catch (Exception ex) {\n JOptionPane.showMessageDialog(\n null,\n \"Image could not be read!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n return image;\n }", "public Image getImage(URL paramURL, String paramString) {\n/* */ try {\n/* 298 */ return getImage(new URL(paramURL, paramString));\n/* 299 */ } catch (MalformedURLException malformedURLException) {\n/* 300 */ return null;\n/* */ } \n/* */ }", "public Bitmap getBitmapFromURL(String src){\n try{\n URL url = new URL(src);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n Bitmap bitmap = BitmapFactory.decodeStream(input);\n return bitmap;\n }catch(IOException e){\n e.printStackTrace();\n return null;\n }\n }", "public BufferedImage readImage() throws IOException{\n\t\tFile read = new File(\"src/blue_plate.png\");\n\t\t//decodes a supplied File and returns a BufferedImage\n\t\tBufferedImage master = ImageIO.read(read);\n\t\treturn master;\n\t\t\n\t}", "private Bitmap getBitmap(String url){\n Bitmap result = null;\n try {\n InputStream in = new java.net.URL(url).openStream();\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n // Calculate inSampleSize\n options.inSampleSize = 4;\n options.inJustDecodeBounds = false;\n result = BitmapFactory.decodeStream(in, null, options);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return result;\n }", "protected BufferedImage loadImage(String nameOfFile)\n {\n BufferedImage img;\n try{\n img= ImageIO.read(new File(\"\"+nameOfFile));\n return img;\n }\n catch(IOException e)\n {\n System.out.println(e);\n }\n return null;\n }", "public static Image imageFromURL(final URL url)\tthrows IOException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tNotImageException\r\n\t{\r\n\t\turl.openStream().close(); // throws IOException if url bad\r\n\t\tfinal Image image = TOOLKIT.getImage(url);\r\n\t\tensureImage(image);\r\n\t\treturn image;\r\n\t}", "static BufferedImage getImage(String directory) {\n\t\tClassLoader loader = DrawingUtility.class.getClassLoader();\n\t\tBufferedImage image;\n\t\ttry {\n\n\t\t\timage = ImageIO.read(loader.getResource(directory));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Fail load image from \" + directory);\n\t\t\timage = null;\n\t\t}\n\t\treturn image;\n\n\t}", "public static URL loadImage(String path) {\r\n Utilities tmp = new Utilities();\r\n ClassLoader classLoader = tmp.getClass().getClassLoader();\r\n return classLoader.getResource(path);\r\n }", "public static BufferedImage getImage(String path) {\n File f = null;\n BufferedImage img = null;\n try{\n f = new File(path);\n if (!f.exists()) return null;\n boolean good = false;\n if (f.getName().toLowerCase().endsWith(\".png\") || f.getName().toLowerCase().endsWith(\".jpg\")) good = true;\n if (!good) return null;\n img = ImageIO.read(f);\n }catch(Exception e){\n return null;\n }\n return img;\n }", "private static Bitmap downloadImage(String url) {\n Bitmap bitmap = null;\n InputStream stream = null;\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inSampleSize = 1;\n\n try {\n stream = getHttpConnection(url);\n bitmap = BitmapFactory.\n decodeStream(stream, null, bmOptions);\n stream.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n return bitmap;\n }", "protected Bitmap getImage(URL url) {\n\n HttpURLConnection iconConn = null;\n try {\n iconConn = (HttpURLConnection) url.openConnection();\n iconConn.connect();\n int response = iconConn.getResponseCode();\n //if the reponse 200 the successfull\n if (response == 200) {\n return BitmapFactory.decodeStream(iconConn.getInputStream());\n } else {\n return null;\n }\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n } finally {\n if (iconConn != null) {\n iconConn.disconnect();\n }\n }\n }", "private Bitmap loadImageFromUrl(final String url) {\n try {\n // Addresses bug in SDK :\n // http://groups.google.com/group/android-developers/browse_thread/thread/4ed17d7e48899b26/\n BufferedInputStream bis = new BufferedInputStream(new URL(url).openStream(), BUFFER_IO_SIZE);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n BufferedOutputStream bos = new BufferedOutputStream(baos, BUFFER_IO_SIZE);\n copy(bis, bos);\n bos.flush();\n return BitmapFactory.decodeByteArray(baos.toByteArray(), 0, baos.size());\n } \n catch (IOException e) {\n // handle it properly\n \treturn null;\n }\n }", "private Bitmap loadImageFromNetwork(String url) {\n try {\n InputStream is = new DefaultHttpClient().execute(new HttpGet(url))\n .getEntity().getContent();\n return BitmapFactory.decodeStream(is);\n } catch (Exception e) {\n return null;\n }\n }", "private BufferedImage getImage(String filename) {\n\t\ttry {\n\t\t\t// Grab the InputStream for the image.\n\t\t\tInputStream in = getClass().getResourceAsStream(filename);\n\t\t\t\n\t\t\t// Then read it in.\n\t\t\treturn ImageIO.read(in);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"The image was not loaded.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\treturn null;\n\t}", "public Bitmap getBitmapFromURL(String src) {\n try {\n\n java.net.URL url = new java.net.URL(src);\n HttpURLConnection connection = (HttpURLConnection) url\n .openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n Bitmap myBitmap = BitmapFactory.decodeStream(input);\n\n return myBitmap;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "protected abstract Image loadImage();", "Bitmap ObtenerImagen(URL imageUrl){\n HttpURLConnection conn = null;\n Bitmap imagen=null;\n try {\n conn = (HttpURLConnection) imageUrl.openConnection();\n conn.connect();\n imagen = BitmapFactory.decodeStream(conn.getInputStream());\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n return imagen;\n }", "BufferedImage outputImage();", "void setSourceImage(BufferedImage mySourceImage);", "Image createImage();", "private static Bitmap getBitmap(String imageURL){\n\t\tBitmap bmp = null;\n\n\t\ttry {\n\t\t\tbmp = BitmapFactory.decodeStream((InputStream) new URL(imageURL).getContent());\n\t\t} catch (MalformedURLException e) {\n\t\t} catch (IOException e) {\n\t\t}\n\n\t\treturn bmp;\n\t}", "IMG createIMG();", "private Image makeAnImage(String s) throws IOException {\n //String imageName = s.substring(s.indexOf(\"\\\\(\") + 1, s.indexOf(\"\\\\)\"));\n String[] parts = s.split(\"\\\\(\");\n String imageName = parts[1].substring(0, parts[1].length() - 1);\n // load the image data into an java.awt.Image object.\n Image img = null;\n InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(imageName);\n try {\n img = ImageIO.read(is);\n } catch (IOException e) {\n System.out.println(\"Error: failed to load image\");\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n System.out.println(\"Failing closing the image\");\n }\n }\n }\n return img;\n }", "public ImageFile(BufferedImage img) throws ImageException{\r\n\tloadImage(img);\r\n}", "public static BufferedImage loadImage(String path) {\r\n try {\r\n return ImageIO.read(ImageLoader.class.getResource(path));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n System.exit(1);\r\n }\r\n return null;\r\n }", "public abstract Image getImage();", "public abstract Image getImage();", "public BufferedImage loadImage(String path){\n\t\ttry {\n\t\t\timage = ImageIO.read(getClass().getResource(path));\n\t\t\tSystem.out.println(\"Sprite Sheet Loaded\");\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Image file not found\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "public Boolean testImage(String url) {\r\n\t\ttry {\r\n\t\t\tBufferedImage image = ImageIO.read(new URL(url));\r\n\t\t\tif (image != null) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.err.println(\"URL error with image\");\r\n\t\t\treturn false;\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"IO error with image\");\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public Bitmap getBitmapFromURL(String strURL) {\n try {\n URL url = new URL(strURL);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n Bitmap myBitmap = BitmapFactory.decodeStream(input);\n return myBitmap;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "private Bitmap downloadImage(String url) {\n Bitmap bitmap = null;\n InputStream stream = null;\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inSampleSize = 1;\n\n try {\n stream = getHttpConnection(url);\n bitmap = BitmapFactory.decodeStream(stream, null, bmOptions);\n stream.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n return bitmap;\n }", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "public BufferedImage getImage() {\n\t\tString base64ImageString = getData();\n\t\tByteArrayInputStream byteStream = new ByteArrayInputStream(Base64\n\t\t\t\t.decodeBase64(base64ImageString.getBytes()));\n\t\ttry {\n\t\t\treturn ImageIO.read(byteStream);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public static BufferedImage loadImage(PixArtPlayerData dataobj, String pstrimage) {\r\n \t\t\r\n \t\tString strimage = PixArtPlugin.pluginsettings.getmappedImage(pstrimage);\r\n \t\ttry {\r\n \t\t\t\r\n \t\t\tif(pstrimage.startsWith(\"www\"))\r\n \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}\r\n \t\t\t\r\n \t\t\tBufferedImage img = null;\r\n \t\t\tURL url = new URL(strimage);\r\n \t\t\timg = ImageIO.read(url);\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t//scale it.\r\n \t\t\tif(dataobj.scaleXPercent!=1 || dataobj.scaleYPercent!=1)\r\n \t\t\t\timg = PixArtPlugin.toBufferedImage(img.getScaledInstance((int)((float)img.getWidth() + dataobj.scaleXPercent), (int)((float)img.getHeight() + dataobj.scaleYPercent),Image.SCALE_FAST));\r\n \t\t\t\r\n \t\t\t\r\n \t\t\treturn img;\r\n \t\t} catch (IOException e) {\r\n \t\t\tdataobj.pPlayer.sendMessage(\"Error...\");\r\n \t\t\tSystem.out.println(\"Exception:\" + e.getMessage());\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\t\r\n \t}", "private Bitmap downloadImage(String url)\n \t {\n \n \t Bitmap bitmap = null;\n \t InputStream stream = null;\n \t BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n \t bmOptions.inSampleSize = 1;\n \n \t try\n \t {\n \t stream = getHttpConnection(url);\n \t bitmap = BitmapFactory.decodeStream(stream, null, bmOptions);\n \t stream.close();\n \n \t return bitmap;\n \t }\n \t catch (IOException e1)\n \t {\n \t e1.printStackTrace();\n \t }\n \t return bitmap;\n \t }", "public static void main(String[] args) throws IOException {\n\t\tnew ImageTest().testFromUrlToBufferedImage();\n\t}", "private static Image fileToImage(File file) throws MalformedURLException {\r\n\r\n String localUrl = file.toURI().toURL().toString(); // Get URL of file\r\n Image image = new Image(localUrl); // Create new image\r\n return image;\r\n }", "static DataFrame<Integer,Integer> ofImage(URL url) {\n try {\n final BufferedImage image = ImageIO.read(url);\n final Range<Integer> rowKeys = Range.of(0, image.getHeight());\n final Range<Integer> colKeys = Range.of(0, image.getWidth());\n return DataFrame.ofInts(rowKeys, colKeys, v -> image.getRGB(v.colOrdinal(), v.rowOrdinal()));\n } catch (Exception ex) {\n throw new DataFrameException(\"Failed to initialize DataFrame from image url: \" + url, ex);\n }\n }", "public static Image loadImage(String name) {\r\n Image result = null;\r\n try {\r\n result = ImageIO.read(IO.class.getClassLoader().getResourceAsStream(\"data/\" + name));\r\n } catch (Exception ex) {\r\n } \r\n return result;\r\n }", "private Bitmap LoadImage(String URL, BitmapFactory.Options options) {\r\n Bitmap bitmap = null;\r\n InputStream in = null;\r\n try {\r\n in = OpenHttpConnection(URL);\r\n bitmap = BitmapFactory.decodeStream(in, null, options);\r\n in.close();\r\n } catch (IOException e1) {\r\n }\r\n return bitmap;\r\n }", "private Bitmap loadImageFromNetwork(String url) {\n Bitmap bm = null;\n try {\n URL urln = new URL(url);\n Log.i(\"load\", url);\n Log.i(\"load\", \"loading Image...\");\n bm = BitmapFactory.decodeStream(urln.openConnection().getInputStream());\n Log.i(\"load\", \"done\");\n } catch (IOException e) {\n Log.e(\"HUE\",\"Error downloading the image from server : \" + e.getMessage().toString());\n } \n return bm;\n }", "private static BufferedImage loadImage(File parFile) throws IOException\n\t{\n\t\treturn ImageIO.read(parFile);\n\t}", "WorldImage getImage();", "public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }", "private BufferedImage sacaFoto(String fo){\n File input = null;\n BufferedImage image = null;\n try{\n input = new File(fo);\n image = ImageIO.read(input);\n }catch(IOException ioe){\n System.out.println(\"Hubo un error en la lectura de la imagen\");\n System.exit(1);\n }\n return image;\n }", "private static Bitmap readBitmapFromNetwork(URL url)\n {\n InputStream is = null;\n BufferedInputStream bis = null;\n Bitmap bmp = null;\n try\n {\n URLConnection conn = url.openConnection();\n conn.connect();\n is = conn.getInputStream();\n bis = new BufferedInputStream(is);\n bmp = BitmapFactory.decodeStream(bis);\n }\n catch (MalformedURLException e)\n {\n Log.e(TAG, \"Bad ad URL\", e);\n }\n catch (IOException e)\n {\n Log.e(TAG, \"Could not get remote image\", e);\n }\n finally\n {\n try\n {\n if (is != null) is.close();\n if (bis != null) bis.close();\n }\n catch (IOException e)\n {\n Log.w(TAG, \"Error closing stream.\");\n }\n }\n return bmp;\n }", "public int getImage();", "private Image loadImage (String path) {\n\t\tImageIcon imageicon = new ImageIcon (path);\r\n\t\tImage newImage = imageicon.getImage();\r\n\t\treturn newImage;\r\n\t}", "public static void main(String[] args) throws IOException {\n String strImg=\"iVBORw0KGgoAAAANSUhEUgAAADwAAAAeCAYAAABwmH1PAAAAAXNSR0IArs4c6QAAAARnQU1BAACx\\n\" +\n \"jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGMSURBVFhH7ZUxbsIwFIYZK7F17h06darEzsLQ\\n\" +\n \"E1RsXIAdMXIANrgAAzMT4go5kBs7/sOLY+e9tGksWxk+yXJ+XvI923hWFIUampfZh8H3LDaTcO5M\\n\" +\n \"wrkzCfs5q8Nqrg6X5vzn25eBzlX4836E2ctafZe5mt3Zn2MQCN/UaVO9JPRRTXE+/0SYtbLPTNWk\\n\" +\n \"30h3C9/3aqsLWzgBiHN5XFuy2rYpm716kPnHcVH+bqFOd5rlCQtDVnfRjjuFSR7inLCs9ljCFIlw\\n\" +\n \"yfvy1YA8xDW+vEFSO7SlnSZIGFQYQLxuQDkXFJfWtjkcge3x5s8x/Iuwm6fyLXFB7etOS9Ltiz+7\\n\" +\n \"tbo6WY5RhF2ouB531ra12itabeu+Kx1FmELFQSPTOr/ArnLPqymqML2eIN6SH3qF8VLfw5oRhGkW\\n\" +\n \"4npM5U0DTOYPZzimsKEjS8Wre3ceaIAc2ZaODBV36duAJIQBxEPyGq4BSQlTOHHgiicrDKTiIHlh\\n\" +\n \"IBXPRhhw4tkJg5C4WFh0XyfAJJw7k3DeFOoHaIAJVpYI2HsAAAAASUVORK5CYII=\";\n\n\n\n\n String base64Img=null;\n HttpRequester httprequest = new HttpRequester();\n\n CloseableHttpClient httpClient =null;\n String url=\"https://creditcard.ecitic.com/citiccard/cppnew/entry.do?func=entryebank&ebankPage=mainpage\";\n httpClient = HttpClients.createDefault();\n CookieStore cookieStore = new BasicCookieStore();\n HttpContext localContext = new BasicHttpContext();\n localContext.setAttribute(\"http.cookie-store\", cookieStore);\n RequestConfig.custom().setConnectTimeout(20000);\n RequestConfig.custom().setSocketTimeout(20000);\n RequestConfig.custom().setConnectionRequestTimeout(20000);\n RequestConfig requestConfig = RequestConfig.custom().build();\n Map<String, String> requestHeaderMap=new HashMap<String, String>();\n requestHeaderMap.put(\"Accept-Encoding\", \"gzip, deflate\");\n requestHeaderMap.put(\"Host\", \"creditcard.ecitic.com\");\n requestHeaderMap.put(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0\");\n requestHeaderMap.put(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\");\n requestHeaderMap.put(\"Connection\", \"Keep-Alive\");\n requestHeaderMap.put(\"Cache-Control\", \"private\");\n requestHeaderMap.put(\"Accept-Language\", \"zh-CN\");\n// if (!StringUtil.isEmpty(userIp)&&!userIp.equals(\"127.0.0.1\")) {\n// requestHeaderMap.put(\"X-Forwarded-For\", userIp);\n// }\n// logger.info(bean.getCuserId()+\"zhongxin userIp=\"+userIp);\n String content= HpClientUtil.httpGet(url, requestHeaderMap, httpClient, localContext, \"GBK\");\n\n String channel=content.substring(content.indexOf(\"var channel\"), content.indexOf(\"var source\"));\n String source =content.substring(content.indexOf(\"var source\"), content.indexOf(\"var from\"));\n channel=channel.substring(channel.indexOf(\"\\\"\")+1, channel.lastIndexOf(\"\\\"\"));\n source=source.substring(source.indexOf(\"\\\"\") + 1, source.lastIndexOf(\"\\\"\"));\n String vcodeUrl=\"https://creditcard.ecitic.com/citiccard/cppnew/jsp/valicode.jsp?time=\"+System.currentTimeMillis();\n\n\n BufferedImage localBufferedImage=null;\n localBufferedImage=HpClientUtil.getRandomImageOfJPEG(vcodeUrl, requestHeaderMap, httpClient, localContext, requestConfig);\n base64Img= BankHelper.GetImageBase64(localBufferedImage, \"jpeg\");\n System.out.println(base64Img);\n url = \"http://192.168.3.50:8080/captcha/hack?captcha=\";\n\n try {\n // url = java.net.URLDecoder.decode(url, \"utf-8\");\n strImg= java.net.URLEncoder.encode(base64Img, \"utf-8\");\n url = url +strImg + \"&bankid=2&imgtype=1\" ;\n HttpRespons hr = httprequest.sendGet(url);\n //获取招商银行的登录sessionID\n content=hr.getContent();\n System.out.println(content);\n JSONObject json=JSONObject.parseObject(content);\n System.out.println(json.getString(\"text\"));\n\n\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n System.out.println(url);\n GenerateImage(base64Img);\n }", "private BufferedImage readImage(String fileName) {\n BufferedImage image = null;\n\n try {\n InputStream inputFile = getClass().getResourceAsStream(fileName);\n image = ImageIO.read(inputFile);\n } catch (IIOException fnfexc) {\n System.err.println(\"Bitmap file '\" + fileName + \"' cannot be found\");\n } catch (IOException ioexp) {\n System.err.println(\"No contact with outside world\");\n }\n\n return image;\n }", "public static Bitmap getImage(String url){\n\t\tBitmap image = BitmapFactory.decodeStream(\n\t\t\t\topenStream(url));\n\t\tLog.i(\"IMAGE\",\"Cache hit on \"+hashURL(url));\n\t\treturn image;\n\t}", "public static AnalysisResults analyzeImageAt(URL url) throws IOException {\n ByteString imageBytes = readImageBytes(url);\n\n return analyzeImage(imageBytes);\n }", "public ImageIcon getImage();", "private static BufferedImage jpegToGif(BufferedImage image) {\n\t\t\r\n\t\tBufferedImage gifImage = image;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tImageIO.write(image, \"gif\", new File(\"temp.gif\"));\r\n\t\t\tgifImage = ImageIO.read(new File(\"temp.gif\"));\r\n\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\r\n\t\treturn gifImage;\r\n\t}", "public BufferedImage getImage(String fileName){\r\n\t\tClassLoader classLoader = Thread.currentThread().getContextClassLoader();\r\n\t\tInputStream input = classLoader.getResourceAsStream(fileName);\r\n\t\tBufferedImage image = null;\r\n\t\ttry {\r\n\t\t\timage = ImageIO.read(input);\r\n\t\t} catch (IOException e1) {\r\n\t\t\tSystem.out.println(\"invalid image file name\");\r\n\t\t}\r\n\t\t//System.out.println(image);\r\n\t\treturn image;\r\n\t}", "public static BufferedImage getBufferedImage(String fileName) {\n\t\tBufferedImage img;\n\t\tImageReader reader = getReader(fileName); // Load up the image.\n\t\ttry {\n\t\t\timg = reader.read(0); // Try to assign the BufferedImage to the\n\t\t\t\t\t\t\t\t\t// output image.\n\t\t} catch (java.io.IOException ioe) {\n\t\t\tSystem.out.println(\"There was an error loading the image\"\n\t\t\t\t\t+ fileName); // Debugging.\n\t\t\treturn null;\n\t\t}\n\t\treader.dispose(); // Get rid of the image reader, to avoid memory leaks.\n\t\treturn img; // Return the output image (either an image, or NULL.)\n\t}", "public FITSImage(String url) throws Exception {\n\n // access the FITS file\n Fits fits = new Fits(url);\n\n // get basic information from file\n BasicHDU hdu = (ImageHDU) fits.readHDU();\n int bitsPerPixel = hdu.getBitPix();\n header = hdu.getHeader();\n\n if (bitsPerPixel == BasicHDU.BITPIX_BYTE) {\n\n // get image row data\n byte[][] data2D = (byte[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data\n byte[] data = new byte[width * height];\n\n int counter = 0;\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n data[counter] = data2D[h][w];\n counter++;\n }\n }\n\n // create buffered image from row data\n SingleChannelByte8ImageData imageData = new SingleChannelByte8ImageData(width, height, data, new ColorMask());\n image = imageData.getBufferedImage();\n\n } else if (bitsPerPixel == BasicHDU.BITPIX_SHORT) {\n\n // get image row data\n short[][] data2D = (short[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data and\n // analyze the highest value when transfering the data\n short[] data = new short[width * height];\n\n int highestValue = Integer.MIN_VALUE;\n int counter = 0;\n boolean hasNegativValue = false;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n\n if (!hasNegativValue)\n hasNegativValue = data2D[h][w] < 0;\n\n highestValue = data2D[h][w] > highestValue ? data2D[h][w] : highestValue;\n data[counter] = data2D[h][w];\n counter++;\n }\n }\n\n // if first bit is not set, shift bits\n if (!hasNegativValue) {\n // compute number of bits to shift\n int shiftBits = BasicHDU.BITPIX_SHORT - ((int) Math.ceil(Math.log(highestValue) / Math.log(2)));\n\n // shift bits of all values\n for (int i = 0; i < data.length; i++) {\n data[i] = (short) (data[i] << shiftBits);\n }\n }\n\n // create buffered image from row data\n SingleChannelShortImageData imageData = new SingleChannelShortImageData(width, height, bitsPerPixel, data, new ColorMask());\n image = imageData.getBufferedImage();\n\n } else if (bitsPerPixel == BasicHDU.BITPIX_INT) {\n\n // get image row data\n int[][] data2D = (int[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data\n int[] data = new int[width * height];\n\n int counter = 0;\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n data[counter] = data2D[h][w];\n counter++;\n }\n }\n\n // create buffered image from row data\n JavaBufferedImageData imageData = new ARGBInt32ImageData(width, height, data, new ColorMask());\n image = imageData.getBufferedImage();\n\n } else if (bitsPerPixel == BasicHDU.BITPIX_FLOAT) {\n\n // get image row data\n float[][] data2D = (float[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data\n short[] data = new short[width * height];\n\n // if it is an MDI magnetogram image use threshold when converting\n // the data\n // otherwise set minimum value to zero and maximum value to 2^16 and\n // scale values between\n String instrument = header.getStringValue(\"INSTRUME\");\n String measurement = header.getStringValue(\"DPC_OBSR\");\n\n if (instrument != null && measurement != null && instrument.equals(\"MDI\") && measurement.equals(\"FD_Magnetogram_Sum\")) {\n\n int counter = 0;\n float doubleThreshold = MDI_THRESHOLD * 2.0f;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n\n float value = data2D[h][w] + MDI_THRESHOLD;\n value = value < 0.0f ? 0.0f : value > doubleThreshold ? doubleThreshold : value;\n data[counter] = (short) ((value * 65535) / doubleThreshold);\n counter++;\n }\n }\n\n } else {\n\n // get the minimum and maximum value from current data\n float minValue = Float.MAX_VALUE;\n float maxValue = Float.MIN_VALUE;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n\n minValue = data2D[h][w] < minValue ? data2D[h][w] : minValue;\n maxValue = data2D[h][w] > maxValue ? data2D[h][w] : maxValue;\n }\n }\n\n // transform image row data into 1D image row data\n int counter = 0;\n float difference = maxValue - minValue;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n data[counter] = (short) (((data2D[h][w] - minValue) / difference) * 65536.0f);\n counter++;\n }\n }\n }\n\n // create buffered image from row data\n SingleChannelShortImageData imageData = new SingleChannelShortImageData(width, height, 16, data, new ColorMask());\n image = imageData.getBufferedImage();\n }\n }", "public ImageComponent fetchImageComponent(URL url)\n throws IOException\n {\n String file_path = url.toExternalForm();\n ImageComponent ret_val = (ImageComponent)componentMap.get(file_path);\n \n if(ret_val == null)\n {\n ret_val = load2DImage(file_path);\n componentMap.put(file_path, ret_val);\n }\n \n return ret_val;\n }", "private BufferedImage imageFromBase64(final String imageString) {\r\n\t\ttry {\r\n\t\t\tfinal boolean useCache=ImageIO.getUseCache();\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.setUseCache(false); /* Wird benötigt, wenn im Stream nicht gesprungen werden kann, was bei einem ByteArrayInputStream nun definitiv möglich ist. */\r\n\t\t\t\treturn ImageIO.read(new ByteArrayInputStream(Base64.getDecoder().decode(imageString)));\r\n\t\t\t} finally {\r\n\t\t\t\tImageIO.setUseCache(useCache);\r\n\t\t\t}\r\n\t\t} catch (IOException | IllegalArgumentException e) {return null;}\r\n\t}", "public static BufferedImage getImage(InputStream jpgIn) throws IOException {\n BufferedImage bufImg = ImageIO.read(jpgIn);\n jpgIn.close();\n return bufImg;\n }", "public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}", "private BufferedImage getImage(ExternalGraphic eg) {\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"got a \" + eg.getFormat());\n }\n \n if (supportedGraphicFormats.contains(eg.getFormat().toLowerCase())) {\n if (eg.getFormat().equalsIgnoreCase(\"image/gif\")\n || eg.getFormat().equalsIgnoreCase(\"image/jpg\")\n || eg.getFormat().equalsIgnoreCase(\"image/png\")) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"a java supported format\");\n }\n \n try {\n BufferedImage img = imageLoader.get(eg.getLocation(), isInteractive());\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"Image return = \" + img);\n }\n \n return img;\n } catch (MalformedURLException e) {\n LOGGER.warning(\"ExternalGraphicURL was badly formed\");\n }\n }\n }\n \n return null;\n }", "public BufferedImage readImage(String id) {\n BufferedImage bufImg = null;\n try {\n PreparedStatement pstmt = conn.prepareStatement(\n \"SELECT photo FROM vehicles WHERE veh_reg_no = ?\");\n pstmt.setString(1, id);\n System.out.println(pstmt); // for debugging\n ResultSet rset = pstmt.executeQuery();\n // Only one result expected\n rset.next();\n // Read image via InputStream\n InputStream in = rset.getBinaryStream(\"photo\"); \n // Decode the inputstream as BufferedImage\n bufImg = ImageIO.read(in); \n } catch(Exception ex) {\n ex.printStackTrace();\n }\n return bufImg;\n }", "public BufferedImage getImage()\n\t{\n\t\tif (image == null)\n\t\t\tif (imagePath == null)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tBufferedImage oimg = ImageIO.read(new File(imagePath));\n\t\t\t\t\timage = new BufferedImage(oimg.getWidth(), oimg.getHeight(), BufferedImage.TYPE_INT_RGB);\n\t\t\t\t\timage.getGraphics().drawImage(oimg,0,0,null);\n\t\t\t\t\treturn image;\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex)\n\t\t\t\t{\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\treturn image;\n\t}", "private static BufferedImage toBufferedImage(final Image image) {\n final BufferedImage buffered = new BufferedImage(image.getWidth(null),\n image.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n buffered.getGraphics().drawImage(image, 0, 0, null);\n return buffered;\n }", "private BufferedImage loadPic(String name) {\n\t\tBufferedImage pic=null;\n\t\ttry {\n\t\t\tpic = ImageIO.read(new File(\"store/\"+name));\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn pic;\n\t}", "public String getImageUrl();", "public Bitmap getBitmapfromUrl(String imageUrl) {\r\n try {\r\n URL url = new URL(imageUrl);\r\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\r\n connection.setDoInput(true);\r\n connection.connect();\r\n InputStream input = connection.getInputStream();\r\n Bitmap bitmap = BitmapFactory.decodeStream(input);\r\n return bitmap;\r\n } catch (Exception e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n return null;\r\n }\r\n }", "public static Bitmap downloadImage(String url) {\n Bitmap bitmap = null;\n\n InputStream stream = getHttpConnection(url);\n if(stream!=null) {\n bitmap = BitmapFactory.decodeStream(stream);\n try {\n stream.close();\n }catch (IOException e1) {\n Log.d(\"MyDebugMsg\", \"IOException in downloadImage()\");\n e1.printStackTrace();\n }\n }\n\n return bitmap;\n }", "public interface ImageReader {\n}", "public Image call() throws IOException;", "public static Image loadImage(String path) {\n File file = new File(path);\n String imagePath = file.getAbsolutePath();\n //Modify based on OS\n if (File.separatorChar == '\\\\') {\n // From Windows to Linux/Mac\n imagePath=imagePath.replace('/', File.separatorChar);\n imagePath = imagePath.replace(\"\\\\\", \"\\\\\\\\\");\n } else {\n // From Linux/Mac to Windows\n imagePath=imagePath.replace('\\\\', File.separatorChar);\n\n }\n \n //Add file: to work with JavaFX\n imagePath=\"file:\"+imagePath;\n\n return new Image(imagePath);\n }", "BufferedImage toBufferedImageUsingImageIO(byte[] bytes) throws IOException {\n\t\ttry (InputStream data = new ByteArrayInputStream(bytes)) {\n\t\t\treturn ImageIO.read(data);\n\t\t}\n\t}", "public static BufferedImage readImageFromFile() {\r\n BufferedImage img = null;\r\n final JFileChooser fileChooser = new JFileChooser();\r\n File selectedFile = null;\r\n fileChooser.setCurrentDirectory(new File(System.getProperty(\"user.home\")));\r\n\r\n int result = fileChooser.showOpenDialog(null);\r\n if (result == JFileChooser.APPROVE_OPTION) {\r\n selectedFile = fileChooser.getSelectedFile();\r\n System.out.println(\"Selected file: \" + selectedFile.getAbsolutePath());\r\n }\r\n try {\r\n img = ImageIO.read(selectedFile);\r\n } catch (IOException e) {\r\n }\r\n return img;\r\n }", "public String getImage() { return image; }", "public static BufferedImage imageToBufferedImage(Image image) {\r\n BufferedImage bufImageARGB = SwingFXUtils.fromFXImage(image, null);\r\n BufferedImage bufImageRGB = new BufferedImage(bufImageARGB.getWidth(), \r\n bufImageARGB.getHeight(), BufferedImage.OPAQUE);\r\n\r\n Graphics2D graphics = bufImageRGB.createGraphics();\r\n graphics.drawImage(bufImageARGB, 0, 0, null);\r\n \r\n graphics.dispose();\r\n \r\n return bufImageRGB;\r\n }", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "public Image getSharp();" ]
[ "0.7411187", "0.7411187", "0.7411187", "0.7005876", "0.6946439", "0.6880731", "0.67483157", "0.6706313", "0.66786367", "0.66493946", "0.66446316", "0.65820736", "0.65758497", "0.65715945", "0.6524928", "0.6493948", "0.64621204", "0.6451544", "0.6439665", "0.64257216", "0.6371667", "0.636482", "0.6361253", "0.6338936", "0.62828314", "0.62687063", "0.6212968", "0.62030005", "0.6199768", "0.61964375", "0.61841476", "0.6166302", "0.61651343", "0.61635584", "0.61550885", "0.6151307", "0.6144517", "0.61410767", "0.61400265", "0.6135834", "0.6133232", "0.6127265", "0.6111392", "0.6108546", "0.6099682", "0.6098303", "0.6082566", "0.6065738", "0.6063948", "0.6063948", "0.60585755", "0.60556895", "0.6054897", "0.6040868", "0.6032852", "0.6022453", "0.6021466", "0.60063773", "0.5977636", "0.5972438", "0.5964649", "0.59510165", "0.594858", "0.594479", "0.59240353", "0.59198165", "0.5903704", "0.59035105", "0.59019786", "0.5896746", "0.5891268", "0.58892", "0.58828366", "0.58738357", "0.5868717", "0.5866881", "0.5854788", "0.5845653", "0.5843481", "0.5843364", "0.5840618", "0.5840227", "0.5830656", "0.58214194", "0.5810822", "0.5809234", "0.58077717", "0.5800988", "0.57916594", "0.5789182", "0.57867813", "0.57758343", "0.57654476", "0.5762511", "0.5761534", "0.57615185", "0.5760179", "0.57472956", "0.57458293", "0.57434744", "0.5743394" ]
0.0
-1
Prepara los directorios al estado necesario antes de ejecutar los tests.
private void manageDirectories() throws IOException { FileManager.copyFolder(RefactoringPlugin.getDynamicRefactoringsDir(), "./testdata/XML/Writer/availableRefactorings"); FileManager.emptyDirectories(RefactoringPlugin .getDynamicRefactoringsDir()); FileManager.deleteDirectories( RefactoringPlugin.getDynamicRefactoringsDir(), false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "public void setUp() {\n new File(TEST_FILE).getParentFile().mkdirs();\n }", "@BeforeAll\n public static void setUp() throws IOException {\n Files.createDirectories(Paths.get(targetPath));\n }", "@Override\n protected void setUp() throws Exception {\n baseDirectory = new File(TEST_DIR_NAME);\n assertTrue(ConnectorTestUtils.deleteAllFiles(baseDirectory));\n // Then recreate it empty\n assertTrue(baseDirectory.mkdirs());\n }", "private void setUpDirectories() {\r\n\t\tFile creation = new File(\"Creations\");\r\n\t\tFile audio = new File(\"Audio\");\r\n\t\tFile quiz = new File(\"Quiz\");\r\n\t\tFile temp = new File(\"Temp\");\r\n\r\n\t\tif (!creation.isDirectory()) {\r\n\t\t\tcreation.mkdir();\r\n\t\t}\r\n\t\tif (!audio.isDirectory()) {\r\n\t\t\taudio.mkdir();\r\n\t\t}\r\n\t\tif (!quiz.isDirectory()) {\r\n\t\t\tquiz.mkdir();\r\n\t\t}\r\n\t\tif (!temp.isDirectory()) {\r\n\t\t\ttemp.mkdir();\r\n\t\t}\r\n\r\n\t}", "@Before\n\tpublic void setUp() {\n\t\tresultsDir.mkdir();\n\t}", "@BeforeClass\n\tpublic static void setUpClass() {\n\t\tString resourcesDir = System.getProperty(\"user.dir\") + File.separator + \"src\" +\n File.separator + \"test\" + File.separator + \"resources\";\n\n tsmResources = resourcesDir + File.separator + \"tsm\";\n //testDir = new File(resourcesDir, \"tsm-output\"); \n\t}", "@Before\n public void initTest() {\n tmpDir=new File(\"/tmp/luc/test\");\n //Setup System properties\n System.getProperties().remove(JNILoader.customPathKEY); //remove any \"old\" stuff\n System.setProperty(JNILoader.customPathKEY,tmpDir.getAbsolutePath());\n }", "public void setup() throws Exception {\n setup(new File(\".\"));\n }", "public IStatus prepareRuntimeDirectory(IPath baseDir);", "@BeforeClass\n\tpublic static void createTestFiles() throws IOException {\n\t\tif (!TEST_FILE_DIRECTORY.mkdir()) {\n\t\t\tthrow new IllegalStateException(\"unable to create test files\");\n\t\t}\n\t}", "@BeforeClass\n\tpublic static void init() {\n\t\tif (!testDir.isDirectory())\n\t\t\ttestDir.mkdir();\n\n\t\tif (file.isFile())\n\t\t\tfile.delete();\n\t}", "@Before\n public void setUpBeforeEachTest() throws IOException {\n setUpTempDirectory(\"TestSpringLockssTestCase\");\n }", "@BeforeEach\n void before() {\n if (Files.notExists(path)) path.toFile().mkdirs();\n }", "protected void setUp() {\r\n File cleanDir = new File(this.clean);\r\n dest = new File(root + \"\\\\field\");\r\n if (!dest.exists()) {\r\n dest.mkdirs();\r\n }\r\n\r\n (new FileCopy(\r\n new File(cleanDir, \"field_RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"XDateChooser.java\"),\r\n new File(root + \"\\\\XDateChooser.java\"),\r\n false)).run();\r\n\r\n (new SummaryTraversal(root)).run();\r\n }", "@Before\n\tpublic void init(){\n\t\tthis.sourceFolder =new File(\"/tmp/sourceTmpTest\");\n\t\tif(!sourceFolder.exists()){\n\t\t\tSystem.out.println(\"The source folder doesn't exist, is created now\");\n\t\t\tsourceFolder.mkdir();\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"The source folder already exist\");\n\t\t}\n\n\t\t/* Create source Temporary folder */\n\t\tthis.destinationFolder =new File(\"/tmp/destinationTmpTest\");\n\t\tif(!destinationFolder.exists()){\n\t\t\tSystem.out.println(\"The destination folder doesn't exist, is created now\");\n\t\t\tdestinationFolder.mkdir();\n\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"The destination folder already exist\");\n\t\t}\n\n\t\t/* Create 4 files to test it into the function */\n\t\tfor(int i=0;i<4;i++){\n\t\t\tFile testFile=new File (\"/tmp/sourceTmpTest/img-test_0_000\"+i+\".testexpsim\");\n\t\t\ttry {\n\t\t\t\tif (testFile.createNewFile()){\n\t\t\t\t\tSystem.out.println(\"Source file \"+i +\" is created!\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Source file \"+i +\" already exists.\");\n\t\t\t\t}\n\t\t\t} catch (IOException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Before\n public void setUp() throws Exception {\n fileFinder = new FileFinder();\n testFiles = new ArrayList<>(10);\n }", "public Runner() {\n this.config = ConfigUtils.getDefaultConfig();\n this.noSuchBaseDir = Files.createTempDir();\n this.noSuchBaseDir.deleteOnExit();\n }", "@BeforeClass\n\tpublic static void preparation(){\n\t\tphotoFile = new PhotoFile(new File(\"..\\\\Album\\\\res\\\\malta.jpg\"));\n\t\temptyPhotoFile = new PhotoFile(new File(\"..\\\\Album\\\\res\\\\malta1.jpg\"));\n\t}", "@Before\n public void setUp() {\n context = new ClassPathXmlApplicationContext(new String[]{\"configuration/job-configuration.xml\"});\n // Get the bean to use to invoke the application\n jobLauncherTestUtils = (JobLauncherTestUtils) context.getBean(\"jobLauncherTestUtils\");\n try {\n inDir = new File(inputDirectory);\n FileUtils.copyFile(new File(PATH_FILE_CSV),\n new File(inputDirectory + CSV_FILE_NAME));\n FileUtils.forceMkdir(inDir);\n\n outDir = new File(outputDirectory);\n FileUtils.forceMkdir(outDir);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@BeforeClass(enabled = true)\n\tpublic void oneTimeSetup() {\n\t\ttry {\n\t\t\tFile resultsDirectory = new File(AppConstants.TEST_RESULTS_DIRECTORY);\n\t\t\tif (!resultsDirectory.isDirectory()) {\n\t\t\t\tFileUtils.forceMkdir(resultsDirectory);\n\t\t\t} else {\n\t\t\t\tFileUtils.cleanDirectory(resultsDirectory);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tLOG.debug(\"Error cleaning the results directory\");\n\t\t}\n\t}", "public static void main(String[] args) { String dirname = \"/home/diego/IdeaProjects/JAVAStuff/src/tmp/dirTest.txt\";\n// File d = new File(dirname);\n// d.mkdirs();\n//\n File file = null;\n String[] paths;\n\n try {\n file = new File(\"/home/diego/IdeaProjects/JAVAStuff/src\");\n paths = file.list();\n\n for(String s: paths) {\n System.out.println(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "private void setupWorkingDir(Execute exe) {\r\n if (dir == null) {\r\n dir = getProject().getBaseDir();\r\n }\r\n else if (!dir.exists() || !dir.isDirectory()) {\r\n throw new BuildException(dir.getAbsolutePath() + \" is not a valid directory\", getLocation());\r\n }\r\n exe.setWorkingDirectory(dir);\r\n }", "@BeforeClass\n public static void SetupEnviron() throws FileNotFoundException, UnsupportedEncodingException {\n if (outputDir != null && baseLocalDir != null) {\n // exit early if the environ is already set\n return;\n }\n BasicConfigurator.resetConfiguration();\n BasicConfigurator.configure();\n String container = \"testConfiguration\";\n InputStream templateInputStream = null;\n try {\n File configFile = new File(\"resources/tests_config.xml\");\n templateInputStream = new FileInputStream(configFile);\n Document configDoc = XMLDomUtils.getTemplateDom(templateInputStream);\n // read from the config file\n outputDir = XMLDomUtils.getNodeValue(configDoc, container, \"outputDirectory\");\n outputDir += \"desc_sen/\";\n baseLocalDir = XMLDomUtils.getNodeValue(configDoc, container, \"projectDirectory\");\n exampleOutputDir = XMLDomUtils.getNodeValue(configDoc, container, \"outputDirectory\");\n exampleOutputDir += \"examples/\";\n } finally {\n if (templateInputStream != null) {\n try {\n templateInputStream.close();\n } catch (IOException e) {\n // ignore, closing..\n }\n }\n }\n \n File file = new File(outputDir);\n file.mkdirs();\n \n file = new File(exampleOutputDir);\n file.mkdirs();\n \n baseQuery += URLEncoder.encode(\"text/xml;subtype=\\\"sensorML/1.0.1\\\"\", \"UTF-8\") + \"&\";\n }", "@BeforeMethod\n public void setUp() throws Exception {\n ClassLoader classLoader = getClass().getClassLoader();\n mAnyZipFile = new ZipFileImpl();\n String resourceName = \"historia_de_la_vida_del_buscOn_llamado_don_pablos.epub\";\n URL resourceUrl = classLoader.getResource(resourceName);\n Path path = PathImpl.Companion.from(resourceUrl.getPath());\n mFile = FileImpl.Companion.from(path);\n }", "@Test\n public void testOnechildekstazi() throws Exception {\n String testName = \"onechildekstazi\";\n EkstaziPaths.removeEkstaziDirectories(getClass(), testName);\n executeCleanTestStep(testName, 0, 7);\n executeCleanTestStep(testName, 0, 4);\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tsrc = \"C:\\\\Users\\\\Edward\\\\Documents\\\\test.txt\";\n\t\tsrc = \"C:\\\\Users\\\\Edward\\\\Documents\\\\test.pdf\";\n\t\tmain = new Main();\n\t}", "@BeforeEach\n public void setUp() {\n assertTrue(Files.isDirectory(this.temporaryDirectory));\n }", "protected void setUp() throws Exception {\n String workingDir = getWorkDirPath();\n new File(workingDir).mkdirs();\n File outputFile = new File(workingDir + \"/output.txt\");\n outputFile.createNewFile();\n File errorFile = new File(workingDir + \"/error.txt\");\n errorFile.createNewFile();\n PrintWriter outputWriter = new PrintWriter(new FileWriter(outputFile));\n PrintWriter errorWriter = new PrintWriter(new FileWriter(errorFile));\n org.netbeans.jemmy.JemmyProperties.setCurrentOutput(new org.netbeans.jemmy.TestOut(System.in, outputWriter, errorWriter));\n }", "private void setUp() {\n if (tempDir != null) {\n tearDown();\n }\n tempDir = new File(OS.getTmpPath() + \"imagecompare\" + System.nanoTime());\n tempDir.mkdir();\n tempDir.deleteOnExit();\n tempFiles.clear();\n log.debug(\"using temp directory \" + tempDir.getAbsolutePath());\n\n }", "@BeforeSuite(alwaysRun=true)\r\n\tpublic void initSetUp() throws FileNotFoundException, IOException {\r\n\t\tinitialize();\r\n\t}", "@BeforeTest\r\n\tpublic void setupenvi() throws IOException {\r\n\t\tsetup();\r\n\t\tinit();\r\n\t}", "@BeforeClass\n public static void beforeClass() throws Exception {\n SystemUtil.addClasspath(\"D:\\\\project\\\\java\\\\aos\\\\config\");\n }", "public InputSystemTests() throws URISyntaxException {\n URI uri = ClassLoader.getSystemResource(txtTestFilenameList.get(0)).toURI();\n databaseInstance.setTaxpayersInfoFilesPath(Paths.get(uri).getParent().toString());\n }", "@Override\n @Before\n public void setUp() throws IOException {\n }", "protected static void cleanUpWorkingDir() {\n final Path testControllerPath =\n Paths.get(SystemPersistence.manager.getConfigurationPath().toString(), TEST_CONTROLLER_FILE);\n try {\n Files.deleteIfExists(testControllerPath);\n } catch (final Exception e) {\n logger.info(\"Problem cleaning {}\", testControllerPath, e);\n }\n\n final Path testControllerBakPath =\n Paths.get(SystemPersistence.manager.getConfigurationPath().toString(), TEST_CONTROLLER_FILE_BAK);\n try {\n Files.deleteIfExists(testControllerBakPath);\n } catch (final Exception e) {\n logger.info(\"Problem cleaning {}\", testControllerBakPath, e);\n }\n }", "@BeforeClass\n public static void setup() {\n logger.info(\"setup: creating a temporary directory\");\n\n // create a directory for temporary files\n directory = new File(UUID.randomUUID().toString());\n directory.mkdir();\n }", "protected String setPathToResourcesIfNotProvided(String[] args) {\n if (args.length == 0) {\n args = new String[1];\n args[0] = \"./src/main/resources/Code Test\";\n }\n return args[0];\n }", "void runTestSuites() throws InterruptedException {\n // all test suites are located under this directory\n String testSuiteDirectory = config.getTestSuiteDirectoryPathString();\n if (!testSuiteDirectory.endsWith(Constants.FILE_SEPARATOR)) {\n testSuiteDirectory += Constants.FILE_SEPARATOR;\n }\n\n String programNames = options.getValueFor(Constants.PROGRAMS_OPTION);\n String[] programNamesSeparated = programNames.split(Constants.COLON);\n\n // Find test subdirectories that match program names\n List<String> matchingDirectories;\n for (String programName : programNamesSeparated) {\n Path path = Paths.get(programName);\n String fname = path.getFileName().toString();\n programName = fname;\n DirectoryNameMatcher directoryFinder = new DirectoryNameMatcher(programName);\n try {\n Files.walkFileTree(Paths.get(testSuiteDirectory), directoryFinder);\n matchingDirectories = directoryFinder.getMatchingDirectories();\n if (matchingDirectories.isEmpty()) {\n Log.warn(messages.get(\"WRN001\", programName, testSuiteDirectory));\n }\n } catch (IOException ioException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR019\", programName));\n }\n\n for (String matchingDirectory : matchingDirectories) {\n TestSuiteConcatenator concatenator =\n new TestSuiteConcatenator(config, options);\n testSuite = concatenator.concatenateTestSuites(matchingDirectory);\n\n // Create READER for the Cobol source program to be tested\n StringBuilder cobolSourceInPath = new StringBuilder();\n cobolSourceInPath.append(System.getProperty(\"user.dir\"));\n cobolSourceInPath.append(Constants.FILE_SEPARATOR);\n cobolSourceInPath.append(config.getApplicationSourceDirectoryPathString());\n if (!cobolSourceInPath.toString().endsWith(Constants.FILE_SEPARATOR)) {\n cobolSourceInPath.append(Constants.FILE_SEPARATOR);\n }\n cobolSourceInPath.append(programName);\n\n List<String> applicationFilenameSuffixes = config.getApplicationFilenameSuffixes();\n for (String suffix : applicationFilenameSuffixes) {\n Log.debug(\"Driver looking for source file <\" + cobolSourceInPath.toString() + suffix + \">\");\n if (Files.isRegularFile(Paths.get(cobolSourceInPath.toString() + suffix))) {\n cobolSourceInPath.append(suffix);\n Log.debug(\"Driver recognized this file as a regular file: <\" + cobolSourceInPath.toString() + \">\");\n break;\n }\n }\n String cobolSourceInPathString = adjustPathString(cobolSourceInPath.toString());\n\n try {\n cobolSourceIn = new FileReader(cobolSourceInPathString);\n } catch (IOException cobolSourceInException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR018\", programName));\n }\n\n // Create WRITER for the test source program (copy of program to be tested plus test code)\n StringBuilder testSourceOutPath = new StringBuilder();\n testSourceOutPath.append(new File(Constants.EMPTY_STRING).getAbsolutePath());\n testSourceOutPath.append(Constants.FILE_SEPARATOR);\n testSourceOutPath.append(\n config.getString(Constants.TEST_PROGRAM_NAME_CONFIG_KEY,\n Constants.DEFAULT_TEST_PROGRAM_NAME));\n\n Log.debug(\"Driver.runTestSuites() testSourceOutPath: <\" + testSourceOutPath.toString() + \">\");\n\n try {\n testSourceOut = new FileWriter(testSourceOutPath.toString());\n } catch (IOException testSourceOutException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR016\", programName));\n }\n\n mergeTestSuitesIntoTheTestProgram();\n try {\n testSourceOut.close();\n } catch (IOException closeTestSourceOutException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR017\", programName));\n }\n\n // Compile and run the test program\n String processConfigKeyPrefix;\n ProcessLauncher launcher = null;\n switch (PlatformLookup.get()) {\n case LINUX :\n Log.debug(\"Driver launching Linux process\");\n processConfigKeyPrefix = \"linux\";\n launcher = new LinuxProcessLauncher(config);\n break;\n case WINDOWS :\n Log.debug(\"Driver launching Windows process\");\n processConfigKeyPrefix = \"windows\";\n launcher = new WindowsProcessLauncher(config);\n break;\n case OSX :\n Log.debug(\"Driver launching OS X process\");\n processConfigKeyPrefix = \"osx\";\n //launcher = new OSXProcessLauncher(config);\n break;\n case ZOS :\n Log.debug(\"Driver launching z/OS process\");\n processConfigKeyPrefix = \"zos\";\n //launcher = new ZOSProcessLauncher(config);\n break;\n default :\n Log.debug(\"Driver launching default process\");\n processConfigKeyPrefix = \"unix\";\n launcher = new LinuxProcessLauncher(config);\n break;\n }\n String processConfigKey = processConfigKeyPrefix + Constants.PROCESS_CONFIG_KEY;\n String processName = config.getString(processConfigKey);\n if (isBlank(processName)) {\n String errorMessage = messages.get(\"ERR021\", processConfigKey);\n Log.error(errorMessage);\n throw new PossibleInternalLogicErrorException(errorMessage);\n }\n if (launcher != null){\n Process process = launcher.run(testSourceOutPath.toString());\n int exitCode = 1;\n// try {\n exitCode = process.waitFor();\n// } catch (InterruptedException interruptedException) {\n// exitCode = 1;\n// }\n Log.info(messages.get(\"INF009\", processName, String.valueOf(exitCode)));\n }\n }\n }\n }", "@Before\r\n\tpublic void setUp() {\r\n\t\tprocessFile = new ProcessFile();\r\n\t}", "public void setUp()\n\t{\n\t\tif (driver == null){\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSystem.out.println(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\properties\\\\Config.properties\");\n\t\t\t\tfis = new FileInputStream(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\properties\\\\Config.properties\");\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconfig.load(fis);\n\t\t\t\tSystem.out.println(\"config file loaded\");\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tfis = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\properties\\\\OR.properties\");\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tOR.load(fis);\n\t\t\t\t//config.load(fis);\n\t\t\t\tSystem.out.println(\"OR file loaded\");\n\t\t\t\tSystem.out.println(System.getenv(\"browser\"));\n\t\t\t} catch (IOException 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\t\tif (System.getenv(\"browser\")!= null)\n\t\t\t\t{\n\t\t\t\t\tbrowser = System.getenv(\"browser\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tbrowser = config.getProperty(\"browser\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\tconfig.setProperty(browser, browser);\n\t\tif (config.getProperty(\"browser\").equals(\"chrome\"))\n\t\t\t\n\t\t{\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\") + \"\\\\src\\\\test\\\\resources\\\\executables\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t\tSystem.out.println(\"Chrome Launched !!!\");\n\t\t}\n\t\t//System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files (x86)\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t//driver = new ChromeDriver();\n\t\tSystem.out.println(System.getProperty(\"TestEnv\"));\n\t\tdriver.get(config.getProperty(\"testsiteurl\").replace(\"{TestEnv}\", System.getProperty(\"TestEnv\")));\n\t\tSystem.out.println(\"Navigated to : \" + config.getProperty(\"testsiteurl\"));\n\t\tdriver.manage().window().maximize();\n\t\t\n\t}", "@BeforeAll\n public static void setUp(){\n baseURI = ConfigurationReader.getProperty(\"spartan.base_url\");\n basePath = \"/api\" ;\n }", "@BeforeClass\n public static void setUp() throws Exception {\n // temporarily rename existing application.conf\n if (appConf.exists()) {\n Files.move(\n appConf.toPath(),\n tempAppConf.toPath()\n );\n }\n\n // copy testing-specific application.conf\n Files.copy(\n (new File(\"./src/test/resources/application.conf\")).toPath(),\n appConf.toPath()\n );\n\n // start a server\n String[] args = {};\n AnalysisServer.main(args);\n }", "@org.junit.Before\n public void setUp() {\n LOGGER.log(Level.INFO, \"Starting test\");\n emptyTestDirectory();\n }", "@BeforeTest\n public void setUp() throws Exception {\n driver = new FirefoxDriver();\n baseUrl = \"https://kontur.ru/Files/userfiles/file/edu/Stagirovka%202012/test/default.html\";\n driver.manage().timeouts().implicitlyWait(30,\n TimeUnit.SECONDS);\n basePage= PageFactory.initElements(driver,\n BasePage.class);\n tuesdayPage = PageFactory.initElements(driver, TuesdayPage.class);\n mondayPage = PageFactory.initElements(driver, AlexPMondayPage.class);\n }", "@Test\n public void verifyPathsInSequence() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n testGetCompanyHome();\n testGetCabinetFolder();\n testGetCaseFolder();\n testGetDocumentLibraryFolder();\n testEvidenceBankFolder();\n\n }", "@Before\n public void setUpBefore() throws Exception {\n this.fs = FileSystem.getLocal(this.testUtil.getConfiguration());\n this.testDir = setup(fs, this.testUtil);\n LOG.info(\"fs={}, fsuri={}, fswd={}, testDir={}\", this.fs, this.fs.getUri(),\n this.fs.getWorkingDirectory(), this.testDir);\n assertTrue(\"FileSystem '\" + fs + \"' is not local\", fs instanceof LocalFileSystem);\n }", "public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getProperty(\"chromeDriverPath\"));\r\n\t\tsetGeckoDriverPath(Config.getProperty(\"geckoDriverPath\"));\r\n\t\tsetIeDriverPath(Config.getProperty(\"ieDriverPath\"));\r\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\tlib.addAll(\"Mushroom_Publishing.txt\");\n\t}", "@Override\n\tpublic void run() {\n\t\tif (!mainDir.isDirectory()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// inserisco il nome della cartella principale.\n\t\tproduceDirPath(mainDir.getName());\n\t\t\n\t\t// navigo ricorsivamente.\n\t\twalkDir(mainDir);\n\t}", "@Before\n public void startingTests() throws Exception {\n // from Sample 1:\n String libWithDriversLocation = System.getProperty(\"user.dir\") + \"\\\\lib\\\\\";\n System.setProperty(\"webdriver.chrome.driver\", libWithDriversLocation + \"chromedriver.exe\");\n // declaration above:\n driver = new ChromeDriver();\n\n //open page:\n driver.get(base_url);\n }", "protected void setUp() throws Exception {\r\n\t\tsuper.setUp();\r\n\t\tuno = new PosicionConcreta(6.5, 5.5);\r\n\t\tdos = new PosicionConcreta(6.5, 8.5);\r\n\t\ttres = new PosicionConcreta(2.5, 8.5);\r\n\t\tcuatro = new PosicionConcreta(2.5, 6.5);\r\n\t\tcinco = new PosicionConcreta(2.5, 3.5);\r\n\t\tseis = new PosicionConcreta(7.5, 3.5);\r\n\t\tsiete = new PosicionConcreta(9.5, 1.5);\r\n\t\tocho = new PosicionConcreta(7.5, 1.5);\r\n\t\tnueve = new PosicionConcreta(2.5, 1.5);\r\n\t\tdestino = new PosicionConcreta(1.5, 1.5);\r\n\t\tcazar = new Cazar();\r\n\t\tFabricaDeJuegos.fabricarJuegoEnLaberinto(\"ArchivosNecesarios/Laberintos/testEstrategias\");\r\n\r\n\t}", "public static void init(){\n Path path = FileDirectoryUtil.getPath(\"src\", \"fileIO\", \"test.txt\");\n FileDirectoryUtil.tryCreateDirectory(path);\n\n // Try to create the file\n path = Paths.get(path.toAbsolutePath().toString(), \"test.txt\");\n FileDirectoryUtil.tryCreateFile(path);\n\n // Print out the final location of the file\n System.out.println(path.toAbsolutePath());\n\n // Try to write to the file\n IOUtil.tryWriteToFile(getContent(), path);\n\n // Try to print the content of the file\n IOUtil.tryPrintContents(path);\n\n }", "@Override\n\tpublic void run() {\n\t\tString path = \"D:\\\\test\";\n\t\tfor(int i=1;i<65535;i++){\n\t\t\tFile file = new File(path+File.separator+name+i);\n\t\t\tif(!file.exists()){\n\t\t\t\tfile.mkdirs();\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}", "@BeforeEach\n public void setUp() throws IOException {\n logFiles = new ArrayList<>();\n logFiles.add(Paths.get(\"src/test/resources/logviewer-search-context-tests.log.test\"));\n logFiles.add(Paths.get(\"src/test/resources/logviewer-search-context-tests.log.gz\"));\n\n topoPath = Files.createTempDirectory(\"topoA\").toAbsolutePath().normalize();\n new File(topoPath.toFile(), \"6400\").createNewFile();\n new File(topoPath.toFile(), \"6500\").createNewFile();\n new File(topoPath.toFile(), \"6600\").createNewFile();\n new File(topoPath.toFile(), \"6700\").createNewFile();\n }", "@Before\n public void setUp() throws Throwable\n {\n myLog.debug( \"entering\" );\n try\n {\n if ( Files.exists( Testconstants.ROOT_DIR ) )\n {\n Helper.deleteDirRecursive( Testconstants.ROOT_DIR );\n }\n \n Files.createDirectory( Testconstants.ROOT_DIR );\n FSOBJECTS.DIR1.setFsObject( Testconstants.createNewFolder( Testconstants.ROOT_DIR, \"existingDir1\" ) );\n FSOBJECTS.DIR2.setFsObject( Testconstants.createNewFolder( Testconstants.ROOT_DIR, \"existingDir2\" ) );\n FSOBJECTS.DIR3.setFsObject( Testconstants.createNewFolder( Testconstants.ROOT_DIR, \"existingDir3\" ) );\n FSOBJECTS.FILE1.setFsObject( Testconstants.createNewFile( Testconstants.ROOT_DIR, \"existingFile1.txt\" ) );\n FSOBJECTS.FILE2.setFsObject( Testconstants.createNewFile( Testconstants.ROOT_DIR, \"existingFile2.txt\" ) );\n FSOBJECTS.FILE3.setFsObject( Testconstants.createNewFile( Testconstants.ROOT_DIR, \"existingFile3.txt\" ) );\n FSOBJECTS.NOT1.setFsObject( Paths.get( Testconstants.ROOT_DIR.toString(), \"notExisting1\" ) );\n FSOBJECTS.NOT2.setFsObject( Paths.get( Testconstants.ROOT_DIR.toString(), \"notExisting2\" ) );\n FSOBJECTS.NOT3.setFsObject( Paths.get( Testconstants.ROOT_DIR.toString(), \"notExisting3\" ) );\n \n Files.deleteIfExists( Paths.get( EXCLUDE_FILE_NAME ) );\n myExcludeFile = Testconstants.createNewFile( Paths.get( \".\" ), EXCLUDE_FILE_NAME );\n FileUtils.writeLines( myExcludeFile.toFile(), Arrays.asList( new String[] { EXCLUDE_VALUE } ) );\n }\n catch ( Throwable t )\n {\n myLog.error( \"Throwable caught in setup\", t );\n throw t;\n }\n }", "private void testJaasModuleFilePath(String workingDir) throws IOException {\n Configuration configuration = new Configuration();\n // set the string for CoreOptions.TMP_DIRS to mock the working directory.\n configuration.setString(CoreOptions.TMP_DIRS, workingDir);\n SecurityConfiguration sc = new SecurityConfiguration(configuration);\n JaasModule module = new JaasModule(sc);\n\n module.install();\n\n assertJaasFileLocateInRightDirectory(workingDir);\n }", "@Before\r\n\tpublic void setUp() throws Exception {\n\t\tunitTestInputs = new ArrayList<TestInput>(50);\r\n\t\t\r\n\t\t// Iterate over all input files\r\n\t\tFile directory = new File(\"Inputs\");\r\n\t\tFile[] inputFiles = directory.listFiles();\r\n\t\tif (inputFiles != null)\r\n\t\t{\r\n\t\t\t// Iterate over each input file\r\n\t\t\tfor (File inputFile : inputFiles)\r\n\t\t\t{\r\n\t\t\t\t// Parse file to create test input objects\t\r\n\t\t\t\tString fileName = inputFile.getName();\r\n\t\t\t\tif (fileName.startsWith(\"INPUT\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tString[] fileNameSplit = fileName.split(\"[_.]\");\r\n\t\t\t\t\tlong numberInversions = Long.parseLong(fileNameSplit[1]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tArrayList<Integer> inputValues = Common.ParseInputFile(inputFile.getPath());\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add test input\r\n\t\t\t\t\tunitTestInputs.add(new TestInput(inputValues, numberInversions));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void setUp() {\n //Clear all namespace in the ConfigManager\n TestHelper.resetConfig();\n }", "public void test25() throws Exception {\n runTestInDirectory(\"regression\");\n }", "@Test\n public void run_main(){\n\n String resource_folder = (new File(\"src/test/resources/\")).getAbsolutePath()+ File.separator ;\n\n String[] args = new String[7];\n args[0] = \"-run\";\n args[1] = resource_folder + \"test_configs/line_ctm.xml\";\n args[2] = \"mytest\";\n args[3] = resource_folder+\"sample_output_request.xml\";\n args[4] = \"temp\";\n args[5] = \"0\";\n args[6] = \"100\";\n\n OTM.main(args);\n\n }", "public void setupDrive(){\n // Place Dove/ into base of drive\n new File(drv.toString() + File.separator + folderName).mkdir();\n //upload preset content if required\n isSetup = true;\n }", "protected void setUp() throws Exception {\n ConfigManager cm = ConfigManager.getInstance();\n for (Iterator iter = cm.getAllNamespaces(); iter.hasNext();) {\n cm.removeNamespace((String) iter.next());\n }\n ConfigManager.getInstance().add(\"stress/config.xml\");\n }", "@BeforeClass\n\tpublic static void setupTestes()\n\t{\n\t\t\n\t\tSystem.out.println(\"ESTOU FAZENDO O SETUP GERAL\");\n\t}", "@BeforeSuite\n public void initiateData() throws FileNotFoundException, IOException {\n jsonTestData = new JsonClass();\n userDirectory = System.getProperty(\"user.dir\");\n String log4jConfigFile = userDirectory + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator\n + \"log4j.properties\";\n ConfigurationSource source = new ConfigurationSource(new FileInputStream(log4jConfigFile));\n Configurator.initialize(null, source);\n logger = Logger.getLogger(getClass());\n }", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "@Before\r\n\tpublic void faireAvant(){\r\n\t\tfile3Donnees = new File(\"fichierTest3Donnees.csv\");\r\n\t\tfile11Donnees = new File(\"fichierTest11Donnees.csv\");\r\n\t}", "public void setTestFolders(final String testResourcesFolder, final String testUpdateScriptsFolder, final String testInitScriptsFolder) {\n ServicesUtil.validateParameterNotNullStandardMessage(\"testResourcesFolder\", testResourcesFolder);\n ServicesUtil.validateParameterNotNullStandardMessage(\"testUpdateScriptsFolder\", testUpdateScriptsFolder);\n ServicesUtil.validateParameterNotNullStandardMessage(\"testInitScriptsFolder\", testResourcesFolder);\n this.saveCurrentFolders();\n\n setConfigurationAndLog(ArecoDeploymentScriptFinder.RESOURCES_FOLDER_CONF, testResourcesFolder);\n setConfigurationAndLog(ArecoDeploymentScriptFinder.UPDATE_SCRIPTS_FOLDER_CONF, testUpdateScriptsFolder);\n setConfigurationAndLog(ArecoDeploymentScriptFinder.INIT_SCRIPTS_FOLDER_CONF, testInitScriptsFolder);\n }", "@Override\n protected void setUp() throws Exception {\n super.setUp();\n\n m_TestHelper.copyResourceToTmp(\"regression.arff\");\n }", "@BeforeClass\r\n\tpublic static void setUp() throws FileNotFoundException, IOException {\r\n\t\tfinal String resourcePath = \"/tests/resources/test_config.properties\";\r\n\t\tfinal File res = new File(new File(\"\").getAbsolutePath() + resourcePath);\r\n\r\n\t\tif (res.exists()) {\r\n\t\t\tproperties = new Properties();\r\n\t\t\tproperties.load(new FileInputStream(res));\r\n\t\t} else {\r\n\t\t\tthrow new FileNotFoundException(\"File not found: \" + resourcePath);\r\n\t\t}\r\n\t}", "@Before\n public void setUp() throws Exception {\n classPathScanner =\n new ClassPathScanner(ClassPathScanner.getDefaultClasspaths(getInstrumentation()));\n }", "private static void runTests() {\r\n\t\tfor (int i = 0; i < testFiles.length; i++) {\r\n\t\t\tConverter file = new Converter(testFiles[i]);\r\n\t\t\tfile.convert();\r\n\t\t\tSystem.out.println(\"---------\");\r\n\t\t}\r\n\t}", "public void beforeClass() throws Exception\n {\n new File(\"test-logs\").mkdirs(); \n System.setProperty(\"hadoop.log.dir\", \"test-logs\");\n \n _fileSystem = FileSystem.get(new JobConf());\n }", "private void emptyTestDirectory() {\n // Delete the files in the /tmp/QVCSTestFiles directory.\n File tempDirectory = new File(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY));\n File[] files = tempDirectory.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.isDirectory()) {\n File[] subFiles = file.listFiles();\n for (File subFile : subFiles) {\n if (subFile.isDirectory()) {\n File[] subSubFiles = subFile.listFiles();\n for (File subSubFile : subSubFiles) {\n subSubFile.delete();\n }\n }\n subFile.delete();\n }\n }\n file.delete();\n }\n }\n }", "@BeforeTest\r\n\tpublic void setup()throws InterruptedException, MalformedURLException, IOException {\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t// Stream the data from the config properties file and store in the object input\r\n\t\t\tinput = new FileInputStream(\"./config.properties\");\r\n\t\t\tProperties prop = new Properties();\r\n\t\t\t\r\n\t\t\t// Load the data into prop object\r\n\t\t\tprop.load(input);\r\n\t\t\t\r\n\t\t\t//Assign the values into the variables taken from config properties file\r\n\t\t\tstrBrowser = prop.getProperty(\"BROWSER\");\r\n\t\t\tstrBaseUrl = prop.getProperty(\"BASE_URL\");\r\n\t\t\t\r\n\t\t\t//Choose the browser and launch by getting the values from config properties file\r\n\t\t\tif(strBrowser.equalsIgnoreCase(\"chrome\")) {\r\n\t\t\t\t\r\n\t\t\t\t//Sets the property of the chrome driver\r\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./Drivers/chromedriver.exe\");\r\n\t\t\t\t\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\t\r\n\t\t\t\t// Yet to provide the details for both IE and firefox below\r\n\t\t\t} else if(strBrowser.equalsIgnoreCase(\"ie\")) {\r\n\t\t\t\tSystem.setProperty(\"\", \"\");\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\t\t\t} else if(strBrowser.equalsIgnoreCase(\"firefox\")) {\r\n\t\t\t\tSystem.setProperty(\"\", \"\");\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdriver.get(strBaseUrl);\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tSystem.out.println(\"Provide a valid data for driver\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n public void test() {\n assertEquals(JShell.getWorkingDir().toString(), \"MASTER\");\r\n\r\n // Test setWorkingDir\r\n ArrayList<String> testMKDIR = new ArrayList<String>();\r\n // Directories made for testCase1 \"a\"\r\n String[] testCasesMKDIR1 = {\"mkdir\", \"a\"};\r\n testMKDIR.addAll(Arrays.asList(testCasesMKDIR1));\r\n MKDIR.execute(testMKDIR);\r\n // CD changes sets the working directory to \"a\"\r\n ArrayList<String> testCD2 = new ArrayList<String>();\r\n String[] testCasesCD2 = {\"cd\", \"a\"};\r\n testCD2.addAll(Arrays.asList(testCasesCD2));\r\n CD.execute(testCD2);\r\n // See if the directory has been changed\r\n assertEquals(JShell.getWorkingDir().toString(), \"a\");\r\n\r\n // Test getInputs and setInputs is shown in HISTORYTest - redundant code\r\n // Test getDirHistory and setDirHistory is shown in POPDTest and PUSHDTest -\r\n // redundant code\r\n }", "public void onStart(ITestContext context) {\r\n\t\ttry {\r\n\t\t\t//used to get the test class name\r\n\t\t\tclassName = context.getCurrentXmlTest().getClasses().get(0).getName();\r\n\t\t\t//used for creating required directories\r\n\t\t\tcreateRequiredDirectory(OUT_FOLDER, className);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t}", "public void setup() {\n\t\tif (!new File(plugin.getDataFolder() + path).exists())\r\n\t\t\tnew File(plugin.getDataFolder() + path).mkdir();\r\n\r\n\t\tif (!new File(plugin.getDataFolder() + path, name + \".yml\").exists())\r\n\t\t\ttry {\r\n\t\t\t\tnew File(plugin.getDataFolder() + path, name + \".yml\").createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tplugin.getLogger().log(Level.SEVERE, \"Could not generate \" + name + \".yml\");\r\n\t\t\t}\r\n\t}", "@Before\r\n public void setUp() throws Exception {\r\n super.setUp();\r\n TestHelper.cleanupEnvironment();\r\n instance = new MockGetDocumentFileContestAction();\r\n instance.prepare();\r\n }", "public void startTests() {\n if(testSettings.accessibleProperties || testSettings.accessibleInterface)\n testProperties();\n if(testSettings.tabTraversal)\n testTraversal();\n }", "@Before\n public void setUp() throws Exception {\n fs = new MockFileSystem();\n mv = new Mv(fs);\n io = new IO();\n }", "public List<Path> getTestFiles() throws Exception {\n try (Stream<Path> stream = Files.list(Paths.get(BibTeXMLImporterTest.class.getResource(\"\").toURI()))) {\n return stream.filter(p -> !Files.isDirectory(p)).collect(Collectors.toList());\n }\n\n }", "@Override\n public void setUp() throws Exception {\n super.setUp();\n buildFile = testProjectDir.newFile(\"build.gradle\");\n propertiesFile = testProjectDir.newFile(\"gradle.properties\");\n }", "public static void main(String[] args) {\n String startDir = \"E:/DEKSTOP/Projets/photosortTest\";\n\n //We list what is in this folder :\n\n System.out.println(\"\\n\\n\\nListing of files recursively : \\n\");\n\n printListFilesRecursive(startDir);\n\n //Then we create 2 directories\n createDirectory(startDir, \"css_files\");\n createDirectory(startDir, \"js_files\");\n\n //Then we select all the js file and move it to /js_file, same for css files\n List<String> list_js = new ArrayList<>();\n List<String> list_css = new ArrayList<>();\n\n listFilesRecursiveByExtension(startDir,\"js\",list_js);\n listFilesRecursiveByExtension(startDir,\"css\",list_css);\n\n for (String item_js : list_js){\n copyFile(item_js,startDir+\"/js_files\",new File(item_js).getName());\n }\n\n\n for (String item_css : list_css){\n copyFile(item_css,startDir+\"/css_files\",new File(item_css).getName());\n }\n System.out.println(\"Listing of file dummy : \\n\");\n //array in which we will store the names of files and directories\n\n printDummyListFiles(startDir);\n\n\n\n\n System.out.println(\"\\n\\n\\nListing of JS files recursively : \\n\");\n\n printListFilesRecursiveByExtension(startDir, \"map\");\n\n System.out.println(\"\\n\\n\\nListing of JS files recursively : \\n\");\n\n printListFilesRecursiveByExtension(startDir, \"map\");\n }", "@BeforeMethod(alwaysRun = true)\n public static void setUp(){\n // ConfigReader.readProperties(Constants.CONFIGURATION_FILEPATH);\n ConfigReader.readProperties(Constants.CONFIGURATION_FILE);\n switch (ConfigReader.getPropertyValue(\"browser\")){\n case \"chrome\":\n //System.setProperty(\"webdriver.chrome.driver\", \"Drivers/chromedriver.exe\");\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n //System.setProperty(\"webdriver.gecko.driver\", \"Drivers/geckodriver.exe\");\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n break;\n default:\n throw new RuntimeException(\"Invalid name of browser\");\n }\n driver.get(ConfigReader.getPropertyValue(\"url\"));\n driver.manage().window().maximize();\n //driver.manage().timeouts().implicitlyWait(Constants.IMPLICIT_WAIT, TimeUnit.SECONDS);\n }", "protected void setUp() throws Exception {\n\t\tTestUtils.configureLogging();\r\n\r\n\t\t// delete all tmp files ...\r\n\t\tthis.tmpDir = new TmpDirectory(\"howllogger\");\r\n\t\tthis.tmpDir.clear();\r\n\r\n\t\tthis.tmpDir = new TmpDirectory(\"howllogger\");\r\n\t\tSystem.getProperties().setProperty(\"howl.log.logFileDir\",\r\n\t\t\t\tthis.tmpDir.getDirectory().getCanonicalPath());\r\n\r\n\t}", "@Before\n public void setUp() throws Exception {\n testRootDir = new File(System.getProperty(\"java.io.tmpdir\") + \"/Zeppelin_Test_\" + System.currentTimeMillis());\n testRootDir.mkdirs();\n LOGGER.info(\"Create tmp directory: {} as root folder of ZEPPELIN_INTERPRETER_DIR & ZEPPELIN_CONF_DIR\", testRootDir.getAbsolutePath());\n interpreterDir = new File(testRootDir, \"interpreter\");\n confDir = new File(testRootDir, \"conf\");\n notebookDir = new File(testRootDir, \"notebook\");\n\n interpreterDir.mkdirs();\n confDir.mkdirs();\n notebookDir.mkdirs();\n\n FileUtils.copyDirectory(new File(\"src/test/resources/interpreter\"), interpreterDir);\n FileUtils.copyDirectory(new File(\"src/test/resources/conf\"), confDir);\n\n System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_CONF_DIR.getVarName(), confDir.getAbsolutePath());\n System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_DIR.getVarName(), interpreterDir.getAbsolutePath());\n System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_NOTEBOOK_DIR.getVarName(), notebookDir.getAbsolutePath());\n System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_REMOTE_RUNNER.getVarName(), INTERPRETER_SCRIPT);\n\n conf = new ZeppelinConfiguration();\n interpreterSettingManager = new InterpreterSettingManager(conf,\n mock(AngularObjectRegistryListener.class), mock(RemoteInterpreterProcessListener.class), mock(ApplicationEventListener.class));\n interpreterFactory = new InterpreterFactory(interpreterSettingManager);\n }", "public void prepareDatabase(String testName) throws Exception {\n prepareDatabaseFromPath('/' + testName + \"/\" + prepareFileName);\n }", "@BeforeClass\n\t\tpublic static void setUp() {\n\t\t\tboard = Board.getInstance();\n\t\t\t// set the file names to use my config files\n\t\t\tboard.setConfigFiles(\"ourConfigFiles/GameBoard.csv\", \"ourConfigFiles/Rooms.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.setCardFiles(\"ourConfigFiles/Players.txt\", \"ourConfigFiles/Weapons.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.initialize();\n\t\t}", "public void setUp() {\n\n\t}", "@Override\n protected void setUp() throws Exception {\n super.setUp();\n if (container == null) {\n String resource = System.getProperty(\"jest.web.xml\", DEFAULT_WEB_XML);\n System.err.println(\"Starting Servlet Container from \" + resource);\n InputStream wdesc = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource);\n assertNotNull(resource + \" not loadable at thread context classpath\", wdesc);\n container = new ServletRunner(wdesc);\n assertNotNull(\"Servlet engine could not be started\", container);\n\n baseURI = System.getProperty(\"jest.base.uri\", DEFAULT_BASE_URI);\n System.err.println(\"Base URI \" + baseURI);\n\n _xmlParser = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n _xpathFactory = XPathFactory.newInstance();\n }\n HttpUnitOptions.setExceptionsThrownOnErrorStatus(true);\n HttpUnitOptions.setScriptingEnabled(false);\n HttpUnitOptions.setExceptionsThrownOnScriptError(false);\n }", "@Before\n\tpublic void setupTeste()\n\t{\n\t\tSystem.out.println(\"ESTOU FAZENDO O SETUP\");\n\t}", "@BeforeTest\n\tpublic void loadLocatorsFile() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlocator = ReadPropertiesFile.loadProperty(FilePath.LOCATOR_FILE);\n\t\tvalidate = ReadPropertiesFile.loadProperty(FilePath.VALIDATION_FILE);\n\t\tlog.info(\"Files has been loaded\");\n\t}", "@BeforeClass\n\tpublic static void setUp() throws Exception {\n\t\tFile projectFile = new File(\"src/test/resources/test.eap\");\n\n\t\tif (projectFile.exists()) {\n\t\t\tprojectFile.delete();\n\t\t}\n\n\t}", "DDTestBase() {\r\n\t\t//TODO Change to get APP_BASE_DIR from properties? (currently passed in as JVM arg)\r\n\t super(APP_NAME, APP_BASE_DIR);\r\n\t setup();\r\n }", "public TestOutcome executeTests()\n\n\t{\n\t try {\n\t\tString buildServerTestFilesDir = getDirectoryFinder()\n\t\t\t\t.getTestFilesDirectory().getCanonicalPath() + File.separator;\n\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n\t\t// TODO Factor the amount of memory and the extra -D parameters into\n\t\t// config.properties\n\t\tString vmArgs = tester.getTestProperties().getVmArgs();\n\t\tboolean memorySet = false;\n\t\tif (vmArgs != null) {\n\t\t if (vmArgs.contains(\"-Xmx\"))\n\t\t memorySet = true;\n\t\t\t// Break up into separate tokens if necessary\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(vmArgs);\n\t\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\t\tString nextArg = tokenizer.nextToken();\n\t\t\t\tnextArg = nextArg.replace(\"${buildserver.test.files.dir}\",\n\t\t\t\t\t\tbuildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n\t\t\t}\n\t\t}\n\t\tif (!memorySet)\n\t\t javaArgs.add(\"-Xmx456m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n \n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\n\t\t// Do not allow access to home directory\n\t\tjavaArgs.add(\"-Duser.home=/dev/null\");\n\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\"\n\t\t\t\t+ getProjectSubmission().getTestSetup().getCanonicalPath());\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\"\n\t\t\t\t+ getDirectoryFinder().getBuildDirectory().getCanonicalPath());\n\t\t// Add trusted code bases\n\t\tfor (TrustedCodeBase trustedCodeBase \n\t\t : getTrustedCodeBaseFinder().getCollection()) {\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\"\n\t\t\t\t\t+ trustedCodeBase.getValue());\n//\t\t\tgetLog().debug(\"adding trusted codebase \" + trustedCodeBase);\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\"\n\t\t\t\t\t+ new File(getDirectoryFinder().getTestFilesDirectory(),\n\t\t\t\t\t\t\t\"security.policy\").getCanonicalPath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tjavaArgs.add(\"-startTestNumber\");\n\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType.toString());\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties()\n\t\t\t\t.getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInMilliseconds() != 0) {\n\t\t\ttimeoutInSeconds = 1 + (int)( testCase.getMaxTimeInMilliseconds() / 1000);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Using @Test(timeout=\" + timeoutInSeconds\n\t\t\t\t\t\t\t+ \") annotation\");\n\t\t}\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir()\n\t\t\t\t&& !testType.equals(TestOutcome.TestType.STUDENT))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\n\t\tgetLog().debug(\"TestRunner working directory: \" + testRunnerCWD);\n\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\t\t\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n \n\t\t\ttestRunner = Untrusted.execute(\n\t\t\t\t\ttestRunnerCWD, javaArgs.toArray(new String[javaArgs.size()]));\n\n int pid = MarmosetUtilities.getPid(testRunner);\n getLog().debug(\n \"Subprocess for submission \"\n + getProjectSubmission().getSubmissionPK()\n + \" for testSetup \"\n + getProjectSubmission().getTestSetupPK()\n + \" for \" + testType + \" \" + nextTestNumber\n + \" \" + testMethod + \" in testClass \"\n + testClass + \" has pid = \" + pid);\n\n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(),\n\t\t\t\t\ttestRunner.getErrorStream());\n\t\t\tmonitor.start();\n\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n\t\t\t// Groovy, we finished before the alarm went off.\n\t\t\t// Disable it (and clear our interrupted status)\n\t\t\t// in case it went off just after the process wait\n\t\t\t// finished.\n\t\t\talarm.turnOff();\n\n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\n\t\t\t\t\t\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n\t\t\tif (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n\t\t\t\tgetLog().warn(\n\t\t\t\t\t\t\"Clover could not be initialized due to an AccessControlException. \"\n\t\t\t\t\t\t\t\t+ \" Please check your security.policy file and make sure that student code \"\n\t\t\t\t\t\t\t\t+ \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" failed with IOException: \" + e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult = e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Timeout for \" + testType + \" \" + testMethod + \" \"\n\t\t\t\t\t\t\t+ nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.TIMEOUT,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning && testRunner != null) {\n\t\t\t\ttestRunner.destroy();\n\t\t\t\t// process should already be dead, kill again\n\t\t\t\tMarmosetUtilities.destroyProcessGroup(testRunner, getLog());\n\t\t\t}\n\t\t}\n\n\t\tif (exitCode == 2) {\n // Test runner couldn't execute the tests for some reason.\n // This is probably not our fault.\n // Just add an outcome recording the output of\n // the test runner process.\n String longTestResult = monitor.getCombinedOutput();\n String shortTestResult = \"An expected class could not be found\";\n int end = longTestResult.indexOf('\\n');\n if (end > 0 && longTestResult.startsWith(\"java.lang.NoClassDefFoundError: \")) {\n String missing = longTestResult.substring(\"java.lang.NoClassDefFoundError: \".length(), end);\n missing = missing.replace('/','.');\n shortTestResult = \"Could not find expected class \" + missing;\n longTestResult = \"\";\n }\n getLog().error(shortTestResult);\n return Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n testClass, nextTestNumber, TestOutcome.MISSING_COMPONENT,\n shortTestResult, longTestResult);\n } else if (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t}\n\n\t\tgetLog().debug(\n\t\t\t\tgetFullTestName() + \" test finished with \"\n\t\t\t\t\t\t+ new File(outputFilename).length()\n\t\t\t\t\t\t+ \" bytes of output\");\n\n\t\tTestOutcome testOutcome = readTestOutcomeFromFile();\n\t\tif (testType == TestType.SECRET) {\n\t\t\tString longTestResult = testOutcome.getLongTestResult();\n\t\t\tString output = monitor.getCombinedOutput().trim();\n\t\t\tif (output.length() > 0)\n\t\t\t\ttestOutcome.setLongTestResultCompressIfNeeded(longTestResult + \"\\nTest output:\\n\" + output);\n\t\t}\n\t\treturn testOutcome;\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t throw new RuntimeException(\"Unexpected IO Exception\", e);\n\t }\n\t}", "@Before\n public void setUp() throws Exception {\n this.jsonParser = JsonParser.getService();\n InputStream inputStream = getClass().getResourceAsStream(\"../parser/metadata.json\");\n this.jsonString = new Scanner(inputStream).useDelimiter(\"\\\\A\").next();\n this.jsonParser.setJsonString(this.jsonString);\n\n // read the variant results file and create the parser\n InputStream inputStream1 = this.getClass().getResourceAsStream(\"./flattened/standardResultOutput.json\");\n String resultString = new Scanner(inputStream1).useDelimiter(\"\\\\A\").next();\n this.resultParser = new KnowledgeBaseResultParser(resultString);\n\n // create the translator\n this.translator = new KnowledgeBaseFlatSearchTranslator(this.DATASET_KEY, this.PHENOTYPE_KEY, this.PROPERTY_KEY);\n }", "private Directories() {\n\n\t}", "protected void setUp() throws Exception {\n InputStream stream = new FileInputStream(_path);\n \n _reader = new InputStreamReader(stream);\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\truntimeConfig = ConfigLoader.load(\n\t\t\t\tnew File(resourcesDir,\n\t\t\t\t\t\t\"benchmark_config_with_ls_specific_settings.conf\").getAbsolutePath());\n\t\t\n\t\tscenario = new Scenario(\"animals\", \"mammal\");\n\t\t\n\t\ttmpDir = Files.createTempDir();\n\t\ttmpDir.mkdirs();\n\t\t\n\t\tfileFinder = new FileFinder(new File(\".\").getAbsolutePath(), scenario);\n\t\t// arbitrarily set to tmpDir\n\t\tfileFinder = fileFinder.updateWorkDir(tmpDir);\n\t\t\n\t\texamples = new PosNegExamples();\n\t\texamples.put(Constants.ExType.POS, Sets.newHashSet(\"one\", \"two\", \"three\"));\n\t\texamples.put(Constants.ExType.NEG, Sets.newHashSet(\"four\", \"five\", \"six\", \"seven\"));\n\t\tlog = new BenchmarkLog();\n\t}" ]
[ "0.6828656", "0.68183565", "0.6787437", "0.6523016", "0.645837", "0.6360713", "0.6309477", "0.62488633", "0.61331415", "0.6088947", "0.60697377", "0.603597", "0.6013712", "0.59729844", "0.5958554", "0.59562963", "0.5953468", "0.5951752", "0.5945769", "0.5926787", "0.5922813", "0.5902932", "0.5888812", "0.5876284", "0.58721423", "0.5859243", "0.58420986", "0.5828449", "0.58202285", "0.58194596", "0.57823056", "0.5744153", "0.57229716", "0.5719246", "0.5695112", "0.5690446", "0.5679452", "0.5667663", "0.56525195", "0.56334126", "0.56318843", "0.5624479", "0.56172884", "0.5615167", "0.5612117", "0.56073403", "0.560156", "0.5600633", "0.5600448", "0.5585867", "0.55785197", "0.5576186", "0.55533916", "0.55367506", "0.55345273", "0.5531441", "0.5525584", "0.551332", "0.5501411", "0.5499539", "0.54935336", "0.54876626", "0.5485105", "0.54832363", "0.5475425", "0.5471888", "0.54712623", "0.5463756", "0.54544795", "0.5452076", "0.5443637", "0.544351", "0.54429084", "0.5439126", "0.54371774", "0.5432008", "0.54278475", "0.5412154", "0.54059887", "0.53960323", "0.53954816", "0.5392603", "0.53817314", "0.5379399", "0.53784734", "0.53768164", "0.5376076", "0.53747547", "0.53725976", "0.5369954", "0.536627", "0.53632426", "0.5360784", "0.5360773", "0.5351752", "0.5342938", "0.53294295", "0.5323885", "0.53050125", "0.5303489", "0.53000116" ]
0.0
-1
Devuelve el estado de los directorios al estado inicial antes de iniciar los tests.
private void restoreDirectories() throws IOException { // Reponemos las refactorizaciones que habia antes FileManager.emptyDirectories(RefactoringPlugin .getDynamicRefactoringsDir()); FileManager.deleteDirectories( RefactoringPlugin.getDynamicRefactoringsDir(), false); FileManager .copyFolder( "./testdata/XML/Writer/availableRefactorings/DynamicRefactorings", new File(RefactoringPlugin.getDynamicRefactoringsDir()) .getParent()); // Borramos la carpeta con las refactorizaciones del directorio temporal FileManager .emptyDirectories("./testdata/XML/Writer/availableRefactorings/DynamicRefactorings"); FileManager .deleteDirectories( "./testdata/XML/Writer/availableRefactorings/DynamicRefactorings", true); // Borramos el archivo generado para dejar la aplicaci�n como se // encontraba. FileManager.deleteFile(RefactoringConstants.REFACTORING_TYPES_FILE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUp() {\n new File(TEST_FILE).getParentFile().mkdirs();\n }", "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "private void setUpDirectories() {\r\n\t\tFile creation = new File(\"Creations\");\r\n\t\tFile audio = new File(\"Audio\");\r\n\t\tFile quiz = new File(\"Quiz\");\r\n\t\tFile temp = new File(\"Temp\");\r\n\r\n\t\tif (!creation.isDirectory()) {\r\n\t\t\tcreation.mkdir();\r\n\t\t}\r\n\t\tif (!audio.isDirectory()) {\r\n\t\t\taudio.mkdir();\r\n\t\t}\r\n\t\tif (!quiz.isDirectory()) {\r\n\t\t\tquiz.mkdir();\r\n\t\t}\r\n\t\tif (!temp.isDirectory()) {\r\n\t\t\ttemp.mkdir();\r\n\t\t}\r\n\r\n\t}", "@Before\n public void initTest() {\n tmpDir=new File(\"/tmp/luc/test\");\n //Setup System properties\n System.getProperties().remove(JNILoader.customPathKEY); //remove any \"old\" stuff\n System.setProperty(JNILoader.customPathKEY,tmpDir.getAbsolutePath());\n }", "@Override\n protected void setUp() throws Exception {\n baseDirectory = new File(TEST_DIR_NAME);\n assertTrue(ConnectorTestUtils.deleteAllFiles(baseDirectory));\n // Then recreate it empty\n assertTrue(baseDirectory.mkdirs());\n }", "@BeforeAll\n public static void setUp() throws IOException {\n Files.createDirectories(Paths.get(targetPath));\n }", "@Before\n\tpublic void setUp() {\n\t\tresultsDir.mkdir();\n\t}", "@BeforeEach\n public void setUp() {\n assertTrue(Files.isDirectory(this.temporaryDirectory));\n }", "@BeforeClass\n\tpublic static void setUpClass() {\n\t\tString resourcesDir = System.getProperty(\"user.dir\") + File.separator + \"src\" +\n File.separator + \"test\" + File.separator + \"resources\";\n\n tsmResources = resourcesDir + File.separator + \"tsm\";\n //testDir = new File(resourcesDir, \"tsm-output\"); \n\t}", "private Directories() {\n\n\t}", "@BeforeEach\n void before() {\n if (Files.notExists(path)) path.toFile().mkdirs();\n }", "@BeforeClass\n\tpublic static void init() {\n\t\tif (!testDir.isDirectory())\n\t\t\ttestDir.mkdir();\n\n\t\tif (file.isFile())\n\t\t\tfile.delete();\n\t}", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public BaseTest() {\n\n String path = System.getProperty(\"user.dir\") + \"/src/test/resources/config.properties\";\n prop = new Properties();\n /** Stream to read the spreadsheet. */\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(path);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n prop.load(fis);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "@Test\r\n public void test() {\n assertEquals(JShell.getWorkingDir().toString(), \"MASTER\");\r\n\r\n // Test setWorkingDir\r\n ArrayList<String> testMKDIR = new ArrayList<String>();\r\n // Directories made for testCase1 \"a\"\r\n String[] testCasesMKDIR1 = {\"mkdir\", \"a\"};\r\n testMKDIR.addAll(Arrays.asList(testCasesMKDIR1));\r\n MKDIR.execute(testMKDIR);\r\n // CD changes sets the working directory to \"a\"\r\n ArrayList<String> testCD2 = new ArrayList<String>();\r\n String[] testCasesCD2 = {\"cd\", \"a\"};\r\n testCD2.addAll(Arrays.asList(testCasesCD2));\r\n CD.execute(testCD2);\r\n // See if the directory has been changed\r\n assertEquals(JShell.getWorkingDir().toString(), \"a\");\r\n\r\n // Test getInputs and setInputs is shown in HISTORYTest - redundant code\r\n // Test getDirHistory and setDirHistory is shown in POPDTest and PUSHDTest -\r\n // redundant code\r\n }", "@Before\n public void setUpBeforeEachTest() throws IOException {\n setUpTempDirectory(\"TestSpringLockssTestCase\");\n }", "protected void setUp() throws Exception {\r\n\t\tsuper.setUp();\r\n\t\tuno = new PosicionConcreta(6.5, 5.5);\r\n\t\tdos = new PosicionConcreta(6.5, 8.5);\r\n\t\ttres = new PosicionConcreta(2.5, 8.5);\r\n\t\tcuatro = new PosicionConcreta(2.5, 6.5);\r\n\t\tcinco = new PosicionConcreta(2.5, 3.5);\r\n\t\tseis = new PosicionConcreta(7.5, 3.5);\r\n\t\tsiete = new PosicionConcreta(9.5, 1.5);\r\n\t\tocho = new PosicionConcreta(7.5, 1.5);\r\n\t\tnueve = new PosicionConcreta(2.5, 1.5);\r\n\t\tdestino = new PosicionConcreta(1.5, 1.5);\r\n\t\tcazar = new Cazar();\r\n\t\tFabricaDeJuegos.fabricarJuegoEnLaberinto(\"ArchivosNecesarios/Laberintos/testEstrategias\");\r\n\r\n\t}", "@BeforeSuite\n public void initiateData() throws FileNotFoundException, IOException {\n jsonTestData = new JsonClass();\n userDirectory = System.getProperty(\"user.dir\");\n String log4jConfigFile = userDirectory + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator\n + \"log4j.properties\";\n ConfigurationSource source = new ConfigurationSource(new FileInputStream(log4jConfigFile));\n Configurator.initialize(null, source);\n logger = Logger.getLogger(getClass());\n }", "@Test\n public void testSetDataAccessResultsDir() {\n System.out.println(\"setDataAccessResultsDir\");\n\n final String previousDir = \"prevSaveDataDir\";\n final String currentDir = \"saveDataDir\";\n\n assertEquals(preferences.get(currentDir, null), null);\n assertEquals(preferences.get(previousDir, null), null);\n\n final File dir = null;\n DataAccessPreferenceUtilities.setDataAccessResultsDir(dir);\n\n assertEquals(preferences.get(currentDir, null), \"\");\n assertEquals(preferences.get(previousDir, null), null);\n }", "@BeforeTest\n public void setUp() throws Exception {\n driver = new FirefoxDriver();\n baseUrl = \"https://kontur.ru/Files/userfiles/file/edu/Stagirovka%202012/test/default.html\";\n driver.manage().timeouts().implicitlyWait(30,\n TimeUnit.SECONDS);\n basePage= PageFactory.initElements(driver,\n BasePage.class);\n tuesdayPage = PageFactory.initElements(driver, TuesdayPage.class);\n mondayPage = PageFactory.initElements(driver, AlexPMondayPage.class);\n }", "@Override\n public void resetStateOfSUT() {\n\n try {\n //FIXME: this fails due to locks on Neo4j. need way to reset it\n //deleteDir(new File(tmpFolder));\n if(!Files.exists(Path.of(tmpFolder))) {\n Files.createDirectories(Path.of(tmpFolder));\n }\n Files.copy(getClass().getClassLoader().getResourceAsStream(\"users.json\"), Path.of(tmpFolder,\"users.json\"), StandardCopyOption.REPLACE_EXISTING);\n Files.copy(getClass().getClassLoader().getResourceAsStream(\"logins.json\"), Path.of(tmpFolder,\"logins.json\"), StandardCopyOption.REPLACE_EXISTING);\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }", "protected void setUp() {\n //Clear all namespace in the ConfigManager\n TestHelper.resetConfig();\n }", "public static void init(){\n Path path = FileDirectoryUtil.getPath(\"src\", \"fileIO\", \"test.txt\");\n FileDirectoryUtil.tryCreateDirectory(path);\n\n // Try to create the file\n path = Paths.get(path.toAbsolutePath().toString(), \"test.txt\");\n FileDirectoryUtil.tryCreateFile(path);\n\n // Print out the final location of the file\n System.out.println(path.toAbsolutePath());\n\n // Try to write to the file\n IOUtil.tryWriteToFile(getContent(), path);\n\n // Try to print the content of the file\n IOUtil.tryPrintContents(path);\n\n }", "public DatabeneFormatsTestDataProvider() {\n this.basePath = SystemInfo.getCurrentDir();\n }", "private void setUp() {\n if (tempDir != null) {\n tearDown();\n }\n tempDir = new File(OS.getTmpPath() + \"imagecompare\" + System.nanoTime());\n tempDir.mkdir();\n tempDir.deleteOnExit();\n tempFiles.clear();\n log.debug(\"using temp directory \" + tempDir.getAbsolutePath());\n\n }", "@Test\n public void testGetSave_directory() {\n System.out.println(\"getSave_directory\");\n File_Chooser instance = new File_Chooser();\n String expResult = \"\";\n String result = instance.getSave_directory();\n assertEquals(expResult, result);\n }", "@Override\n @Before\n public void setUp() throws IOException {\n }", "@Before\n public void setUp() throws Exception {\n fileFinder = new FileFinder();\n testFiles = new ArrayList<>(10);\n }", "@BeforeTest\r\n\tpublic void setupenvi() throws IOException {\r\n\t\tsetup();\r\n\t\tinit();\r\n\t}", "public Runner() {\n this.config = ConfigUtils.getDefaultConfig();\n this.noSuchBaseDir = Files.createTempDir();\n this.noSuchBaseDir.deleteOnExit();\n }", "@Before\n\tpublic void init(){\n\t\tthis.sourceFolder =new File(\"/tmp/sourceTmpTest\");\n\t\tif(!sourceFolder.exists()){\n\t\t\tSystem.out.println(\"The source folder doesn't exist, is created now\");\n\t\t\tsourceFolder.mkdir();\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"The source folder already exist\");\n\t\t}\n\n\t\t/* Create source Temporary folder */\n\t\tthis.destinationFolder =new File(\"/tmp/destinationTmpTest\");\n\t\tif(!destinationFolder.exists()){\n\t\t\tSystem.out.println(\"The destination folder doesn't exist, is created now\");\n\t\t\tdestinationFolder.mkdir();\n\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"The destination folder already exist\");\n\t\t}\n\n\t\t/* Create 4 files to test it into the function */\n\t\tfor(int i=0;i<4;i++){\n\t\t\tFile testFile=new File (\"/tmp/sourceTmpTest/img-test_0_000\"+i+\".testexpsim\");\n\t\t\ttry {\n\t\t\t\tif (testFile.createNewFile()){\n\t\t\t\t\tSystem.out.println(\"Source file \"+i +\" is created!\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Source file \"+i +\" already exists.\");\n\t\t\t\t}\n\t\t\t} catch (IOException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void startTests() {\n if(testSettings.accessibleProperties || testSettings.accessibleInterface)\n testProperties();\n if(testSettings.tabTraversal)\n testTraversal();\n }", "public void setUp() {\n\n\t}", "public test_para_lanzar_metodos() {\n initComponents();\n \n \n \n \n \n \n }", "@BeforeAll\n public static void setUp(){\n baseURI = ConfigurationReader.getProperty(\"spartan.base_url\");\n basePath = \"/api\" ;\n }", "@BeforeClass\n public static void SetupEnviron() throws FileNotFoundException, UnsupportedEncodingException {\n if (outputDir != null && baseLocalDir != null) {\n // exit early if the environ is already set\n return;\n }\n BasicConfigurator.resetConfiguration();\n BasicConfigurator.configure();\n String container = \"testConfiguration\";\n InputStream templateInputStream = null;\n try {\n File configFile = new File(\"resources/tests_config.xml\");\n templateInputStream = new FileInputStream(configFile);\n Document configDoc = XMLDomUtils.getTemplateDom(templateInputStream);\n // read from the config file\n outputDir = XMLDomUtils.getNodeValue(configDoc, container, \"outputDirectory\");\n outputDir += \"desc_sen/\";\n baseLocalDir = XMLDomUtils.getNodeValue(configDoc, container, \"projectDirectory\");\n exampleOutputDir = XMLDomUtils.getNodeValue(configDoc, container, \"outputDirectory\");\n exampleOutputDir += \"examples/\";\n } finally {\n if (templateInputStream != null) {\n try {\n templateInputStream.close();\n } catch (IOException e) {\n // ignore, closing..\n }\n }\n }\n \n File file = new File(outputDir);\n file.mkdirs();\n \n file = new File(exampleOutputDir);\n file.mkdirs();\n \n baseQuery += URLEncoder.encode(\"text/xml;subtype=\\\"sensorML/1.0.1\\\"\", \"UTF-8\") + \"&\";\n }", "@BeforeEach\n\tpublic void setup() {\n\t\t\n\t\trisorsa= new Film(1,1);\n\t\tuser=new Utente(\"nome\",\"cognome\",\"mail\",LocalDateTime.now(),\"cf\",\"user\",\"psw\");\n\t\tfruitore = new Fruitore(user);\n\t\t\n\t\trisorsa_diversa= new Film(2,1);\n\t\tuser_diverso=new Utente(\"nome\",\"cognome\",\"mail\",LocalDateTime.now(),\"cf\",\"user_diverso\",\"psw\");\n\t\tfruitore_diverso = new Fruitore(user_diverso);\n\t\t\n\t\tprestito= new Prestito(risorsa, fruitore);\n\t\tprestito_diverso= new Prestito(risorsa_diversa, fruitore_diverso);\n\t}", "@BeforeSuite(alwaysRun=true)\r\n\tpublic void initSetUp() throws FileNotFoundException, IOException {\r\n\t\tinitialize();\r\n\t}", "@Before\n public void setUp()\n {\n m_instance = ConversationRepository.getInstance();\n m_fileSystem = FileSystem.getInstance();\n }", "@Before\n public void inicializaBaseDatos() throws Exception {\n app = Helpers.fakeApplication(settings());\n databaseTester = new JndiDatabaseTester(\"DefaultDS\");\n IDataSet initialDataSet = new FlatXmlDataSetBuilder().build(new\n FileInputStream(\"test/resources/tareas_dataset_1.xml\"));\n databaseTester.setDataSet(initialDataSet);\n databaseTester.onSetup();\n }", "protected void setUp() {\r\n File cleanDir = new File(this.clean);\r\n dest = new File(root + \"\\\\field\");\r\n if (!dest.exists()) {\r\n dest.mkdirs();\r\n }\r\n\r\n (new FileCopy(\r\n new File(cleanDir, \"field_RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"XDateChooser.java\"),\r\n new File(root + \"\\\\XDateChooser.java\"),\r\n false)).run();\r\n\r\n (new SummaryTraversal(root)).run();\r\n }", "@Before\n public void setUpBefore() throws Exception {\n this.fs = FileSystem.getLocal(this.testUtil.getConfiguration());\n this.testDir = setup(fs, this.testUtil);\n LOG.info(\"fs={}, fsuri={}, fswd={}, testDir={}\", this.fs, this.fs.getUri(),\n this.fs.getWorkingDirectory(), this.testDir);\n assertTrue(\"FileSystem '\" + fs + \"' is not local\", fs instanceof LocalFileSystem);\n }", "@BeforeClass\n\tpublic static void preparation(){\n\t\tphotoFile = new PhotoFile(new File(\"..\\\\Album\\\\res\\\\malta.jpg\"));\n\t\temptyPhotoFile = new PhotoFile(new File(\"..\\\\Album\\\\res\\\\malta1.jpg\"));\n\t}", "private static File getTestDataDir() {\n File ancestor = new File(System.getProperty(\"protobuf.dir\", \".\"));\n String initialPath = ancestor.getAbsolutePath();\n try {\n ancestor = ancestor.getCanonicalFile();\n } catch (IOException e) {\n throw new RuntimeException(\n \"Couldn't get canonical name of working directory.\", e);\n }\n while (ancestor != null && ancestor.exists()) {\n if (new File(ancestor, \"src/google/protobuf\").exists()) {\n return new File(ancestor, \"src/google/protobuf/testdata\");\n }\n ancestor = ancestor.getParentFile();\n }\n\n throw new RuntimeException(\n \"Could not find golden files. This test must be run from within the \" +\n \"protobuf source package so that it can read test data files from the \" +\n \"C++ source tree: \" + initialPath);\n }", "@Before\n public void setUp() throws Exception {\n fs = new MockFileSystem();\n mv = new Mv(fs);\n io = new IO();\n }", "@Test\n public void testSetupFileSystem() throws URISyntaxException, IOException {\n System.out.println(\"SetStatus(not working) and setupFileSystem\");\n\n final Path testPath = Paths.get(sysProps.getProperty(\"user.dir\"), \"test\", \"net\", \"dbcrd\",\n \"DBCUtilLib\", \"testfiles\", \"settingsTestFolder\");\n try {\n FileUtils.deleteRecursive(testPath);\n } catch (FileNotFoundException ignore) {\n }\n\n Setting s1 = Setting.factory(\"test\", Setting.SETTING_TYPE.TSTRING, \"TestSetupFileSystem Settings\");\n System.out.println(\"should get error messages via THE_LOGGER\");\n Setting.setupFileSystem();\n //Setting.SetStatus(status);\n // System.out.println(\"should get error messzges via Status\");\n // Setting.setupFileSystem();\n Setting ht = Setting.factory(\"settingsTestFolder\", Setting.SETTING_TYPE.THOMEDIR, testPath);\n Setting.setupFileSystem();\n assertTrue(Files.exists(testPath));\n Files.deleteIfExists(testPath); // delete temp dir again\n Setting s2 = Setting.factory(\"testdir1\", Setting.SETTING_TYPE.TDIR, Paths.get(\"dir1\"));\n Setting s3 = Setting.factory(\"testdir2\", Setting.SETTING_TYPE.TDIR, Paths.get(\"dir2\"));\n Setting.setupFileSystem();\n assertTrue(Files.exists(testPath));\n assertTrue(Files.exists(Setting.makeAbsolute(s2.getValue())));\n assertTrue(Files.exists(Setting.makeAbsolute(s3.getValue())));\n FileUtils.deleteRecursive(testPath);\n Path outputdata = Paths.get(\"dir1\", \"test1.txt\");\n Setting s4 = Setting.factory(\"testfile1\", Setting.SETTING_TYPE.TPATH, outputdata);\n Setting.setupFileSystem();\n Path p = Setting.makeAbsolute(Setting.getSetting(\"testfile1\").getValue());\n new FileUtils().bufferedWrite(\"this is text for test1.txt\", p);\n assertTrue(Files.exists(Setting.makeAbsolute(s4.getValue())));\n Setting.setupFileSystem();\n assertTrue(Files.exists(Setting.makeAbsolute(s4.getValue())));\n try {\n FileUtils.deleteRecursive(testPath);\n } catch (FileNotFoundException ignore) {\n }\n }", "private static File getTestDataDir() {\n File ancestor = new File(\".\");\n try {\n ancestor = ancestor.getCanonicalFile();\n } catch (IOException e) {\n throw new RuntimeException(\n \"Couldn't get canonical name of working directory.\", e);\n }\n while (ancestor != null && ancestor.exists()) {\n if (new File(ancestor, \"src/google/protobuf\").exists()) {\n return new File(ancestor, \"src/google/protobuf/testdata\");\n }\n ancestor = ancestor.getParentFile();\n }\n\n throw new RuntimeException(\n \"Could not find golden files. This test must be run from within the \" +\n \"protobuf source package so that it can read test data files from the \" +\n \"C++ source tree.\");\n }", "public TestBase() {\n try {\n properties = new Properties();\n FileInputStream fileInputStream = new FileInputStream(\"F:/LearningStuff/PracticalWork\" +\n \"/Frameworks/DataDrivenFrameworkSelenium/src/main/resources/config/config.properties\");\n properties.load(fileInputStream);\n } catch (FileNotFoundException f) {\n f.printStackTrace();\n } catch (IOException i) {\n i.printStackTrace();\n }\n }", "@Test\n public void testSetDataAccessResultsDir3() {\n System.out.println(\"setDataAccessResultsDir3\");\n\n final String previousDir = \"prevSaveDataDir\";\n final String currentDir = \"saveDataDir\";\n\n assertEquals(preferences.get(currentDir, null), null);\n assertEquals(preferences.get(previousDir, null), null);\n\n final File dir = new File(System.getProperty(\"user.dir\"));\n DataAccessPreferenceUtilities.setDataAccessResultsDir(dir);\n assertEquals(preferences.get(currentDir, null), dir.getAbsolutePath());\n assertEquals(preferences.get(previousDir, null), \"\");\n\n final File dir2 = new File(System.getProperty(\"user.home\"));\n DataAccessPreferenceUtilities.setDataAccessResultsDir(dir2);\n assertEquals(preferences.get(currentDir, null), dir2.getAbsolutePath());\n assertEquals(preferences.get(previousDir, null), dir.getAbsolutePath());\n }", "@Test\n public void testSetDataAccessResultsDir2() throws IOException {\n System.out.println(\"setDataAccessResultsDir2\");\n\n final String previousDir = \"prevSaveDataDir\";\n final String currentDir = \"saveDataDir\";\n\n assertEquals(preferences.get(currentDir, null), null);\n assertEquals(preferences.get(previousDir, null), null);\n\n File dir = null;\n try {\n dir = File.createTempFile(\"testfile\", \".txt\");\n\n DataAccessPreferenceUtilities.setDataAccessResultsDir(dir);\n\n assertEquals(preferences.get(currentDir, null), \"\");\n assertEquals(preferences.get(previousDir, null), null);\n\n } finally {\n // Cleanup\n if (dir != null && dir.exists()) {\n dir.delete();\n }\n }\n }", "private void loadDataTesting(String location) throws IOException {\r\n \t\r\n File parentDir = new ClassPathResource(location).getFile();\r\n testWriter.write(\"Data folder found.\");\r\n\r\n // Divide all data to training and testing datasets\r\n FileSplit filesInDir = new FileSplit(parentDir, allowedExtensions, randNumGen);\r\n testWriter.write(\"Data split created.\");\r\n\r\n // Create ParentPathLabelGenerator, that will parse the parent dir and use the name of the subdirectories as label/class names\r\n ParentPathLabelGenerator labelMaker = new ParentPathLabelGenerator();\r\n BalancedPathFilter pathFilter = new BalancedPathFilter(randNumGen, allowedExtensions, labelMaker);\r\n testWriter.write(\"Label generators created.\");\r\n\r\n ImageRecordReader testRecordReader = new ImageRecordReader(inputShape[1],inputShape[2],inputShape[0], labelMaker);\r\n testRecordReader.initialize(filesInDir);\r\n testWriter.write(\"Data iterators created successfully.\");\r\n\r\n // Get the number of labels, ImageRecordReader founded in dir and check it\r\n int outputNum = testRecordReader.numLabels();\r\n finalTestIterator = new RecordReaderDataSetIterator(testRecordReader, batchSizeTesting, labelIndex, outputNum);\r\n finalTestIterator.setCollectMetaData(true);\r\n testWriter.write(\"Data iterators setted to collect metadata.\");\r\n\r\n // Load files with images from file system\r\n testWriter.write(\"Started loading testing files...\");\r\n loadFiles(\"J:\\\\Tests\\\\11.02.19 vers2\\\\EmotionsRecognitionVGG16_GUI\\\\src\\\\test_data\");\r\n testWriter.write(\"Testing files loaded successfully!\");\r\n }", "@BeforeTest\n\tpublic void loadLocatorsFile() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlocator = ReadPropertiesFile.loadProperty(FilePath.LOCATOR_FILE);\n\t\tvalidate = ReadPropertiesFile.loadProperty(FilePath.VALIDATION_FILE);\n\t\tlog.info(\"Files has been loaded\");\n\t}", "private static void initDirectories() {\n String storeName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_STORE_NAME\n + \".dat\";\n File storeFile = new File(storeName);\n if (storeFile.exists()) {\n storeFile.delete();\n }\n deleteAuthenticationStore();\n initAuthenticationStore();\n\n deleteRoleProjectViewStore();\n initRoleProjectViewStore();\n\n initProjectProperties();\n }", "@Before\n public void setUp() {\n Assume.assumeTrue(!IS_CIRCLE_BUILD);\n\n searchField = myDashboard.searchField;\n showAllButton = myDashboard.showAllButton;\n subjectCheckboxes = myDashboard.subjectCheckboxes;\n openPresButton = myDashboard.openPresButton;\n fileChooser = myDashboard.fileChooser;\n menuBar = myDashboard.menuBar;\n calendarNode = myDashboard.calendarNode;\n calendar = myDashboard.calendar;\n\n subjectSortCombo = myDashboard.subjectSortCombo;\n moduleSortCombo = myDashboard.moduleSortCombo;\n presSortCombo = myDashboard.presSortCombo;\n\n subjectPanels = myDashboard.subjectPanels;\n presentationPanels = myDashboard.presentationPanels;\n modulePanels = subjectPanels.get(0).getModulePanels();\n }", "public void setUp()\n\t{\n\t\tif (driver == null){\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSystem.out.println(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\properties\\\\Config.properties\");\n\t\t\t\tfis = new FileInputStream(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\properties\\\\Config.properties\");\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconfig.load(fis);\n\t\t\t\tSystem.out.println(\"config file loaded\");\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tfis = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\properties\\\\OR.properties\");\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tOR.load(fis);\n\t\t\t\t//config.load(fis);\n\t\t\t\tSystem.out.println(\"OR file loaded\");\n\t\t\t\tSystem.out.println(System.getenv(\"browser\"));\n\t\t\t} catch (IOException 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\t\tif (System.getenv(\"browser\")!= null)\n\t\t\t\t{\n\t\t\t\t\tbrowser = System.getenv(\"browser\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tbrowser = config.getProperty(\"browser\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\tconfig.setProperty(browser, browser);\n\t\tif (config.getProperty(\"browser\").equals(\"chrome\"))\n\t\t\t\n\t\t{\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\") + \"\\\\src\\\\test\\\\resources\\\\executables\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t\tSystem.out.println(\"Chrome Launched !!!\");\n\t\t}\n\t\t//System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files (x86)\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t//driver = new ChromeDriver();\n\t\tSystem.out.println(System.getProperty(\"TestEnv\"));\n\t\tdriver.get(config.getProperty(\"testsiteurl\").replace(\"{TestEnv}\", System.getProperty(\"TestEnv\")));\n\t\tSystem.out.println(\"Navigated to : \" + config.getProperty(\"testsiteurl\"));\n\t\tdriver.manage().window().maximize();\n\t\t\n\t}", "static Path getFlightTestDataRoot() {\n return getTestDataRoot().resolve(\"flight\");\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tactividadDiaria = new ActividadDiariaDetalleDTO();\n\t\tactividadDiaria.setIdActividadDiaria(1);\n\t\tactividadDiaria.setCodigoActividad(\"OTRA\");\n\t\tactividadDiaria.setCodigoPrioridad(\"ALTA\");\n\t\tactividadDiaria.setCodigoEstado(\"PROG\");\n\t\tactividadDiaria.setCodigoListoVencido(\"PRIO\");\n\t\tactividadDiaria.setTiempoDestinado(12);\n\t\tactividadDiaria.setNumeroPersonas(8);\n\t\tactividadDiaria.setNumeroUnidades(1);\n\t\tactividadDiaria.setPorcentaje(40f);\n\t\tactividadDiaria.setObservaciones(\"PRUEBA TEST OBS\");\n\t\tactividadDiaria.setUsuarioAlta(\"mimejorada\");\n\t\tactividadDiaria.setUsuarioUltMod(\"mimejorada\");\n\t\tactividadDiaria.setPlaneada(\"N\");\n\n\t\tdocumentos = new ActividadDiariaDocumentosDTO();\n\t\tdocumentos.setConsecutivo(1);\n\t\tdocumentos.setUrl(\"233-32foto1.jpg\");\n\t\tdocumentos1 = new ActividadDiariaDocumentosDTO();\n\t\tdocumentos1.setConsecutivo(2);\n\t\tdocumentos1.setUrl(\"233-32foto2.jpg\");\n\n\t\tlistaDocumentos = new ArrayList<ActividadDiariaDocumentosDTO>();\n\t\tlistaDocumentos.add(documentos);\n\t\tlistaDocumentos.add(documentos1);\n\t\tactividadDiaria.setDocumentos(listaDocumentos);\n\t}", "@BeforeEach\n public void setUp() throws IOException {\n logFiles = new ArrayList<>();\n logFiles.add(Paths.get(\"src/test/resources/logviewer-search-context-tests.log.test\"));\n logFiles.add(Paths.get(\"src/test/resources/logviewer-search-context-tests.log.gz\"));\n\n topoPath = Files.createTempDirectory(\"topoA\").toAbsolutePath().normalize();\n new File(topoPath.toFile(), \"6400\").createNewFile();\n new File(topoPath.toFile(), \"6500\").createNewFile();\n new File(topoPath.toFile(), \"6600\").createNewFile();\n new File(topoPath.toFile(), \"6700\").createNewFile();\n }", "protected void setUp() {\n config = new ContestConfig();\n }", "@BeforeMethod\n public void setUp() throws Exception {\n ClassLoader classLoader = getClass().getClassLoader();\n mAnyZipFile = new ZipFileImpl();\n String resourceName = \"historia_de_la_vida_del_buscOn_llamado_don_pablos.epub\";\n URL resourceUrl = classLoader.getResource(resourceName);\n Path path = PathImpl.Companion.from(resourceUrl.getPath());\n mFile = FileImpl.Companion.from(path);\n }", "@Test\n public void verifyPathsInSequence() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n testGetCompanyHome();\n testGetCabinetFolder();\n testGetCaseFolder();\n testGetDocumentLibraryFolder();\n testEvidenceBankFolder();\n\n }", "public void setUp()\r\n {\r\n //empty on purpose\r\n }", "private TestContext() {\n\t\tinitLog4j();\n\t\tloadConfig();\n\t}", "public void testCtor() {\r\n new FileSystemPersistence();\r\n }", "@BeforeClass\n\tpublic static void createTestFiles() throws IOException {\n\t\tif (!TEST_FILE_DIRECTORY.mkdir()) {\n\t\t\tthrow new IllegalStateException(\"unable to create test files\");\n\t\t}\n\t}", "private void setupInitialValues(){\n\t\tString testDir = getTestDir();\n\t\tsetDirectoryInfoLabel(testDir);\n\t\tlastChoosedDirectory = new File(testDir);\n\t\tregexFrom.setText(sampleRegexFrom);\n\t\tregexTo.setText(sampleRegexTo);\n\t}", "static Path setup(FileSystem fs, HBaseCommonTestingUtil hctu) throws IOException {\n Path testDir = hctu.getDataTestDir().makeQualified(fs.getUri(), fs.getWorkingDirectory());\n hctu.getConfiguration().setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);\n hctu.getConfiguration().setInt(\"hbase.regionserver.msginterval\", 100);\n hctu.getConfiguration().setInt(\"hbase.client.pause\", 250);\n hctu.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 6);\n hctu.getConfiguration().setBoolean(\"hbase.master.enabletable.roundrobin\", true);\n hctu.getConfiguration().setInt(\"mapreduce.map.maxattempts\", 10);\n hctu.getConfiguration().set(HConstants.HBASE_DIR, testDir.toString());\n return testDir.makeQualified(fs.getUri(), fs.getWorkingDirectory());\n }", "@Test\n public void testGetDataAccessResultsDirEx() {\n System.out.println(\"getDataAccessResultsDirEx\");\n\n final String key = \"saveDataDir\";\n\n preferences.put(key, System.getProperty(\"user.dir\"));\n\n final File expResult = new File(System.getProperty(\"user.dir\"));\n final File result = DataAccessPreferenceUtilities.getDir(key);\n final Path expectedPath = Paths.get(expResult.getAbsolutePath());\n final Path resultantPath = Paths.get(result.getAbsolutePath());\n\n assertEquals(resultantPath.normalize(), expectedPath.normalize());\n\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDir(), expResult);\n\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDirEx(), expResult);\n }", "public void onStart(ITestContext context) {\r\n\t\ttry {\r\n\t\t\t//used to get the test class name\r\n\t\t\tclassName = context.getCurrentXmlTest().getClasses().get(0).getName();\r\n\t\t\t//used for creating required directories\r\n\t\t\tcreateRequiredDirectory(OUT_FOLDER, className);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t}", "public void setUp() {\r\n state1 = new DateState(new State(20200818, \"VM\", 110, 50, 123, 11, 19,\r\n 65, \"A+\", 15)); // root\r\n test1 = state1;\r\n state2 = new DateState(new State(20200818, \"VA\", 72, 43, 79, 12, 17, 33,\r\n \"B\", 9));\r\n state3 = new DateState(new State(20200817, \"VA\", 72, 43, 79, 12, 17, 33,\r\n \"B\", 9));\r\n state4 = new DateState(new State(20200817, \"VM\", 110, 50, 123, 11, 19,\r\n 65, \"A+\", 15));\r\n nullState = null;\r\n }", "public static Test suite() {\r\n return new TestSuite(FileSystemPersistenceTestCase.class);\r\n }", "@Before\n public void setUp() {\n model.enterFolder(TypicalIndexes.INDEX_FIRST_CARD_FOLDER.getZeroBased());\n deleteFirstCard(model);\n deleteFirstCard(model);\n\n expectedModel.enterFolder(TypicalIndexes.INDEX_FIRST_CARD_FOLDER.getZeroBased());\n deleteFirstCard(expectedModel);\n deleteFirstCard(expectedModel);\n }", "public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getProperty(\"chromeDriverPath\"));\r\n\t\tsetGeckoDriverPath(Config.getProperty(\"geckoDriverPath\"));\r\n\t\tsetIeDriverPath(Config.getProperty(\"ieDriverPath\"));\r\n\t}", "protected void initTestSuiteParameter() throws FileNotFoundException {\n LOGGER.info(\"............................INITIALIZE SAKULI-CONTEXT\");\n executorService = Executors.newCachedThreadPool();\n BeanLoader.CONTEXT_PATH = \"java-dsl-beanRefFactory.xml\";\n SakuliJavaPropertyPlaceholderConfigurer.TEST_SUITE_FOLDER_VALUE = getTestSuiteFolder();\n SakuliJavaPropertyPlaceholderConfigurer.SAKULI_HOME_FOLDER_VALUE = getSakuliHomeFolder();\n SakuliJavaPropertyPlaceholderConfigurer.SAHI_HOME_VALUE = getSahiFolder();\n InitializingServiceHelper.invokeInitializingServcies();\n }", "public static Test suite() {\n return createModuleTest(WizardsTest.class);\n }", "@Before\r\n public void setUp() {\n articuloPrueba = new Articulo();\r\n \r\n \r\n }", "protected void setUp() throws Exception {\n String workingDir = getWorkDirPath();\n new File(workingDir).mkdirs();\n File outputFile = new File(workingDir + \"/output.txt\");\n outputFile.createNewFile();\n File errorFile = new File(workingDir + \"/error.txt\");\n errorFile.createNewFile();\n PrintWriter outputWriter = new PrintWriter(new FileWriter(outputFile));\n PrintWriter errorWriter = new PrintWriter(new FileWriter(errorFile));\n org.netbeans.jemmy.JemmyProperties.setCurrentOutput(new org.netbeans.jemmy.TestOut(System.in, outputWriter, errorWriter));\n }", "@Before\n\tpublic void initial() {\n\t\tmodele = new FractaleModele();\n\t\tcontroleur = new FractaleControler(modele);\n\t}", "public IStatus prepareRuntimeDirectory(IPath baseDir);", "@BeforeEach\n\tpublic void cadastrar() {\n\t\tescola = new Escola( null, \"Test School\", true);\n\t\tdiretor = new Diretor(escola, \"Rodrigo\", 1000, new GregorianCalendar(1998, Calendar.APRIL, 2));\n\t\t\n\t\t\n\t\tSala sala1 = new Sala(301, 20);\n\t\tSala sala2 = new Sala(304, 40);\n\t\t\n\t\tescola.addSala(sala1);\n\t\tescola.addSala(sala2);\n\t\t\n\t\tProfessor prof1 = new Professor(\"Barcelos\", Formacao.MESTRADO);\n\t\tProfessor prof2 = new Professor(\"Salvio\" , Formacao.ESPECIALIZACAO);\n\t\t\n\t\tList<Professor> professores = new ArrayList<>();\n\t\tprofessores.add(prof1);\n\t\tprofessores.add(prof2);\n\t\t\n\t\tescola.setProfessores(professores);\n\t\t\n\t\ttry {\n\t\t\t//escolaDao.cadastrar(escola);\n\t\t\tdiretorDao.cadastrar(diretor);\n\t\t\tdiretorDao.commit();\n\t\t} catch (CommitException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Falha no teste\");\n\t\t}\n\t}", "@Test\n public void testGetDataAccessResultsDir3() {\n System.out.println(\"getDataAccessResultsDir3\");\n\n final String key = \"saveDataDir\";\n\n preferences.put(key, System.getProperty(\"user.dir\"));\n\n final File expResult = new File(System.getProperty(\"user.dir\"));\n final Path expectedPath = Paths.get(expResult.getAbsolutePath());\n \n final File result = DataAccessPreferenceUtilities.getDir(key);\n final Path resultantPath = Paths.get(result.getAbsolutePath());\n\n assertEquals(resultantPath.normalize(), expectedPath.normalize());\n\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDir(), expResult);\n }", "protected void setUp() {\n\n }", "protected void setUp() throws Exception {\n super.setUp();\n TestHelper.loadConfigurations();\n DocumentTreeTabbedPane parent =\n new DocumentTreeTabbedPaneImpl(TestHelper.createUMLModelManager(), TestHelper.NAMESPACE_NEW);\n panel = parent.getCurrentPanel();\n }", "@BeforeSuite\r\n\tpublic static void initAll() throws IOException\r\n\t{\r\n\t\tif (driver==null)\r\n\t\t{\r\n\t\t\t//Load the config properties file\r\n\t\t\tFileInputStream fis = new FileInputStream((System.getProperty(\"user.dir\")+\"/src/dd_properties/config.properties\"));\r\n\t\t\tconfig.load(fis);\r\n\t\t\t\r\n\t\t\t//Load the object repository file\r\n\t\t\tfis = new FileInputStream((System.getProperty(\"user.dir\")+\"/src/dd_properties/object.properties\"));\r\n\t\t\tobject.load(fis);\r\n\t\t\t\r\n\t\t\t// Load GymGo test data Excel File and provide location\r\n\t\t\texcelRead=new ExcelReadWrite((System.getProperty(\"user.dir\")+\"/src/dd_properties/GymGoTestData.xlsx\"));\r\n\t\t\t\r\n\t\t\t//Browser Check\r\n\t\t\tif (config.getProperty(\"browser\").equals(\"firefox\"))\r\n\t\t\t{\r\n\t\t\t\tdriver=new FirefoxDriver();\r\n\t\t\t}\r\n\t\t\telse if (config.getProperty(\"browser\").equals(\"ie\"))\r\n\t\t\t{\r\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", \"IEDriverServer.exe\");\r\n\t\t\t\tdriver=new InternetExplorerDriver();\r\n\t\t\t}\r\n\t\t\telse if (config.getProperty(\"browser\").equals(\"chrome\"))\r\n\t\t\t{\r\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/usr/local/share/chromedriver\");\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t}\r\n\t\t}\r\n\t\tdriver.manage().timeouts().implicitlyWait(25L, TimeUnit.SECONDS);\r\n\t\tdriver.get(config.getProperty(\"GymGoTestSite\"));\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t}", "@Before\r\n\tpublic void faireAvant(){\r\n\t\tfile3Donnees = new File(\"fichierTest3Donnees.csv\");\r\n\t\tfile11Donnees = new File(\"fichierTest11Donnees.csv\");\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t// Get the current FileSystem\r\n\t\tfs = MockFileSystem.getMockFileSys(\"MOCKENV\");\r\n\t\t// Initializes a Cd Object\r\n\t\tcd = new Cd();\r\n\t}", "@Before\n public void setUp() {\n context = new ClassPathXmlApplicationContext(new String[]{\"configuration/job-configuration.xml\"});\n // Get the bean to use to invoke the application\n jobLauncherTestUtils = (JobLauncherTestUtils) context.getBean(\"jobLauncherTestUtils\");\n try {\n inDir = new File(inputDirectory);\n FileUtils.copyFile(new File(PATH_FILE_CSV),\n new File(inputDirectory + CSV_FILE_NAME));\n FileUtils.forceMkdir(inDir);\n\n outDir = new File(outputDirectory);\n FileUtils.forceMkdir(outDir);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static File getItestPropertiesForCurrentTestSetup() {\n return new File(\"src/itest/resources/itest-dockercompose.properties\");\n }", "@Before\r\n public void setUp() throws Exception {\r\n super.setUp();\r\n TestHelper.cleanupEnvironment();\r\n instance = new MockGetDocumentFileContestAction();\r\n instance.prepare();\r\n }", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "public void setup() throws Exception {\n setup(new File(\".\"));\n }", "protected void setUp() {\n\t}", "public InputSystemTests() throws URISyntaxException {\n URI uri = ClassLoader.getSystemResource(txtTestFilenameList.get(0)).toURI();\n databaseInstance.setTaxpayersInfoFilesPath(Paths.get(uri).getParent().toString());\n }", "@Test\r\n public void testSetDireccion() {\r\n System.out.println(\"setDireccion\");\r\n String direccion = \"\";\r\n Usuario instance = new Usuario();\r\n instance.setDireccion(direccion);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "public Storage() {\n\t\tstorageReader = new StorageReader();\n\t\tstorageWriter = new StorageWriter();\n\t\tdirectoryManager = new DirectoryManager();\n\n\t\tFile loadedDirectory = storageReader.loadDirectoryConfigFile(FILENAME_DIRCONFIG);\n\t\tif (loadedDirectory != null) {\n\t\t\tif (directoryManager.createDirectory(loadedDirectory) == true) {\n\t\t\t\tdirectory = loadedDirectory;\n\t\t\t\tSystem.out.println(\"{Storage} Directory loaded | \" + directory.getAbsolutePath());\n\t\t\t} else { //loaded directory was invalid or could not be created\n\t\t\t\tdirectoryManager.createDirectory(DEFAULT_DIRECTORY);\n\t\t\t\tdirectory = DEFAULT_DIRECTORY;\n\t\t\t}\n\t\t} else { //directory config file was not found\n\t\t\tdirectoryManager.createDirectory(DEFAULT_DIRECTORY);\n\t\t\tdirectory = DEFAULT_DIRECTORY;\n\t\t}\n\t}", "public EnvironmentPanelTest()\n {\n }", "@Test\n public void testCarregarTrimestre() {\n }", "@Override\n public void setUp() {\n }", "@Test\n public void testGetDataAccessResultsDir2() {\n System.out.println(\"getDataAccessResultsDir2\");\n\n final String key = \"\";\n\n // key is null in preferences\n \n final File expResult = null;\n final File result = DataAccessPreferenceUtilities.getDir(key);\n\n assertEquals(result, expResult);\n\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDir(), expResult);\n }", "public SwerveAutoTest() {\n // Initialize base classes.\n // All via self-construction.\n\n // Initialize class members.\n // All via self-construction.\n }" ]
[ "0.6577574", "0.6569064", "0.6230737", "0.6212123", "0.60637397", "0.601466", "0.5992551", "0.59638506", "0.59279525", "0.5908334", "0.5905588", "0.58603245", "0.5789812", "0.57823616", "0.5768832", "0.5767888", "0.57396144", "0.5730653", "0.57177204", "0.57160586", "0.57156783", "0.5713465", "0.5708502", "0.5696678", "0.56938446", "0.56894594", "0.568001", "0.5674222", "0.56659776", "0.56654143", "0.5656752", "0.56510854", "0.5611981", "0.56072956", "0.5598579", "0.55852795", "0.5585262", "0.5584114", "0.55839604", "0.5581237", "0.55804646", "0.5575672", "0.5570387", "0.5567915", "0.55652016", "0.5561291", "0.5559052", "0.55543524", "0.5554332", "0.5551684", "0.55368", "0.5536525", "0.55365163", "0.55279845", "0.55262375", "0.5520317", "0.551322", "0.5512027", "0.5503427", "0.5498225", "0.54903406", "0.54894644", "0.5483749", "0.54752654", "0.5468678", "0.5467967", "0.54549277", "0.54538256", "0.5452766", "0.5446412", "0.54424405", "0.5440824", "0.54317814", "0.54264104", "0.5426178", "0.54248494", "0.54174894", "0.5414997", "0.54133064", "0.5411956", "0.54119337", "0.54115653", "0.5396793", "0.5393678", "0.53866756", "0.5385473", "0.5376949", "0.53690034", "0.5364939", "0.5361383", "0.53597903", "0.5356782", "0.5356696", "0.5349815", "0.5343961", "0.5340193", "0.5337684", "0.53371966", "0.53345096", "0.5331894" ]
0.5350054
93
Comprueba que las refactorizaciones son las esperadas para el ambito especificado.
private void assertNumberOfRefactoringsExpectedForScope( String availableRefactoringsSomeScopesDir, Scope scope, int numberOfExpectedRefactorings) throws XMLRefactoringReaderException { HashMap<String, String> refactorings = JDOMXMLRefactoringReaderImp .readAvailableRefactorings(scope, RefactoringConstants.REFACTORING_TYPES_FILE); assertEquals(numberOfExpectedRefactorings, refactorings.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Problem prepare(RefactoringElementsBag refactoringElements) {\n if (semafor.get() != null) {\n return null;\n }\n semafor.set(new Object());\n try {\n rename = (RenameRefactoring)refactoring;\n \n Problem problem = null;\n Lookup lkp = rename.getRefactoringSource();\n \n TreePathHandle handle = lkp.lookup(TreePathHandle.class);\n if (handle != null) {\n InfoHolder infoholder = examineLookup(lkp);\n Project project = FileOwnerQuery.getOwner(handle.getFileObject());\n if (project == null || project.getLookup().lookup(NbModuleProvider.class) == null) {\n // take just netbeans module development into account..\n return null;\n }\n \n if (infoholder.isClass) {\n checkManifest(project, infoholder.fullName, refactoringElements);\n checkLayer(project, infoholder.fullName, refactoringElements);\n }\n if (infoholder.isMethod) {\n checkMethodLayer(infoholder, handle.getFileObject(), refactoringElements);\n }\n }\n NonRecursiveFolder nrf = lkp.lookup(NonRecursiveFolder.class);\n if (nrf != null) {\n Project project = FileOwnerQuery.getOwner(nrf.getFolder());\n if (project.getLookup().lookup(NbModuleProvider.class) == null) {\n // take just netbeans module development into account..\n return null;\n }\n Sources srcs = org.netbeans.api.project.ProjectUtils.getSources(project);\n SourceGroup[] grps = srcs.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);\n for (SourceGroup gr : grps) {\n if (FileUtil.isParentOf(gr.getRootFolder(), nrf.getFolder())) {\n String relPath = FileUtil.getRelativePath(gr.getRootFolder(), nrf.getFolder());\n relPath.replace('/', '.');\n //TODO probably aslo manifest or layers.\n //TODO how to distinguish single package from recursive folder?\n }\n }\n }\n \n return problem;\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n return null;\n } finally {\n semafor.set(null);\n }\n }", "protected abstract Refactoring createRefactoring();", "protected abstract Refactoring createRefactoring();", "public void processCode() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tsuper.processCode();\t\n\t\t\n\t\tfor (String processor : getProcessors()) {\n\t\t\tString[] refactorName = processor.split(\"\\\\.\");\n\t\t\tString refactor = refactorName[refactorName.length - 1];\n\t\t\t\n\t\t\tswitch (refactor) {\n\t\t\t\tcase \"CollapseHierarchy\" : refactoringsApplied.put(refactor, CollapseHierarchy.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t CollapseHierarchy.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"EncapsulateCollection\" : refactoringsApplied.put(refactor, EncapsulateCollection.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t EncapsulateCollection.resetTimesApplied();\n\t\t\t\t \t\t\t\t\t\t\t break;\n\t\t\t\tcase \"EncapsulateField\" \t : refactoringsApplied.put(refactor, EncapsulateField.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t EncapsulateField.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t \t break;\n\t\t\t\tcase \"ExtractSuperClass\" : refactoringsApplied.put(refactor, ExtractSuperClass.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t ExtractSuperClass.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"HideMethod\" : refactoringsApplied.put(refactor, HideMethod.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t HideMethod.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"PullUpField\"\t\t\t : refactoringsApplied.put(refactor, PullUpField.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t PullUpField.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"PullUpMethod\" : refactoringsApplied.put(refactor, PullUpMethod.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t PullUpMethod.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"PushDownField\"\t\t : refactoringsApplied.put(refactor, PushDownField.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t PushDownField.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"PushDownMethod\"\t : refactoringsApplied.put(refactor, PushDownMethod.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t PushDownMethod.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\toutputProcessedCode();\n\t}", "@Override\n protected void performRefactoringIteration(UsagesInFile usagesInFile) {\n Collection<UsageInfo> usages1 = usagesInFile.getUsages();\n ArrayList<MigrationUsageInfo> usages = Lists.newArrayList(Iterables.filter(usages1, MigrationUsageInfo.class));\n usages.sort(ImportUsageFirstComparator.INSTANCE);\n\n for (MigrationMapEntry entry : migrationMap.values()) {\n FlexMigrationUtil.doClassMigration(myProject, entry, usages);\n }\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 C0159fv {\n /* renamed from: a */\n void mo4827a(Context context, C0152fo foVar);\n\n /* renamed from: a */\n void mo4828a(C0152fo foVar, boolean z);\n\n /* renamed from: a */\n void mo4829a(C0158fu fuVar);\n\n /* renamed from: a */\n boolean mo4830a();\n\n /* renamed from: a */\n boolean mo4831a(C0153fp fpVar);\n\n /* renamed from: a */\n boolean mo4832a(C0167gc gcVar);\n\n /* renamed from: b */\n void mo4833b();\n\n /* renamed from: b */\n boolean mo4834b(C0153fp fpVar);\n}", "private static void composeListAssembling(FieldInfoDto info, StringBuilder sb, boolean toDto, String dtoSuf, \n\t\tString getter, String setter, String src, String dst, String assSuf){\n\t\tsb.append(\"\\n\\t\\tif(\"+getter+\" != null ){\\n\\t\\t\\t\");\n\t\tString colContenedor = info.getCollectionDefinition();\n\t\tString constructor = info.getCollectionConstructor();\n\t\tString innerObjSrc = info.getFieldType();\n\t\tString innerObj = info.getFieldType();\n\t\tString iniAssembler = \"\";\n\t\tString finAssembler = \"\";\n\t\t//2.-Si hay que ensamblar determino la cadena adecuada para llamar al assembler, sino ira vacia\n\t\tif(toDto){\n\t\t\tinnerObjSrc = innerObjSrc.replace(dtoSuf, \"\");\n\t\t} else {\n\t\t\tSystem.out.println(\"colContenedor = \" + colContenedor + \" dtoSuf =\" +dtoSuf);\n\t\t\tcolContenedor = colContenedor.replace(dtoSuf,\"\");\n\t\t\tinnerObj = innerObj.replace(dtoSuf, \"\");\n\t\t}\n\t\tiniAssembler = composeAsembler(info.getFieldType(), src, dst, dtoSuf, assSuf);\n\t\tfinAssembler = \")\";\n\t\t//3.-Destermino si es una lista de objetos que hay que ensamblar\n\t\tsb.append(\"\\n\\t\\t\\t\").append(colContenedor).append(\" auxCol = \").append(constructor);\n\t\t//4.-creo un for que recorre la coleccion original metiendo los valores en la nueva\n\t\tsb.append(\"\\n\\t\\t\\tfor(\").append(innerObjSrc).append(\" o: \").append(getter).append(\"){\");\n\t\tsb.append(\"\\n\\t\\t\\t\\t\").append(\"auxCol.add(\").append(iniAssembler).append(\"o\").append(finAssembler).append(\");\");\n\t\tsb.append(\"\\n\\t\\t\\t}\");\n\t\t//5.-Asigno la lista recien creada al destino\n\t\tsb.append(\"\\n\\t\\t\\t\").append(setter).append(\"(auxCol);\");\n\t\tsb.append(\"\\n\\t\\t}\");\n\t}", "public void test04() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"CODE_ON\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step14\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "private void scanAndPatchIfNeeded( FunctionName name ) {\n String className = name.className;\n String sourceFile = null;\n WasmInstruction instr = null;\n try {\n ClassFile classFile = classFileLoader.get( className );\n sourceFile = classFile.getSourceFile();\n MethodInfo method = classFile.getMethod( name.methodName, name.signature );\n method = options.functions.replace( name, method );\n\n Code code = method.getCode();\n javaCodeBuilder.buildCode( code, method );\n\n boolean patched = false;\n List<WasmInstruction> instructions = new ArrayList<>( javaCodeBuilder.getInstructions() );\n for( int i = 0; i < instructions.size(); i++ ) {\n instr = instructions.get( i );\n switch( instr.getType() ) {\n case Global:\n WasmGlobalInstruction global = (WasmGlobalInstruction)instr;\n String fieldClassName = global.getFieldName().className;\n if( className.equals( fieldClassName ) ) {\n continue; // field in own class\n }\n for( Iterator<FunctionName> it = clinits.iterator(); it.hasNext(); ) {\n FunctionName clinit = it.next();\n if( fieldClassName.equals( clinit.className ) ) {\n instructions.add( new WasmCallInstruction( clinit, instr.getCodePosition(), instr.getLineNumber(), options.types, false ) );\n i++;\n patched = true;\n it.remove();\n scanAndPatchIfNeeded( clinit );\n }\n }\n break;\n case Call:\n //TODO\n }\n }\n\n if( patched ) {\n options.functions.markAsNeededAndReplaceIfExists( new SyntheticFunctionName( className, name.methodName, name.signature ) {\n @Override\n protected boolean hasWasmCode() {\n return true;\n }\n\n protected WasmCodeBuilder getCodeBuilder( WatParser watParser ) {\n WasmCodeBuilder codebuilder = watParser;\n watParser.reset( null, null, null );\n codebuilder.getInstructions().addAll( instructions );\n return watParser;\n }\n } );\n }\n } catch( IOException ex ) {\n throw WasmException.create( ex, sourceFile, className, name.methodName, instr == null ? -1 : instr.getLineNumber() );\n }\n\n }", "public void test02() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"code\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step12\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "interface C23413e {\n /* renamed from: a */\n void mo60902a(AvatarImageWithVerify avatarImageWithVerify);\n\n /* renamed from: a */\n boolean mo60903a(AvatarImageWithVerify avatarImageWithVerify, UserVerify userVerify);\n\n /* renamed from: b */\n void mo60904b(AvatarImageWithVerify avatarImageWithVerify);\n }", "public interface C2541a {\n /* renamed from: O */\n boolean mo6498O(C41531v c41531v);\n\n /* renamed from: P */\n boolean mo6499P(C41531v c41531v);\n\n /* renamed from: a */\n void mo6500a(int i, int i2, Object obj, boolean z);\n\n /* renamed from: a */\n void mo6501a(C41531v c41531v, View view, Object obj, int i);\n\n /* renamed from: a */\n boolean mo6502a(C41531v c41531v, Object obj);\n\n /* renamed from: b */\n View mo6503b(RecyclerView recyclerView, C41531v c41531v);\n\n /* renamed from: by */\n void mo6504by(Object obj);\n\n /* renamed from: cu */\n void mo6505cu(View view);\n}", "default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }", "protected JBuilderRenameClassRefactoring()\n\t{\n\t\tsuper();\n\t}", "interface C15937b {\n /* renamed from: a */\n void mo13368a();\n\n /* renamed from: a */\n void mo13369a(int i, int i2, int i3, boolean z);\n\n /* renamed from: a */\n void mo13370a(int i, int i2, List<C15929a> list) throws IOException;\n\n /* renamed from: a */\n void mo13371a(int i, long j);\n\n /* renamed from: a */\n void mo13372a(int i, ErrorCode errorCode);\n\n /* renamed from: a */\n void mo13373a(int i, ErrorCode errorCode, ByteString byteString);\n\n /* renamed from: a */\n void mo13374a(boolean z, int i, int i2);\n\n /* renamed from: a */\n void mo13375a(boolean z, int i, int i2, List<C15929a> list);\n\n /* renamed from: a */\n void mo13376a(boolean z, int i, BufferedSource bufferedSource, int i2) throws IOException;\n\n /* renamed from: a */\n void mo13377a(boolean z, C15943j c15943j);\n }", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void testMethodInfo885() throws Exception {\n\t\tClassInfo var2769 = instantiateClassInfo424();\n\t\tLocalVariableInfo var2770 = instantiateLocalVariableInfo423();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2772 = new MethodInfo(var2769, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.getSetters();\n\t\tvar2772.isSetter();\n\t\tvar2772.isSetter();\n\t}", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "public RefactoringTask() {\n\t\tlauncher = new Launcher();\n\t\tinputSources = new ArrayList<String>();\n\t\tprocessors = new ArrayList<String>();\n\t\ttemplates = new ArrayList<SpoonResource>();\n\t\trefactoringsApplied = new HashMap<String, Integer>();\n\t\toutputSource = \"\";\n\t\tisProcessed = false;\n\t\tisModelBuilt = false;\n\t}", "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 void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void test01() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"simple\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step11\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "public void test08() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"childObject\");\r\n rfr.setNewName(\"myChild\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step16\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\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 void compileMutants() {\n\tif (classOp != null && classOp.length > 0) {\n\t Debug.println(\"* Compiling class mutants into bytecode\");\n\t MutationSystem.MUTANT_PATH = MutationSystem.CLASS_MUTANT_PATH;\n\t super.compileMutants();\n\t}\n }", "private UnifiedAst precompile(PrecompilationContext precompilationContext)\n\t\t\tthrows UnableToCompleteException {\n\t\ttry {\n\t\t\t// (0) Assert preconditions\n\t\t\tif (precompilationContext.getEntryPoints().length\n\t\t\t\t\t+ precompilationContext\n\t\t\t\t\t\t\t.getAdditionalRootTypes().length == 0) {\n\t\t\t\tthrow new IllegalArgumentException(\"entry point(s) required\");\n\t\t\t}\n\t\t\tboolean singlePermutation = precompilationContext\n\t\t\t\t\t.getPermutations().length == 1;\n\t\t\tPrecompilationMetricsArtifact precompilationMetrics = precompilationContext\n\t\t\t\t\t.getPrecompilationMetricsArtifact();\n\t\t\t/*\n\t\t\t * Do not introduce any new pass here unless it is logically a part\n\t\t\t * of one of the 6 defined stages and is physically located in that\n\t\t\t * stage.\n\t\t\t */\n\t\t\t// (1) Initialize local state\n\t\t\tjprogram = new JProgram(compilerContext.getMinimalRebuildCache());\n\t\t\t// Synchronize JTypeOracle with compile optimization behavior.\n\t\t\tjprogram.typeOracle.setOptimize(options\n\t\t\t\t\t.getOptimizationLevel() > OptionOptimize.OPTIMIZE_LEVEL_DRAFT);\n\t\t\tjsProgram = new JsProgram();\n\t\t\t// (2) Construct and unify the unresolved Java AST\n\t\t\tCompilationState compilationState = constructJavaAst(\n\t\t\t\t\tprecompilationContext);\n\t\t\t// TODO(stalcup): hide metrics gathering in a callback or subclass\n\t\t\tJsniRestrictionChecker.exec(logger, jprogram);\n\t\t\tJsInteropRestrictionChecker.exec(logger, jprogram,\n\t\t\t\t\tgetMinimalRebuildCache());\n\t\t\tlogTypeOracleMetrics(precompilationMetrics, compilationState);\n\t\t\tMemory.maybeDumpMemory(\"AstOnly\");\n\t\t\tAstDumper.maybeDumpAST(jprogram);\n\t\t\t// TODO(stalcup): is in wrong place, move to optimization stage\n\t\t\tConfigurationProperties configurationProperties = new ConfigurationProperties(\n\t\t\t\t\tmodule);\n\t\t\tEnumNameObfuscator.exec(jprogram, logger, configurationProperties,\n\t\t\t\t\toptions);\n\t\t\t// (3) Normalize the unresolved Java AST\n\t\t\t// Replace default methods by static implementations.\n\t\t\tDevirtualizeDefaultMethodForwarding.exec(jprogram);\n\t\t\t// Replace calls to native overrides of object methods.\n\t\t\tReplaceCallsToNativeJavaLangObjectOverrides.exec(jprogram);\n\t\t\tFixAssignmentsToUnboxOrCast.exec(jprogram);\n\t\t\tif (options.isEnableAssertions()) {\n\t\t\t\tAssertionNormalizer.exec(jprogram);\n\t\t\t} else {\n\t\t\t\tAssertionRemover.exec(jprogram);\n\t\t\t}\n\t\t\tif (module != null && options.isRunAsyncEnabled()) {\n\t\t\t\tReplaceRunAsyncs.exec(logger, jprogram);\n\t\t\t\tConfigurationProperties config = new ConfigurationProperties(\n\t\t\t\t\t\tmodule);\n\t\t\t\tCodeSplitters.pickInitialLoadSequence(logger, jprogram, config);\n\t\t\t}\n\t\t\tImplementClassLiteralsAsFields.exec(jprogram, shouldOptimize());\n\t\t\t// TODO(stalcup): hide metrics gathering in a callback or subclass\n\t\t\tlogAstTypeMetrics(precompilationMetrics);\n\t\t\t// (4) Construct and return a value.\n\t\t\tEvent createUnifiedAstEvent = SpeedTracerLogger\n\t\t\t\t\t.start(CompilerEventType.CREATE_UNIFIED_AST);\n\t\t\tUnifiedAst result = new UnifiedAst(options,\n\t\t\t\t\tnew AST(jprogram, jsProgram), singlePermutation,\n\t\t\t\t\tRecordRebinds.exec(jprogram));\n\t\t\tcreateUnifiedAstEvent.end();\n\t\t\treturn result;\n\t\t} catch (Throwable e) {\n\t\t\tthrow CompilationProblemReporter.logAndTranslateException(logger,\n\t\t\t\t\te);\n\t\t}\n\t}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\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 }", "private void mergeAst(JsonObject targetCompUnit, JsonObject generatedCompUnit) {\n generatedCompUnit.getAsJsonArray(\"topLevelNodes\").forEach(item -> {\n JsonObject topLevelNode = item.getAsJsonObject();\n if (topLevelNode.get(\"kind\").getAsString().equals(\"Import\")) {\n if (!hasImport(targetCompUnit, topLevelNode)) {\n int startPosition = FormattingSourceGen.getStartPosition(targetCompUnit, \"imports\", -1);\n FormattingSourceGen.reconcileWS(topLevelNode,\n targetCompUnit.getAsJsonArray(\"topLevelNodes\"), targetCompUnit, startPosition);\n targetCompUnit.getAsJsonArray(\"topLevelNodes\").add(topLevelNode);\n }\n }\n\n if (topLevelNode.get(\"kind\").getAsString().equals(\"Service\")) {\n for (JsonElement astNode : targetCompUnit.getAsJsonArray(\"topLevelNodes\")) {\n JsonObject targetNode = astNode.getAsJsonObject();\n if (targetNode.get(\"kind\").getAsString().equals(\"Service\")) {\n if (targetNode.get(\"name\").getAsJsonObject().get(\"value\")\n .equals(topLevelNode.get(\"name\").getAsJsonObject().get(\"value\"))) {\n mergeServices(targetNode, topLevelNode, targetCompUnit);\n }\n }\n }\n }\n });\n }", "@Test\n public void t2() {\n List<StableCommit> stableCommitList = getStableCommits().stream().filter(commit ->\n commit.getFilePath().equals(\"src/java/org/apache/commons/lang/builder/HashCodeBuilder.java\") && commit.getLevel() == 1).collect(Collectors.toList());\n // it has been through 9 different refactorings\n List<RefactoringCommit> refactoringCommitList = getRefactoringCommits().stream().filter(commit ->\n commit.getFilePath().equals(\"src/java/org/apache/commons/lang/builder/HashCodeBuilder.java\")).collect(Collectors.toList());\n\n Assert.assertEquals(4, stableCommitList.size());\n Assert.assertEquals(8, refactoringCommitList.size());\n\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", stableCommitList.get(0).getCommit());\n\n // then, it was refactored two times (in commit 5c40090fecdacd9366bba7e3e29d94f213cf2633)\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", refactoringCommitList.get(0).getCommit());\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", refactoringCommitList.get(1).getCommit());\n\n // It appears 3 times\n Assert.assertEquals(\"379d1bcac32d75e6c7f32661b2203f930f9989df\", stableCommitList.get(1).getCommit());\n Assert.assertEquals(\"d3c425d6f1281d9387f5b80836ce855bc168453d\", stableCommitList.get(2).getCommit());\n Assert.assertEquals(\"3ed99652c84339375f1e6b99bd9c7f71d565e023\", stableCommitList.get(3).getCommit());\n }", "public void testMoveCuWithReplace() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n buf = new StringBuffer();\n buf.append(\"package org.test1;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu2 = otherFragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu2);\n IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(new IResource[0], new IJavaElement[] { cu1 });\n assertTrue(policy.canEnable());\n JavaMoveProcessor javaMoveProcessor = new JavaMoveProcessor(policy);\n javaMoveProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaMoveProcessor.setReorgQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new MoveRefactoring(javaMoveProcessor), false);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(2, validatedEditPaths.size());\n // moved and changed\n assertTrue(validatedEditPaths.contains(cu1.getPath()));\n // replaced\n assertTrue(validatedEditPaths.contains(cu2.getPath()));\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "interface C1069a {\n /* renamed from: a */\n C1000w mo7300a(int i);\n\n /* renamed from: a */\n void mo7301a(int i, int i2);\n\n /* renamed from: a */\n void mo7302a(int i, int i2, Object obj);\n\n /* renamed from: a */\n void mo7303a(C1070b bVar);\n\n /* renamed from: b */\n void mo7304b(int i, int i2);\n\n /* renamed from: b */\n void mo7305b(C1070b bVar);\n\n /* renamed from: c */\n void mo7306c(int i, int i2);\n\n /* renamed from: d */\n void mo7308d(int i, int i2);\n }", "public void test03() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"height\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step13\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}", "public interface C4740t {\n /* renamed from: a */\n void mo25261a(Context context);\n\n /* renamed from: a */\n boolean mo25262a(int i);\n\n /* renamed from: a */\n boolean mo25263a(String str, String str2, boolean z, int i, int i2, int i3, boolean z2, C4619b bVar, boolean z3);\n\n /* renamed from: b */\n byte mo25264b(int i);\n\n /* renamed from: c */\n boolean mo25265c();\n\n /* renamed from: c */\n boolean mo25266c(int i);\n}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public interface C1115k {\n /* renamed from: a */\n int mo5866a(State state, String... strArr);\n\n /* renamed from: a */\n int mo5867a(String str, long j);\n\n /* renamed from: a */\n List<C1111j> mo5868a();\n\n /* renamed from: a */\n List<C1111j> mo5869a(int i);\n\n /* renamed from: a */\n void mo5870a(C1111j jVar);\n\n /* renamed from: a */\n void mo5871a(String str);\n\n /* renamed from: a */\n void mo5872a(String str, Data data);\n\n /* renamed from: b */\n List<C1111j> mo5873b();\n\n /* renamed from: b */\n List<C1113b> mo5874b(String str);\n\n /* renamed from: b */\n void mo5875b(String str, long j);\n\n /* renamed from: c */\n List<String> mo5876c();\n\n /* renamed from: c */\n List<String> mo5877c(String str);\n\n /* renamed from: d */\n int mo5878d();\n\n /* renamed from: d */\n C1114c mo5879d(String str);\n\n /* renamed from: e */\n State mo5880e(String str);\n\n /* renamed from: f */\n C1111j mo5881f(String str);\n\n /* renamed from: g */\n int mo5882g(String str);\n\n /* renamed from: h */\n List<C1114c> mo5883h(String str);\n\n /* renamed from: i */\n List<Data> mo5884i(String str);\n\n /* renamed from: j */\n int mo5885j(String str);\n\n /* renamed from: k */\n List<C1114c> mo5886k(String str);\n}", "private byte[] mergeClasses(byte[] baseClass, byte[] classToMerge) throws IOException {\n\t\tClassNode baseClassNode = BytecodeUtils.getClassNode(baseClass);\n\t\tClassNode classToMergeClassNode = BytecodeUtils.getClassNode(classToMerge);\n\n\t\t// identify methods to merge\n\t\tMergeMethodsIdentifier mergeMethodsIdentifier = new MergeMethodsIdentifier(classToMergeClassNode);\n\t\tLinkedList<MethodNode> methodsToMerge = mergeMethodsIdentifier.getMergeMethods();\n\t\t\n\t\t// get a list of base methods conflicting with methods to merge\n\t\tBaseMethodsIdentifier baseMethodsIdentifier = new BaseMethodsIdentifier(baseClassNode);\n\t\tLinkedList<MethodNode> baseMethods = baseMethodsIdentifier.getBaseMethods();\n\t\t\n\t\t// create a list of methods to rename\n\t\tLinkedList<MethodNode> methodsToRename = new LinkedList<MethodNode>();\n\t\tfor(MethodNode methodToMerge : methodsToMerge){\n\t\t\tfor(MethodNode baseMethod : baseMethods){\n\t\t\t\tif(methodToMerge.name.equals(baseMethod.name)){\n\t\t\t\t\tmethodsToRename.add(baseMethod);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// rename conflicting base methods\n\t\tLinkedList<String> renamedMethods = new LinkedList<String>();\n\t\tfor(MethodNode methodToRename : methodsToRename){\n\t\t\t// first remove any annotations from renamed base methods\n\t\t\t// TODO: consider adding base method annotations to the method to merge (ex: @Deprecated??)\n\t\t\t// to maintain the cover of the original method annotations\n\t\t\tAnnotationUtils.clearMethodAnnotations(methodToRename);\n\t\t\t\n\t\t\t// rename the method\n\t\t\trenamedMethods.add(methodToRename.name); // save the original name\n\t\t\tString renamedMethodName = mergeRenamePrefix + methodToRename.name;\n\t\t\tmethodToRename.name = renamedMethodName;\n\t\t\t\n\t\t\t// make the method private to hide it from the end user\n\t\t\tmethodToRename.access = Opcodes.ACC_PRIVATE;\n\t\t}\n\n\t\t// write out the modified base class to a temporary class file\n\t\tbyte[] modifiedBaseClass = BytecodeUtils.writeClass(baseClassNode);\n\n\t\t// adapt a ClassWriter with the MergeAdapter\n\t\tClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);\n\t\tMergeAdapter mergeAdapter = new MergeAdapter(classWriter, classToMergeClassNode, mergeRenamePrefix, renamedMethods);\n\n\t\t// merge the classes\n\t\t// modifiedBaseClass, classToMerge -> MergeAdapter -> ClassWriter\n\t\tClassReader modifiedBaseClassReader = new ClassReader(modifiedBaseClass);\n\t\tmodifiedBaseClassReader.accept(mergeAdapter, ClassReader.EXPAND_FRAMES);\n\n\t\treturn classWriter.toByteArray();\n\t}", "public interface C20779a {\n /* renamed from: a */\n C15430g mo56154a();\n\n /* renamed from: a */\n void mo56155a(float f);\n\n /* renamed from: a */\n void mo56156a(int i, int i2);\n\n /* renamed from: b */\n float mo56157b();\n\n /* renamed from: b */\n boolean mo56158b(int i, int i2);\n\n /* renamed from: c */\n int[] mo56159c();\n\n /* renamed from: d */\n int[] mo56160d();\n\n /* renamed from: e */\n void mo56161e();\n\n /* renamed from: f */\n ReactionWindowInfo mo56162f();\n\n /* renamed from: g */\n void mo56163g();\n}", "protected void onCompileInternal() {\r\n\t}", "public interface IRefactoringProcessorIds {\n\n /**\n\t * Processor ID of the rename Java project processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameJavaProjectProcessor\"</code>).\n\t *\n\t * The rename Java project processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IJavaProject</code>.</li>\n\t * <li>participants registered for renaming <code>IProject</code>.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_JAVA_PROJECT_PROCESSOR = \"org.eclipse.jdt.ui.renameJavaProjectProcessor\";\n\n /**\n\t * Processor ID of the rename source folder\n\t * (value <code>\"org.eclipse.jdt.ui.renameSourceFolderProcessor\"</code>).\n\t *\n\t * The rename package fragment root processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IPackageFragmentRoot</code>.</li>\n\t * <li>participants registered for renaming <code>IFolder</code>.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_SOURCE_FOLDER_PROCESSOR = \"org.eclipse.jdt.ui.renameSourceFolderProcessor\";\n\n /**\n\t * Processor ID of the rename package fragment processor\n\t * (value <code>\"org.eclipse.jdt.ui.renamePackageProcessor\"</code>).\n\t *\n\t * The rename package fragment processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IPackageFragment</code>.</li>\n\t * <li>participants registered for moving <code>IFile</code> to participate in the\n\t * file moves caused by the package fragment rename.</li>\n\t * <li>participants registered for creating <code>IFolder</code> if the package\n\t * rename results in creating a new destination folder.</li>\n\t * <li>participants registered for deleting <code>IFolder</code> if the package\n\t * rename results in deleting the folder corresponding to the package\n\t * fragment to be renamed.</li>\n\t * </ul>\n\t *\n\t * <p>Since 3.3:</p>\n\t *\n\t * <p>The refactoring processor moves and renames Java elements and resources.\n\t * Rename package fragment participants can retrieve the new location of\n\t * Java elements and resources through the interfaces\n\t * {@link IJavaElementMapper} and {@link IResourceMapper}, which can be\n\t * retrieved from the processor using the getAdapter() method.</p>\n\t */\n //$NON-NLS-1$\n public static String RENAME_PACKAGE_FRAGMENT_PROCESSOR = \"org.eclipse.jdt.ui.renamePackageProcessor\";\n\n /**\n\t * Processor ID of the rename compilation unit processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameCompilationUnitProcessor\"</code>).\n\t *\n\t * The rename compilation unit processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>ICompilationUnit</code>.</li>\n\t * <li>participants registered for renaming <code>IFile</code>.</li>\n\t * <li>participants registered for renaming <code>IType</code> if the\n\t * compilation unit contains a top level type.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_COMPILATION_UNIT_PROCESSOR = \"org.eclipse.jdt.ui.renameCompilationUnitProcessor\";\n\n /**\n\t * Processor ID of the rename type processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameTypeProcessor\"</code>).\n\t *\n\t * The rename type processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IType</code>.</li>\n\t * <li>participants registered for renaming <code>ICompilationUnit</code> if the\n\t * type is a public top level type.</li>\n\t * <li>participants registered for renaming <code>IFile</code> if the compilation\n\t * unit gets rename as well.</li>\n\t * </ul>\n\t *\n\t * <p>Since 3.2:</p>\n\t *\n\t * <p>Participants that declare <pre> &lt;param name=\"handlesSimilarDeclarations\" value=\"false\"/&gt; </pre>\n\t * in their extension contribution will not be loaded if the user selects the\n\t * \"update similar declarations\" feature.</p>\n\t *\n\t * <p>Rename type participants can retrieve information about similar declarations by casting the\n\t * RenameArguments to RenameTypeArguments. The new signatures of similar declarations\n\t * (and of other Java elements or resources) are available\n\t * through the interfaces {@link IJavaElementMapper} and {@link IResourceMapper}, which can be retrieved from the\n\t * processor using the getAdapter() method.</p>\n\t *\n\t */\n //$NON-NLS-1$\n public static String RENAME_TYPE_PROCESSOR = \"org.eclipse.jdt.ui.renameTypeProcessor\";\n\n /**\n\t * Processor ID of the rename method processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameMethodProcessor\"</code>).\n\t *\n\t * The rename method processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IMethod</code>. Renaming\n\t * virtual methods will rename methods with the same name in the type\n\t * hierarchy of the type declaring the method to be renamed as well.\n\t * For those derived methods participants will be loaded as well.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_METHOD_PROCESSOR = \"org.eclipse.jdt.ui.renameMethodProcessor\";\n\n /**\n\t * Processor ID of the rename field processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameFieldProcessor\"</code>).\n\t *\n\t * The rename filed processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IField</code>.</li>\n\t * <li>participants registered for renaming <code>IMethod</code> if\n\t * corresponding setter and getter methods are renamed as well.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_FIELD_PROCESSOR = \"org.eclipse.jdt.ui.renameFieldProcessor\";\n\n /**\n\t * Processor ID of the rename enum constant processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameEnumConstProcessor\"</code>).\n\t *\n\t * The rename filed processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IField</code>.</li>\n\t * </ul>\n\t * @since 3.1\n\t */\n //$NON-NLS-1$\n public static String RENAME_ENUM_CONSTANT_PROCESSOR = \"org.eclipse.jdt.ui.renameEnumConstProcessor\";\n\n /**\n\t * Processor ID of the rename resource processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameResourceProcessor\"</code>).\n\t *\n\t * The rename resource processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IResource</code>.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_RESOURCE_PROCESSOR = \"org.eclipse.jdt.ui.renameResourceProcessor\";\n\n /**\n\t * Processor ID of the move resource processor\n\t * (value <code>\"org.eclipse.jdt.ui.MoveProcessor\"</code>).\n\t *\n\t * The move processor loads the following participants, depending on the type of\n\t * element that gets moved:\n\t * <ul>\n\t * <li><code>IPackageFragmentRoot</code>: participants registered for moving\n\t * package fragment roots together with participants moving a <code>IFolder\n\t * </code>.</li>\n\t * <li><code>IPackageFragment</code>: participants registered for moving\n\t * package fragments. Additionally move file, create folder and delete\n\t * folder participants are loaded to reflect the resource changes\n\t * caused by a moving a package fragment.</li>\n\t * <li><code>ICompilationUnit</code>: participants registered for moving\n\t * compilation units and <code>IFile</code>. If the compilation unit\n\t * contains top level types, participants for these types are loaded\n\t * as well.</li>\n\t * <li><code>IResource</code>: participants registered for moving resources.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String MOVE_PROCESSOR = \"org.eclipse.jdt.ui.MoveProcessor\";\n\n /**\n\t * Processor ID of the move static member processor\n\t * (value <code>\"org.eclipse.jdt.ui.MoveStaticMemberProcessor\"</code>).\n\t *\n\t * The move static members processor loads participants registered for the\n\t * static Java element that gets moved. No support is available to participate\n\t * in non static member moves.\n\t */\n //$NON-NLS-1$\n public static String MOVE_STATIC_MEMBERS_PROCESSOR = \"org.eclipse.jdt.ui.MoveStaticMemberProcessor\";\n\n /**\n\t * Processor ID of the delete resource processor\n\t * (value <code>\"org.eclipse.jdt.ui.DeleteProcessor\"</code>).\n\t *\n\t * The delete processor loads the following participants, depending on the type of\n\t * element that gets deleted:\n\t * <ul>\n\t * <li><code>IJavaProject</code>: participants registered for deleting <code>IJavaProject\n\t * </code> and <code>IProject</code></li>.\n\t * <li><code>IPackageFragmentRoot</code>: participants registered for deleting\n\t * <code>IPackageFragmentRoot</code> and <code>IFolder</code>.\n\t * <li><code>IPackageFragment</code>: participants registered for deleting\n\t * <code>IPackageFragment</code>. Additionally delete file and delete folder\n\t * participants are loaded to reflect the resource changes caused by\n\t * deleting a package fragment.</li>\n\t * <li><code>ICompilationUnit</code>: participants registered for deleting compilation\n\t * units and files. Additionally type delete participants are loaded to reflect the\n\t * deletion of the top level types declared in the compilation unit.</li>\n\t * <li><code>IType</code>: participants registered for deleting types. Additional\n\t * compilation unit and file delete participants are loaded if the type to be deleted\n\t * is the only top level type of a compilation unit.</li>\n\t * <li><code>IMember</code>: participants registered for deleting members.</li>\n\t * <li><code>IResource</code>: participants registered for deleting resources.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String DELETE_PROCESSOR = \"org.eclipse.jdt.ui.DeleteProcessor\";\n\n /**\n\t * Processor ID of the copy processor (value <code>\"org.eclipse.jdt.ui.CopyProcessor\"</code>).\n\t *\n\t * The copy processor is used when copying elements via drag and drop or when pasting\n\t * elements from the clipboard. The copy processor loads the following participants,\n\t * depending on the type of the element that gets copied:\n\t * <ul>\n\t * <li><code>IJavaProject</code>: no participants are loaded.</li>\n\t * <li><code>IPackageFragmentRoot</code>: participants registered for copying\n\t * <code>IPackageFragmentRoot</code> and <code>ResourceMapping</code>.</li>\n\t * <li><code>IPackageFragment</code>: participants registered for copying\n\t * <code>IPackageFragment</code> and <code>ResourceMapping</code>.</li>\n\t * <li><code>ICompilationUnit</code>: participants registered for copying\n\t * <code>ICompilationUnit</code> and <code>ResourceMapping</code>.</li>\n\t * <li><code>IType</code>: like ICompilationUnit if the primary top level type is copied.\n\t * Otherwise no participants are loaded.</li>\n\t * <li><code>IMember</code>: no participants are loaded.</li>\n\t * <li><code>IFolder</code>: participants registered for copying folders.</li>\n\t * <li><code>IFile</code>: participants registered for copying files.</li>\n\t * </ul>\n\t * <p>\n\t * Use the method {@link ResourceMapping#accept(ResourceMappingContext context, IResourceVisitor visitor, IProgressMonitor monitor)}\n\t * to enumerate the resources which form the Java element. <code>ResourceMappingContext.LOCAL_CONTEXT</code>\n\t * should be use as the <code>ResourceMappingContext</code> passed to the accept method.\n\t * </p>\n\t * @see org.eclipse.core.resources.mapping.ResourceMapping\n\t * @since 3.3\n\t */\n //$NON-NLS-1$\n public static String COPY_PROCESSOR = \"org.eclipse.jdt.ui.CopyProcessor\";\n}", "@Override\n protected Comparator<? super UsagesInFile> getRefactoringIterationComparator() {\n return new Comparator<UsagesInFile>() {\n @Override\n public int compare(UsagesInFile o1, UsagesInFile o2) {\n int result = comparePaths(o1.getFile(), o2.getFile());\n if (result != 0) {\n return result;\n }\n int imports1 = countImports(o1.getUsages());\n int imports2 = countImports(o2.getUsages());\n return imports1 > imports2 ? -1 : imports1 == imports2 ? 0 : 1;\n }\n\n private int comparePaths(PsiFile o1, PsiFile o2) {\n String path1 = o1.getVirtualFile().getCanonicalPath();\n String path2 = o2.getVirtualFile().getCanonicalPath();\n return path1 == null && path2 == null ? 0 : path1 == null ? -1 : path2 == null ? 1 : path1.compareTo(path2);\n }\n\n private int countImports(Collection<UsageInfo> usages) {\n int result = 0;\n for (UsageInfo usage : usages) {\n if (FlexMigrationUtil.isImport(usage)) {\n ++result;\n }\n }\n return result;\n }\n };\n }", "private void runRefactoring() {\r\n Refactoring refactoring = createRefactoring();\r\n\r\n // Update the code\r\n try {\r\n refactoring.run();\r\n } catch (RefactoringException re) {\r\n JOptionPane.showMessageDialog(null, re.getMessage(), \"Refactoring Exception\",\r\n JOptionPane.ERROR_MESSAGE);\r\n } catch (Throwable thrown) {\r\n ExceptionPrinter.print(thrown, true);\r\n }\r\n\r\n followup(refactoring);\r\n }", "private void scan() {\n if (classRefs != null)\n return;\n // Store ids rather than names to avoid multiple name building.\n Set classIDs = new HashSet();\n Set methodIDs = new HashSet();\n\n codePaths = 1; // there has to be at least one...\n\n offset = 0;\n int max = codeBytes.length;\n\twhile (offset < max) {\n\t int bcode = at(0);\n\t if (bcode == bc_wide) {\n\t\tbcode = at(1);\n\t\tint arg = shortAt(2);\n\t\tswitch (bcode) {\n\t\t case bc_aload: case bc_astore:\n\t\t case bc_fload: case bc_fstore:\n\t\t case bc_iload: case bc_istore:\n\t\t case bc_lload: case bc_lstore:\n\t\t case bc_dload: case bc_dstore:\n\t\t case bc_ret:\n\t\t\toffset += 4;\n\t\t\tbreak;\n\n\t\t case bc_iinc:\n\t\t\toffset += 6;\n\t\t\tbreak;\n\t\t default:\n\t\t\toffset++;\n\t\t\tbreak;\n\t\t}\n\t } else {\n\t\tswitch (bcode) {\n // These bcodes have CONSTANT_Class arguments\n case bc_instanceof: \n case bc_checkcast: case bc_new:\n {\n\t\t\tint index = shortAt(1);\n classIDs.add(new Integer(index));\n\t\t\toffset += 3;\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_putstatic: case bc_getstatic:\n case bc_putfield: case bc_getfield: {\n\t\t\tint index = shortAt(1);\n CPFieldInfo fi = (CPFieldInfo)cpool.get(index);\n classIDs.add(new Integer(fi.getClassID()));\n\t\t\toffset += 3;\n\t\t\tbreak;\n }\n\n // These bcodes have CONSTANT_MethodRef_info arguments\n\t\t case bc_invokevirtual: case bc_invokespecial:\n case bc_invokestatic:\n methodIDs.add(new Integer(shortAt(1)));\n messageSends++;\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n\t\t case bc_jsr_w:\n\t\t case bc_invokeinterface:\n methodIDs.add(new Integer(shortAt(1)));\n messageSends++;\n\t\t\toffset += 5;\n\t\t\tbreak;\n\n // Branch instructions\n\t\t case bc_ifeq: case bc_ifge: case bc_ifgt:\n\t\t case bc_ifle: case bc_iflt: case bc_ifne:\n\t\t case bc_if_icmpeq: case bc_if_icmpne: case bc_if_icmpge:\n\t\t case bc_if_icmpgt: case bc_if_icmple: case bc_if_icmplt:\n\t\t case bc_if_acmpeq: case bc_if_acmpne:\n\t\t case bc_ifnull: case bc_ifnonnull:\n\t\t case bc_jsr:\n codePaths++;\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n case bc_lcmp: case bc_fcmpl: case bc_fcmpg:\n case bc_dcmpl: case bc_dcmpg:\n codePaths++;\n\t\t\toffset++;\n break;\n\n\t\t case bc_tableswitch:{\n\t\t\tint tbl = (offset+1+3) & (~3);\t// four byte boundry\n\t\t\tlong low = intAt(tbl, 1);\n\t\t\tlong high = intAt(tbl, 2);\n\t\t\ttbl += 3 << 2; \t\t\t// three int header\n\n // Find number of unique table addresses.\n // The default path is skipped so we find the\n // number of alternative paths here.\n Set set = new HashSet();\n int length = (int)(high - low + 1);\n for (int i = 0; i < length; i++) {\n int jumpAddr = (int)intAt (tbl, i) + offset;\n set.add(new Integer(jumpAddr));\n }\n codePaths += set.size();\n\n\t\t\toffset = tbl + (int)((high - low + 1) << 2);\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_lookupswitch:{\n\t\t\tint tbl = (offset+1+3) & (~3);\t// four byte boundry\n\t\t\tint npairs = (int)intAt(tbl, 1);\n\t\t\tint nints = npairs * 2;\n\t\t\ttbl += 2 << 2; \t\t\t// two int header\n\n // Find number of unique table addresses\n Set set = new HashSet();\n for (int i = 0; i < nints; i += 2) {\n // use the address half of each pair\n int jumpAddr = (int)intAt (tbl, i + 1) + offset;\n set.add(new Integer(jumpAddr));\n }\n codePaths += set.size();\n \n\t\t\toffset = tbl + (nints << 2);\n\t\t\tbreak;\n\t\t }\n\n // Ignore other bcodes.\n\t\t case bc_anewarray: \n offset += 3;\n break;\n\n\t\t case bc_multianewarray: {\n\t\t\toffset += 4;\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_aload: case bc_astore:\n\t\t case bc_fload: case bc_fstore:\n\t\t case bc_iload: case bc_istore:\n\t\t case bc_lload: case bc_lstore:\n\t\t case bc_dload: case bc_dstore:\n\t\t case bc_ret: case bc_newarray:\n\t\t case bc_bipush: case bc_ldc:\n\t\t\toffset += 2;\n\t\t\tbreak;\n\t\t \n\t\t case bc_iinc: case bc_sipush:\n\t\t case bc_ldc_w: case bc_ldc2_w:\n\t\t case bc_goto:\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n\t\t case bc_goto_w:\n\t\t\toffset += 5;\n\t\t\tbreak;\n\n\t\t default:\n\t\t\toffset++;\n\t\t\tbreak;\n\t\t}\n\t }\n\t}\n classRefs = expandClassNames(classIDs);\n methodRefs = expandMethodNames(methodIDs);\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}", "@Override\r\n public void refactor(AnActionEvent e)\r\n {\r\n PsiElementFactory factory = PsiElementFactory.getInstance(project);\r\n\r\n String[] splited = targetMethodCallExp.getText().replace(\"()\", \"\").split(\"\\\\.\");\r\n String replaced = splited[0] + \".\" + splited[2] + \"()\";\r\n String type = targetMethodCallExp.getType().getPresentableText();\r\n PsiExpression exp = factory.createExpressionFromText(replaced, null);\r\n\r\n String Method = \"public \" + type + \" \" + splited[2] + \"() {\\n\" +\r\n reference + \".\" + splited[2] + \"();\\n\" +\r\n \"}\";\r\n\r\n PsiMethod method = factory.createMethodFromText(Method, null);\r\n PsiClass cls = isReturnTypeExistedAsClass(targetType, targetClass);\r\n\r\n WriteCommandAction.runWriteCommandAction(project, () -> {\r\n targetMethodCallExp.replace(exp);\r\n cls.addBefore(method, cls.getLastChild());\r\n });\r\n }", "@Override\n public Comparator<Object> thenComparing(final Comparator<?> p0) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // at com.strobel.assembler.metadata.WildcardType.containsGenericParameters(WildcardType.java:55)\n // at com.strobel.assembler.metadata.TypeReference.containsGenericParameters(TypeReference.java:48)\n // at com.strobel.assembler.metadata.MethodReference.containsGenericParameters(MethodReference.java:79)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2497)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1656)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformCall(AstMethodBodyBuilder.java:1162)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:1009)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:554)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformNode(AstMethodBodyBuilder.java:392)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformBlock(AstMethodBodyBuilder.java:333)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:294)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at us.deathmarine.luyten.FileSaver.doSaveJarDecompiled(FileSaver.java:192)\n // at us.deathmarine.luyten.FileSaver.access$300(FileSaver.java:45)\n // at us.deathmarine.luyten.FileSaver$4.run(FileSaver.java:112)\n // at java.lang.Thread.run(Unknown Source)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public interface C2950c {\n /* renamed from: a */\n int mo9690a(int i, int i2);\n\n /* renamed from: a */\n int mo9691a(String str, String str2, float f);\n\n /* renamed from: a */\n int mo9692a(String[] strArr, int i);\n\n /* renamed from: a */\n void mo9693a();\n\n /* renamed from: a */\n void mo9694a(float f, float f2);\n\n /* renamed from: a */\n void mo9695a(float f, float f2, float f3, float f4, float f5);\n\n /* renamed from: a */\n void mo9696a(float f, float f2, int i);\n\n /* renamed from: a */\n void mo9697a(String str);\n\n /* renamed from: a */\n void mo9698a(String str, float f);\n\n /* renamed from: a */\n void mo9699a(String str, String str2, boolean z);\n\n /* renamed from: a */\n void mo9700a(String str, boolean z);\n\n /* renamed from: a */\n void mo9701a(boolean z);\n\n /* renamed from: b */\n int mo9702b(String str, String str2, float f);\n\n /* renamed from: b */\n void mo9703b(float f, float f2);\n\n /* renamed from: b */\n void mo9704b(float f, float f2, int i);\n\n /* renamed from: c */\n void mo9705c(float f, float f2);\n}", "private FilterByAllCompiler() {\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}", "interface C3069a {\n @C0193h0\n /* renamed from: a */\n Bitmap mo12204a(int i, int i2, Config config);\n\n /* renamed from: a */\n void mo12205a(Bitmap bitmap);\n\n /* renamed from: a */\n void mo12206a(byte[] bArr);\n\n /* renamed from: a */\n void mo12207a(int[] iArr);\n\n /* renamed from: a */\n int[] mo12208a(int i);\n\n /* renamed from: b */\n byte[] mo12209b(int i);\n }", "private void renameColumns()\r\n {\r\n \tfor (int i=0;i<this.tempTableAColumnsShortName.size();i++)\r\n \t{\r\n \t\tthis.requete.append(\"\\n ALTER TABLE \"+this.tempTableA+\" RENAME \"+this.tempTableAColumnsShortName.get(i)+\" TO \"+this.tempTableAColumnsLongName.get(i)+\";\");\r\n \t}\r\n \t\r\n \tfor (int i=0;i<this.allCols.size();i++)\r\n \t{\r\n \t\tthis.requete.append(\"\\n ALTER TABLE \"+this.tempTableA+\" RENAME i\"+i+\" TO i_\" + this.allCols.get(i)+\";\");\r\n \t\tif (colData.get(this.allCols.get(i))!=null)\r\n \t\t{\r\n \t\t\tthis.requete.append(\"\\n ALTER TABLE \"+this.tempTableA+\" RENAME v\"+i+\" TO v_\" + this.allCols.get(i)+\";\");\r\n \t\t}\r\n \t}\r\n \t\t\r\n }", "public interface C1656t {\n /* renamed from: a */\n void mo7350a();\n\n /* renamed from: a */\n void mo7351a(C1655s sVar);\n\n /* renamed from: a */\n void mo7352a(C1655s sVar, AdError adError);\n\n /* renamed from: b */\n void mo7353b();\n\n /* renamed from: b */\n void mo7354b(C1655s sVar);\n\n /* renamed from: c */\n void mo7355c(C1655s sVar);\n\n /* renamed from: d */\n void mo7356d(C1655s sVar);\n\n /* renamed from: e */\n void mo7357e(C1655s sVar);\n\n /* renamed from: f */\n void mo7358f(C1655s sVar);\n}", "protected void compileInternal() {\r\n\r\n\t\ttableMetaDataContext.processMetaData(getJdbcTemplate().getDataSource());\r\n\t\treconcileUpdatingColumns();\r\n\r\n\t\tupdateString = createUpdateString();\r\n\r\n\t\tList<String> columns = new ArrayList<String>();\r\n\t\tcolumns.addAll(reconciledUpdatingColumns);\r\n\t\tcolumns.addAll(restrictingColumns.keySet());\r\n\r\n\t\tcolumnTypes = tableMetaDataContext.createColumnTypes(columns);\r\n\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tlogger.debug(\"Compiled JdbcUpdate. Update string is [\" + getUpdateString() + \"]\");\r\n\t\t}\r\n\r\n\t\tonCompileInternal();\r\n\t}", "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 C20288m {\n /* renamed from: a */\n int mo54403a(String str, String str2);\n\n /* renamed from: a */\n List<DownloadInfo> mo54404a(String str);\n\n /* renamed from: a */\n void mo54405a();\n\n /* renamed from: a */\n void mo54406a(int i);\n\n /* renamed from: a */\n void mo54407a(int i, int i2);\n\n /* renamed from: a */\n void mo54408a(int i, int i2, int i3, int i4);\n\n /* renamed from: a */\n void mo54409a(int i, int i2, int i3, long j);\n\n /* renamed from: a */\n void mo54410a(int i, int i2, long j);\n\n /* renamed from: a */\n void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);\n\n /* renamed from: a */\n void mo54412a(int i, Notification notification);\n\n /* renamed from: a */\n void mo54413a(int i, C20254v vVar);\n\n /* renamed from: a */\n void mo54414a(int i, List<DownloadChunk> list);\n\n /* renamed from: a */\n void mo54415a(int i, boolean z);\n\n /* renamed from: a */\n void mo54416a(C20211ac acVar);\n\n /* renamed from: a */\n void mo54417a(DownloadChunk downloadChunk);\n\n /* renamed from: a */\n void mo54418a(DownloadTask downloadTask);\n\n /* renamed from: a */\n void mo54419a(List<String> list);\n\n /* renamed from: a */\n void mo54420a(boolean z, boolean z2);\n\n /* renamed from: a */\n boolean mo54421a(DownloadInfo downloadInfo);\n\n /* renamed from: b */\n DownloadInfo mo54422b(String str, String str2);\n\n /* renamed from: b */\n List<DownloadInfo> mo54423b(String str);\n\n /* renamed from: b */\n void mo54424b(int i);\n\n /* renamed from: b */\n void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);\n\n /* renamed from: b */\n void mo54426b(int i, List<DownloadChunk> list);\n\n /* renamed from: b */\n void mo54427b(DownloadInfo downloadInfo);\n\n /* renamed from: b */\n void mo54428b(DownloadTask downloadTask);\n\n /* renamed from: b */\n boolean mo54429b();\n\n /* renamed from: c */\n List<DownloadInfo> mo54430c(String str);\n\n /* renamed from: c */\n boolean mo54431c();\n\n /* renamed from: c */\n boolean mo54432c(int i);\n\n /* renamed from: c */\n boolean mo54433c(DownloadInfo downloadInfo);\n\n /* renamed from: d */\n List<DownloadInfo> mo54434d(String str);\n\n /* renamed from: d */\n void mo54435d();\n\n /* renamed from: d */\n void mo54436d(int i);\n\n /* renamed from: e */\n void mo54437e(int i);\n\n /* renamed from: e */\n boolean mo54438e();\n\n /* renamed from: f */\n long mo54439f(int i);\n\n /* renamed from: f */\n void mo54440f();\n\n /* renamed from: g */\n int mo54441g(int i);\n\n /* renamed from: g */\n boolean mo54442g();\n\n /* renamed from: h */\n boolean mo54443h(int i);\n\n /* renamed from: i */\n DownloadInfo mo54444i(int i);\n\n /* renamed from: j */\n List<DownloadChunk> mo54445j(int i);\n\n /* renamed from: k */\n void mo54446k(int i);\n\n /* renamed from: l */\n void mo54447l(int i);\n\n /* renamed from: m */\n void mo54448m(int i);\n\n /* renamed from: n */\n boolean mo54449n(int i);\n\n /* renamed from: o */\n int mo54450o(int i);\n\n /* renamed from: p */\n boolean mo54451p(int i);\n\n /* renamed from: q */\n void mo54452q(int i);\n\n /* renamed from: r */\n boolean mo54453r(int i);\n\n /* renamed from: s */\n C20254v mo54454s(int i);\n\n /* renamed from: t */\n C20259y mo54455t(int i);\n\n /* renamed from: u */\n C20241o mo54456u(int i);\n}", "public interface C5951a {\n /* renamed from: e */\n void mo12651e(String str, String str2, Object... objArr);\n\n /* renamed from: i */\n void mo12652i(String str, String str2, Object... objArr);\n\n void printErrStackTrace(String str, Throwable th, String str2, Object... objArr);\n\n /* renamed from: w */\n void mo12654w(String str, String str2, Object... objArr);\n }", "public List method_2245(int param1, int param2, int param3, int param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\n\tpublic boolean applyRefactoring() {\n\t\tUseCase baseUseCaseA = null;\n\t\tUseCase baseUseCaseB = null;\n\t\tUseCase parentUC = null;\n\t\tif (!this.isThisParent(this.alignment.getFlowA()) && !isThisParent(this.alignment.getFlowB())){\n\t\t\tbaseUseCaseA = this.alignment.getUseCaseA();\n\t\t\tbaseUseCaseB = this.alignment.getUseCaseB();\n\t\t\t// Create Use Case\n\t\t\tparentUC = UCRefactoringFactory.eINSTANCE.createUseCase();\n\t\t\t\n\t\t\tint cancel = UCRUseCasesView.newUseCaseDialog();\n\t\t\t\n\t\t\tif (cancel == 0){\n\t\t\t\n\t\t\t\tparentUC.setName(UCRUseCasesView.UCRDialog.getUseCaseName());\n\t\t\t\tparentUC.setDescription(UCRUseCasesView.UCRDialog.getUseCaseDescription());\n\t\t\t\tparentUC.setPrimaryActor(null); \n\t\t\t\tif(baseUseCaseA.getPrimaryActor().getName().equals(baseUseCaseB.getPrimaryActor().getName())){\n\t\t\t\t\tparentUC.setPrimaryActor(baseUseCaseA.getPrimaryActor());\n\t\t\t\t\tbaseUseCaseA.setPrimaryActor(null);\n\t\t\t\t\tbaseUseCaseB.setPrimaryActor(null);\n\t\t\t\t}\n\t\t\t\tFlow basicFlow = UCRefactoringFactory.eINSTANCE.createFlow();\n\t\t\t\tbasicFlow.setName(\"Basic Flow\");\n\t\t\t\tInteger order = 1;\n\t\t\t\tBoolean lastParticular = false;\n\t\t\t\tList<Event> allDuplicated = new ArrayList<Event>();\n\t\t\t\tfor (SimilarBlock sb :this.alignment.getSimilarBlocksFromA()){\n\t\t\t\t\tallDuplicated.addAll(sb.getSimilarEvents());\n\t\t\t\t}\n\t\t\t\tfor (Event actualEv : baseUseCaseA.getBasicFlow().getEvents()){\n\t\t\t\t\tif(allDuplicated.contains(actualEv)){\n\t\t\t\t\t\tEvent newE = actualEv.cloneEvent();\n\t\t\t\t\t\tInteger oldId = actualEv.getNumber();\n\t\t\t\t\t\tnewE.setEventId(actualEv.getEventId().replaceFirst(actualEv.getNumber().toString(), order.toString()));\n\t\t\t\t\t\tnewE.setNumber(order);\n\t\t\t\t\t\tbasicFlow.getEvents().add(newE);\n\t\t\t\t\t\torder++;\n\t\t\t\t\t\tlastParticular = false;\n\t\t\t\t\t\t// Set to the parent the altenative flows in the common funtionality\n\t\t\t\t\t\tfor (Flow aFlow : baseUseCaseA.getFlows()){\n\t\t\t\t\t\t\tif (aFlow.getName().contains(oldId.toString())){\n\t\t\t\t\t\t\t\tFlow newFlow = UCRefactoringFactory.eINSTANCE.createFlow();\n\t\t\t\t\t\t\t\tnewFlow.setParentFlow(aFlow.getParentFlow());\n\t\t\t\t\t\t\t\tnewFlow.setName(aFlow.getName().replaceFirst(oldId.toString(), newE.getNumber().toString()));\n\t\t\t\t\t\t\t\tnewFlow.setUseCase(aFlow.getUseCase());\n\t\t\t\t\t\t\t\tnewFlow.setReturnEvent(aFlow.getReturnEvent());\n\t\t\t\t\t\t\t\tnewFlow.getEvents().addAll(aFlow.getEvents());\n\t\t\t\t\t\t\t\tparentUC.getFlows().add(newFlow);\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 if (!lastParticular){\n\t\t\t\t\t\tInclusionCall newE = UCRefactoringFactory.eINSTANCE.createInclusionCall();\n\t\t\t\t\t\tnewE.setEventId(order + \".\");\n\t\t\t\t\t\tnewE.setNumber(order);\n\t\t\t\t\t\tnewE.setDetail(\"<<delegate>> Particular implementation\");\n\t\t\t\t\t\tbasicFlow.getEvents().add(newE);\n\t\t\t\t\t\torder++;\n\t\t\t\t\t\tlastParticular = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbasicFlow.setUseCase(parentUC);\n\t\t\t\tparentUC.getFlows().add(basicFlow);\n\t\t\t\t// Add new uc to the model\n\t\t\t\tUCRUseCasesView.ucref.getUseCaseModel().getUseCases().add(parentUC);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif (isThisParent(this.alignment.getFlowA())){\n\t\t\t\tbaseUseCaseB = this.alignment.getUseCaseB();\n\t\t\t\tparentUC = this.alignment.getUseCaseA();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbaseUseCaseA =this.alignment.getUseCaseA();\n\t\t\t\tparentUC = this.alignment.getUseCaseB();\n\t\t\t}\n\t\t}\n\t\tif(baseUseCaseA != null){\n\t\t\tthis.editBaseFlow(this.alignment.getSimilarBlocksFromA(), parentUC);\n\t\t}\n\t\tif(baseUseCaseB != null){\n\t\t\tthis.editBaseFlow(this.alignment.getSimilarBlocksFromB(), parentUC);\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n\tpublic void transform(CtExecutable method) {\n reset();\r\n \r\n // Get setup for renaming\r\n setDefs(getChildrenOfType(method, CtLocalVariable.class));\r\n setSubtokens(topTargetSubtokens);\r\n \r\n // Select some percentage of things to rename\r\n takePercentage(RENAME_PERCENT);\r\n\r\n // Build new names and apply them\r\n applyRenaming(method, false, generateRenaming(\r\n method, SHUFFLE_MODE, NAME_MIN_LENGTH, NAME_MAX_LENGTH\r\n ));\r\n\t}", "public static boolean refactorValid(@NotNull PsiClass _targetClass) {\r\n targetMethodCallExp = null;\r\n targetRefactorClass = null;\r\n targetClass = null;\r\n targetType = null;\r\n\r\n // PsiAssignmentExpression case\r\n List<PsiAssignmentExpression> aexpList = FindPsi.findPsiAssignmentExpressions(_targetClass);\r\n for (PsiAssignmentExpression aexp: aexpList) {\r\n List<PsiMethodCallExpression> mcexpList = FindPsi.findChildPsiMethodCallExpressions(aexp);\r\n if (mcexpList.size() != 1) continue;\r\n\r\n PsiMethodCallExpression mcexp = mcexpList.get(0);\r\n // Check the MethodCallExp is suitable for refactoring\r\n if (isDoubleMethodCallExp(mcexp, _targetClass)) return true;\r\n }\r\n\r\n // PsiDeclarationStatement case\r\n List<PsiDeclarationStatement> dstmList = FindPsi.findPsiDeclarationStatements(_targetClass);\r\n for (PsiDeclarationStatement dstm : dstmList) {\r\n List<PsiLocalVariable> lvList = FindPsi.findChildPsiLocalVariables(dstm);\r\n if (lvList.size() != 1) continue;\r\n\r\n PsiLocalVariable lvar = lvList.get(0);\r\n List<PsiMethodCallExpression> mcexpList = FindPsi.findChildPsiMethodCallExpressions(lvar);\r\n if (mcexpList.size() != 1) continue;\r\n\r\n PsiMethodCallExpression mcexp = mcexpList.get(0);\r\n // Check the MethodCallExp is suitable for refactoring\r\n if (isDoubleMethodCallExp(mcexp, _targetClass)) return true;\r\n }\r\n\r\n // PsiField case\r\n List<PsiField> fList = FindPsi.findPsiFields(_targetClass);\r\n for (PsiField f : fList) {\r\n List<PsiMethodCallExpression> mcexpList = FindPsi.findChildPsiMethodCallExpressions(f);\r\n if (mcexpList.size() != 1) continue;\r\n\r\n PsiMethodCallExpression mcexp = mcexpList.get(0);\r\n // Check the MethodCallExp is suitable for refactoring\r\n if (isDoubleMethodCallExp(mcexp, _targetClass)) return true;\r\n }\r\n\r\n return false;\r\n }", "@Override\r\n\tpublic int check(List<SourceCodeChange> changes,\r\n\t\t\tPreperator prefixed_preperator, Preperator postfixed_preperator) {\n\t\tthis.application_counter = 0;\r\n\t\t\r\n\t\t// First extract all nodes where such a reorder might occur\r\n\t\t// which are: \r\n\t\t// * switch-case\r\n\t\t// * if-then-else\r\n\t\t// Therefore, extract all these node with help of an ASTVisitor\r\n\t\tHashSet<MethodDeclaration> prefixMethodsToCheck \t= new HashSet<MethodDeclaration>();\r\n\t\tHashSet<MethodDeclaration> postfixMethodsToCheck \t= new HashSet<MethodDeclaration>();\r\n\t\tfor(SourceCodeChange change: changes) {\t\t\t\r\n\t\t\tif(change instanceof Insert){\r\n\t\t\t\t// extract all positions\r\n\t\t\t\tint[] pos_array = SourceCodeChangeUtils.getNodeFinderInput((Insert) change);\r\n\t\t\t\t// extract all newly changed methods\r\n\t\t\t\tNodeFinder nodefinder = new NodeFinder(postfixed_preperator.getAST(), pos_array[0], pos_array[1]);\r\n\t\t\t\tASTNode expr = nodefinder.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration = JDT_Utils.searchForSpecificParentNode(expr, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration != null) {\r\n\t\t\t\t\tpostfixMethodsToCheck.add((MethodDeclaration) found_method_declaration);\r\n\t\t\t\t}\r\n\t\t\t} \t\r\n\t\t\telse if(change instanceof Delete){\r\n\t\t\t\t// extract all positions\r\n\t\t\t\tint[] pos_array = SourceCodeChangeUtils.getNodeFinderInput((Delete) change);\r\n\t\t\t\t// extract all changed methods\r\n\t\t\t\tNodeFinder nodefinder = new NodeFinder(prefixed_preperator.getAST(), pos_array[0], pos_array[1]);\r\n\t\t\t\tASTNode expr = nodefinder.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration = JDT_Utils.searchForSpecificParentNode(expr, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration != null) {\r\n\t\t\t\t\tprefixMethodsToCheck.add((MethodDeclaration) found_method_declaration);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(change instanceof Move){\r\n\t\t\t\t// extract all positions\r\n\t\t\t\tint[] pos_array = SourceCodeChangeUtils.getNodeFinderInput((Move) change);\r\n\t\t\t\t// extract changed methods\r\n\t\t\t\tNodeFinder nodefinder = new NodeFinder(prefixed_preperator.getAST(), pos_array[0], pos_array[1]);\r\n\t\t\t\tASTNode expr = nodefinder.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration = JDT_Utils.searchForSpecificParentNode(expr, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration != null) {\r\n\t\t\t\t\tprefixMethodsToCheck.add((MethodDeclaration) found_method_declaration);\r\n\t\t\t\t}\r\n\t\t\t\t// extract new methods\r\n\t\t\t\tNodeFinder nodefinder2 = new NodeFinder(postfixed_preperator.getAST(), pos_array[2], pos_array[3]);\r\n\t\t\t\tASTNode expr2 = nodefinder2.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration2 = JDT_Utils.searchForSpecificParentNode(expr2, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration2 != null) {\r\n\t\t\t\t\tpostfixMethodsToCheck.add((MethodDeclaration) found_method_declaration2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(change instanceof Update){\r\n\t\t\t\t// extract all positions\r\n\t\t\t\tint[] pos_array = SourceCodeChangeUtils.getNodeFinderInput((Update) change);\r\n\t\t\t\t// extract changed methods\r\n\t\t\t\tNodeFinder nodefinder = new NodeFinder(prefixed_preperator.getAST(), pos_array[0], pos_array[1]);\r\n\t\t\t\tASTNode expr = nodefinder.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration = JDT_Utils.searchForSpecificParentNode(expr, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration != null) {\r\n\t\t\t\t\tprefixMethodsToCheck.add((MethodDeclaration) found_method_declaration);\r\n\t\t\t\t}\r\n\t\t\t\t// extract new methods\r\n\t\t\t\tNodeFinder nodefinder2 = new NodeFinder(postfixed_preperator.getAST(), pos_array[2], pos_array[3]);\r\n\t\t\t\tASTNode expr2 = nodefinder2.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration2 = JDT_Utils.searchForSpecificParentNode(expr2, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration2 != null) {\r\n\t\t\t\t\tpostfixMethodsToCheck.add((MethodDeclaration) found_method_declaration2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// so now we have all methods which are changed\r\n\t\t// try to match pairs of methods\r\n\t\tASTMatcher defaultMatcher = new ASTMatcher();\r\n\t\tfor(MethodDeclaration prefix: prefixMethodsToCheck) {\r\n\t\t\tfor(MethodDeclaration postfix: postfixMethodsToCheck) {\r\n\t\t\t\t// check for the same header properties\r\n\t\t\t\tboolean sameName = prefix.getName().subtreeMatch(defaultMatcher, postfix.getName());\r\n\t\t\t\tboolean sameParametersSize = (prefix.parameters().size() == postfix.parameters().size()); \r\n\t\t\t\tboolean sameParameters = defaultMatcher.safeSubtreeListMatch(prefix.parameters(), postfix.parameters());\r\n\t\t\t\tboolean sameThrowExceptions = defaultMatcher.safeSubtreeListMatch(prefix.thrownExceptions(), postfix.thrownExceptions());\r\n\t\t\t\tboolean sameTypeParameters = defaultMatcher.safeSubtreeListMatch(prefix.typeParameters(), postfix.typeParameters());\r\n\t\t\t\tboolean sameModifiers = defaultMatcher.safeSubtreeListMatch(prefix.modifiers(), postfix.modifiers());\r\n\t\t\t\tboolean sameReturnType = ((prefix.getReturnType2() == null) && (postfix.getReturnType2() == null)) || prefix.getReturnType2().subtreeMatch(defaultMatcher, postfix.getReturnType2());\r\n\t\t\t\t\r\n\t\t\t\t// if all of these conditions are valid,\r\n\t\t\t\t// * traverse in parallel over both methods\r\n\t\t\t\t// * at some special nodes, check for exchanged stuff\r\n\t\t\t\tif(sameName && sameParametersSize && sameParameters && sameThrowExceptions && sameTypeParameters && sameModifiers && sameReturnType) {\r\n\t\t\t\t\tthis.check(prefix, postfix);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "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 void test642_smartLifting1() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl1Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl1_1 t = new Team642sl1_1();\\n\" +\n\t\t\t \" T642sl1_2 o = new T642sl1_3();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl1_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl1_4 extends Team642sl1_3 {\\n\" +\n\t\t\t \" public class Role642sl1_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_4.this.toString() + \\\".Role642sl1_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl1_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl1_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl1_2 extends Team642sl1_1 {\\n\" +\n\t\t\t \" public class Role642sl1_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_2.this.toString() + \\\".Role642sl1_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl1_4 extends Role642sl1_3 playedBy T642sl1_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_2.this.toString() + \\\".Role642sl1_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl1_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1_5 extends T642sl1_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl1_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl1_3 extends Team642sl1_2 {\\n\" +\n\t\t\t \" public class Role642sl1_5 extends Role642sl1_3 playedBy T642sl1_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_3.this.toString() + \\\".Role642sl1_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl1_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1_6 extends T642sl1_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl1_2 extends T642sl1_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1_3 extends T642sl1_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl1_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl1_1 {\\n\" +\n\t\t\t \" public class Role642sl1_1 extends T642sl1_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_1.this.toString() + \\\".Role642sl1_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl1_2 extends Role642sl1_1 playedBy T642sl1_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_1.this.toString() + \\\".Role642sl1_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl1_3 extends Role642sl1_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_1.this.toString() + \\\".Role642sl1_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl1_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl1_2 as Role642sl1_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1_4 extends T642sl1_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl1_1.Role642sl1_3\");\n }", "public void test642_smartLifting2() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl2Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl2_1 t = new Team642sl2_2();\\n\" +\n\t\t\t \" T642sl2_2 o = new T642sl2_3();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_4 extends Team642sl2_3 {\\n\" +\n\t\t\t \" public class Role642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_4.this.toString() + \\\".Role642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_1 {\\n\" +\n\t\t\t \" public class Role642sl2_1 extends T642sl2_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl2_2 extends Role642sl2_1 playedBy T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl2_3 extends Role642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl2_2 as Role642sl2_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_4 extends T642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_2 extends Team642sl2_1 {\\n\" +\n\t\t\t \" public class Role642sl2_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_2.this.toString() + \\\".Role642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl2_4 extends Role642sl2_3 playedBy T642sl2_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_2.this.toString() + \\\".Role642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_5 extends T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_3 extends Team642sl2_2 {\\n\" +\n\t\t\t \" public class Role642sl2_5 extends Role642sl2_3 playedBy T642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_3.this.toString() + \\\".Role642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_6 extends T642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl2_2 extends T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_3 extends T642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl2_2.Role642sl2_4\");\n }", "public void test07() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"\", \"XDateChooser\");\r\n rfr.setField(\"_maxDate\");\r\n rfr.setNewName(\"_maximumDate\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step15\");\r\n\r\n FileCompare.assertEquals(\"XDateChooser is incorrect\",\r\n new File(check, \"XDateChooser.java\"),\r\n new File(root + \"\\\\XDateChooser.java\"));\r\n }", "@Test\n public void t1() {\n // manually verified\n RefactoringCommit instance1 = getRefactoringCommits().stream().filter(commit ->\n commit.getCommit().equals(\"5e7d64d6b2719afb1e5f4785d80d24ac5a19a782\") &&\n commit.getRefactoring().equals(\"Extract Method\") &&\n commit.getMethodMetrics().getFullMethodName().equals(\"isSameDay/2[Date,Date]\")\n ).collect(Collectors.toList()).get(0);\n\n Assert.assertNotNull(instance1);\n\n Assert.assertEquals(\"isSameDay/2[Date,Date]\", instance1.getMethodMetrics().getFullMethodName());\n Assert.assertEquals(2, instance1.getMethodMetrics().getMethodVariablesQty());\n Assert.assertEquals(1, instance1.getMethodMetrics().getMethodMaxNestedBlocks());\n Assert.assertEquals(1, instance1.getMethodMetrics().getMethodReturnQty());\n Assert.assertEquals(0, instance1.getMethodMetrics().getMethodTryCatchQty());\n }", "private void resolve(String[] sourceCompilationUnits, String[] encodings, String[] bindingKeys, FileASTRequestor astRequestor, int apiLevel, Map compilerOptions, int flags) {\n astRequestor.compilationUnitResolver = this;\n this.bindingTables = new DefaultBindingResolver.BindingTables();\n CompilationUnitDeclaration unit = null;\n try {\n int length = sourceCompilationUnits.length;\n org.eclipse.jdt.internal.compiler.env.ICompilationUnit[] sourceUnits = new org.eclipse.jdt.internal.compiler.env.ICompilationUnit[length];\n int count = 0;\n for (int i = 0; i < length; i++) {\n char[] contents = null;\n String encoding = encodings != null ? encodings[i] : null;\n String sourceUnitPath = sourceCompilationUnits[i];\n try {\n contents = Util.getFileCharContent(new File(sourceUnitPath), encoding);\n } catch (IOException e) {\n continue;\n }\n if (contents == null) {\n // go to the next unit\n continue;\n }\n sourceUnits[count++] = new org.eclipse.jdt.internal.compiler.batch.CompilationUnit(contents, sourceUnitPath, encoding);\n }\n beginToCompile(sourceUnits, bindingKeys);\n // process all units (some more could be injected in the loop by the lookup environment)\n for (int i = 0; i < this.totalUnits; i++) {\n if (resolvedRequestedSourcesAndKeys(i)) {\n // cleanup remaining units\n for (; i < this.totalUnits; i++) {\n this.unitsToProcess[i].cleanUp();\n this.unitsToProcess[i] = null;\n }\n break;\n }\n unit = this.unitsToProcess[i];\n try {\n // this.process(...) is optimized to not process already known units\n super.process(unit, i);\n // requested AST\n char[] fileName = unit.compilationResult.getFileName();\n org.eclipse.jdt.internal.compiler.env.ICompilationUnit source = (org.eclipse.jdt.internal.compiler.env.ICompilationUnit) this.requestedSources.get(fileName);\n if (source != null) {\n // convert AST\n CompilationResult compilationResult = unit.compilationResult;\n org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit = compilationResult.compilationUnit;\n char[] contents = sourceUnit.getContents();\n AST ast = AST.newAST(apiLevel);\n ast.setFlag(flags | AST.RESOLVED_BINDINGS);\n ast.setDefaultNodeFlag(ASTNode.ORIGINAL);\n ASTConverter converter = new ASTConverter(/*need to resolve bindings*/\n compilerOptions, true, this.monitor);\n BindingResolver resolver = new DefaultBindingResolver(unit.scope, null, this.bindingTables, (flags & ICompilationUnit.ENABLE_BINDINGS_RECOVERY) != 0, this.fromJavaProject);\n ast.setBindingResolver(resolver);\n converter.setAST(ast);\n CompilationUnit compilationUnit = converter.convert(unit, contents);\n compilationUnit.setTypeRoot(null);\n compilationUnit.setLineEndTable(compilationResult.getLineSeparatorPositions());\n ast.setDefaultNodeFlag(0);\n ast.setOriginalModificationCount(ast.modificationCount());\n // pass it to requestor\n astRequestor.acceptAST(new String(source.getFileName()), compilationUnit);\n worked(1);\n // remove at the end so that we don't resolve twice if a source and a key for the same file name have been requested\n // mark it as removed\n this.requestedSources.put(// mark it as removed\n fileName, // mark it as removed\n null);\n }\n // requested binding\n Object key = this.requestedKeys.get(fileName);\n if (key != null) {\n if (key instanceof BindingKeyResolver) {\n reportBinding(key, astRequestor, unit);\n worked(1);\n } else if (key instanceof ArrayList) {\n Iterator iterator = ((ArrayList) key).iterator();\n while (iterator.hasNext()) {\n reportBinding(iterator.next(), astRequestor, unit);\n worked(1);\n }\n }\n // remove at the end so that we don't resolve twice if a source and a key for the same file name have been requested\n // mark it as removed\n this.requestedKeys.put(// mark it as removed\n fileName, // mark it as removed\n null);\n }\n } finally {\n // cleanup compilation unit result\n unit.cleanUp();\n }\n // release reference to processed unit declaration\n this.unitsToProcess[i] = null;\n this.requestor.acceptResult(unit.compilationResult.tagAsAccepted());\n }\n // remaining binding keys\n DefaultBindingResolver resolver = new DefaultBindingResolver(this.lookupEnvironment, null, this.bindingTables, (flags & ICompilationUnit.ENABLE_BINDINGS_RECOVERY) != 0, true);\n Object[] keys = this.requestedKeys.valueTable;\n for (int j = 0, keysLength = keys.length; j < keysLength; j++) {\n BindingKeyResolver keyResolver = (BindingKeyResolver) keys[j];\n if (keyResolver == null)\n continue;\n Binding compilerBinding = keyResolver.getCompilerBinding();\n IBinding binding = compilerBinding == null ? null : resolver.getBinding(compilerBinding);\n // pass it to requestor\n astRequestor.acceptBinding(((BindingKeyResolver) this.requestedKeys.valueTable[j]).getKey(), binding);\n worked(1);\n }\n } catch (OperationCanceledException e) {\n throw e;\n } catch (AbortCompilation e) {\n this.handleInternalException(e, unit);\n } catch (Error e) {\n this.handleInternalException(e, unit, null);\n throw e;\n } catch (RuntimeException e) {\n this.handleInternalException(e, unit, null);\n throw e;\n } finally {\n // disconnect ourselves from ast requestor\n astRequestor.compilationUnitResolver = null;\n }\n }", "public interface C0310c {\n /* renamed from: a */\n void mo4102a(int i, int i2);\n\n /* renamed from: b */\n void mo4103b(int i, int i2);\n }", "public void testMoveCU2() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n String content = \"A file with no references\";\n file.create(getStream(content), true, null);\n setReadOnly(file);\n buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class C extends MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu2 = fragment.createCompilationUnit(\"C.java\", buf.toString(), true, null);\n setReadOnly(cu2);\n IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(new IResource[] { file }, new IJavaElement[] { cu1 });\n assertTrue(policy.canEnable());\n JavaMoveProcessor javaMoveProcessor = new JavaMoveProcessor(policy);\n javaMoveProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaMoveProcessor.setReorgQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new MoveRefactoring(javaMoveProcessor));\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(2, validatedEditPaths.size());\n // moved and changed\n assertTrue(validatedEditPaths.contains(cu1.getPath()));\n // changed\n assertTrue(validatedEditPaths.contains(cu2.getPath()));\n }", "static <T extends _type> T to(Class clazz, T _t) {\n //we need to do this b/c field declarations can be\n // @_final int x, y, z;\n // and this SINGLE FieldDeclaration represents (3) _field models\n // so, we only process the annotation once (the first one)\n Set<FieldDeclaration> fds = new HashSet<>();\n _t.toFields(_f -> {\n _field _fl = (_field)_f;\n if( _fl.node() != null\n && _fl.node().getParentNode().isPresent()\n && !fds.contains( _fl.getFieldDeclaration() ) ) {\n to(clazz, _fl );\n fds.add( _fl.getFieldDeclaration() );\n /*\n try {\n Field f = clazz.getDeclaredField(((_field) _f).getName());\n applyAllAnnotationMacros(_fl, f);\n fds.add( _fl.getFieldDeclaration() );\n } catch( NoSuchFieldException nsfe ){\n throw new _jDraftException(\"Unable to in reflective Field \"+ _fl+\" \");\n }\n */\n }\n });\n //We process CONSTRUCTORS \n if (_t instanceof _constructor._withConstructors) {\n ((_constructor._withConstructors) _t).toConstructors(_c -> to(clazz, (_constructor)_c));\n }\n //Process methods\n if (_t instanceof _method._withMethods) {\n ((_method._withMethods) _t).toMethods(_m -> {\n _method _mm = ((_method) _m);\n\n to( clazz, _mm);\n /*\n Method mm = null;\n List<Method> ms = Arrays.stream(clazz.getDeclaredMethods())\n .filter(m -> m.getName().equals(_mm.getName())).collect(Collectors.toList());\n for (int i = 0; i < ms.size(); i++) {\n if (_mm.hasParametersOfType(ms.get(i).getParameterTypes())) {\n mm = ms.get(i);\n break;\n }\n }\n if( mm == null){\n throw new _jDraftException(\"Could not find method \"+ _mm + System.lineSeparator()+\" for class \"+ clazz.getName() );\n }\n\n Parameter[] ps = mm.getParameters();\n for(int i=0;i<ps.length; i++){\n applyAllAnnotationMacros(_mm.getParameter(i), ps[i] );\n }\n //apply ANNOTATIONS to the method AFTER PARAMETERS\n applyAllAnnotationMacros(_mm, mm );\n */\n });\n }\n\n Class[] declaredClazzes = clazz.getDeclaredClasses();\n List<Class> nestedClasses = Arrays.stream(declaredClazzes).collect(Collectors.toList());\n\n //process nested classes\n _t.toInnerTypes(_nt -> {\n //System.out.println( \"IN NESTED CLASS \");\n Optional<Class> foundClass = nestedClasses.stream().filter(c -> c.getSimpleName().equals(((_type) _nt).getName())).findFirst();\n if (!foundClass.isPresent()) {\n throw new _jdraftException(\"Could not find class for nested _type\" + _nt);\n }\n to( foundClass.get(), (_type)_nt);\n });\n\n //the last thing to do is to run on the top level _type\n return applyAllAnnotationMacros(_t, clazz);\n }", "@Test(groups = {\"conciseMethods\"})\n\tpublic void testConciseMethodsNameIsNotLocalVar()\n\t{\n\t\tString[] code = {\n\t\t\t\"var obj = {\",\n\t\t \" foo(foo) {},\",\n\t\t \" bar() { var bar; }\",\n\t\t \"};\"\n\t\t};\n\t\t\n\t\tth.test(code, new LinterOptions().set(\"esnext\", true));\n\t}", "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 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 void test642_smartLifting7() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl7Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl7_1 t = new Team642sl7_3();\\n\" +\n\t\t\t \" T642sl7_2 o = new T642sl7_4();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_4 extends Team642sl7_3 {\\n\" +\n\t\t\t \" public class Role642sl7_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_4.this.toString() + \\\".Role642sl7_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_3 extends T642sl7_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_1 {\\n\" +\n\t\t\t \" public class Role642sl7_1 extends T642sl7_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_1.this.toString() + \\\".Role642sl7_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl7_2 extends Role642sl7_1 playedBy T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_1.this.toString() + \\\".Role642sl7_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl7_3 extends Role642sl7_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_1.this.toString() + \\\".Role642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl7_2 as Role642sl7_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_4 extends T642sl7_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_2 extends Team642sl7_1 {\\n\" +\n\t\t\t \" public class Role642sl7_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_2.this.toString() + \\\".Role642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl7_4 extends Role642sl7_3 playedBy T642sl7_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_2.this.toString() + \\\".Role642sl7_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_5 extends T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_3 extends Team642sl7_2 {\\n\" +\n\t\t\t \" public class Role642sl7_5 extends Role642sl7_3 playedBy T642sl7_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_3.this.toString() + \\\".Role642sl7_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_6 extends T642sl7_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl7_2 extends T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl7_3.Role642sl7_3\");\n }", "public void test642_smartLifting4() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl4Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl4_1 t = new Team642sl4_4();\\n\" +\n\t\t\t \" T642sl4_2 o = new T642sl4_3();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl4_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl4_4 extends Team642sl4_3 {\\n\" +\n\t\t\t \" public class Role642sl4_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_4.this.toString() + \\\".Role642sl4_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl4_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl4_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl4_3 extends Team642sl4_2 {\\n\" +\n\t\t\t \" public class Role642sl4_5 extends Role642sl4_3 playedBy T642sl4_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_3.this.toString() + \\\".Role642sl4_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl4_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4_6 extends T642sl4_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl4_2 extends T642sl4_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4_3 extends T642sl4_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl4_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl4_1 {\\n\" +\n\t\t\t \" public class Role642sl4_1 extends T642sl4_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_1.this.toString() + \\\".Role642sl4_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl4_2 extends Role642sl4_1 playedBy T642sl4_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_1.this.toString() + \\\".Role642sl4_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl4_3 extends Role642sl4_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_1.this.toString() + \\\".Role642sl4_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl4_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl4_2 as Role642sl4_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4_4 extends T642sl4_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl4_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl4_2 extends Team642sl4_1 {\\n\" +\n\t\t\t \" public class Role642sl4_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_2.this.toString() + \\\".Role642sl4_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl4_4 extends Role642sl4_3 playedBy T642sl4_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_2.this.toString() + \\\".Role642sl4_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl4_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4_5 extends T642sl4_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl4_4.Role642sl4_4\");\n }", "UCRefactoringFactory getUCRefactoringFactory();", "public interface CompiladorConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int si = 5;\n /** RegularExpression Id. */\n int sino = 6;\n /** RegularExpression Id. */\n int elegir = 7;\n /** RegularExpression Id. */\n int caso = 8;\n /** RegularExpression Id. */\n int salir = 9;\n /** RegularExpression Id. */\n int falta = 10;\n /** RegularExpression Id. */\n int ent = 11;\n /** RegularExpression Id. */\n int largo = 12;\n /** RegularExpression Id. */\n int flot = 13;\n /** RegularExpression Id. */\n int doble = 14;\n /** RegularExpression Id. */\n int cad = 15;\n /** RegularExpression Id. */\n int bool = 16;\n /** RegularExpression Id. */\n int print = 17;\n /** RegularExpression Id. */\n int leer = 18;\n /** RegularExpression Id. */\n int function = 19;\n /** RegularExpression Id. */\n int mientras = 20;\n /** RegularExpression Id. */\n int hasta = 21;\n /** RegularExpression Id. */\n int hacer = 22;\n /** RegularExpression Id. */\n int inicio = 23;\n /** RegularExpression Id. */\n int fin = 24;\n /** RegularExpression Id. */\n int enojo = 25;\n /** RegularExpression Id. */\n int palito = 26;\n /** RegularExpression Id. */\n int grados = 27;\n /** RegularExpression Id. */\n int admira1 = 28;\n /** RegularExpression Id. */\n int admira2 = 29;\n /** RegularExpression Id. */\n int pesos = 30;\n /** RegularExpression Id. */\n int amperson = 31;\n /** RegularExpression Id. */\n int comilla1 = 32;\n /** RegularExpression Id. */\n int abrepregunta = 33;\n /** RegularExpression Id. */\n int comilla2 = 34;\n /** RegularExpression Id. */\n int comilla3 = 35;\n /** RegularExpression Id. */\n int dospuntosarriba = 36;\n /** RegularExpression Id. */\n int culebrita = 37;\n /** RegularExpression Id. */\n int guionbajo = 38;\n /** RegularExpression Id. */\n int gato = 39;\n /** RegularExpression Id. */\n int abreparentesis = 40;\n /** RegularExpression Id. */\n int cierraparentesis = 41;\n /** RegularExpression Id. */\n int abrellave = 42;\n /** RegularExpression Id. */\n int cierrallave = 43;\n /** RegularExpression Id. */\n int abrecorchete = 44;\n /** RegularExpression Id. */\n int cierracorchete = 45;\n /** RegularExpression Id. */\n int comillas = 46;\n /** RegularExpression Id. */\n int gatito = 47;\n /** RegularExpression Id. */\n int puntocoma = 48;\n /** RegularExpression Id. */\n int punto = 49;\n /** RegularExpression Id. */\n int coma = 50;\n /** RegularExpression Id. */\n int dospuntos = 51;\n /** RegularExpression Id. */\n int suma = 52;\n /** RegularExpression Id. */\n int resta = 53;\n /** RegularExpression Id. */\n int multiplicar = 54;\n /** RegularExpression Id. */\n int dividir = 55;\n /** RegularExpression Id. */\n int modulo = 56;\n /** RegularExpression Id. */\n int potencia = 57;\n /** RegularExpression Id. */\n int y = 58;\n /** RegularExpression Id. */\n int o = 59;\n /** RegularExpression Id. */\n int menor = 60;\n /** RegularExpression Id. */\n int mayor = 61;\n /** RegularExpression Id. */\n int menorigual = 62;\n /** RegularExpression Id. */\n int mayorigual = 63;\n /** RegularExpression Id. */\n int igual = 64;\n /** RegularExpression Id. */\n int diferente = 65;\n /** RegularExpression Id. */\n int asignacion = 66;\n /** RegularExpression Id. */\n int aumento = 67;\n /** RegularExpression Id. */\n int decremento = 68;\n /** RegularExpression Id. */\n int num = 69;\n /** RegularExpression Id. */\n int flotante = 70;\n /** RegularExpression Id. */\n int booleano = 71;\n /** RegularExpression Id. */\n int nulo = 72;\n /** RegularExpression Id. */\n int unicodeMin = 73;\n /** RegularExpression Id. */\n int unicodeMay = 74;\n /** RegularExpression Id. */\n int unicodeSimb = 75;\n /** RegularExpression Id. */\n int cadena = 76;\n /** RegularExpression Id. */\n int comentario = 77;\n /** RegularExpression Id. */\n int ident = 78;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\" \\\"\",\n \"\\\"\\\\n\\\"\",\n \"<si>\",\n \"<sino>\",\n \"<elegir>\",\n \"<caso>\",\n \"<salir>\",\n \"<falta>\",\n \"<ent>\",\n \"<largo>\",\n \"<flot>\",\n \"<doble>\",\n \"<cad>\",\n \"<bool>\",\n \"<print>\",\n \"<leer>\",\n \"<function>\",\n \"<mientras>\",\n \"<hasta>\",\n \"<hacer>\",\n \"<inicio>\",\n \"<fin>\",\n \"\\\"\\\\u00ac\\\"\",\n \"\\\"|\\\"\",\n \"\\\"\\\\u00b0\\\"\",\n \"\\\"!\\\"\",\n \"\\\"\\\\u00a1\\\"\",\n \"\\\"$\\\"\",\n \"\\\"&\\\"\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"\\\\u00bf\\\"\",\n \"\\\"\\\\u00b4\\\"\",\n \"\\\"`\\\"\",\n \"\\\"\\\\u00a8\\\"\",\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 \"<num>\",\n \"<flotante>\",\n \"<booleano>\",\n \"\\\"null\\\"\",\n \"<unicodeMin>\",\n \"<unicodeMay>\",\n \"<unicodeSimb>\",\n \"<cadena>\",\n \"<comentario>\",\n \"<ident>\",\n };\n\n}", "public interface C0657b {\n /* renamed from: f */\n void mo3193f();\n\n /* renamed from: r */\n void mo3194r();\n}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public Object fix(IModule module);", "interface UpdateStages {\n /** The stage of the SourceControl update allowing to specify branch. */\n interface WithBranch {\n /**\n * Specifies the branch property: The repo branch of the source control..\n *\n * @param branch The repo branch of the source control.\n * @return the next definition stage.\n */\n Update withBranch(String branch);\n }\n /** The stage of the SourceControl update allowing to specify folderPath. */\n interface WithFolderPath {\n /**\n * Specifies the folderPath property: The folder path of the source control. Path must be relative..\n *\n * @param folderPath The folder path of the source control. Path must be relative.\n * @return the next definition stage.\n */\n Update withFolderPath(String folderPath);\n }\n /** The stage of the SourceControl update allowing to specify autoSync. */\n interface WithAutoSync {\n /**\n * Specifies the autoSync property: The auto sync of the source control. Default is false..\n *\n * @param autoSync The auto sync of the source control. Default is false.\n * @return the next definition stage.\n */\n Update withAutoSync(Boolean autoSync);\n }\n /** The stage of the SourceControl update allowing to specify publishRunbook. */\n interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n Update withPublishRunbook(Boolean publishRunbook);\n }\n /** The stage of the SourceControl update allowing to specify securityToken. */\n interface WithSecurityToken {\n /**\n * Specifies the securityToken property: The authorization token for the repo of the source control..\n *\n * @param securityToken The authorization token for the repo of the source control.\n * @return the next definition stage.\n */\n Update withSecurityToken(SourceControlSecurityTokenProperties securityToken);\n }\n /** The stage of the SourceControl update allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }\n }", "public void chequearDeclaraciones() throws Exception{\n\t\tfor (EntradaVarInst v: entradaVar.values()) {\r\n\t\t\t\t//si es de tipo idClase,\r\n\t\t\t\tif (noTipoPrimitivo(v.getTipo().getTipo())) {\r\n\t\t\t\t\t\t//ahora si veo si esa clase esta declarada\r\n\t\t\t\t\t\t// si no es asi -> error\r\n\t\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(v.getTipo().getTipo())==null)\r\n\t\t\t\t\t\t\tthrow new claseNoDeclarada(v.getTipo().getTipo(), v.getToken().getNroLinea(), v.getToken().getNroColumna());\r\n\t\t\t\t}\t\r\n\t\t}//fin for\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Chequeo cada Ctor de mi clase\r\n\t\tfor (EntradaCtor c: entradaCtor.values()) {\t\r\n\t\t\t//chequeo parametros del Ctor...\r\n\t\t\t//para cada parametro de mi metodo\r\n\t\t\tfor (EntradaPar p: c.getEntradaParametros()) {\r\n\t\t\t\t//si es de tipo idClase, chequeo que ese idClase exista\r\n\t\t\t\tif (noTipoPrimitivo(p.getTipo().getTipo())) {\r\n\t\t\t\t\t\t// si no es asi -> error\r\n\t\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(p.getTipo().getTipo())==null)\r\n\t\t\t\t\t\t\tthrow new claseNoDeclarada(p.getTipo().getTipo(), p.getToken().getNroLinea(), p.getToken().getNroColumna());\r\n\t\t\t\t}\r\n\t\t\t}//fin for\r\n\t\t}//fin for\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Chequeo metodos de mi clase:\r\n\t\t//para cada metodo de mi clase\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t\r\n\t\t\t// si no es un tipo de dato primitivo, chequeo que esa clase/tipo de dato exista\r\n\t\t\tif (noTipoPrimitivo(m.getTipoRetorno().getTipo())) {\r\n\t\t\t\t\t//si no es clase declarada -> error\r\n\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(m.getTipoRetorno().getTipo())==null)\r\n\t\t\t\t\t\tthrow new claseNoDeclarada(m.getTipoRetorno().getTipo(), m.getToken().getNroLinea(), m.getToken().getNroColumna());\t\t\r\n\t\t\t}//fin if\r\n\t\t\t\r\n\t\t\t//para cada parametro de mi metodo\r\n\t\t\tfor (EntradaPar p: m.getEntradaParametros()) {\r\n\t\t\t\t\t//si es de tipo idClase, chequeo que ese idClase exista\r\n\t\t\t\t\tif (noTipoPrimitivo(p.getTipo().getTipo())) {\r\n\t\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(p.getTipo().getTipo())==null)\r\n\t\t\t\t\t\t\tthrow new claseNoDeclarada(p.getTipo().getTipo(), p.getToken().getNroLinea(), p.getToken().getNroColumna());\t\r\n\t\t\t\t\t}\r\n\t\t\t}//fin for p\r\n\t\t\t\r\n\t\t\tif (m.getModificador().equals(\"dynamic\"))\r\n\t\t\t\tmetodosDyn.add(m);\r\n\t\t\r\n\t\t}//fin for m\r\n\t\t\r\n\t\t\r\n\t}", "public void test642_smartLifting3() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl3Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl3_1 t = new Team642sl3_3();\\n\" +\n\t\t\t \" T642sl3_2 o = new T642sl3_3();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl3_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl3_4 extends Team642sl3_3 {\\n\" +\n\t\t\t \" public class Role642sl3_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_4.this.toString() + \\\".Role642sl3_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl3_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3_3 extends T642sl3_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl3_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl3_1 {\\n\" +\n\t\t\t \" public class Role642sl3_1 extends T642sl3_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_1.this.toString() + \\\".Role642sl3_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl3_2 extends Role642sl3_1 playedBy T642sl3_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_1.this.toString() + \\\".Role642sl3_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl3_3 extends Role642sl3_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_1.this.toString() + \\\".Role642sl3_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl3_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl3_2 as Role642sl3_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3_4 extends T642sl3_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl3_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl3_2 extends Team642sl3_1 {\\n\" +\n\t\t\t \" public class Role642sl3_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_2.this.toString() + \\\".Role642sl3_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl3_4 extends Role642sl3_3 playedBy T642sl3_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_2.this.toString() + \\\".Role642sl3_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl3_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3_5 extends T642sl3_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl3_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl3_3 extends Team642sl3_2 {\\n\" +\n\t\t\t \" public class Role642sl3_5 extends Role642sl3_3 playedBy T642sl3_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_3.this.toString() + \\\".Role642sl3_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl3_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3_6 extends T642sl3_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl3_2 extends T642sl3_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl3_3.Role642sl3_4\");\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 interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public void testCopyCuWithReplace() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n buf = new StringBuffer();\n buf.append(\"package org.test1;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu2 = otherFragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu2);\n ICopyPolicy policy = ReorgPolicyFactory.createCopyPolicy(new IResource[0], new IJavaElement[] { cu1 });\n assertTrue(policy.canEnable());\n JavaCopyProcessor javaCopyProcessor = new JavaCopyProcessor(policy);\n javaCopyProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaCopyProcessor.setReorgQueries(new MockReorgQueries());\n javaCopyProcessor.setNewNameQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new CopyRefactoring(javaCopyProcessor), false);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(1, validatedEditPaths.size());\n // replaced\n assertTrue(validatedEditPaths.contains(cu2.getPath()));\n }", "protected void fixUpContainedPlans(\n LogicalOperator after,\n LogicalOperator newNode,\n LogicalOperator before,\n Map<Integer, Integer> projectionMapping) \n throws VisitorException, FrontendException {\n // Fix up COGroup internal wiring\n if (before instanceof LOCogroup) {\n LOCogroup cg = (LOCogroup) before ;\n cg.switchGroupByPlanOp(after, newNode);\n }\n if (before instanceof LOFRJoin) {\n LOFRJoin frj = (LOFRJoin) before ;\n frj.switchJoinColPlanOp(after, newNode);\n }\n\n // Visit all the inner plans of before and change their projects to\n // connect to newNode instead of after.\n // Find right inner plan(s) to visit\n List<LogicalPlan> plans = new ArrayList<LogicalPlan>();\n if (before instanceof LOCogroup) {\n plans.addAll((((LOCogroup)before).getGroupByPlans()).values());\n } else if (before instanceof LOFRJoin) {\n plans.addAll((((LOFRJoin)before).getJoinColPlans()).values());\n }\n else if (before instanceof LOSort) {\n plans.addAll(((LOSort)before).getSortColPlans());\n } else if (before instanceof LOFilter) {\n plans.add(((LOFilter)before).getComparisonPlan());\n } else if (before instanceof LOSplit) {\n // In this case we have to find each of the Split outputs, and\n // add their plans.\n List<LogicalOperator> splitOutputs = mPlan.getSuccessors(before);\n for (LogicalOperator so : splitOutputs) {\n if (!(so instanceof LOSplitOutput)) {\n String msg = \"Found an LOSplit with an operator other \" \n + \"than LOSplitOutput after it!\";\n log.error(msg);\n throw new VisitorException(msg);\n }\n plans.add(((LOSplitOutput)so).getConditionPlan());\n }\n } else if (before instanceof LOForEach) {\n plans.addAll(((LOForEach)before).getForEachPlans());\n }\n \n for (LogicalPlan lp : plans) {\n ProjectFixerUpper pfu =\n new ProjectFixerUpper(lp, after, newNode, projectionMapping);\n pfu.visit();\n }\n }", "private void prepareMethodsToInstrument(\r\n\t\t\tboolean useInlinedVersion,\r\n\t\t\tboolean useCaller, // Compressor.compress\r\n\t\t\tboolean useCallee1, // CodeTable.of\r\n\t\t\tboolean useCallee2, // CodeTable.set\r\n\t\t\tboolean useCallee3, // HashTable.clear\r\n\t\t\tboolean useCallee4, // HashTable.hsize\r\n\t\t\tboolean useCallee5, // HashTable.of_hash\r\n\t\t\tboolean useCallee6, // HashTable.set_hash\r\n\t\t\tboolean useCallee7, // Compressor.clblock\r\n\t\t\tboolean useCallee8, // Compressor.output\r\n\t\t\tboolean useCallee9, // InputBuffer.readByte\r\n\t\t\tboolean useCalleeA, // Compressor.getMaxCode\r\n\t\t\tboolean useCalleeB, // OutputBuffer.writeByte\r\n\t\t\tboolean useCalleeC, // OutputBuffer.writeBytes\r\n\t\t\tString packageName,\r\n\t\t\tList<MethodDescriptor> methodsToInstrument\r\n\t\t) {\r\n\t\tMethodDescriptor caller = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor\", //Compressor is not an inner class! thus, do not try Compress$Compressor!\r\n\t\t\t\t\"public void compress()\",\r\n\t\t\t\tMethodDescriptor.IS_VARIANT,\r\n\t\t\t\tMethodDescriptor.IS_COUNTED_SEPARATELY\r\n\t\t\t\t); \r\n\t\tcaller.setContext(new UUID(System.currentTimeMillis(),System.currentTimeMillis()));\r\n\t\t\r\n\t\tMethodDescriptor callee1 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".CodeTable\", \r\n\t\t\t\t\"public int of(int i)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcallee1.setContext(caller.getContext());\r\n\t\t\r\n\t\tMethodDescriptor callee2 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".CodeTable\", \r\n\t\t\t\t\"public void set(int i, int v)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcallee2.setContext(caller.getContext());\r\n\t\t\r\n\t\tMethodDescriptor callee3;\r\n\t\tif(useInlinedVersion){\r\n\t\t\tcallee3 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".HashTable\", \r\n\t\t\t\t\"public void clear()\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,//\"size\" always 69001... \r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}else{\r\n\t\t\tcallee3 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor$HashTable\", \r\n\t\t\t\t\"public void clear()\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,//\"size\" always 69001...\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}\r\n\t\tcallee3.setContext(caller.getContext());\r\n\r\n\t\tMethodDescriptor callee4;\r\n\t\tif(useInlinedVersion){\r\n\t\t\tcallee4 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".HashTable\", \r\n\t\t\t\t\"public int hsize()\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}else{\r\n\t\t\tcallee4 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor$HashTable\", \r\n\t\t\t\t\"public int hsize()\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}\r\n\t\tcallee4.setContext(caller.getContext());\r\n\t\t\r\n\t\tMethodDescriptor callee5;\r\n\t\tif(useInlinedVersion){\r\n\t\t\tlog.error(\"Inlined version of callee6 still with a problematic method name of\");\r\n\t\t\tcallee5 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".HashTable\", \r\n\t\t\t\t\"public int of(int i)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}else{\r\n\t\t\tcallee5 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor$HashTable\", \r\n\t\t\t\t\"public int of_hash(int i)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}\r\n\t\tcallee5.setContext(caller.getContext());\r\n\t\t\r\n\t\tMethodDescriptor callee6;\r\n\t\tif(useInlinedVersion){\r\n\t\t\tlog.error(\"Inlined version of callee6 still with a problematic method name set\");\r\n\t\t\tcallee6 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".HashTable\", \r\n\t\t\t\t\"public void set(int i, int v)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}else{\r\n\t\t\tcallee6 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor$HashTable\", \r\n\t\t\t\t\"public void set_hash(int i, int v)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\t}\r\n\t\tcallee6.setContext(caller.getContext());\r\n\t\t\r\n\t\tMethodDescriptor callee7 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor\", \r\n\t\t\t\t\"public void clBlock()\",\r\n\t\t\t\tMethodDescriptor.IS_VARIANT,\r\n\t\t\t\tMethodDescriptor.IS_COUNTED_SEPARATELY\r\n\t\t\t\t); //I had an error here\r\n\t\tcallee7.setContext(caller.getContext());\r\n\t\t\r\n\t\tSystem.err.println(\"Callee 8 (Compressor.output) not inlined - may be a scalability issue (see prepareMethodsToInstrument)\");\r\n\t\tMethodDescriptor callee8 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Compressor\", \r\n\t\t\t\t\"public void output(int code)\",\r\n\t\t\t\tMethodDescriptor.IS_VARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcallee8.setContext(caller.getContext());\r\n\t\t\r\n\t\tSystem.err.println(\"Callee 9 (InputBuffer.readByte) not inlined - may be a scalability issue (see prepareMethodsToInstrument)\");\r\n\t\tMethodDescriptor callee9 = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".InputBuffer\",\r\n\t\t\t\t\"public int readByte()\",\r\n\t\t\t\tMethodDescriptor.IS_VARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcallee9.setContext(caller.getContext());\r\n\t\t\t\t\r\n\t\t//called from Compressor.output, implemented in Compressor's superclass (CompBase)\r\n\t\t//does not call other methods\r\n\t\tlog.warn(\"For instrumenting getMaxCode: replaced Compressor with CompBase, but only in prepareMethodsToInstrument\");\r\n\t\tMethodDescriptor calleeA = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".CompBase\",\r\n\t\t\t\t\"public int getMaxCode()\",//TODO inherited but not overwritten method!!!\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcalleeA.setContext(caller.getContext());\r\n\t\t\t\t\r\n\t\t//called from Compressor.output\r\n\t\t//does not call other methods\r\n\t\tMethodDescriptor calleeB = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".OutputBuffer\",\r\n\t\t\t\t\"public void writeByte(byte c)\",\r\n\t\t\t\tMethodDescriptor.IS_INVARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcalleeB.setContext(caller.getContext());\r\n\t\t\t\t\r\n\t\t//called from Compressor.output\r\n\t\t//does not call other methods\r\n\t\tMethodDescriptor calleeC = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".OutputBuffer\",\r\n\t\t\t\t\"public void writebytes(byte[] buf, int n)\",\r\n\t\t\t\tMethodDescriptor.IS_VARIANT,\r\n\t\t\t\tMethodDescriptor.IS_IMMEDIATELY_INLINED\r\n\t\t\t\t);\r\n\t\tcalleeC.setContext(caller.getContext());\r\n\t\t\t\t\r\n\t\tif(useCaller){\r\n\t\t\tmethodsToInstrument.add(caller);\r\n\t\t}\r\n\t\tif(useCallee1){\r\n\t\t\tmethodsToInstrument.add(callee1);\r\n\t\t}\r\n\t\tif(useCallee2){\r\n\t\t\tmethodsToInstrument.add(callee2);\r\n\t\t}\r\n\t\tif(useCallee3){\r\n\t\t\tmethodsToInstrument.add(callee3);\r\n\t\t}\r\n\t\tif(useCallee4){\r\n\t\t\tmethodsToInstrument.add(callee4);\r\n\t\t}\r\n\t\tif(useCallee5){\r\n\t\t\tmethodsToInstrument.add(callee5);\r\n\t\t}\r\n\t\tif(useCallee6){\r\n\t\t\tmethodsToInstrument.add(callee6);\r\n\t\t}\r\n\t\tif(useCallee7){\r\n\t\t\tmethodsToInstrument.add(callee7);\r\n\t\t}\r\n\t\tif(useCallee8){\r\n\t\t\tmethodsToInstrument.add(callee8);\r\n\t\t}\r\n\t\tif(useCallee9){\r\n\t\t\tmethodsToInstrument.add(callee9);\r\n\t\t}\r\n\t\tif(useCalleeA){\r\n\t\t\tmethodsToInstrument.add(calleeA);\r\n\t\t}\r\n\t\tif(useCalleeB){\r\n\t\t\tmethodsToInstrument.add(calleeB);\r\n\t\t}\r\n\t\tif(useCalleeC){\r\n\t\t\tmethodsToInstrument.add(calleeC);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void reorganize() {\n\n\t}", "@Test\n public void servTypeCdEnums() {\n // these required fields must always be present for the transform to be error free\n claim.setClaimId(EXPECTED_CLAIM_ID);\n claim.setDcn(\"dcn\");\n claim.setIntermediaryNb(\"12345\");\n claim.setHicNo(\"hicn\");\n claim.setCurrStatus('T');\n claim.setCurrLoc1('M');\n claim.setCurrLoc2(\"9000\");\n claim.setLastUpdated(clock.instant());\n claimBuilder\n .setRdaClaimKey(\"claim_id\")\n .setDcn(\"dcn\")\n .setIntermediaryNb(\"12345\")\n .setHicNo(\"hicn\")\n .setCurrStatusEnum(FissClaimStatus.CLAIM_STATUS_RTP)\n .setCurrLoc1Enum(FissProcessingType.PROCESSING_TYPE_MANUAL)\n .setCurrLoc2Enum(FissCurrentLocation2.CURRENT_LOCATION_2_CABLE);\n changeBuilder\n .setSeq(MIN_SEQUENCE_NUM)\n .setChangeType(ChangeType.CHANGE_TYPE_INSERT)\n .setClaim(claimBuilder.build());\n assertChangeMatches(RdaChange.Type.INSERT);\n\n // servTypeCd specific tests begin here\n\n claim.setServTypeCd(\"2\");\n claim.setServTypeCdMapping(RdaFissClaim.ServTypeCdMapping.Normal);\n claimBuilder.setServTypeCdEnum(\n FissBillClassification.BILL_CLASSIFICATION_HOSPITAL_BASED_OR_INPATIENT_PART_B);\n changeBuilder.setClaim(claimBuilder.build());\n assertChangeMatches(RdaChange.Type.INSERT);\n\n claim.setServTypeCd(\"6\");\n claim.setServTypeCdMapping(RdaFissClaim.ServTypeCdMapping.Clinic);\n claimBuilder.setServTypeCdForClinicsEnum(\n FissBillClassificationForClinics\n .BILL_CLASSIFICATION_FOR_CLINICS_COMMUNITY_MENTAL_HEALTH_CENTER);\n changeBuilder.setClaim(claimBuilder.build());\n assertChangeMatches(RdaChange.Type.INSERT);\n\n claim.setServTypeCd(\"5\");\n claim.setServTypeCdMapping(RdaFissClaim.ServTypeCdMapping.SpecialFacility);\n claimBuilder.setServTypeCdForSpecialFacilitiesEnum(\n FissBillClassificationForSpecialFacilities\n .BILL_CLASSIFICATION_FOR_SPECIAL_FACILITIES_CRITICAL_ACCESS_HOSPITALS);\n changeBuilder.setClaim(claimBuilder.build());\n assertChangeMatches(RdaChange.Type.INSERT);\n\n claim.setServTypeCd(\"Z\");\n claim.setServTypeCdMapping(RdaFissClaim.ServTypeCdMapping.Unrecognized);\n claimBuilder.setServTypCdUnrecognized(\"Z\");\n changeBuilder.setClaim(claimBuilder.build());\n assertChangeMatches(RdaChange.Type.INSERT);\n }", "public void rearrangeContents() {\n buildMethodCallGraph();\n\n LOG.debug(\"identifying setters and extracted (related) methods\");\n for (ClassContentsEntry contentsEntry : getContents()) {\n if (contentsEntry instanceof RelatableEntry) {\n ((RelatableEntry)contentsEntry).determineSettersAndMethodCalls(mySettings, getContents());\n }\n }\n LOG.debug(\"relating extracted methods\");\n for (ClassContentsEntry contentsEntry : getContents()) {\n if (contentsEntry instanceof RelatableEntry) {\n ((RelatableEntry)contentsEntry).determineExtractedMethod(mySettings.getExtractedMethodsSettings());\n }\n }\n // Remove any cycles in the related method graph.\n MethodEntry.eliminateCycles(getContents());\n // Check for overloaded extracted methods; if configured to be kept together, attach subsequent\n // methods to the first and remove them from consideration for other alignment.\n MethodEntry.handleOverloadedMethods(getContents(), mySettings);\n final GenericRearranger classContentsRearranger =\n new GenericRearranger(mySettings.getItemOrderAttributeList(),\n myContents,\n myNestingLevel,\n mySettings)\n {\n public void rearrangeRelatedItems(List<ClassContentsEntry> entries,\n List<RuleInstance> ruleInstanceList)\n {\n for (RuleInstance ruleInstance : ruleInstanceList) {\n ruleInstance.rearrangeRuleItems(entries, mySettings);\n }\n }\n };\n myResultRuleInstances = classContentsRearranger.rearrangeEntries();\n }", "public interface C2672h {\n /* renamed from: a */\n void mo1927a(NLPResponseData nLPResponseData);\n\n /* renamed from: a */\n void mo1931a(C2848p c2848p);\n\n /* renamed from: a */\n void mo1932a(String str);\n\n /* renamed from: b */\n void mo1933b(int i);\n\n /* renamed from: b */\n void mo1934b(String str);\n\n /* renamed from: c */\n void mo1935c(String str);\n\n /* renamed from: i */\n void mo1940i();\n\n /* renamed from: j */\n void mo1941j();\n\n /* renamed from: k */\n void mo1942k();\n\n /* renamed from: l */\n void mo1943l();\n}", "interface C9251a {\n /* renamed from: a */\n boolean mo24941a(Context context);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public void process(Context ctxt) {\n\tthis.ctxt = ctxt;\n\tIterator it = ctxt.getDefinedConsts().iterator();\n\twhile(it.hasNext()) {\n\t Const c = (Const)it.next();\n\n\t Expr T = ctxt.getClassifier(c);\n\n\t Expr e = ctxt.getDefBody(c);\n\n\t if (ctxt.isOpaque(c)) \n\t\tcontinue;\n\n\t process(e); // including types and terms\n\n\t resetRenaming();\n\t}\n\n\t// we will also uniquify variables in types\n\tit = ctxt.getTypeCtors().iterator();\n\twhile(it.hasNext()) {\n\t Const d = (Const)it.next();\n\n\t Iterator it2 = ctxt.getTermCtors(d).iterator();\n\t while (it2.hasNext()) {\n\t\tConst c = (Const)it2.next();\n\n\t\tExpr T = ctxt.getClassifier(c);\n\n\t\tprocess(T);\n\t\t\n\t\tresetRenaming();\n\t }\n\t}\n }", "public interface class_25 {\r\n\r\n // $FF: renamed from: b (int, int) boolean\r\n boolean method_103(int var1, int var2);\r\n\r\n // $FF: renamed from: c (int, int) gI\r\n class_1069 method_104(int var1, int var2);\r\n\r\n // $FF: renamed from: d (int, int) gI\r\n class_1069 method_105(int var1, int var2);\r\n\r\n // $FF: renamed from: b (gG, int, int) void\r\n void method_106(class_25 var1, int var2, int var3);\r\n\r\n // $FF: renamed from: b (boolean, vu) boolean\r\n boolean method_107(boolean var1, class_81 var2);\r\n\r\n // $FF: renamed from: a () boolean\r\n boolean method_108();\r\n\r\n // $FF: renamed from: b () boolean\r\n boolean method_109();\r\n\r\n // $FF: renamed from: c () java.lang.String\r\n String method_110();\r\n\r\n // $FF: renamed from: b (as, int, int, int) java.util.List\r\n List method_111(class_922 var1, int var2, int var3, int var4);\r\n\r\n // $FF: renamed from: b (ahb, java.lang.String, int, int, int) dd\r\n class_1034 method_112(ahb var1, String var2, int var3, int var4, int var5);\r\n\r\n // $FF: renamed from: d () int\r\n int method_113();\r\n\r\n // $FF: renamed from: f (int, int) void\r\n void method_114(int var1, int var2);\r\n\r\n // $FF: renamed from: e () void\r\n void method_115();\r\n}", "@Override\n\tpublic void compile() {\n\t\t\n\t}" ]
[ "0.62010413", "0.61496836", "0.61496836", "0.6052041", "0.53864366", "0.53802663", "0.5319793", "0.53054094", "0.5259883", "0.52141076", "0.517193", "0.5168359", "0.5167495", "0.51563805", "0.515035", "0.5129422", "0.5129144", "0.5115781", "0.5108605", "0.5101962", "0.5100509", "0.5087231", "0.5087185", "0.5073728", "0.5064417", "0.5062729", "0.5059321", "0.50485677", "0.50457555", "0.50314164", "0.5018592", "0.500171", "0.49957877", "0.49913755", "0.49850035", "0.4972299", "0.4968502", "0.49506795", "0.493629", "0.49353546", "0.49293548", "0.4925902", "0.49210784", "0.4914754", "0.49142134", "0.49129245", "0.49083784", "0.49063483", "0.4904443", "0.48829922", "0.48788258", "0.4876751", "0.487602", "0.48740825", "0.48736405", "0.48643953", "0.48504338", "0.48378754", "0.48291045", "0.48288205", "0.48212495", "0.4816841", "0.4814462", "0.48121142", "0.48018456", "0.47971863", "0.4783813", "0.47834608", "0.47822297", "0.47790727", "0.4774821", "0.4772672", "0.4770577", "0.476929", "0.47691002", "0.4766562", "0.47462597", "0.47452566", "0.47432983", "0.47307405", "0.4727622", "0.47211522", "0.47123107", "0.47081026", "0.4706811", "0.4706535", "0.4703886", "0.47037977", "0.47024733", "0.46939754", "0.46870652", "0.468486", "0.46846506", "0.46838665", "0.46816984", "0.4681625", "0.46749398", "0.467486", "0.4668497", "0.46643728", "0.46593648" ]
0.0
-1
Se asegura que la ruta de la refactorizacion concuerda con la obtenida en el mapa de refactorizaciones.
private void compareRefactoringPath(Scope scope, String availableRefactoringsSomeScopesDir, String refactoringName) throws XMLRefactoringReaderException { HashMap<String, String> refactorings = JDOMXMLRefactoringReaderImp .readAvailableRefactorings(scope, RefactoringConstants.REFACTORING_TYPES_FILE); assertEquals(refactorings.get(refactoringName), FilenameUtils.separatorsToSystem(RefactoringPlugin .getDynamicRefactoringsDir() + availableRefactoringsSomeScopesDir + File.separator + refactoringName + File.separator + refactoringName + ".xml")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Refactoring createRefactoring();", "protected abstract Refactoring createRefactoring();", "protected void buildMappings(android.icu.impl.coll.CollationData r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.coll.CollationDataBuilder.buildMappings(android.icu.impl.coll.CollationData):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.buildMappings(android.icu.impl.coll.CollationData):void\");\n }", "public Problem prepare(RefactoringElementsBag refactoringElements) {\n if (semafor.get() != null) {\n return null;\n }\n semafor.set(new Object());\n try {\n rename = (RenameRefactoring)refactoring;\n \n Problem problem = null;\n Lookup lkp = rename.getRefactoringSource();\n \n TreePathHandle handle = lkp.lookup(TreePathHandle.class);\n if (handle != null) {\n InfoHolder infoholder = examineLookup(lkp);\n Project project = FileOwnerQuery.getOwner(handle.getFileObject());\n if (project == null || project.getLookup().lookup(NbModuleProvider.class) == null) {\n // take just netbeans module development into account..\n return null;\n }\n \n if (infoholder.isClass) {\n checkManifest(project, infoholder.fullName, refactoringElements);\n checkLayer(project, infoholder.fullName, refactoringElements);\n }\n if (infoholder.isMethod) {\n checkMethodLayer(infoholder, handle.getFileObject(), refactoringElements);\n }\n }\n NonRecursiveFolder nrf = lkp.lookup(NonRecursiveFolder.class);\n if (nrf != null) {\n Project project = FileOwnerQuery.getOwner(nrf.getFolder());\n if (project.getLookup().lookup(NbModuleProvider.class) == null) {\n // take just netbeans module development into account..\n return null;\n }\n Sources srcs = org.netbeans.api.project.ProjectUtils.getSources(project);\n SourceGroup[] grps = srcs.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);\n for (SourceGroup gr : grps) {\n if (FileUtil.isParentOf(gr.getRootFolder(), nrf.getFolder())) {\n String relPath = FileUtil.getRelativePath(gr.getRootFolder(), nrf.getFolder());\n relPath.replace('/', '.');\n //TODO probably aslo manifest or layers.\n //TODO how to distinguish single package from recursive folder?\n }\n }\n }\n \n return problem;\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n return null;\n } finally {\n semafor.set(null);\n }\n }", "private Map<ValidacionPrecoactivoDTO, RespuestaDTO<EnumCampoObligacionCoactivo, EnumErrorGeneraCoactivo>> validarFacturaCoactivo(\n String numeroFactura, ConfiguracionCoactivoDTO configuracionCoactivoDTO,\n Map<EnumVariableCondicionCoactivo, List<String>> valoresConfiguracion, boolean esCargue) {\n logger.debug(\n \"CoactivoEJB.validarFacturaCoactivo(String, ConfiguracionCoactivoDTO, Map<EnumVariableCondicionCoactivo, List<String>>,boolean)\");\n Map<ValidacionPrecoactivoDTO, RespuestaDTO<EnumCampoObligacionCoactivo, EnumErrorGeneraCoactivo>> resultado = new HashMap<ValidacionPrecoactivoDTO, RespuestaDTO<EnumCampoObligacionCoactivo, EnumErrorGeneraCoactivo>>();\n RespuestaDTO<EnumCampoObligacionCoactivo, EnumErrorGeneraCoactivo> respuesta = new RespuestaDTO<EnumCampoObligacionCoactivo, EnumErrorGeneraCoactivo>(\n false);\n PrecoactivoDTO precoactivoDTO = new PrecoactivoDTO();\n ValidacionPrecoactivoDTO validacion = new ValidacionPrecoactivoDTO();\n precoactivoDTO.setNumeroObligacion(numeroFactura);\n CarteraDTO carteraDTO = null;\n TipoObligacionDTO tipoObligacionDTO = new TipoObligacionDTO();\n\n if (configuracionCoactivoDTO != null) {\n if (valoresConfiguracion == null) {\n valoresConfiguracion = obtenerValoresConfiguracion(configuracionCoactivoDTO);\n }\n }\n\n ValorParametroDTO formatoFecha = iFachadaAdminGeneral.consultarValorParametro(EnumParametro.FORMATO_FECHA,\n iRSeguridadCirculemos.obtenerOrganismoTransitoUsuario().getCodigoOrganismo(), true);\n SimpleDateFormat formatoLargo = new SimpleDateFormat(formatoFecha.getValorParam());\n formatoLargo.setLenient(false);\n\n Boolean obligacionesNoNotificadas = Boolean.valueOf(valoresConfiguracion\n .get(EnumVariableCondicionCoactivo.GENERAR_COACTIVO_OBLIGACIONES_NO_NOTIFICADAS).get(0));\n\n // Consulta si el la factura existe en comparendo\n ComparendoDTO comparendoDTO = iRFachadaComparendo.consultarComparendo(numeroFactura,\n seguridadCirculemosEJB.obtenerOrganismoTransitoUsuario().getCodigoOrganismo());\n\n if (comparendoDTO != null) {\n // Si la condicion \"Generar coactivos a obligaciones no notificadas\" tiene como valor FALSE\n // Valida si el comparendo ya fue notificado de lo contrario genera error\n if (obligacionesNoNotificadas\n || (!obligacionesNoNotificadas && comparendoDTO.getFechaNotificacion() != null)) {\n // Valida si el comparendo tiene un proceso abierto de coactivo\n boolean enCoactivo = false;\n if (comparendoDTO.getComparendoProcesoList() != null\n && !comparendoDTO.getComparendoProcesoList().isEmpty()) {\n cicloProceso: for (ComparendoProcesoDTO comparendoProcesoDTO : comparendoDTO\n .getComparendoProcesoList()) {\n ProcesoDTO procesoDTO = new ProcesoDTO();\n procesoDTO.setId(comparendoProcesoDTO.getIdProceso());\n procesoDTO.setTipoProceso(new TipoProcesoDTO(EnumTipoProceso.COACTIVO.getValue()));\n List<ProcesoDTO> lsProcesoDTO = iRFachadaProceso.consultarProceso(procesoDTO);\n if (lsProcesoDTO != null && !lsProcesoDTO.isEmpty()) {\n for (ProcesoDTO procesoDTO2 : lsProcesoDTO) {\n if (procesoDTO2.getFechaFin() == null) {\n enCoactivo = true;\n break cicloProceso;\n }\n }\n }\n }\n }\n if (!enCoactivo) {\n // valida si el comparendo se encuentra en estado vigente\n if (comparendoDTO.getEstadoComparendo().getId().equals(EnumEstadoComparendo.VIGENTE.getValue())) {\n carteraDTO = new CarteraDTO();\n tipoObligacionDTO.setId(EnumTipoObligacion.COMPARENDO.getValue());\n carteraDTO.setNombre(numeroFactura);\n carteraDTO.setTipoObligacion(tipoObligacionDTO);\n // Consulta la cartera\n carteraDTO = iRFachadaCartera.consultarCartera(carteraDTO);\n // Valida si existen datos en cartera\n if (carteraDTO != null) {\n // valida si la cartera se encuntra activa\n if (carteraDTO.getEstadoObligacion().getId()\n .equals(EnumEstadoObligacion.ACTIVO.getValue())) {\n // Consultamos si esta registrado como precoactivo\n PrecoactivoDTO filtroPrecoactivo = new PrecoactivoDTO();\n filtroPrecoactivo.setNumeroObligacion(numeroFactura);\n List<PrecoactivoDTO> precoactivos = iLCoactivo.consultarPrecoactivo(filtroPrecoactivo,\n null);\n boolean estaPrecoactivo = false;\n if (precoactivos != null) {\n for (PrecoactivoDTO precoactivoDTO2 : precoactivos) {\n if (!precoactivoDTO2.getEstadoPrecoactivo().getId()\n .equals(EnumEstadoPrecoactivo.VALIDADO.getValue())) {\n estaPrecoactivo = true;\n break;\n } else if (esCargue) {\n // En caso que un cargue haya fallado\n iLCoactivo.modificarCarguePrecoactivos(\n new CargueArchivoDTO(precoactivoDTO2.getCargueCoactivo().getId()),\n false);\n }\n }\n }\n if (!esCargue || !estaPrecoactivo) {\n // consulta la persona\n PersonaDTO personaDTO = iRFachadaAdminNegocio\n .consultarPersona(carteraDTO.getIdDeudor());\n precoactivoDTO.setPersona(personaDTO);\n\n DireccionPersonaDTO direccionPersonaDTO = new DireccionPersonaDTO();\n direccionPersonaDTO.setPersona(personaDTO);\n List<DireccionPersonaDTO> direccionPersonaDTOs = iRFachadaAdminNegocio\n .consultarDireccionPersona(direccionPersonaDTO);\n DireccionPersonaDTO direccion = null;\n if (direccionPersonaDTOs != null && !direccionPersonaDTOs.isEmpty()) {\n // reversa la lista para que recorra de la mas actualizada a la menos\n Collections.reverse(direccionPersonaDTOs);\n RespuestaDTO<EnumCampoDireccion, EnumErrorDireccion> respuestaDTO;\n // recorre la lista de direcciones\n for (DireccionPersonaDTO direccionPerDTO : direccionPersonaDTOs) {\n respuestaDTO = new RespuestaDTO<>();\n // valida si la direccion es correcta\n respuestaDTO = iFachadaAdminGeneral.validarDireccion(\n direccionPerDTO.getDireccion(),\n EnumTipoValidacionDireccion.INFRACTOR);\n // si la direccion es correcta no recorra mas direcciones\n if (respuestaDTO.getRespuesta().equals(EnumRespuestaSistema.OK)) {\n direccion = direccionPerDTO;\n }\n }\n }\n\n precoactivoDTO.setCodigoTipoObligacion(EnumTipoObligacion.COMPARENDO.getValue());\n precoactivoDTO.setValorObligacion(carteraDTO.getSaldoCapital());\n precoactivoDTO.setValorInteresMoratorios(carteraDTO.getSaldoInteres());\n\n precoactivoDTO.setPersona(personaDTO);\n precoactivoDTO.setFechaObligacion(comparendoDTO.getFechaHoraImposicion());\n precoactivoDTO.setCartera(carteraDTO);\n precoactivoDTO.setEstadoPrecoactivo(\n new EstadoPrecoactivoDTO(EnumEstadoPrecoactivo.VALIDADO.getValue()));\n if (direccion != null) {\n precoactivoDTO.setDireccion(direccion.getDireccion());\n }\n\n // Completa el objeto de validacion\n if (esCargue) {\n validacion.setNumeroCitacion(comparendoDTO.getNumeroCitacion());\n validacion.setIdFacturaAxis(comparendoDTO.getIdFacturaAxis());\n validacion.setFechaInfraccion(\n formatoLargo.format(comparendoDTO.getFechaHoraImposicion()));\n if (comparendoDTO.getFechaNotificacion() != null) {\n validacion.setFechaNotificacion(\n formatoLargo.format(comparendoDTO.getFechaNotificacion()));\n }\n validacion.setMedioImposicion(comparendoDTO.getMedioImposicion().getNombre());\n validacion.setCodigoInfraccion(comparendoDTO.getInfraccion().getCodigo());\n ConfiguracionInfraccionDTO configInf = iRFachadaComparendo\n .consultarConfiguracionInfraccion(\n comparendoDTO.getInfraccion().getCodigo(),\n comparendoDTO.getFechaHoraImposicion());\n validacion.setDescripcionInfraccion(configInf.getDescripcion());\n validacion.setValorMulta(carteraDTO.getSaldoCapital());\n if (direccion != null) {\n validacion.setDireccion(direccion.getDireccion().getComplemento());\n }\n validacion.setNombreCompleto(personaDTO.getNombreCompleto());\n validacion.setNumeroIdentificacion(personaDTO.getNumeroIdentificacion());\n validacion\n .setTipoIdentificacion(personaDTO.getTipoIdentificacion().getCodigo());\n }\n\n respuesta.setRespuesta(EnumRespuestaSistema.OK);\n } else {\n respuesta.setErrorRespuesta(EnumErrorGeneraCoactivo.EXISTE_PRECOACTIVO);\n respuesta.setDescripcionRespuesta(\n EnumErrorGeneraCoactivo.EXISTE_PRECOACTIVO.getDescripcion());\n }\n } else {\n respuesta.setErrorRespuesta(EnumErrorGeneraCoactivo.ESTADO_NO_ACTIVO);\n respuesta.setDescripcionRespuesta(\n EnumErrorGeneraCoactivo.ESTADO_NO_ACTIVO.getDescripcion());\n }\n } else {\n respuesta.setErrorRespuesta(EnumErrorGeneraCoactivo.CARTERA_NO_EXISTE);\n respuesta.setDescripcionRespuesta(\n EnumErrorGeneraCoactivo.CARTERA_NO_EXISTE.getDescripcion());\n }\n } else {\n respuesta.setErrorRespuesta(EnumErrorGeneraCoactivo.ESTADO_NO_VIGENTE);\n respuesta.setDescripcionRespuesta(EnumErrorGeneraCoactivo.ESTADO_NO_VIGENTE.getDescripcion());\n }\n } else {\n respuesta.setErrorRespuesta(EnumErrorGeneraCoactivo.EXISTE_COACTIVO);\n respuesta.setDescripcionRespuesta(EnumErrorGeneraCoactivo.EXISTE_COACTIVO.getDescripcion());\n }\n } else {\n respuesta.setErrorRespuesta(EnumErrorGeneraCoactivo.OBLIGACION_NO_NOTIFICADA);\n respuesta.setDescripcionRespuesta(EnumErrorGeneraCoactivo.OBLIGACION_NO_NOTIFICADA.getDescripcion());\n }\n } else {\n respuesta.setErrorRespuesta(EnumErrorGeneraCoactivo.NUMERO_FACTURA_NO_EXISTE);\n respuesta.setDescripcionRespuesta(EnumErrorGeneraCoactivo.NUMERO_FACTURA_NO_EXISTE.getDescripcion());\n }\n validacion.setPrecoactivo(precoactivoDTO);\n\n resultado.put(validacion, respuesta);\n\n return resultado;\n }", "default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }", "public void mapping() {\n\t\t\n\t}", "public interface ActionMapperVisitor {\r\n\r\n\t/**\r\n\t * This method creates a new AcquirePermitTile action according to the AcquirePermitTileDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * return an AcquirePermitTile action with all the parameters set\r\n\t */\r\n\tpublic AcquirePermitTile map(AcquirePermitTileDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new BuildByKing action according to the BuildByKingDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * return a BuildByKing action with all the parameters set\r\n\t */\r\n\tpublic BuildByKing map(BuildByKingDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new BuildByPermitTile action according to the BuildByPermitTileDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an BuildByPermitTile action with all the parameters set\r\n\t */\r\n\tpublic BuildByPermitTile map(BuildByPermitTileDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new ChangePermitTiles action according to the ChangePermitTilesDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an ChangePermitTiles action with all the parameters set\r\n\t */\r\n\tpublic ChangePermitTiles map(ChangePermitTilesDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new ElectCouncillor action according to the ElectCouncillorDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an ElectCouncillor action with all the parameters set\r\n\t */\r\n\tpublic ElectCouncillor map(ElectCouncillorDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new ElectCouncillorByAssistant action according to the ElectCouncillorByAssistantDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an ElectCouncillorByAssistant action with all the parameters set\r\n\t */\r\n\tpublic ElectCouncillorByAssistant map(ElectCouncillorByAssistantDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new MakeAnOffer action according to the MakeAnOfferDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an MakeAnOffer action with all the parameters set\r\n\t */\r\n\tpublic MakeAnOffer map(MakeAnOfferDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new AcceptAnOffer action according to the AcceptAnOfferDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an AcceptAnOffer action with all the parameters set\r\n\t */\r\n\tpublic AcceptAnOffer map(AcceptAnOfferDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new ChooseCityBonusAction action according to the ChooseCityBonusActionDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an ChooseCityBonusAction action with all the parameters set\r\n\t */\r\n\tpublic ChooseCityBonusAction map(ChooseCityActionDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new PurchasedPermitTileAction action according to the PurchasedPermitTileActionDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an PurchasedPermitTileAction action with all the parameters set\r\n\t */\r\n\tpublic PurchasedPermitTileAction map(PurchasedPermitTileActionDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new PickPermitTileBonusAction action according to the PickPermitTileBonusActionDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an PickPermitTileBonusAction action with all the parameters set\r\n\t */\r\n\tpublic PickPermitTileBonusAction map(PickPermitTileActionDTO pickPermitTileActionDTO);\r\n\t\r\n}", "public RefactoringTask() {\n\t\tlauncher = new Launcher();\n\t\tinputSources = new ArrayList<String>();\n\t\tprocessors = new ArrayList<String>();\n\t\ttemplates = new ArrayList<SpoonResource>();\n\t\trefactoringsApplied = new HashMap<String, Integer>();\n\t\toutputSource = \"\";\n\t\tisProcessed = false;\n\t\tisModelBuilt = false;\n\t}", "public void revisaColisionMapa() {\n\t\tactualCol = (int)x / tamTile;\n\t\tactualRen = (int)y / tamTile;\n\t\t\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\t\t\n\t\txtemp = x;\n\t\tytemp = y;\n\t\t\n\t\tcalcularEsquinas(x, ydest);\n\t\tif(dy < 0) {\n\t\t\tif(arribaIzq || arribaDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = actualRen * tamTile + claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\tif(dy > 0) {\n\t\t\tif(abajoIzq || abajoDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tcayendo = false;\n\t\t\t\tytemp = (actualRen + 1) * tamTile - claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcalcularEsquinas(xdest, y);\n\t\tif(dx < 0) {\n\t\t\tif(arribaIzq || abajoIzq) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = actualCol * tamTile + clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif(dx > 0) {\n\t\t\tif(arribaDer || abajoDer) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (actualCol + 1) * tamTile - clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!cayendo) {\n\t\t\tcalcularEsquinas(x, ydest + 1);\n\t\t\tif(!abajoIzq && !abajoDer) {\n\t\t\t\tcayendo = true;\n\t\t\t}\n\t\t}\n\t}", "public void actualizarPorTipoIdentificacion()\r\n/* 686: */ {\r\n/* 687:755 */ cargarListaTipoComprobanteSRI();\r\n/* 688:756 */ cargarListaCreditoTributarioSRI();\r\n/* 689: */ }", "@Override\r\n\tpublic List<relocationProject> listRelocation(relocationProject params) throws Exception {\n\t\tList<relocationProject> datalist= (List<relocationProject> )dao.findForList(\"RelocationProjectDao.get_rp_by_id\", params);\t\t\r\n\t\trelocationProject c=new relocationProject();\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t for(int i=0;i<datalist.size();i++){\r\n\t\t\t c=datalist.get(i);\r\n\t\t\t convertTodata(c);//鏃ユ湡杞崲涓烘暟鍊兼牸寮�(\"yyyy-MM-dd\");\r\n\t\t\t }\r\n\t\treturn datalist;\r\n\t}", "private static void composeListAssembling(FieldInfoDto info, StringBuilder sb, boolean toDto, String dtoSuf, \n\t\tString getter, String setter, String src, String dst, String assSuf){\n\t\tsb.append(\"\\n\\t\\tif(\"+getter+\" != null ){\\n\\t\\t\\t\");\n\t\tString colContenedor = info.getCollectionDefinition();\n\t\tString constructor = info.getCollectionConstructor();\n\t\tString innerObjSrc = info.getFieldType();\n\t\tString innerObj = info.getFieldType();\n\t\tString iniAssembler = \"\";\n\t\tString finAssembler = \"\";\n\t\t//2.-Si hay que ensamblar determino la cadena adecuada para llamar al assembler, sino ira vacia\n\t\tif(toDto){\n\t\t\tinnerObjSrc = innerObjSrc.replace(dtoSuf, \"\");\n\t\t} else {\n\t\t\tSystem.out.println(\"colContenedor = \" + colContenedor + \" dtoSuf =\" +dtoSuf);\n\t\t\tcolContenedor = colContenedor.replace(dtoSuf,\"\");\n\t\t\tinnerObj = innerObj.replace(dtoSuf, \"\");\n\t\t}\n\t\tiniAssembler = composeAsembler(info.getFieldType(), src, dst, dtoSuf, assSuf);\n\t\tfinAssembler = \")\";\n\t\t//3.-Destermino si es una lista de objetos que hay que ensamblar\n\t\tsb.append(\"\\n\\t\\t\\t\").append(colContenedor).append(\" auxCol = \").append(constructor);\n\t\t//4.-creo un for que recorre la coleccion original metiendo los valores en la nueva\n\t\tsb.append(\"\\n\\t\\t\\tfor(\").append(innerObjSrc).append(\" o: \").append(getter).append(\"){\");\n\t\tsb.append(\"\\n\\t\\t\\t\\t\").append(\"auxCol.add(\").append(iniAssembler).append(\"o\").append(finAssembler).append(\");\");\n\t\tsb.append(\"\\n\\t\\t\\t}\");\n\t\t//5.-Asigno la lista recien creada al destino\n\t\tsb.append(\"\\n\\t\\t\\t\").append(setter).append(\"(auxCol);\");\n\t\tsb.append(\"\\n\\t\\t}\");\n\t}", "@Override\n protected void performRefactoringIteration(UsagesInFile usagesInFile) {\n Collection<UsageInfo> usages1 = usagesInFile.getUsages();\n ArrayList<MigrationUsageInfo> usages = Lists.newArrayList(Iterables.filter(usages1, MigrationUsageInfo.class));\n usages.sort(ImportUsageFirstComparator.INSTANCE);\n\n for (MigrationMapEntry entry : migrationMap.values()) {\n FlexMigrationUtil.doClassMigration(myProject, entry, usages);\n }\n }", "public void rescanRepository() { // recree les liste de classes connues a partir du depot\n // cette methode peut etre invoquee si on sait que le depot a ete modifie\n for (int i=0; i<types.length; i++) {\n classesDisponibles[i] = new HashMap<String, String>();\n scanRepository(types[i], classesDisponibles[i]);\n }\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 processCode() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tsuper.processCode();\t\n\t\t\n\t\tfor (String processor : getProcessors()) {\n\t\t\tString[] refactorName = processor.split(\"\\\\.\");\n\t\t\tString refactor = refactorName[refactorName.length - 1];\n\t\t\t\n\t\t\tswitch (refactor) {\n\t\t\t\tcase \"CollapseHierarchy\" : refactoringsApplied.put(refactor, CollapseHierarchy.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t CollapseHierarchy.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"EncapsulateCollection\" : refactoringsApplied.put(refactor, EncapsulateCollection.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t EncapsulateCollection.resetTimesApplied();\n\t\t\t\t \t\t\t\t\t\t\t break;\n\t\t\t\tcase \"EncapsulateField\" \t : refactoringsApplied.put(refactor, EncapsulateField.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t EncapsulateField.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t \t break;\n\t\t\t\tcase \"ExtractSuperClass\" : refactoringsApplied.put(refactor, ExtractSuperClass.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t ExtractSuperClass.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"HideMethod\" : refactoringsApplied.put(refactor, HideMethod.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t HideMethod.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"PullUpField\"\t\t\t : refactoringsApplied.put(refactor, PullUpField.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t PullUpField.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"PullUpMethod\" : refactoringsApplied.put(refactor, PullUpMethod.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t PullUpMethod.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"PushDownField\"\t\t : refactoringsApplied.put(refactor, PushDownField.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t PushDownField.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\tcase \"PushDownMethod\"\t : refactoringsApplied.put(refactor, PushDownMethod.getTimesApplied());\n\t\t\t\t\t\t\t\t\t\t\t PushDownMethod.resetTimesApplied();\n\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\toutputProcessedCode();\n\t}", "public void cargarListaTipoComprobanteSRI()\r\n/* 675: */ {\r\n/* 676:746 */ this.listaTipoComprobanteSRI = this.servicioSRI.buscarPorTipoIdentificacion(this.facturaProveedorSRI.getTipoIdentificacion());\r\n/* 677: */ }", "private static List<String> getJavasSourceCodeFiels(Map<String,Object> map){\r\n \t\t\r\n \t\t\r\n \t\tSystem.out.println(\"............\");\r\n \t\tLinkedList<String> list = new LinkedList<String>();\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \r\n \t\t\t//package...\r\n \t\t\tif(o instanceof IPackageFragment){\r\n \t\t\t\t//System.out.println(\"Package --> \" + key);\r\n \t\t\t\tkey = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tkey = PACKAGE + \"(\" + key + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t//class...\r\n \t\t\tif(o instanceof ICompilationUnit){\r\n \t\t\t\t//System.out.println(\"Class --> \" + key);\r\n \t\t\t\tString classname = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tString packagename = key.substring(key.indexOf(PACKAGE),key.indexOf('\\n',key.indexOf(PACKAGE)));\r\n \t\t\t\tkey = CLASS_WITH_MEMBERS + \"(\" + packagename + \",\" + classname + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}//method\r\n \t\t\tif(o instanceof IMethod){\r\n \t\t\t\tSystem.out.println(\"Methode --> \" + key);\r\n \t\t\t\tkey = METHOD + \"(\" + getQueryFromMethod((IMethod)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(o instanceof IField){\r\n \t\t\t\tSystem.out.println(\"Attribut --> \" + key);\r\n \t\t\t\tkey = FIELD + \"(\" + getQueryFromField((IField)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn list;\r\n \t\t\r\n \t\t\r\n \t\t/*\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \t\t\t//if(o instanceof ISourceAttribute)\r\n \t\t\t\t//System.out.println(\"attribute\");\r\n \t\t\t//if(o instanceof ISourceMethod)\r\n \t\t\t\t//System.out.println(\"methode\");\r\n \t\t\tif(o instanceof IPackageFragment) \r\n \t\t\t\tSystem.out.println(\"Package\");\r\n \t\t\tif(o instanceof ICompilationUnit)\r\n \t\t\t\tSystem.out.println(\"sour code file\");\r\n \t\t\t\t\r\n \t\t\t//\"oldquery or class('voller packagename', klassenname)\"\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\tif(o instanceof IField)\r\n \t\t\t\tSystem.out.println(\"Attribut\");\r\n \t\t\tif(o instanceof IType)\r\n \t\t\t\tSystem.out.println(\"classe also class ... in einem file\");\r\n \t\t\tif(o instanceof IMethod)\r\n \t\t\t\tSystem.out.println(\"Methode\");\r\n \t\t\tif(o instanceof IPackageFragmentRoot) \r\n \t\t\t\tSystem.out.println(\"jar package / src Ordner\");\r\n \t\t\tif(o instanceof IProject)\r\n \t\t\t\tSystem.out.println(\"Projekt Ordner\");\r\n \t\t\tif(o instanceof IClassFile)\r\n \t\t\t\tSystem.out.println(\"ClassFile\");\r\n \t\t\tif(o instanceof IAdaptable) //trieft auch auf viele ander sachen zu\r\n \t\t\t\tSystem.out.println(\"Libaraycontainer\");\r\n \t\t\tif(o instanceof IFile)\r\n \t\t\t\tSystem.out.println(\"file\"); //je nach ausgewlter ansicht knnen file auch *.java datein sein\r\n \t\t\tif(o instanceof IFolder)\r\n \t\t\t\tSystem.out.println(\"folder\");\r\n \t\t\tSystem.out.println(o.getClass());\r\n \t\t\t\r\n \t\r\n \t\t}\r\n \t\treturn null;\r\n \t\t*/\r\n \t}", "private void returnDriverLocationstoMaps() {\n }", "@Override synchronized public void resolve()\n{\n if (isResolved()) return;\n\n RebaseMain.logD(\"START RESOLVE\");\n for (RebaseJavaFile jf : file_nodes) {\n RebaseMain.logD(\"FILE: \" + jf.getFile().getFileName());\n }\n\n clearResolve();\n\n RebaseJavaTyper jt = new RebaseJavaTyper(base_context);\n RebaseJavaResolver jr = new RebaseJavaResolver(jt);\n jt.assignTypes(this);\n jr.resolveNames(this);\n\n all_types = new HashSet<RebaseJavaType>(jt.getAllTypes());\n\n setResolved(true);\n}", "@Override\n\tpublic void reorganize() {\n\n\t}", "public static final java.lang.String m133282a(com.p280ss.android.ugc.aweme.draft.model.C27311c r1) {\n /*\n java.lang.String r0 = \"draft\"\n kotlin.jvm.internal.C7573i.m23587b(r1, r0)\n boolean r0 = r1.mo70215ad()\n if (r0 == 0) goto L_0x001a\n com.ss.android.ugc.aweme.shortvideo.edit.model.EditPreviewInfo r1 = r1.mo70214ac()\n if (r1 == 0) goto L_0x0017\n java.lang.String r1 = r1.getDraftDir()\n if (r1 != 0) goto L_0x0019\n L_0x0017:\n java.lang.String r1 = \"\"\n L_0x0019:\n return r1\n L_0x001a:\n com.ss.android.ugc.aweme.photomovie.PhotoMovieContext r0 = r1.f72034c\n boolean r0 = com.p280ss.android.ugc.aweme.storage.p1640b.C41902b.m133264a(r0)\n if (r0 == 0) goto L_0x002b\n com.ss.android.ugc.aweme.draft.model.b r1 = r1.f72031S\n java.lang.String r1 = r1.f71951O\n if (r1 != 0) goto L_0x002a\n java.lang.String r1 = \"\"\n L_0x002a:\n return r1\n L_0x002b:\n com.ss.android.ugc.aweme.draft.model.b r1 = r1.f72031S\n java.lang.String r1 = r1.f71951O\n java.lang.String r1 = com.p280ss.android.ugc.aweme.shortvideo.WorkSpace.Workspace.m122803a(r1)\n if (r1 != 0) goto L_0x0037\n java.lang.String r1 = \"\"\n L_0x0037:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.storage.p1640b.C41911c.m133282a(com.ss.android.ugc.aweme.draft.model.c):java.lang.String\");\n }", "public void testUnfoldingWithOneSuccessfulResolutions() {\n\t\t\t\n\t\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tCQIE query = fac.getCQIE(head, lj);\n\t\t\tqueryProgram.appendRule(query);\n\n\t\t\t// Mapping program\n\t\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule1);\n\n\t\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule2);\n\n\t\t\t// A rule 3 R(uri(x),y) :- T3(x,y)\n\t\t\t\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule3);\n\n\t\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t\t// Only one rule should be returned where y is null\n\t\t\tSystem.out.println(result);\n\t\t\tassertEquals(1, result.getRules().size());\n\t\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"T3(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"uri(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"T2(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"null\"));\n\t\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t\t\n\t}", "private Map<Integer, Integer> buildRenaming() {\n\t\tMap<Integer, Integer> map = new HashMap<>();\n\n\t\tfor(int i = 0; i < this.dimension; i++){\n\t\t\tfor(int j = 0; j < this.dimension; j++)\n\t\t\t\tmap.put(board_p[i][j].var(), board[i][j].var());\n\t\t}\n\n\t\treturn map;\n\t}", "private void poetries() {\n\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}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}", "@Override\n\tprotected void remapVariablesInThisExpression(Map<String, String> fromToVariableMap) {\n\t}", "@Override\n\tpublic Collection<LineaComercialClienteImportacionDTO> consultarLinComClienImp(LineaComercialClienteImportacionDTO linComCliImpDTO)throws SICException{\n\t\ttry {\n\t\t\tLogeable.LOG_SICV2.info(\"Metodo consultarLinComClienImp \");\n\t\t\tLogeable.LOG_SICV2.info(\"Parametros : \");\n\t\t\tLogeable.LOG_SICV2.info(\"codigoClienteImportacion() : \"+linComCliImpDTO.getId().getCodigoClienteImportacion());\n\t\t\tLogeable.LOG_SICV2.info(\"estado : \"+linComCliImpDTO.getEstado());\n\t\t\tLogeable.LOG_SICV2.info(\"codigoLineaComercial : \"+ linComCliImpDTO.getId().getCodigoLineaComercial());\n\n\t\t\t\n\t\t\tCriteria criteria = hibernateH.getHibernateSession().createCriteria(LineaComercialClienteImportacionDTO.class);\n\t\t\tProjectionList projectionList = Projections.projectionList()\n\t\t\t\t\t\t.add(Projections.property(\"id.codigoLineaComercial\"),\"id.codigoLineaComercial\")\n\t\t\t\t\t\t.add(Projections.property(\"id.codigoClienteImportacion\"),\"id.codigoClienteImportacion\")\n\t\t\t\t\t\t.add(Projections.property(\"id.codigoCompania\"),\"id.codigoCompania\")\n\t\t\t\t\t\t.add(Projections.property(\"estado\"),\"estado\");\n\t\t\t\n\t\t\tif(linComCliImpDTO.getId().getCodigoClienteImportacion() == null){\n\t\t\t\t/**si la validacion es verdadera se trae de base las descripciones de (lineaComercialDTO,clienteImportacionDTO) para presentar en pantalla estas descripciones**/\n\t\t\t\tprojectionList.add(Projections.property(\"linCom.nombre\"),\"lineaComercialDTO.nombre\");\n\t\t\t\tprojectionList.add(Projections.property(\"linCom.descripcion\"),\"lineaComercialDTO.descripcion\");\n\t\t\t\tprojectionList.add(Projections.property(\"clienImp.nombre\"),\"clienteImportacionDTO.nombre\");\n\t\t\t\tprojectionList.add(Projections.property(\"clienImp.siglas\"),\"clienteImportacionDTO.siglas\");\n\t\t\t\t\n\t\t\t\t/**se agrega restricciones para cliente importacion clienImp*/\n\t\t\t\tif(linComCliImpDTO.hasDynamicProperty(\"linComCliImp\") && linComCliImpDTO.getDynamicProperty(\"linComCliImp\") != null){\t\t\t\t\t\n\t\t\t\t\tDetachedCriteria subCriterio = DetachedCriteria.forClass(ClienteImportacionDTO.class, \"clienteImportacionDTO\")\n\t\t\t\t .add(Restrictions.eq(\"estado\", SICConstantes.ESTADO_ACTIVO_LITERAL))\n\t\t\t\t /**se agrega las restricciones ingresadas por el usuario**/\n\t\t\t\t .add(((DynamicCriteriaRestriction)linComCliImpDTO.getDynamicProperty(\"linComCliImp\")).getCriteriaRestriction())\n\t\t\t\t .setProjection(Projections.property(\"id.codigoClienteImportacion\"));\n\t\t\t\t\t/**Se agrega un exist el cual valida si existe una relacion**/\n\t\t\t\t\tcriteria.add(Subqueries.propertyIn(\"id.codigoClienteImportacion\", subCriterio));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\tcriteria.createAlias(\"lineaComercialDTO\", \"linCom\");\n\t\t\t\tcriteria.createAlias(\"clienteImportacionDTO\", \"clienImp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t/**si la validacion es false no se une a otra tabla porque lo que se requiere es un solo registro**/\n\t\t\t\tcriteria.add(Restrictions.eq(\"id.codigoClienteImportacion\", linComCliImpDTO.getId().getCodigoClienteImportacion()));\n\t\t\t}\n\t\t\t/**al no agreagar esta restriccion se puede traer de base los estados(1,0)**/\n\t\t\tif(StringUtils.isNotBlank(linComCliImpDTO.getEstado())){\n\t\t\t\tcriteria.add(Restrictions.eq(\"estado\", linComCliImpDTO.getEstado()));\n\t\t\t}\n\t\t\t\n\t\t\tcriteria.add(Restrictions.eq(\"id.codigoLineaComercial\", linComCliImpDTO.getId().getCodigoLineaComercial()));\n\t\t\t\n\t\t\tcriteria.setProjection(projectionList);\n\t\t\t\n\t\t\tcriteria.setResultTransformer(new DtoResultTransformer(LineaComercialClienteImportacionDTO.class));\n\t\t\t\n\t\t\tCollection<LineaComercialClienteImportacionDTO> linComCliImpDTOResultCol = criteria.list();\n\t\t\t\n\t\t\treturn linComCliImpDTOResultCol;\n\t\t\t\n\t\t} catch (SICException e) {\n\t\t\tthrow new SICException(\"Error consultarLinComClienImp: \",e);\n\t\t}\n\t}", "public interface PromocionQryMapper {\r\n\r\n List<PromocionDetalle> findPromocionDetalleList(PromocionFlt proveedorFlt);\r\n\r\n List<Promocion> findPromocionList(PromocionFlt proveedorFlt);\r\n\r\n void deletePromocion(String coPromocion);\r\n void deletePromocionLocal(String coPromocion);\r\n\r\n List<PromocionLocal> findPromocionDetalleLocalList(PromocionFlt proveedorFlt);\r\n}", "public String cargarDatos()\r\n/* 109: */ {\r\n/* 110:119 */ return null;\r\n/* 111: */ }", "@Test\n public void t2() {\n List<StableCommit> stableCommitList = getStableCommits().stream().filter(commit ->\n commit.getFilePath().equals(\"src/java/org/apache/commons/lang/builder/HashCodeBuilder.java\") && commit.getLevel() == 1).collect(Collectors.toList());\n // it has been through 9 different refactorings\n List<RefactoringCommit> refactoringCommitList = getRefactoringCommits().stream().filter(commit ->\n commit.getFilePath().equals(\"src/java/org/apache/commons/lang/builder/HashCodeBuilder.java\")).collect(Collectors.toList());\n\n Assert.assertEquals(4, stableCommitList.size());\n Assert.assertEquals(8, refactoringCommitList.size());\n\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", stableCommitList.get(0).getCommit());\n\n // then, it was refactored two times (in commit 5c40090fecdacd9366bba7e3e29d94f213cf2633)\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", refactoringCommitList.get(0).getCommit());\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", refactoringCommitList.get(1).getCommit());\n\n // It appears 3 times\n Assert.assertEquals(\"379d1bcac32d75e6c7f32661b2203f930f9989df\", stableCommitList.get(1).getCommit());\n Assert.assertEquals(\"d3c425d6f1281d9387f5b80836ce855bc168453d\", stableCommitList.get(2).getCommit());\n Assert.assertEquals(\"3ed99652c84339375f1e6b99bd9c7f71d565e023\", stableCommitList.get(3).getCommit());\n }", "private static HashMap<String, Object> fetchReferralRecruitmentData(HashMap<String, Object> parameterMap) {\n\t\t//BEGIN-PROCEDURE HR05-GET-REFERRAL-SOURCE\n\t\tPsPersonalApplicantReferral psReferralSource = PsPersonalApplicantReferral.findByEmployeeIdAndEffectiveDate((String)parameterMap.get(\"employeeId\"), (Date)parameterMap.get(\"effectiveDate\")); //PS_PERS_APPL_REF\n\t\tBigInteger referralSourceId = psReferralSource.getSourceId();\n\t\tPsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findBySourceId(referralSourceId); //PS_HRS_SOURCE_I\n\t\tString referralSourceDescription = psRecruitmentSource.getSourceDescription();\n//\t\tPsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findByRecruitmentSourceId(recruitmentSourceId); //PS_HRS_SOURCE_I\n\t\t//LET $PSRecruit_Source_Code = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') \n\t\tString referralSourceName = psRecruitmentSource.getSourceName();\n\t\tString psSpecificReferralSource = \"\";\n\t\t//DO HR05-FORMAT-REFERRAL-SOURCE \n\t\t\t//BEGIN-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE\n\t\t\t//Let $Found = 'N' !Initialize the found indicator\n\t\t\t//!Based on the value in the PeopleSoft Recruit Source Code assign the\n\t\t\t//!corresponding legacy system code that will be passed.\n\t\t\t//Let $PSReferral_Source = &CPT101.ZHRF_LEGRECRUITSRC\n\t\t\tString referralSource = CrossReferenceReferralSource.findActiveLegacyRecruiterSourceByReferralSource(referralSourceName); //PS_ZHRT_RFSRC_CREF\n\t\t\t//IF ($Found = 'N')\n\t\t\tif(referralSource == null) {\n\t\t\t\t//LET $PSReferral_Source = ' '\n\t\t\t\treferralSource = \"\";\n\t\t\t\t//IF $PSRecruit_Source_Code = ' ' !If the Referral Source code was not entered in PS\n\t\t\t\tif(referralSourceName == null || referralSourceName.isEmpty()) {\n\t\t\t\t\tparameterMap.put(\"errorProgram\", \"ZHRI105A\");\n\t\t\t\t\t//LET $ErrorMessageParm = 'Referral source not selected in PeopleSoft.'\n\t\t\t\t\tparameterMap.put(\"errorMessage\", \"Referral source not selected in PeopleSoft.\");\n\t\t\t\t\t//DO Prepare-Error-Parms ! JHV 09/11/02 fix Date Mask error ZHR_PRDSPT_INTF_ERROR\n\t\t\t\t\t//DO Call-Error-Routine !From ZHRI100A.SQR\n\t\t\t\t\tMain.doErrorCommand(parameterMap);\n\t\t\t\t}\n\t\t\t\t//ELSE\n\t\t\t\telse {\n\t\t\t\t\t//LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35)\n\t\t\t\t\tpsSpecificReferralSource = referralSourceDescription;\n//\t\t\t\t\tPSSpecific_Refer_Src = PSRefSourceDescr;\n\t\t\t\t//END-IF !$PSRecruit_Source_Code = ' '\n\t\t\t\t}\n\t\t\t//END-IF !$Found = 'N'\n\t\t\t}\n\t\t\t//!Make sure not less than 35 long\n\t\t\t//LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35) \n\t\t\t//TODO: //LET $PSSpecific_Refer_Src = RPAD($PSSpecific_Refer_Src,35,' ')\n\t\t\tpsSpecificReferralSource = psSpecificReferralSource.substring(0, 35);\n\t\t\tString recruitmentSourceId = psRecruitmentSource.getSourceDescription();\n\t\t\tif(recruitmentSourceId != null) {\n\t\t\t\trecruitmentSourceId = recruitmentSourceId.trim();\n\t\t\t\trecruitmentSourceId = String.format(\"%1$-35s\", recruitmentSourceId);\n\t\t\t}\n\t\t\tparameterMap.put(\"recruitmentSourceId\", recruitmentSourceId);\n\t\t\t//END-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE\n\t\t//Let $PSReferralSource = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') \n//\t\tString PSReferralSource = psRecruitmentSource.getSourceName();\n\t\t//END-PROCEDURE HR05-GET-REFERRAL-SOURCE\n\t\treferralSource = referralSource != null ? referralSource.trim() : referralSource;\n\t\tparameterMap.put(\"referralSource\", referralSource);\n\t\treturn parameterMap;\n\t}", "public void refrescarForeignKeysDescripcionesFacturaPuntoVenta() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.refrescarForeignKeysDescripcionesFacturaPuntoVenta(this.facturapuntoventaLogic.getFacturaPuntoVentas());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.refrescarForeignKeysDescripcionesFacturaPuntoVenta(this.facturapuntoventas);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Usuario.class));\r\n\t\tclasses.add(new Classe(Vendedor.class));\r\n\t\tclasses.add(new Classe(Cliente.class));\r\n\t\tclasses.add(new Classe(Caja.class));\r\n\t\tclasses.add(new Classe(TipoPrecio.class));\r\n\t\tclasses.add(new Classe(Mesa.class));\r\n\t\tclasses.add(new Classe(Formato.class));\r\n\t\tclasses.add(new Classe(TipoFacturaPuntoVenta.class));\r\n\t\tclasses.add(new Classe(EstadoFacturaPuntoVenta.class));\r\n\t\tclasses.add(new Classe(AsientoContable.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//facturapuntoventaLogic.setFacturaPuntoVentas(this.facturapuntoventas);\r\n\t\t\tfacturapuntoventaLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "public void resolver() {\r\n\t\tfor(int i = 0; i<casillas.length; i++) {\r\n\t\t\tfor(int j = 0; j<casillas[0].length; j ++) {\r\n\t\t\t\tif(casillas[i][j].darSeleccionada() == false) {\r\n\t\t\t\t\tcasillas[i][j].destapar();\r\n\t\t\t\t\tcasillas[i][j].modificarValor(cantidadMinasAlrededor(i, j));\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Mapper(componentModel = \"spring\", uses = {OperationMapper.class, PecStatusChangeMatrixMapper.class, StatusPecMapper.class,})\npublic interface RaisonPecMapper extends EntityMapper <RaisonPecDTO, RaisonPec> {\n\n @Mapping(source = \"operation.id\", target = \"operationId\")\n @Mapping(source = \"operation.label\", target = \"operationLabel\")\n @Mapping(source = \"statusPec.id\", target = \"statusPecId\")\n @Mapping(source = \"statusPec.label\", target = \"statusPecLabel\")\n\n \n @Mapping(source = \"pecStatusChangeMatrix.id\", target = \"pecStatusChangeMatrixId\")\n @Mapping(source = \"pecStatusChangeMatrix.label\", target = \"pecStatusChangeMatrixLabel\")\n \n RaisonPecDTO toDto(RaisonPec raisonPec); \n\n @Mapping(source = \"operationId\", target = \"operation\")\n\n\n\n @Mapping(source = \"statusPecId\", target = \"statusPec\")\n\n \n @Mapping(source = \"pecStatusChangeMatrixId\", target = \"pecStatusChangeMatrix\")\n\n RaisonPec toEntity(RaisonPecDTO raisonPecDTO); \n default RaisonPec fromId(Long id) {\n if (id == null) {\n return null;\n }\n RaisonPec raisonPec = new RaisonPec();\n raisonPec.setId(id);\n return raisonPec;\n }\n}", "public interface CRateProduccionMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" rates_produccion.id as recid,\"\r\n + \" rates_produccion.maquina,\"\r\n + \" maquinas.codigo as codigoMaquina,\"\r\n + \" rates_produccion.producto,\"\r\n + \" productos.codigo as codigoProducto,\"\r\n + \" rates_produccion.unidades_minuto \"\r\n + \"FROM rates_produccion \"\r\n + \"LEFT JOIN maquinas ON \"\r\n + \"maquinas.id = rates_produccion.maquina \"\r\n + \"LEFT JOIN productos ON \"\r\n + \"productos.id = rates_produccion.producto \";\r\n \r\n static final String FIND_BY_MAQUINA_PRODUCTO = \"SELECT \"\r\n + \" rates_produccion.id as recid \"\r\n + \"FROM rates_produccion \"\r\n + \"WHERE rates_produccion.maquina = #{maquina} \"\r\n + \"AND rates_produccion.producto = #{producto}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los rates existentes\r\n * @return lista de rates\r\n */\r\n @Select(FIND_ALL)\r\n public List<CRateProduccion> findAll(); \r\n \r\n /**\r\n * Método que me permite ubicar un rate de producción por su máquina-producto\r\n * @param maquina id de la maquina\r\n * @param producto id del producto\r\n * @return el id del rate\r\n */\r\n @Select(FIND_BY_MAQUINA_PRODUCTO)\r\n public Long findByMaquinaProducto(@Param(\"maquina\")Long maquina,@Param(\"producto\")Long producto);\r\n}", "@Override\n public void reloadCachedMappings() {\n }", "@Override\n public void reloadCachedMappings() {\n }", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\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.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\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/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }", "private List<Object[]> getReporteRecursivo(Reporteador reporteadorSeleccionado, DetalleReporteador detallePadre, Date fechaDesde, Date fechaHasta, int idSucursal, int nivel, Map<Integer, BigDecimal> mapaValorVariables)\r\n/* 289: */ throws AS2Exception, IllegalArgumentException, ArithmeticException\r\n/* 290: */ {\r\n/* 291:315 */ List<DetalleReporteador> listaDetalleReporteador = null;\r\n/* 292:316 */ if (detallePadre == null) {\r\n/* 293:317 */ listaDetalleReporteador = reporteadorSeleccionado.getListaDetalleReporteador();\r\n/* 294: */ } else {\r\n/* 295:319 */ listaDetalleReporteador = detallePadre.getListaDetalleReporteadorHijo();\r\n/* 296: */ }\r\n/* 297:321 */ nivel++;\r\n/* 298: */ \r\n/* 299:323 */ List<Object[]> resultado = new ArrayList();\r\n/* 300:326 */ for (DetalleReporteador detalle : listaDetalleReporteador) {\r\n/* 301:327 */ if (detalle.isActivo())\r\n/* 302: */ {\r\n/* 303:328 */ DetalleReporteadorVariable detalleVariable = detalle.getDetalleReporteadorVariable();\r\n/* 304:329 */ Object[] fila = new Object[4];\r\n/* 305:330 */ fila[0] = Integer.valueOf(nivel);\r\n/* 306:331 */ fila[1] = detalle.getNombre();\r\n/* 307:332 */ fila[2] = detalle.getDescripcion();\r\n/* 308:334 */ if (detalle.getDetalleReporteadorVariable() != null)\r\n/* 309: */ {\r\n/* 310:335 */ BigDecimal valor = obtenerValorExpresion(detalleVariable, fechaDesde, fechaHasta, idSucursal, mapaValorVariables);\r\n/* 311:336 */ fila[3] = valor;\r\n/* 312: */ }\r\n/* 313:339 */ resultado.add(fila);\r\n/* 314: */ \r\n/* 315: */ \r\n/* 316:342 */ resultado\r\n/* 317:343 */ .addAll(getReporteRecursivo(reporteadorSeleccionado, detalle, fechaDesde, fechaHasta, idSucursal, nivel, mapaValorVariables));\r\n/* 318: */ }\r\n/* 319: */ }\r\n/* 320:347 */ return resultado;\r\n/* 321: */ }", "private void buildRowMapping() {\n final Map<String, ColumnDescriptor> targetSource = new TreeMap<>();\n\n // build a DB path .. find parent node that terminates the joint group...\n PrefetchTreeNode jointRoot = this;\n while (jointRoot.getParent() != null && !jointRoot.isDisjointPrefetch()\n && !jointRoot.isDisjointByIdPrefetch()) {\n jointRoot = jointRoot.getParent();\n }\n\n final String prefix;\n if (jointRoot != this) {\n Expression objectPath = ExpressionFactory.pathExp(getPath(jointRoot));\n ASTPath translated = (ASTPath) ((PrefetchProcessorNode) jointRoot)\n .getResolver()\n .getEntity()\n .translateToDbPath(objectPath);\n\n // make sure we do not include \"db:\" prefix\n prefix = translated.getOperand(0) + \".\";\n } else {\n prefix = \"\";\n }\n\n // find propagated keys, assuming that only one-step joins\n // share their column(s) with parent\n\n if (getParent() != null\n && !getParent().isPhantom()\n && getIncoming() != null\n && !getIncoming().getRelationship().isFlattened()) {\n\n DbRelationship r = getIncoming()\n .getRelationship()\n .getDbRelationships()\n .get(0);\n for (final DbJoin join : r.getJoins()) {\n appendColumn(targetSource, join.getTargetName(), prefix\n + join.getTargetName());\n }\n }\n\n ClassDescriptor descriptor = resolver.getDescriptor();\n\n descriptor.visitAllProperties(new PropertyVisitor() {\n\n public boolean visitAttribute(AttributeProperty property) {\n String target = property.getAttribute().getDbAttributePath();\n if(!property.getAttribute().isLazy()) {\n appendColumn(targetSource, target, prefix + target);\n }\n return true;\n }\n\n public boolean visitToMany(ToManyProperty property) {\n return visitRelationship(property);\n }\n\n public boolean visitToOne(ToOneProperty property) {\n return visitRelationship(property);\n }\n\n private boolean visitRelationship(ArcProperty arc) {\n DbRelationship dbRel = arc.getRelationship().getDbRelationships().get(0);\n for (DbAttribute attribute : dbRel.getSourceAttributes()) {\n String target = attribute.getName();\n\n appendColumn(targetSource, target, prefix + target);\n }\n return true;\n }\n });\n\n // append id columns ... (some may have been appended already via relationships)\n for (String pkName : descriptor.getEntity().getPrimaryKeyNames()) {\n appendColumn(targetSource, pkName, prefix + pkName);\n }\n\n // append inheritance discriminator columns...\n for (ObjAttribute column : descriptor.getDiscriminatorColumns()) {\n String target = column.getDbAttributePath();\n appendColumn(targetSource, target, prefix + target);\n }\n\n int size = targetSource.size();\n this.rowCapacity = (int) Math.ceil(size / 0.75);\n this.columns = new ColumnDescriptor[size];\n targetSource.values().toArray(columns);\n }", "private Hashtable<String, String> cargarRecursos() {\n Hashtable<String, String> recursosTemp = new Hashtable<String, String>(); \n \n recursosTemp.put(ConstantesWS.RECURSOS_MENU_ASOCIAR_FACTURA, ConstantesWS.RECURSOS_MENU_ASOCIAR_FACTURA);\n recursosTemp.put(ConstantesWS.RECURSOS_MENU_ABM_USUARIOS_WEB, ConstantesWS.RECURSOS_MENU_ABM_USUARIOS_WEB);\n return recursosTemp;\n }", "public abstract AnnotationMap mo30683d();", "public interface DataContext extends Map<String, Map<String, String>>, Mergable<DataContext> {\n Map<String,Map<String,String>> getData();\n\n default Converter<String, String> replaceDataReferencesConverter() {\n return DataContextUtils.replaceDataReferencesConverter(getData());\n }\n\n /**\n * Create a deep copy\n *\n * @return a new object\n */\n DataContext copy();\n\n\n /**\n * Return a converter that can expand the property references within a string\n *\n * @param converter secondary converter to apply to property values before replacing in a string\n * @param failOnUnexpanded if true, fail if a property value cannot be expanded\n *\n * @return a Converter to expand property values within a string\n */\n default Converter<String, String> replaceDataReferencesConverter(\n final Converter<String, String> converter,\n final boolean failOnUnexpanded\n )\n {\n return DataContextUtils.replaceDataReferencesConverter(getData(), converter, failOnUnexpanded);\n }\n\n\n default String[] replaceDataReferences(\n final String[] args,\n final Converter<String, String> converter,\n boolean failIfUnexpanded\n )\n {\n return replaceDataReferences(args, converter, failIfUnexpanded, false);\n }\n\n\n /**\n * Replace the embedded properties of the form '${key.name}' in the input Strings with the value from the data\n * context\n *\n * @param args argument string array\n * @param converter converter\n * @param failIfUnexpanded true to fail if property is not found\n * @param blankIfUnexpanded true to use blank if property is not found\n *\n * @return string array with replaced embedded properties\n */\n default String[] replaceDataReferences(\n final String[] args,\n Converter<String, String> converter,\n boolean failIfUnexpanded,\n boolean blankIfUnexpanded\n )\n {\n return DataContextUtils.replaceDataReferencesInArray(args, getData(), converter, failIfUnexpanded, blankIfUnexpanded);\n }\n\n /**\n * Replace the embedded properties of the form '${key.name}' in the input Strings with the value from the data\n * context\n *\n * @param args argument string array\n *\n * @return string array with replaced embedded properties\n */\n default String[] replaceDataReferences(final String[] args) {\n return replaceDataReferences(args, null, false);\n }\n\n /**\n * Recursively replace data references in the values in a map which contains either string, collection or Map\n * values.\n *\n * @param input input map\n *\n * @return Map with all string values having references replaced\n */\n default Map<String, Object> replaceDataReferences(final Map<String, Object> input) {\n return DataContextUtils.replaceDataReferences(input, getData());\n }\n\n default String resolve(\n final String group,\n final String key\n )\n {\n return resolve(group, key, null);\n }\n\n /**\n * Return the resolved value from the context\n *\n * @param group group name\n * @param key key name\n * @param defaultValue default if the value is not resolvable\n *\n * @return resolved value or default\n */\n default String resolve(\n final String group,\n final String key,\n final String defaultValue\n )\n {\n Map<String, Map<String, String>> data = getData();\n return null != data && null != data.get(group) && null != data.get(group).get(key)\n ? data.get(group).get(key)\n : defaultValue;\n }\n\n /**\n * Replace the embedded properties of the form '${key.name}' in the input Strings with the value from the data\n * context\n *\n * @param input input string\n *\n * @return string with values substituted, or original string\n */\n default String replaceDataReferences(final String input) {\n return DataContextUtils.replaceDataReferencesInString(input, getData());\n }\n\n /**\n * Replace the embedded properties of the form '${key.name}' in the input Strings with the value from the data\n * context\n *\n * @param input input string\n * @param converter converter to encode/convert the expanded values\n * @param failOnUnexpanded true to fail if a reference is not found\n *\n * @return string with values substituted, or original string\n */\n default String replaceDataReferences(\n final String input,\n final Converter<String, String> converter,\n boolean failOnUnexpanded\n )\n {\n return replaceDataReferences(input, converter, failOnUnexpanded, false);\n }\n\n /**\n * Replace the embedded properties of the form '${key.name}' in the input Strings with the value from the data\n * context\n *\n * @param input input string\n * @param converter converter to encode/convert the expanded values\n * @param failOnUnexpanded true to fail if a reference is not found\n * @param blankIfUnexpanded true to use blank if a reference is not found\n *\n * @return string with values substituted, or original string\n */\n default String replaceDataReferences(\n final String input,\n final Converter<String, String> converter,\n boolean failOnUnexpanded,\n boolean blankIfUnexpanded\n )\n {\n return DataContextUtils.replaceDataReferencesInString(input, getData(), converter, failOnUnexpanded, blankIfUnexpanded);\n\n }\n\n /**\n *\n * @param other\n * @return new data context of this context merged with the other context\n */\n default DataContext merged(DataContext other) {\n return new BaseDataContext(DataContextUtils.merge(this, other));\n }\n}", "@SuppressWarnings(\"rawtypes\")\n public MapList getAllCRs(Context context, String[] args) throws Exception {\n long lStartTime = System.nanoTime();\n Pattern relationship_pattern = new Pattern(TigerConstants.RELATIONSHIP_PSS_SUBPROGRAMPROJECT);\n relationship_pattern.addPattern(TigerConstants.RELATIONSHIP_PSS_CONNECTEDPCMDATA);\n\n Pattern type_pattern = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n type_pattern.addPattern(TigerConstants.TYPE_PSS_PROGRAMPROJECT);\n\n Pattern finalType = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n try {\n StringList slselectObjStmts = getSLCTableSelectables(context);\n Map programMap = (Map) JPO.unpackArgs(args);\n String objectId = (String) programMap.get(\"objectId\");\n String strProgProj = (String) programMap.get(\"parentOID\");\n // TIGTK-16801 : 29-08-2018 : START\n boolean bAdminOrPMCMEditAllow = isAdminOrPMCMofRelatedPP(context, strProgProj);\n // TIGTK-16801 : 29-08-2018 : END\n\n BusinessObject busObj = new BusinessObject(objectId);\n\n // TIGTK-13922 START\n MapList mapList = FrameworkUtil.toMapList(busObj.getExpansionIterator(context, relationship_pattern.getPattern(), type_pattern.getPattern(), slselectObjStmts, new StringList(), false,\n true, (short) 0, null, null, (short) 0, false, true, (short) 100, false), (short) 0, finalType, null, null, null);\n // TIGTK-13922 END\n // TIGTK_3961:Sort CR data according to CR state :23/1/2017:Rutuja Ekatpure:Start\n // sort maplist according to CR state\n if (mapList.size() > 0) {\n MapList mlReturn = sortCRListByState(context, mapList);\n long lEndTime = System.nanoTime();\n long output = lEndTime - lStartTime;\n\n logger.debug(\"Total Execution time to Get all CRs in milliseconds: \" + output / 1000000);\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:START\n\n Iterator<Map<String, String>> itrCR = mlReturn.iterator();\n\n while (itrCR.hasNext()) {\n Map tempMap = itrCR.next();\n String strCRId = (String) tempMap.get(DomainConstants.SELECT_ID);\n MapList mlIA = getImpactAnalysis(context, strCRId);\n\n String strIAId = \"\";\n if (!mlIA.isEmpty()) {\n Map mpIA = (Map) mlIA.get(0);\n strIAId = (String) mpIA.get(DomainConstants.SELECT_ID);\n }\n tempMap.put(\"LatestRevIAObjectId\", strIAId);\n // TIGTK-16801 : 29-08-2018 : START\n tempMap.put(\"bAdminOrPMCMEditAllow\", bAdminOrPMCMEditAllow);\n // TIGTK-16801 : 29-08-2018 : END\n }\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:END\n return mlReturn;\n } else {\n return mapList;\n }\n // TIGTK_3961:Sort CR data according to CR state :23/1/2017:Rutuja Ekatpure:\n } catch (Exception ex) {\n logger.error(\"Error in getAllCRs: \", ex);\n throw ex;\n }\n\n }", "public DetallesFacturaContratoVenta cargarDetalle(DetallesFacturaContratoVenta detallesFacturaContratoVenta)\r\n/* 77: */ {\r\n/* 78:103 */ CriteriaBuilder criteriaBuilder = this.em.getCriteriaBuilder();\r\n/* 79: */ \r\n/* 80: */ \r\n/* 81:106 */ CriteriaQuery<DetallesFacturaContratoVenta> cqCabecera = criteriaBuilder.createQuery(DetallesFacturaContratoVenta.class);\r\n/* 82:107 */ Root<DetallesFacturaContratoVenta> fromCabecera = cqCabecera.from(DetallesFacturaContratoVenta.class);\r\n/* 83: */ \r\n/* 84:109 */ Fetch<Object, Object> contratoVenta = fromCabecera.fetch(\"contratoVenta\", JoinType.LEFT);\r\n/* 85:110 */ Fetch<Object, Object> empresa = contratoVenta.fetch(\"empresa\", JoinType.LEFT);\r\n/* 86:111 */ empresa.fetch(\"cliente\", JoinType.LEFT);\r\n/* 87: */ \r\n/* 88:113 */ Path<Integer> pathId = fromCabecera.get(\"idDetallesFacturaContratoVenta\");\r\n/* 89:114 */ cqCabecera.where(criteriaBuilder.equal(pathId, Integer.valueOf(detallesFacturaContratoVenta.getIdDetallesFacturaContratoVenta())));\r\n/* 90:115 */ CriteriaQuery<DetallesFacturaContratoVenta> selectDetalleFacturaContratoVenta = cqCabecera.select(fromCabecera);\r\n/* 91: */ \r\n/* 92:117 */ DetallesFacturaContratoVenta auxDetalleFacturaContratoVenta = (DetallesFacturaContratoVenta)this.em.createQuery(selectDetalleFacturaContratoVenta).getSingleResult();\r\n/* 93: */ \r\n/* 94:119 */ this.em.detach(auxDetalleFacturaContratoVenta);\r\n/* 95: */ \r\n/* 96: */ \r\n/* 97:122 */ CriteriaQuery<ContratoVentaFacturaContratoVenta> cqDetalleContratoVentaFacturaContratoVenta = criteriaBuilder.createQuery(ContratoVentaFacturaContratoVenta.class);\r\n/* 98:123 */ Root<ContratoVentaFacturaContratoVenta> fromDetalleContratoVentaFacturaContratoVenta = cqDetalleContratoVentaFacturaContratoVenta.from(ContratoVentaFacturaContratoVenta.class);\r\n/* 99: */ \r\n/* 100:125 */ cqDetalleContratoVentaFacturaContratoVenta.where(criteriaBuilder.equal(fromDetalleContratoVentaFacturaContratoVenta.join(\"detallesFacturaContratoVenta\"), auxDetalleFacturaContratoVenta));\r\n/* 101:126 */ CriteriaQuery<ContratoVentaFacturaContratoVenta> selectContratoVentaFacturaContratoVenta = cqDetalleContratoVentaFacturaContratoVenta.select(fromDetalleContratoVentaFacturaContratoVenta);\r\n/* 102: */ \r\n/* 103:128 */ List<ContratoVentaFacturaContratoVenta> listaContratoVentaFacturaContratoVenta = this.em.createQuery(selectContratoVentaFacturaContratoVenta).getResultList();\r\n/* 104:129 */ auxDetalleFacturaContratoVenta.setListaContratoVentaFacturaContratoVenta(listaContratoVentaFacturaContratoVenta);\r\n/* 105: */ \r\n/* 106: */ \r\n/* 107:132 */ return auxDetalleFacturaContratoVenta;\r\n/* 108: */ }", "public interface TemporaryTableUpdateRepository {\n /**\n * 查询项目人员权限变信息\n * */\n PersonnelAuthorityTimeEntity queryPersonnel(String id);\n /**\n * 查询楼栋临时表数据 id\n * **/\n BuildingMappingTimeEntity queryBuild(String id);\n /**\n * 增加楼栋临时表信息\n */\n void createBuild(BuildingMappingTimeEntity BuildingMappingTime);\n /**\n * 增加项目人员权限临时表信息\n */\n void createPersonnel(PersonnelAuthorityTimeEntity PersonnelAuthorityTime);\n /**\n * 修改楼栋临时表信息\n * */\n void updateBuild(BuildingMappingTimeEntity BuildingMappingTime);\n /**\n * 更新项目人员权限临时表信息\n * */\n void updatePersonnel(PersonnelAuthorityTimeEntity PersonnelAuthorityTime);\n /**\n * 获取所有房屋数据\n */\n List<BuildingMappingTimeEntity> getBuildingList();\n\n /**\n * 查询活动临时表数据 id\n * **/\n ActiveTemporaryTimeEntity queryActive(String id);\n\n\n /**\n * 查询活动临时表数据 id\n * **/\n ActiveTemporaryTimeEntity queryActiveBUild(String id,String PlanId);\n /**\n * 增加活动临时表信息\n */\n void createActive(ActiveTemporaryTimeEntity ActiveTemporaryTime);\n /**\n * 修改活动临时表信息\n * */\n void updateActive(ActiveTemporaryTimeEntity ActiveTemporaryTime);\n\n /**\n * 修改活动临时表信息 关闭计划\n * */\n void updateActiveStateById(String planId);\n\n /**\n * 修改活动临时表信息 关闭计划(批量)\n * */\n void updateActiveStateByIdList(List<String> idList);\n\n /**\n * 获取所有计划数据\n */\n List<ActiveTemporaryTimeEntity> getActiveList();\n\n /**\n * 查询活动临时表数据 id\n * **/\n ClassificationTemporaryTimeEntity queryClass(String id);\n\n /**\n * 查询活动临时表数据 id\n * **/\n ClassificationTemporaryTimeEntity queryClassforgradle(String id,String grad);\n\n /**\n * 查询活动临时表数据 id\n * **/\n ClassificationTemporaryTimeEntity queryClassfour(String id,String type);\n\n /**\n * 查询临时表数据\n * **/\n ClassificationTemporaryTimeEntity queryByParentId(String parentId);\n\n /**\n * 增加三级分类临时表信息\n */\n void createClass(ClassificationTemporaryTimeEntity ClassificationTemporaryTime);\n\n /**\n * 修改三级分类临时表信息\n * */\n void updateClass(ClassificationTemporaryTimeEntity ClassificationTemporaryTime);\n\n /**\n * 获取所有三级分类数据\n */\n List<ClassificationTemporaryTimeEntity> getClassList();\n}", "RelocationMove() \n\t{\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\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//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}", "public String cargarDatos()\r\n/* 514: */ {\r\n/* 515:540 */ return null;\r\n/* 516: */ }", "@Override\r\n public void refactor(AnActionEvent e)\r\n {\r\n PsiElementFactory factory = PsiElementFactory.getInstance(project);\r\n\r\n String[] splited = targetMethodCallExp.getText().replace(\"()\", \"\").split(\"\\\\.\");\r\n String replaced = splited[0] + \".\" + splited[2] + \"()\";\r\n String type = targetMethodCallExp.getType().getPresentableText();\r\n PsiExpression exp = factory.createExpressionFromText(replaced, null);\r\n\r\n String Method = \"public \" + type + \" \" + splited[2] + \"() {\\n\" +\r\n reference + \".\" + splited[2] + \"();\\n\" +\r\n \"}\";\r\n\r\n PsiMethod method = factory.createMethodFromText(Method, null);\r\n PsiClass cls = isReturnTypeExistedAsClass(targetType, targetClass);\r\n\r\n WriteCommandAction.runWriteCommandAction(project, () -> {\r\n targetMethodCallExp.replace(exp);\r\n cls.addBefore(method, cls.getLastChild());\r\n });\r\n }", "@Override\n public Comparator<Object> thenComparing(final Comparator<?> p0) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // at com.strobel.assembler.metadata.WildcardType.containsGenericParameters(WildcardType.java:55)\n // at com.strobel.assembler.metadata.TypeReference.containsGenericParameters(TypeReference.java:48)\n // at com.strobel.assembler.metadata.MethodReference.containsGenericParameters(MethodReference.java:79)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2497)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1656)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformCall(AstMethodBodyBuilder.java:1162)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:1009)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:554)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformNode(AstMethodBodyBuilder.java:392)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformBlock(AstMethodBodyBuilder.java:333)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:294)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at us.deathmarine.luyten.FileSaver.doSaveJarDecompiled(FileSaver.java:192)\n // at us.deathmarine.luyten.FileSaver.access$300(FileSaver.java:45)\n // at us.deathmarine.luyten.FileSaver$4.run(FileSaver.java:112)\n // at java.lang.Thread.run(Unknown Source)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public void method_4270() {}", "public void projectModified() { }", "public void projectModified() { }", "private static java.lang.String a(java.lang.String r5, java.util.Map r6, boolean r7) {\n /*\n r2 = F;\n r3 = new java.lang.StringBuilder;\n r0 = r5.length();\n r3.<init>(r0);\n r0 = 0;\n r1 = r0;\n L_0x000d:\n r0 = r5.length();\n if (r1 >= r0) goto L_0x0035;\n L_0x0013:\n r4 = r5.charAt(r1);\n r0 = java.lang.Character.toUpperCase(r4);\n r0 = java.lang.Character.valueOf(r0);\n r0 = r6.get(r0);\n r0 = (java.lang.Character) r0;\n if (r0 == 0) goto L_0x002c;\n L_0x0027:\n r3.append(r0);\t Catch:{ RuntimeException -> 0x003a }\n if (r2 == 0) goto L_0x0031;\n L_0x002c:\n if (r7 != 0) goto L_0x0031;\n L_0x002e:\n r3.append(r4);\t Catch:{ RuntimeException -> 0x003c }\n L_0x0031:\n r0 = r1 + 1;\n if (r2 == 0) goto L_0x003e;\n L_0x0035:\n r0 = r3.toString();\n return r0;\n L_0x003a:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003c }\n L_0x003c:\n r0 = move-exception;\n throw r0;\n L_0x003e:\n r1 = r0;\n goto L_0x000d;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.util.Map, boolean):java.lang.String\");\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "public void refrescarForeignKeysDescripcionesTablaAmortiDetalle() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.refrescarForeignKeysDescripcionesTablaAmortiDetalle(this.tablaamortidetalleLogic.getTablaAmortiDetalles());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.refrescarForeignKeysDescripcionesTablaAmortiDetalle(this.tablaamortidetalles);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Ejercicio.class));\r\n\t\tclasses.add(new Classe(Periodo.class));\r\n\t\tclasses.add(new Classe(Tasa.class));\r\n\t\tclasses.add(new Classe(Factura.class));\r\n\t\tclasses.add(new Classe(TipoIntervalo.class));\r\n\t\tclasses.add(new Classe(Anio.class));\r\n\t\tclasses.add(new Classe(Mes.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//tablaamortidetalleLogic.setTablaAmortiDetalles(this.tablaamortidetalles);\r\n\t\t\ttablaamortidetalleLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "public static void main(String[] args) {\n int progressId = 1;\n Map<Integer, Set<Entity>> progressEntities = new HashMap<>();\n Set<Entity> map000entity = new HashSet<>();\n map000entity.add(new Entity(new LocationPair<>(9.5F, 12.5F), Entity.TOWARD_RIGHT, \"Cirno\") {\n int useRefresh = 10;\n int activeTime = 80;\n boolean acting = true;\n\n @Override\n public void onRegisiter() {\n this.setMovingWay(MOVING_FASTER);\n }\n\n @Override\n public void onUnRegisiter() {\n System.out.println(\"Entity was unregisitered.\");\n }\n\n @Override\n public void action() {\n if (acting) {\n if (activeTime >= 0) {\n this.setToward(Entity.TOWARD_RIGHT);\n this.setWonderMoving(Entity.GOTOWARD_RIGHT);\n } else {\n this.setToward(Entity.TOWARD_LEFT);\n this.setWonderMoving(Entity.GOTOWARD_LEFT);\n }\n }\n if (isLastMovingSucceed()) {\n if (++activeTime >= 160) {\n activeTime = -160;\n }\n }\n if (useRefresh > 0) {\n useRefresh--;\n }\n }\n\n @Override\n public void onUse() {\n if (useRefresh == 0) {\n Keyboard.setState(Keyboard.STATE_DIALOG);\n acting = false;\n int moving = this.getMoving();\n int wonderMoving = this.getWonderMoving();\n int toward = this.getToward();\n this.setMoving(Entity.NOTGO);\n this.setWonderMoving(Entity.NOTGO);\n this.facePlayer();\n System.out.println(\"Changed the state of Keyboard.\");\n Case progress = new Case(\"test.entity.prs\", 2, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n EventManager.getInstance().performedNp(this, 0);\n Resource.regisiterMisc(new Misc() {\n @Override\n public void invoke() {\n if (Resource.getMapId() == 1) {\n this.completed();\n Keyboard.setState(Keyboard.STATE_DIALOG);\n ArrayList<String> str = new ArrayList<>();\n str.add(Localization.query(\"test.misc\"));\n SimpleTalkingDialog std = new SimpleTalkingDialog(str, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n });\n std.init();\n GameFrame.getInstance().regisiterDialog(std);\n System.out.println(\"Invoked misc.\");\n }\n }\n });\n System.out.println(\"Progress ID is now 0.\");\n System.out.println(\"Changed the state of Keyboard.\");\n useRefresh = 40;\n });\n Case hello = new Case(\"test.entity.faq\", 3, () -> {\n ArrayList<String> str = new ArrayList<>();\n str.add(Localization.query(\"test.entity.hello1\"));\n str.add(Localization.query(\"test.entity.hello2\"));\n SimpleTalkingDialog std = new SimpleTalkingDialog(str, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n useRefresh = 40;\n });\n std.init();\n GameFrame.getInstance().regisiterDialog(std);\n System.out.println(\"Changed the state of Keyboard.\");\n });\n Case back = new Case(\"test.entity.buff\", 4, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n Resource.getPlayer().addBuff(new SpeedBuff(600, 1.5F));\n System.out.println(\"Changed the state of Keyboard.\");\n useRefresh = 40;\n });\n progress.setRelation(hello, null, hello);\n hello.setRelation(back, progress, back);\n back.setRelation(null, hello, null);\n progress.init();\n hello.init();\n back.init();\n List<Case> cases = new ArrayList<>();\n cases.add(progress);\n cases.add(hello);\n cases.add(back);\n ArrayList<String> strs = new ArrayList<>();\n strs.add(Localization.query(\"test.entity.title\"));\n\t\t\t\t\tTalkingDialog dialog = new TalkingDialog(strs, cases);\n\t\t\t\t\tdialog.init();\n GameFrame.getInstance().regisiterDialog(dialog);\n }\n useRefresh = 10;\n }\n });\n Set<Entity> map002entity = new HashSet<>();\n List<String> greet = new ArrayList<>();\n greet.add(\"test.entity.npc\");\n map002entity.add(new FriendlyNPC(new LocationPair<>(9.5F, 7.5F), Entity.TOWARD_DOWN, \"Sanae\", 3, greet));\n progressEntities.put(0, map000entity);\n progressEntities.put(2, map002entity);\n Map<Integer, Set<Item>> progressItems = new HashMap<>();\n boolean withDefaultProgress = true;\n //*/\n\n\n /*\n int progressId = 0;\n Map<Integer, Set<Entity>> progressEntities = new HashMap<>();\n Map<Integer, Set<Item>> progressItems = new HashMap<>();\n boolean withDefaultProgress = true;\n */\n\n\n try {\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(new File(\"resources/object/progress\", \"progress\" + String.format(\"%03d\", progressId) + \".prs\")));\n oos.writeObject(new Progress(progressId, progressEntities, progressItems, withDefaultProgress));\n oos.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public void refrescarForeignKeysDescripcionesCierreCaja() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tCierreCajaConstantesFunciones.refrescarForeignKeysDescripcionesCierreCaja(this.cierrecajaLogic.getCierreCajas());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tCierreCajaConstantesFunciones.refrescarForeignKeysDescripcionesCierreCaja(this.cierrecajas);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Usuario.class));\r\n\t\tclasses.add(new Classe(TipoFormaPago.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//cierrecajaLogic.setCierreCajas(this.cierrecajas);\r\n\t\t\tcierrecajaLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "protected void visit(LOProject p) throws VisitorException {\n List<LogicalOperator> preds = mPlan.getPredecessors(p);\n if (preds == null || preds.size() == 0) {\n if(p.getExpression().equals(mOldNode))\n // Change the expression\n p.setExpression(mNewNode);\n\n // Remap the projection column if necessary\n if (mProjectionMapping != null && !p.isStar()) {\n List<Integer> oldProjection = p.getProjection();\n List<Integer> newProjection =\n new ArrayList<Integer>(oldProjection.size());\n for (Integer i : oldProjection) {\n Integer n = mProjectionMapping.get(i);\n assert(n != null);\n newProjection.add(n);\n }\n }\n } else {\n p.getExpression().visit(this);\n }\n }", "protected Map method_1552() {\n return super.method_1552();\n }", "public HorarioEmpleado cargarDetalleHorarioEmpleado(HorarioEmpleado horarioEmpleado)\r\n/* 44: */ {\r\n/* 45:43 */ CriteriaBuilder criteriaBuilder = this.em.getCriteriaBuilder();\r\n/* 46: */ \r\n/* 47: */ \r\n/* 48:46 */ CriteriaQuery<HorarioEmpleado> cqCabecera = criteriaBuilder.createQuery(HorarioEmpleado.class);\r\n/* 49:47 */ Root<HorarioEmpleado> fromCabecera = cqCabecera.from(HorarioEmpleado.class);\r\n/* 50: */ \r\n/* 51:49 */ fromCabecera.fetch(\"turno1\", JoinType.LEFT);\r\n/* 52:50 */ fromCabecera.fetch(\"turno2\", JoinType.LEFT);\r\n/* 53:51 */ fromCabecera.fetch(\"turno3\", JoinType.LEFT);\r\n/* 54:52 */ fromCabecera.fetch(\"turno4\", JoinType.LEFT);\r\n/* 55:53 */ fromCabecera.fetch(\"turno5\", JoinType.LEFT);\r\n/* 56:54 */ fromCabecera.fetch(\"turno6\", JoinType.LEFT);\r\n/* 57:55 */ fromCabecera.fetch(\"turno0\", JoinType.LEFT);\r\n/* 58: */ \r\n/* 59:57 */ Path<Integer> pathId = fromCabecera.get(\"idHorarioEmpleado\");\r\n/* 60:58 */ cqCabecera.where(criteriaBuilder.equal(pathId, Integer.valueOf(horarioEmpleado.getId())));\r\n/* 61:59 */ CriteriaQuery<HorarioEmpleado> select = cqCabecera.select(fromCabecera);\r\n/* 62: */ \r\n/* 63:61 */ HorarioEmpleado horarioEmpleadoNew = (HorarioEmpleado)this.em.createQuery(select).getSingleResult();\r\n/* 64:62 */ return horarioEmpleadoNew;\r\n/* 65: */ }", "private void mapID(final int column, final IdMapper id_mapper) {\n\t\t\n\t\t/*\n\t\t * To keep the original values of the preview table.\n\t\t */\n\t\tif (orig_values_list == null ) {\n\t\t\tprepareOrginalValiesTable();\n\t\t}\n\t\t\n\t\t/*\n\t\t * Getting source and target for id type. \n\t\t * Source and target species are the same (for now).\n\t\t * \n\t\t */\n\t\tfinal String target_type = (String) getIdmapTarget();\n\t\tfinal String source_type = (String) getIdmapSource();\n\t\tfinal String species = (String) getIdmapSpecies();\n\t\t\n\t\t/*\n\t\t * Name for the new column\n\t\t * TODO should give user ability to make own name, via UI.\n\t\t */\n\t\tfinal String new_name = target_type + \"->\" + source_type;\n\n\t\t/*\n\t\t * This performs the actual mapping.\n\t\t * Mapping results are stored in map \"res\".\n\t\t */\n final Map<String, IdMapping> res = id_mapper.map(\n\t\t\t\torig_values_list.get(column), source_type, target_type,\n\t\t\t\tspecies, species);\n\n if (DEBUG) {\n\t\t for (int row = 0; row < previewTable.getRowCount(); ++row) {\n\t\t\t System.out.print(row + \" :\");\n\t\t\t System.out.println((String) previewTable.getValueAt(row, column));\n\t\t }\n }\n\n /*\n * This parses the id mapping result\n */\n\t\tif (res != null && !res.isEmpty()) {\n\t\t\tfinal int orig_row_count = previewTable.getRowCount();\n\n\t\t\tfinal String[] new_column = new String[orig_row_count ];\n\t\t\tfor (int row = 0; row < orig_row_count; ++row) {\n\t\t\t\t\n\t\t\t\tfinal String source_id = orig_values_list.get(column).get(row);\n\t\t\t\tfinal IdMapping id_mapping = res.get(source_id);\n\t\t\t\tif (id_mapping != null) {\n\t\t\t\t\tif (id_mapping.getTargetIds() != null && !id_mapping.getTargetIds().isEmpty()) {\n\t\t\t\t\t\tfinal StringBuilder ids_str= new StringBuilder();\n\t\t\t\t\t\tfinal Set<String> target_ids = id_mapping.getTargetIds();\n\t\t\t\t\t\tfor (final String target_id : target_ids) {\n\t\t\t\t\t\t\tids_str.append( target_id);\n\t\t\t\t\t\t\tids_str.append( \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tnew_column[row] = ids_str.toString();\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\tnew_column[row] = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnew_column[row] = \"\";\n\t\t\t\t}\n\t\t\t\tif ( DEBUG) {\n System.out.println(source_id + \"->\" + new_column[row]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\n\t\t\t/*\n\t\t\t * From here, the problems start.\n\t\t\t * It does NOT properly add a new table column...\n\t\t\t * TODO\n\t\t\t * FIXME\n\t\t\t */\n\t\t\tfinal TableColumn new_tablecolumn = new TableColumn();\n\n\t\t\tnew_tablecolumn.setHeaderValue(new_name);\n\t\t\tpreviewTable.addColumn(new_tablecolumn);\n\t\t\t\n\t\t\tfinal PreviewTableModel pt_model = (PreviewTableModel) previewTable\n\t\t\t\t\t.getModel();\n\t\t\t\n\t\t for (int row = 0; row < new_column.length; ++row) {\n pt_model.setValueAt(new_column[row], row, 1);\n \t// col 1 is just used as test!\n }\n\t\t}\n\n\t}", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public void updateTask() {\n/* 137 */ if (this.field_190859_a.func_190718_dR()) {\n/* */ \n/* 139 */ EntityLlama entityllama = this.field_190859_a.func_190716_dS();\n/* 140 */ double d0 = this.field_190859_a.getDistanceToEntity((Entity)entityllama);\n/* 141 */ float f = 2.0F;\n/* 142 */ Vec3d vec3d = (new Vec3d(entityllama.posX - this.field_190859_a.posX, entityllama.posY - this.field_190859_a.posY, entityllama.posZ - this.field_190859_a.posZ)).normalize().scale(Math.max(d0 - 2.0D, 0.0D));\n/* 143 */ this.field_190859_a.getNavigator().tryMoveToXYZ(this.field_190859_a.posX + vec3d.xCoord, this.field_190859_a.posY + vec3d.yCoord, this.field_190859_a.posZ + vec3d.zCoord, this.field_190860_b);\n/* */ } \n/* */ }", "public void reversarComprobante() {\r\n if (tab_tabla1.getTotalFilas() > 0) {\r\n String ide_cnccc_anular = tab_tabla1.getValor(\"ide_cnccc\");\r\n // realizo el asiento de reversa\r\n con.reversar(ide_cnccc_anular, \"Asiento de reversa de la transaccion num: \" + ide_cnccc_anular, con);\r\n String ide_cnccc_nuevo = con.getTab_cabecera().getValor(\"ide_cnccc\");\r\n if (ide_cnccc_nuevo != null && !ide_cnccc_nuevo.isEmpty()) {\r\n // cambio el estado de libro bancos a anulado\r\n utilitario.getConexion().agregarSqlPantalla(\"update tes_cab_libr_banc set ide_teelb=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n // consulto si tiene Documentos por Pagar\r\n TablaGenerica tab_cxp_cab_fact = utilitario.consultar(\"select * from cxp_cabece_factur where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_cxp_cab_fact.getTotalFilas() > 0) {\r\n // cambio elestado a anulado de la factura\r\n utilitario.getConexion().agregarSqlPantalla(\"update cxp_cabece_factur set ide_cpefa=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n cls_cuentas_x_pagar cxp = new cls_cuentas_x_pagar();\r\n // reverso la transaccion CxP\r\n cxp.reversar(ide_cnccc_nuevo, tab_cxp_cab_fact.getValor(0, \"ide_cpcfa\"), \"Reversa CxP de fact. num:\" + tab_cxp_cab_fact.getValor(0, \"numero_cpcfa\") + \" y asiento num:\" + ide_cnccc_anular, null);\r\n // hago reversa de inventario\r\n TablaGenerica tab_inv_cab_inv = utilitario.consultar(\"select * from inv_cab_comp_inve where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_inv_cab_inv.getTotalFilas() > 0) {\r\n cls_inventario inv = new cls_inventario();\r\n inv.reversar_menos(ide_cnccc_nuevo, tab_inv_cab_inv.getValor(0, \"ide_cnccc\"), \"Reversa de comprobante num:\" + ide_cnccc_anular);\r\n }\r\n }\r\n\r\n boolean boo_asiento_costos = false;\r\n String ide_asiento_costos = \"-1\";\r\n // consulto si tiene CXC\r\n\r\n TablaGenerica tab_cxc_cab_fact = utilitario.consultar(\"select * from cxc_cabece_factura where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_cxc_cab_fact.getTotalFilas() > 0) {\r\n // cambio elestado a anulado de la factura cxc si tiene\r\n utilitario.getConexion().agregarSqlPantalla(\"update cxc_cabece_factura set ide_ccefa=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n cls_cuentas_x_cobrar cxc = new cls_cuentas_x_cobrar();\r\n //cxc.reversar(ide_cnccc_nuevo, tab_cxc_cab_fact.getValor(0, \"ide_cccfa\"), \"Reversa CxP de fact. num:\" + tab_cxc_cab_fact.getValor(0, \"secuencial_cccfa\") + \" y asiento num:\" + ide_cnccc_anular);\r\n TablaGenerica tab_inv_cab_inv = utilitario.consultar(\"select * from inv_cab_comp_inve where ide_incci in ( \"\r\n + \"select ide_incci from inv_det_comp_inve where ide_cccfa=\" + tab_cxc_cab_fact.getValor(0, \"ide_cccfa\") + \" GROUP BY ide_incci)\");\r\n if (tab_inv_cab_inv.getTotalFilas() > 0) {\r\n cls_inventario inv = new cls_inventario();\r\n // reverso inventario\r\n inv.reversar_mas(ide_cnccc_nuevo, tab_inv_cab_inv.getValor(0, \"ide_cnccc\"), \"Reversa de comprobante num:\" + ide_cnccc_anular);\r\n // reverso el comprobante de costos\r\n boo_asiento_costos = true;\r\n ide_asiento_costos = tab_inv_cab_inv.getValor(0, \"ide_cnccc\");\r\n }\r\n }\r\n\r\n utilitario.getConexion().guardarPantalla();\r\n tab_tabla1.setFilaActual(con.getTab_cabecera().getValor(\"ide_cnccc\"));\r\n tab_tabla1.ejecutarSql();\r\n if (boo_asiento_costos == true) {\r\n con.limpiar();\r\n con.reversar(ide_asiento_costos, \"Asiento de reversa asiento costos de la transaccion num: \" + ide_cnccc_anular, con);\r\n utilitario.getConexion().guardarPantalla();\r\n }\r\n }\r\n }\r\n }", "UCRefactoringFactory getUCRefactoringFactory();", "ChangeData getChangeData(Project.NameKey projectName, Change.Id changeId);", "void build(android.icu.impl.coll.CollationData r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.coll.CollationDataBuilder.build(android.icu.impl.coll.CollationData):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.build(android.icu.impl.coll.CollationData):void\");\n }", "public void cargarListaCreditoTributarioSRI()\r\n/* 680: */ {\r\n/* 681:750 */ this.listaCreditoTributarioSRI = this.servicioCreditoTributario.buscarPorTipoComprobanteSRI(this.facturaProveedorSRI.getTipoComprobanteSRI(), this.facturaProveedorSRI\r\n/* 682:751 */ .getTipoIdentificacion());\r\n/* 683: */ }", "public void refrescarForeignKeysDescripcionesPlantillaFactura() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tPlantillaFacturaConstantesFunciones.refrescarForeignKeysDescripcionesPlantillaFactura(this.plantillafacturaLogic.getPlantillaFacturas());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tPlantillaFacturaConstantesFunciones.refrescarForeignKeysDescripcionesPlantillaFactura(this.plantillafacturas);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(CuentaContable.class));\r\n\t\tclasses.add(new Classe(TipoRetencion.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//plantillafacturaLogic.setPlantillaFacturas(this.plantillafacturas);\r\n\t\t\tplantillafacturaLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "public String cargarDatos()\r\n/* 137: */ {\r\n/* 138:163 */ limpiar();\r\n/* 139:164 */ return \"\";\r\n/* 140: */ }", "private static HashMap<String,String> buildColumnMap() {\n HashMap<String,String> map = new HashMap<String,String>();\n map.put( STATE_NAME, STATE_NAME );\n map.put( CAPITAL_NAME, CAPITAL_NAME );\n map.put( STATE_ABBR, STATE_ABBR );\n map.put( STATE_FOUNDING_DATE, STATE_FOUNDING_DATE );\n map.put( STATE_FUN_FACT, STATE_FUN_FACT );\n map.put( BaseColumns._ID, \"rowid AS \" +\n BaseColumns._ID );\n map.put( SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID, \"rowid AS \" +\n SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID );\n map.put( SearchManager.SUGGEST_COLUMN_SHORTCUT_ID, \"rowid AS \" +\n SearchManager.SUGGEST_COLUMN_SHORTCUT_ID );\n return map;\n }", "public void mo21793R() {\n }", "@SuppressWarnings(\"rawtypes\")\n public MapList getCompletedCRs(Context context, String[] args) throws Exception {\n\n Pattern relationship_pattern = new Pattern(TigerConstants.RELATIONSHIP_PSS_SUBPROGRAMPROJECT);\n relationship_pattern.addPattern(TigerConstants.RELATIONSHIP_PSS_CONNECTEDPCMDATA);\n\n Pattern type_pattern = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n type_pattern.addPattern(TigerConstants.TYPE_PSS_PROGRAMPROJECT);\n\n Pattern finalType = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n try {\n StringList slselectObjStmts = getSLCTableSelectables(context);\n\n Map programMap = (Map) JPO.unpackArgs(args);\n String strProgProjId = (String) programMap.get(\"objectId\");\n // TIGTK-16801 : 30-08-2018 : START\n boolean bAdminOrPMCMEditAllow = isAdminOrPMCMofRelatedPP(context, strProgProjId);\n StringBuffer sbObjectWhere = new StringBuffer();\n sbObjectWhere.append(\"(type==\\\"\");\n sbObjectWhere.append(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n sbObjectWhere.append(\"\\\"&&current==\\\"\");\n sbObjectWhere.append(TigerConstants.STATE_COMPLETE_CR);\n sbObjectWhere.append(\"\\\")\");\n // TIGTK-16801 : 30-08-2018 : END\n\n DomainObject domainObj = DomainObject.newInstance(context, strProgProjId);\n\n MapList mapList = domainObj.getRelatedObjects(context, relationship_pattern.getPattern(), // relationship pattern\n type_pattern.getPattern(), // object pattern\n slselectObjStmts, // object selects\n null, // relationship selects\n false, // to direction\n true, // from direction\n (short) 0, // recursion level\n sbObjectWhere.toString(), // object where clause\n null, (short) 0, false, // checkHidden\n true, // preventDuplicates\n (short) 1000, // pageSize\n finalType, // Postpattern\n null, null, null);\n\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:START\n if (mapList.size() > 0) {\n\n Iterator<Map<String, String>> itrCR = mapList.iterator();\n while (itrCR.hasNext()) {\n Map tempMap = itrCR.next();\n String strCRId = (String) tempMap.get(DomainConstants.SELECT_ID);\n MapList mlIA = getImpactAnalysis(context, strCRId);\n\n String strIAId = \"\";\n if (!mlIA.isEmpty()) {\n Map mpIA = (Map) mlIA.get(0);\n strIAId = (String) mpIA.get(DomainConstants.SELECT_ID);\n }\n tempMap.put(\"LatestRevIAObjectId\", strIAId);\n // TIGTK-16801 : 30-08-2018 : START\n tempMap.put(\"bAdminOrPMCMEditAllow\", bAdminOrPMCMEditAllow);\n // TIGTK-16801 : 30-08-2018 : END\n }\n }\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:END\n return mapList;\n } catch (Exception ex) {\n logger.error(\"Error in getCompletedCRs: \", ex);\n throw ex;\n }\n }", "MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);", "@Override\n public RefactoringInfo specify(Refactoring refactoring, RefactoringInfo info) {\n return null;\n }", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "private static void applyRelocationMove(RelocationMove rm, Solution s, double[][] distanceMatrix) \n\t{\n\t\t//This is the node to be relocated\n\t\tCustomer relocatedNode = s.routes.get(rm.fromRoute).customers.get(rm.positionOfRelocated);\n\n\t\t//Take out the relocated node\n\t\ts.routes.get(rm.fromRoute).customers.remove(rm.positionOfRelocated);\n\n\t\t//Reinsert the relocated node into the appropriate position\n\t\t//Where??? -> after the node that WAS (!!!!) located in the rm.positionToBeInserted of the route\n\n\t\t//Watch out!!! \n\t\t//If the relocated customer is reinserted backwards we have to re-insert it in (rm.positionToBeInserted + 1)\n\t\tif (((rm.positionToBeInserted < rm.positionOfRelocated) && (rm.toRoute == rm.fromRoute))||(rm.toRoute!=rm.fromRoute))\n\t\t{\n\t\t\ts.routes.get(rm.toRoute).customers.add(rm.positionToBeInserted + 1, relocatedNode);\n\t\t}\n\t\t////else (if it is reinserted forward) we have to re-insert it in (rm.positionToBeInserted)\n\t\telse\n\t\t{\n\t\t\ts.routes.get(rm.toRoute).customers.add(rm.positionToBeInserted, relocatedNode);\n\t\t}\n\n\t\tSystem.out.println(\"FROM: Vehicle #\" + (rm.fromRoute+1) + \" Position: \" + (rm.positionOfRelocated+1) + \" --> Updated Load = \" + rm.fromUpdLoad);\n\t\tSystem.out.println(\"TO: Vehicle #\" + (rm.toRoute+1) + \" Position: \" + (rm.positionToBeInserted+1) + \" --> Updated Load = \" + rm.toUpdLoad);\n\t\tSystem.out.println(\"--------------------------------------------------\");\n\t\n\t\t\n\t\t//update the cost of the solution and the corresponding cost of the route object in the solution\n\t\ts.cost = s.cost + rm.moveCost;\n\t\ts.routes.get(rm.toRoute).cost = s.routes.get(rm.toRoute).cost + rm.toMoveCost;\n\t\ts.routes.get(rm.fromRoute).cost = s.routes.get(rm.fromRoute).cost + rm.fromMoveCost;\n\t\tif (rm.toRoute != rm.fromRoute) {\n\t\t\ts.routes.get(rm.toRoute).load = rm.toUpdLoad;\n\t\t\ts.routes.get(rm.fromRoute).load = rm.fromUpdLoad;\n\t\t}\n\t\telse {\n\t\t\ts.routes.get(rm.toRoute).load = rm.toUpdLoad;\t\t\t\n\t\t}\n\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "public Maquina cargarDetalle(int idMaquina)\r\n/* 49: */ {\r\n/* 50:103 */ return this.maquinaDao.cargarDetalle(idMaquina);\r\n/* 51: */ }", "@Override\r\n\tprotected void doResolve() {\n\r\n\t}", "private static IArregloDinamico<Integer> loadMovingViolations(String[] movingViolationsFilePaths, ITablaSimOrd<Integer, VOMovingViolation>[] tablas){\n\t\tJReader reader = null;\n\t\tGson gson = new Gson();\n\t\tVOMovingViolation infraccionAct;\n\t\t//VOMovingViolation valorAct;\n\t\t\n\t\tIArregloDinamico<Integer> numeroDeCargas = new ArregloDinamico<>();\n\t\t\n\t\tint contadorInf; // Cuenta numero de infracciones en cada archivo\n\t\ttry {\n\t\t\tfor (String filePath : movingViolationsFilePaths) {\n\t\t\t\treader = new JReader(new File(filePath));\n\t\t\t\tcontadorInf = 0;\n\t\t\t\t\n\t\t\t\t// Lee linea a linea el archivo para crear las infracciones y cargarlas a la lista\n\t\t\t\tfor (String json : reader) {\n\t\t\t\t\t// Crear infraccion dado el json actual\n\t\t\t\t\tinfraccionAct = gson.fromJson(json, VOMovingViolation.class);\n\t\t\t\t\t\n\t\t\t\t\tif (tablas[0].get(infraccionAct.getObjectId()) != null) throw new Exception(\"El ObjectID deberia ser unico!!\");\n\t\t\t\t\t\n\t\t\t\t\tfor (ITablaSimOrd<Integer, VOMovingViolation> tabla : tablas) {\n\t\t\t\t\t\ttabla.put(infraccionAct.getObjectId(), infraccionAct);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcontadorInf += 1;\n\t\t\t\t}\n\t\t\t\t// Se agrega el numero de infracciones cargadas en este archivo al resultado \n\t\t\t\tnumeroDeCargas.agregar(contadorInf);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tif (reader != null) {\n\t\t\t\ttry {\n\t\t\t\t\treader.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numeroDeCargas;\n\t}", "private void reloadPlanTable() {\n\t\t\r\n\t}", "@Override\n\tpublic void refresh() {\n\t\tif (selectedModule != null) {\n\t\t\tselectedModule = batchClass.getModuleByWorkflowName(selectedModule.getWorkflowName());\n\t\t}\n\t\tif (selectedPlugin != null) {\n\t\t\tselectedPlugin = selectedModule.getPluginByName(selectedPlugin.getPlugin().getPluginName());\n\t\t}\n\n\t\tif (pluginConfigDTO != null) {\n\t\t\tif (pluginConfigDTO.getQualifier() != null) {\n\t\t\t\tpluginConfigDTO = selectedPlugin.getBatchClassPluginConfigDTOByQualifier(pluginConfigDTO.getQualifier());\n\t\t\t} else {\n\t\t\t\tpluginConfigDTO = selectedPlugin.getBatchClassPluginConfigDTOByName(pluginConfigDTO.getName());\n\t\t\t}\n\t\t}\n\n\t\tif (selectedDocument != null) {\n\t\t\tselectedDocument = batchClass.getDocTypeByName(selectedDocument.getName());\n\t\t}\n\n\t\tif (selectedWebScannerConfiguration != null) {\n\t\t\tselectedWebScannerConfiguration = batchClass.getScannerConfigurationByProfileName(selectedWebScannerConfiguration\n\t\t\t\t\t.getValue());\n\t\t}\n\n\t\tif (selectedEmailConfiguration != null) {\n\t\t\tselectedEmailConfiguration = batchClass.getEmailConfigurationByFields(selectedEmailConfiguration.getUserName(),\n\t\t\t\t\tselectedEmailConfiguration.getPassword(), selectedEmailConfiguration.getServerName(), selectedEmailConfiguration\n\t\t\t\t\t\t\t.getServerType(), selectedEmailConfiguration.getFolderName());\n\t\t}\n\n\t\tif (selectedField != null && selectedDocument != null) {\n\t\t\tselectedField = selectedDocument.getFieldTypeByName(selectedField.getName());\n\t\t}\n\n\t\tif (tableInfoSelectedField != null && selectedDocument != null) {\n\t\t\ttableInfoSelectedField = selectedDocument.getTableInfoByName(tableInfoSelectedField.getName());\n\t\t}\n\n\t\tif (selectedFunctionKeyDTO != null && selectedDocument != null) {\n\t\t\tselectedFunctionKeyDTO = selectedDocument.getFunctionKeyDTOByShorcutKeyName(selectedFunctionKeyDTO.getShortcutKeyName());\n\t\t}\n\n\t\tif (selectedTableColumnInfoField != null && tableInfoSelectedField != null) {\n\t\t\tselectedTableColumnInfoField = tableInfoSelectedField.getTCInfoDTOByNameAndPattern(selectedTableColumnInfoField\n\t\t\t\t\t.getColumnName(), selectedTableColumnInfoField.getColumnPattern());\n\t\t}\n\n\t\tif (kvExtractionDTO != null && kvExtractionDTO.isSimpleKVExtraction() && selectedField != null) {\n\t\t\tkvExtractionDTO = selectedField.getKVExtractionByKeyAndDataTypeAndLocation(kvExtractionDTO.getKeyPattern(),\n\t\t\t\t\tkvExtractionDTO.getValuePattern(), kvExtractionDTO.getLocationType());\n\t\t}\n\n\t\tif (regexDTO != null && selectedField != null) {\n\t\t\tregexDTO = selectedField.getRegexDTOByPattern(regexDTO.getPattern());\n\t\t}\n\n\t\tif (kvPageProcessDTO != null && pluginConfigDTO != null) {\n\t\t\tkvPageProcessDTO = pluginConfigDTO.getKVPageProcessByKeyAndDataTypeAndLocation(kvPageProcessDTO.getKeyPattern(),\n\t\t\t\t\tkvPageProcessDTO.getValuePattern(), kvPageProcessDTO.getLocationType());\n\t\t}\n\n\t\tif (batchClassDynamicPluginConfigDTO != null && selectedPlugin != null) {\n\t\t\tbatchClassDynamicPluginConfigDTO = selectedPlugin\n\t\t\t\t\t.getBatchClassPluginConfigDTOByDescription(batchClassDynamicPluginConfigDTO.getDescription());\n\t\t}\n\t\tif (selectedBatchClassField != null) {\n\t\t\tselectedBatchClassField = batchClass.getBatchClassFieldByName(selectedBatchClassField.getName());\n\t\t}\n\n\t\teventBus.fireEvent(new BindEvent());\n\t}", "void optimize(android.icu.text.UnicodeSet r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.coll.CollationDataBuilder.optimize(android.icu.text.UnicodeSet):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.optimize(android.icu.text.UnicodeSet):void\");\n }", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void migrateFeaturesStep_1(Context context, Map featObjMap)\r\n throws Exception{\r\n\r\n \t mqlLogRequiredInformationWriter(\"Inside method migrateFeaturesStep_1 \"+ \"\\n\");\r\n \t //These selectables are for Parent Feature\r\n \t StringList featureObjSelects = new StringList();\r\n\t\t featureObjSelects.addElement(SELECT_TYPE);\r\n\t\t featureObjSelects.addElement(SELECT_NAME);\r\n\t\t featureObjSelects.addElement(SELECT_REVISION);\r\n\t\t featureObjSelects.addElement(SELECT_VAULT);\r\n\t\t featureObjSelects.addElement(SELECT_ID);\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\");//goes into LF or MF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\");//goes into LF,MF,CF type\r\n\r\n\t\t String featureObjId = \"\";\r\n String strType = \"\";\r\n String strName = \"\";\r\n String strRevision = \"\";\r\n String strNewRelId = \"\";\r\n \t featureObjId = (String) featObjMap.get(SELECT_ID);\r\n\r\n\r\n \t String isConflictFeature = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\t\t String strContextUsage = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t StringList sLFLToDelete = new StringList(); //FLs list to delete\r\n\r\n\t\t strType = (String) featObjMap.get(SELECT_TYPE);\r\n\t\t strName = (String) featObjMap.get(SELECT_NAME);\r\n\t\t strRevision = (String) featObjMap.get(SELECT_REVISION);\r\n\r\n\r\n\t\t if((strType!=null\r\n\t\t\t\t &&(mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))))\r\n {\r\n\t\t\t isConflictFeature = \"No\";\r\n\t\t }\r\n\r\n\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")\r\n\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n\t\t {\r\n\r\n\r\n\t\t DomainObject domFeatureObj = new DomainObject(featureObjId);\r\n\r\n\t\t HashMap mapAttribute = new HashMap();\r\n\r\n\t\t //check whether feature is standalone or Toplevel or is in the Structure\r\n\t\t //String relPattern = ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO;\r\n\r\n\t\t StringBuffer sbRelPattern1 = new StringBuffer(50);\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO);\r\n\t\t\tsbRelPattern1.append(\",\");\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM);\r\n\r\n\t\t\tStringBuffer sbTypePattern2 = new StringBuffer(50);\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_FEATURE_LIST);\r\n\t\t\t\tsbTypePattern2.append(\",\");\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_MODEL);\r\n\r\n\r\n\r\n\r\n\t\t StringList flObjSelects = new StringList();\r\n\t\t flObjSelects.addElement(ConfigurationConstants.SELECT_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_FROM_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_TO_ID);\r\n\r\n\t\t StringList flRelSelects = new StringList();\r\n\t\t flRelSelects.addElement(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t flRelSelects.addElement(\"from.from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].from.id\");\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].id\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List To\" rel traversed\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.id\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.type\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List From\" rel traversed\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //In DV id Inactive in context of Product or Invalid in context of PV\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t //flObjSelects.addElement(\"from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\t\t //selectables of all attributes on FL which are to be migrated\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"); //goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\");//goes on to CF,LF,MF relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\"); //goes on to CF type\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"); //will go as interface attribute onto relationship mentioned in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");//this will be used as described in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n \t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n \t\t //selectables of attribute on FLF relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\");\r\n\r\n \t\t //selectables to determine if the Feature can have Key-In Type = Input\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\r\n \t\t //selectable to get Key-In Value on Selected Option Relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.id\");\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id started ----->\"+\" --- \"+now()+\"\\n\");\r\n\r\n \t\t MapList FL_List = domFeatureObj.getRelatedObjects(context,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //relPattern, //relationshipPattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbRelPattern1.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //ConfigurationConstants.TYPE_FEATURE_LIST, //typePattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbTypePattern2.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flObjSelects, //objectSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flRelSelects, //relationshipSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t true, //getTo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, //getFrom\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (short)1, //recurseToLevel\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //objectWhere,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //relationshipWhere\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (int)0, //limit\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null , //includeType\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //includeRelationship\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null); //includeMap\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id end ----->\"+\" --- \"+now()+\"\\n\");\r\n\t\t //To check whether the \"Feature Selection Type\" has any conflict for this Feature\r\n\t\t boolean bConflictSelType = false;\r\n\t\t String strFST =\"\";\r\n\t\t StringList sLFST = new StringList();\r\n\t\t for(int iCntFL=0;iCntFL<FL_List.size();iCntFL++){\r\n\t\t\t Map flMap = (Map)FL_List.get(iCntFL);\r\n\t\t\t strFST = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\t\t\t if(sLFST.size()>0){\r\n\t\t\t\t if(!sLFST.contains(strFST)){\r\n\t\t\t\t\t bConflictSelType = true;\r\n\t\t\t\t\t break;\r\n\t\t\t\t }else{\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }else{\r\n\t\t\t\t if(strFST!=null && !strFST.equals(\"\")){\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\t\t //If FL object is absent\r\n\t\t if(FL_List.size()==0)\r\n\t\t {\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are no 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t if(strType!=null\r\n\t\t\t\t &&(!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))||\r\n\t\t\t\t isOfDerivationChangedType(context, strType)) {\r\n\t\t\t\t if(strType!=null && !isOfDerivationChangedType(context, strType)){\r\n\r\n\r\n\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n\t\t\t\t String newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+ newFeatureChangeType +\"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t :: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t //change the feature to new type\r\n\t\t\t\t //BusinessObject featureBO = changeType(context,featObjMap,featureObjId,newFeatureChangeType,newFeaturePolicy);\r\n\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t boFeatureObj.change(context,\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tnewFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewFeaturePolicy);\r\n\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t:: \"+featureObjId +\"\\n\");\r\n\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\t\t\t\t if(newFeatureChangeType!=null &&\r\n\t\t\t\t\t\t (newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)\r\n\t\t\t\t\t\t\t\t )){\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n\t\t\t\t }\r\n\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t\t :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }else{\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, strType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type \t\t:: \"+ strType +\"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t\t\t:: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t\t DomainObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t\t boFeatureObj.setPolicy(context, newFeaturePolicy);\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t\t domFeatureObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t //Set the attribute values for \"software Feature\" when Feat is standalone\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t }else //if feature is not standalone\r\n\t\t {\r\n\t\t\t MapList FLInfoList = new MapList(); // FLs info MapList to pass to external migrations\r\n\t\t\t \r\n\t\t\t mqlLogRequiredInformationWriter(\"\\n\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"Traverse through the given list of 'Feature List' object start .\"+\"\\n\\n\");\r\n\r\n\t\t\t for(int i=0;i<FL_List.size();i++)\r\n\t\t\t {\r\n\t\t\t\t Map flMap = (Map)FL_List.get(i);\r\n\t\t\t\t String strFLId = (String)flMap.get(DomainConstants.SELECT_ID);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id in process :: \"+ strFLId +\"\\n\");\r\n\r\n\t\t\t\t try{\r\n\t\t\t\t\t String strRelType = (String)flMap.get(\"relationship\");\r\n\t\t\t\t\t if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM)){\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Candiadate Item' rel in process ---> relName \"+ strRelType +\"\\n\");\r\n\t\t\t\t\t\t String strNewRelType = \"\";\r\n\t\t\t\t\t\t //String strManAttr =(String) flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");\r\n\t\t\t\t\t\t //Use case related to Candidate Item\r\n\t\t\t\t\t\t String strCandItemRel = (String)flMap.get(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t\t\t\t\t DomainRelationship domrel = new DomainRelationship(strCandItemRel);\r\n\t\t\t\t\t\t Map attributeMap = new HashMap();\r\n\t\t\t\t\t\t attributeMap = domrel.getAttributeMap(context,true);\r\n\t\t\t\t\t\t String strManAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE);\r\n\t\t\t\t\t\t String strInheritedAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_INHERITED);\r\n\t\t\t\t\t\t String newFeatureChangeType =\"\";\r\n\r\n \t\t\t\t\t\t if(strType!=null\r\n \t\t\t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t //Get the new Feature Type\r\n \t\t\t\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n \t\t\t\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n \t\t\t\t\t\t\t newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Get the new Feature Policy\r\n \t\t\t\t\t\t \t\t\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+newFeatureChangeType +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy :: \"+mNewFeaturePolicy +\"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //change the feature to new type\r\n \t\t\t\t\t\t \t\t\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t boFeatureObj.change(context,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tnewFeatureChangeType,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewFeaturePolicy);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+featureObjId +\"\\n\");\r\n\t\t\t \t\t\t\t\t\t \t\t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"False\")))\r\n \t\t\t\t\t\t \t\t\t\t\t {\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES;\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\tif(newFeatureChangeType!=null\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"No\")))\r\n \t\t\t\t\t\t\t \t\t\t\t\t {\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_CONFIGURATION_FEATURES;\r\n \t\t\t\t\t\t\t \t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t &&(newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)))\r\n \t\t\t\t\t\t \t\t\t\t\t\t {\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_LOGICAL_FEATURES;\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(ProductLineCommon.isNotNull(strNewRelType)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && !strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t DomainRelationship.setType(context, strCandItemRel,strNewRelType);\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t }else{\r\n\r\n \t\t\t\t\t\t\tnewFeatureChangeType = strType;\r\n\r\n \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t/* if(strNewRelType!=null && strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\t\t\t\t\t \t\t\t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED, strInheritedAttr);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t domrel.setAttributeValues(context, mapRelAttributes);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t }*/\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"True\")))\r\n\t\t\t\t\t\t \t\t\t\t\t {\r\n\t\t\t\t\t \t\t\t\t\t\t\t DomainRelationship.disconnect(context, strCandItemRel);\r\n\t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t }else if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO)){\r\n\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Feature list To' rel in process ---> relName \"+ strRelType +\"\\n\\n\");\r\n\t\t\t\t\t\t //Get the \"From Side\" info of FL object\r\n\t\t\t\t\t String strParentFeatureId =\"\";\r\n\t\t\t\t\t String strParentFeatureType =\"\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_COMMITED_ITEM+\"].from.id\")!=null){\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t//Use Case related to hanging FL Objects\r\n\t\t\t\t\t if(strParentFeatureId!=null && strParentFeatureId.length()!=0){\r\n\t\t\t\t\t String isConflictParentFeature =\"No\";\r\n\t\t\t\t\t DomainObject domParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t Map htParentObjData = (Map) domParentFeat.getInfo(context, featureObjSelects);\r\n\r\n\t\t\t\t\t if(mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_FEATURES)){\r\n\r\n\t\t\t\t\t\t isConflictParentFeature = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t //Both the side Objects of FL should be convertible\r\n \t\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")&& isConflictParentFeature.equalsIgnoreCase(\"No\")){\r\n\r\n\t\t\t\t\t /* First ...Check if Parent is already converted to New Type or not\r\n\t\t\t\t\t * If Not then convert it to the new Type then continue\r\n\t\t\t\t\t * Attributes will be set later ..whenever the Feature comes as child in the list.*/\r\n\t\t\t\t\t if(strParentFeatureType!=null\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCTS)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCT_LINE)){\r\n\r\n\t\t\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t\t\t String newParentFeatureType = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t\t\t //String newParentFeatureChangeType = PropertyUtil.getSchemaProperty(context,newParentFeatureType);\r\n\t\t\t\t\t\t String newParentFeatureChangeType = getSchemaProperty(context,newParentFeatureType);\r\n\r\n\t\t\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t\t\t Map mNewParentFeatPolicy = mxType.getDefaultPolicy(context, newParentFeatureChangeType, true);\r\n\t\t\t\t\t\t String strNewParentFeatPolicy = (String) mNewParentFeatPolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Type :: \"+ newParentFeatureChangeType +\"\\n\");\r\n\t \t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Policy :: \"+ strNewParentFeatPolicy +\"\\n\");\r\n\r\n\t \t\t\t\t\tString MarketTextPar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");\r\n\t \t\t\t\t String MarketNamePar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");\r\n\t \t\t\t\t \r\n\t \t\t\t\t \r\n\t \t\t\t\t\t \r\n\t \t\t\t\t\t//Set the necessary Text and name attribute values of new Type Parent Feature object which will be lost once type is changed below.\r\n\t \t\t\t\t\t HashMap mapParentFeatAttribute = new HashMap();\r\n\t \t\t\t\t\tif(MarketTextPar!=null && !MarketTextPar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT, MarketTextPar);\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\tif(MarketNamePar!=null && !MarketNamePar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME, MarketNamePar);\r\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 //change the feature to new type\r\n\t\t\t\t\t\t BusinessObject boParFeatureObj = new DomainObject(strParentFeatureId);\r\n\r\n\t\t\t\t\t\t boParFeatureObj.change(context,\r\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t newParentFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t strNewParentFeatPolicy);\r\n\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+strParentFeatureId +\"\\n\");\r\n\t\t\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newParentFeatureChangeType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + strNewParentFeatPolicy\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\tDomainObject domainParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this id ---->\" + \"\\n\" + mapParentFeatAttribute +\"\\n\\n\");\r\n\t\t\t\t\t\tdomainParentFeat.setAttributeValues(context,mapParentFeatAttribute);\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t String newChildFeatureChangeType =\"\";\r\n\t\t\t\t\t //Get the new Feature Relationship\r\n\t\t\t\t\t String newReltoConnect = \"\";\r\n\r\n\t\t\t\t\t if(strType!=null\r\n\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t\t\t ){\r\n\r\n\t\t\t\t\t\t//Check whether \"To Side\" i.e. Child Feature is CF/LF/MF.. Do the processing\r\n\t\t\t\t\t\t //newChildFeatureChangeType = PropertyUtil.getSchemaProperty(context,strContextUsage);\r\n\t\t\t\t\t\t newChildFeatureChangeType = getSchemaProperty(context,strContextUsage);\r\n\r\n\t\t\t\t\t\t if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_CONFIGURATION_OPTION)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t\t//Varies By,Valid Context,Invalid Context related code\r\n\t\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null\r\n\t\t\t\t\t\t\t\t && (newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_SOFTWARE_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\r\n\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t\t if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_OPTION))){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && strType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(strType!=null\r\n\t\t\t\t\t\t\t\t && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_SOFTWARE_FEATURE)))\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_MANUFACTURING_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\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\t\t //Set attribute values for \"To Side\" of the \"Feature List To\" relationship i.e. Child Feat Obj\r\n\t\t\t\t\t\t String strSelCriterion = setAttributeValuesOfChildFeatureObj(context,flMap,featObjMap,bConflictSelType);\r\n\r\n \t\t\t\t\t //Do the connection between 2 Feature Objects\r\n\r\n \t\t\t\t\t //restricting the connection if FST = Key-In and Key-In Type = Input\r\n \t\t\t\t\t String strFSTAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n \t\t\t\t\t String strKITAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t\t\t\t if(strKITAttrValue.equals(RANGE_VALUE_INPUT)\r\n \t\t\t\t\t\t && strFSTAttrValue.equals(ConfigurationConstants.RANGE_VALUE_KEY_IN)\r\n \t\t\t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)||\r\n \t\t\t\t\t\t\t newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)))\r\n \t\t\t\t\t {\r\n \t\t\t\t\t\t StringList slPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slSOAttrKIVs = new StringList();\r\n \t\t\t\t\t\t StringList slParentPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slParentSORelIds = new StringList();\r\n\r\n \t\t\t\t\t\t Object objPCIds = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t\t\t\t\t if (objPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slPCIds = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t\t\t\t\t\t} else if (objPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslPCIds.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n\r\n \t\t\t\t\t\t Object objSOAttrKIVs = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t\t\t\t\t if (objSOAttrKIVs instanceof StringList) {\r\n \t\t\t\t\t\t\t slSOAttrKIVs = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n\r\n \t\t\t\t\t\t\t} else if (objSOAttrKIVs instanceof String) {\r\n \t\t\t\t\t\t\t\tslSOAttrKIVs.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t String strParentPCIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t Object objParentPCIds = flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t if(objParentPCIds==null || \"\".equals(objParentPCIds)){\r\n \t\t\t\t\t\t\tstrParentPCIdSel =\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t\tobjParentPCIds = flMap.get(strParentPCIdSel);\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentPCIds = (StringList) flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentPCIds.addElement((String) flMap.get(strParentPCIdSel));\r\n \t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//to[Feature List From].from.to[Feature List To].from.to[Selected Options].from.type\r\n\r\n \t\t\t\t\t\t String strParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t Object objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n \t\t\t\t\t\t if(objParentSORelIds==null || \"\".equals(objParentSORelIds)){\r\n \t\t\t\t\t\t\tstrParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t\t objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentSORelIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentSORelIds = (StringList) flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentSORelIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentSORelIds.addElement((String) flMap.get(strParentSORelIdSel));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t //VJB: TODO: seems a bug, int j is never used\r\n \t\t\t\t\t\t for(int j=0;slPCIds!=null && i<slPCIds.size();i++ )\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t String strPCId = (String)slPCIds.get(i);\r\n \t\t\t\t\t\t\t String strAttrKIV = (String)slSOAttrKIVs.get(i);\r\n \t\t\t\t\t\t\t if(slParentPCIds!=null && slParentPCIds.contains(strPCId))\r\n \t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t for(int k=0;k<slParentPCIds.size();k++)\r\n \t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t String strParentPCId = (String)slParentPCIds.get(k);\r\n \t\t\t\t\t\t\t\t\t if(strParentPCId.equals(strPCId))\r\n \t\t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t\t String strParentSORelId = (String)slParentSORelIds.get(k);\r\n \t\t\t\t\t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strParentSORelId);\r\n \t\t\t\t\t\t\t\t\t\t domRel.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE, strAttrKIV);\r\n \t\t\t\t\t\t\t\t\t\t break;\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 }\r\n\r\n \t\t\t\t\t }\r\n \t\t\t\t\telse\r\n \t\t\t\t\t {\r\n \t\t\t\t\t\t//strNewRelId = connectFeaturesWithNewRel(context,strParentFeatureId,featureObjId,strType,newReltoConnect);\r\n \t\t\t\t\t\tstrNewRelId = connectFeaturesWithNewRel(context,htParentObjData,featureObjId,strType,newReltoConnect);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n\r\n \t\t\t\t\t //Migrate attributes from FL to Rel id\r\n \t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_RULE_TYPE,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\"));\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)\r\n \t\t\t\t\t\t || newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES))){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FIND_NUMBER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_USAGE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"));\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t&& newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ATTRIBUTE_LOGICAL_SELECTION_CRITERIA,strSelCriterion);\r\n \t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t \t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_SELECTION_CRITERIA,strSelCriterion);\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t //mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Mandatory Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t //\"Varies By\" and \"Inactive Varies By\" relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t&&\r\n \t\t\t\t\t\t(newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_VARIES_BY)\r\n \t\t\t\t\t\t ||newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY)))\r\n \t\t\t\t\t {\r\n\t\t\t\t\t\t if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t ((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_YES)){\r\n\r\n\r\n\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_MANDATORY);\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n\t\t\t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\t\t\t\t\t\t }else if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t\t\t\t\t((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_NO)){\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\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\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewRelId + \"\\n\");\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAttributes +\"\\n\\n\");\r\n \t\t\t\t\t\t domRel.setAttributeValues(context, mapRelAttributes);\r\n \t\t\t\t\t\t //preparing MapList to pass to external migration\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelId\",strNewRelId);\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel1 = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t domRel1.open(context);\r\n \t\t\t\t\t String connectionName = domRel1.getTypeName();\r\n \t\t\t\t\t FLInfoMap.put(\"newRelType\",connectionName);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelName\",newReltoConnect);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t //Add FL object to delete list\r\n\t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n\r\n\t\t\t\t\t }\r\n \t\t\t\t }else{\r\n \t\t\t\t\t\t //This is hanging FL Object ID need to b removed\r\n \t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n \t\t\t\t }\r\n\r\n \t\t\t }catch(Exception e)\r\n \t\t\t {\r\n \t\t\t\t e.printStackTrace();\r\n \t\t\t\t throw new FrameworkException(e.getMessage());\r\n \t\t\t }\r\n \t }\r\n\r\n \t\t\t//Float the connections on FL objects to new Relationships formed\r\n \t\t\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t floatFLConnections(context,FLInfoList);\r\n \t\t\t }\r\n\r\n\r\n \t\t\t//call external migration\r\n \t\t\tMapList customResults = callInterOpMigrations(context, FLInfoList);\r\n \t\t\tIterator itrCustomResults = customResults.iterator();\r\n \t\t\twhile (itrCustomResults.hasNext()) {\r\n Map customResultsMap = (Map)itrCustomResults.next();\r\n \t\t\t\t Integer status = (Integer)customResultsMap.get(\"status\");\r\n\t\t\t\t String failureMessage = (String)customResultsMap.get(\"failureMessage\");\r\n\r\n\t\t\t\t if(status==1)\r\n\t\t\t\t {\r\n\t\t\t\t\t throw new FrameworkException(failureMessage);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\r\n\t\t//Check the \"Varies By\" and \"Effectivity Status\" values\r\n\t\t StringList sLVariesByRelId =new StringList();\r\n\t\t StringList sLEffectivityStatusValue=new StringList();\r\n\t\t StringList sLActiveCntValue=new StringList();\r\n\t\t StringList sLInActiveCntValue=new StringList();\r\n\t\t StringList sLParType=new StringList();\r\n\r\n\r\n\t\tif((StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\")!=null){\r\n\r\n\t\t\t//sLName = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t//sLVariesByRelId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t//sLEffectivityStatusValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t//sLActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t//sLInActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t//sLParentId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\r\n\t\t\t/*Not using the above statements as there is issue in sequence of ids in String list\r\n\t\t\t * coming from above getInfo\r\n\t\t\t * Doing the getInfo again on the given Feature Id\r\n\t\t\t */\r\n\r\n\t\t\tString stFeaId = (String) featObjMap.get(SELECT_ID);\r\n\t\t\tDomainObject domFd = new DomainObject(stFeaId);\r\n\t\t\tStringList objSel = new StringList();\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\t Map MFeatObj = domFd.getInfo(context, objSel);\r\n\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\tsLVariesByRelId = (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\tsLParType= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\tsLEffectivityStatusValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\tsLActiveCntValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\tsLInActiveCntValue=(StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n\t\t}\r\n\r\n\t\tHashMap mapRelAtt = null;\r\n\r\n\t\tfor(int iEffStatusCnt=0;iEffStatusCnt<sLEffectivityStatusValue.size();iEffStatusCnt++){\r\n\t\t\tmapRelAtt = new HashMap();\r\n\t\t\tString strEffectStatus = (String)sLEffectivityStatusValue.get(iEffStatusCnt);\r\n\t\t\tif(strEffectStatus!=null && strEffectStatus.equalsIgnoreCase(ConfigurationConstants.EFFECTIVITY_STATUS_INACTIVE)){\r\n\t\t\t\tDomainRelationship.setType(context, (String)sLVariesByRelId.get(iEffStatusCnt), ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t}\r\n\r\n\r\n\t\t\tString strInActiveCntValue = (String)sLInActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint inactiveCount = Integer.parseInt(strInActiveCntValue);\r\n\r\n\t\t\tString strActiveCntValue = (String)sLActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint activeCount = Integer.parseInt(strActiveCntValue);\r\n\r\n\t\t\tif( inactiveCount==0 && activeCount==0 ){\r\n\t\t\t\tString strParType = (String)sLParType.get(iEffStatusCnt);\r\n\t\t\t\tif(mxType.isOfParentType(context,strParType, ConfigurationConstants.TYPE_PRODUCTS)){\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t}\r\n\t\t\tDomainRelationship domRel = new DomainRelationship((String)sLVariesByRelId.get(iEffStatusCnt));\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+(String)sLVariesByRelId.get(iEffStatusCnt)+ \"\\n\");\r\n\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAtt +\"\\n\\n\");\r\n\t\t\tdomRel.setAttributeValues(context, mapRelAtt);\r\n\t\t}\r\n\r\n\r\n\t\t//Cleanup - delete related Feature List objects on successful migration of Feature\r\n\t\t deleteObjects(context,sLFLToDelete);\r\n\r\n\t\t loadMigratedOids(featureObjId);\r\n\r\n\t }else{ // for those Features which has \"Conflict\" stamp \"Yes\"\r\n\t\t String strCommand = strType + \",\" + strName + \",\" + strRevision + \",\" + strContextUsage+\"\\n\";\r\n\t\t\t writeUnconvertedOID(strCommand, featureObjId);\r\n\t }\r\n\r\n }", "public interface TdHtFuncroleRelRepository {\n\n /**\n * @Purpose 根据id查找角色id和功能id\n * @version 4.0\n * @author lizhun\n * @param map\n * @return TdHtFuncroleRelDto\n */\n public TdHtFuncroleRelDto findFuncroleRelByRoleIdAndFuncId(Map<String,Integer> map);\n\n /**\n * @Purpose 根据权限id查找角色权限关联信息\n * @version 4.0\n * @author lizhun\n * @param role_id\n * @return List<TdHtFuncroleRelDto>\n */\n public List<TdHtFuncroleRelDto> findFuncroleRelsByRoleId(int role_id);\n /**\n * @Purpose 添加角色权限关联信息\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void insertFuncroleRel(TdHtFuncroleRelDto TdHtFuncroleRelDto);\n /**\n * @Purpose 修改角色限关联信息\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void updateFuncroleRel(TdHtFuncroleRelDto TdHtFuncroleRelDto);\n /**\n * @Purpose 修改角色所有功能不可用\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void updateFuncroleRelByRoleId(int role_id);\n}", "protected void warmupImpl(M newValue) {\n\n }", "@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }", "void copyFrom(android.icu.impl.coll.CollationDataBuilder r1, android.icu.impl.coll.CollationDataBuilder.CEModifier r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.coll.CollationDataBuilder.copyFrom(android.icu.impl.coll.CollationDataBuilder, android.icu.impl.coll.CollationDataBuilder$CEModifier):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.copyFrom(android.icu.impl.coll.CollationDataBuilder, android.icu.impl.coll.CollationDataBuilder$CEModifier):void\");\n }", "private CratState preoptimizeClasses(Map<Integer, ? extends CratClass> classSet) {\n\t\tArrayList<EvaluatedClass> optimized = new ArrayList<EvaluatedClass>();\n\t\t// preoptimize classes\n\t\tif (classSet.size() > 0)\n\t\t\tfor (Map.Entry<Integer, ? extends CratClass> entry : classSet.entrySet()) {\n\t\t\t\tint classId = entry.getKey();\n\t\t\t\tCratClass curClass = entry.getValue();\n\t\t\t\tString className = craCase.getClassName(classId);\n\t\t\t\tinfo(String.format(\"[%4.1f%%] preoptimizing class %s (%d entities) \",\n\t\t\t\t\t\t(100.0 * progressNom) / progressDenom, className, curClass.size()));\n\t\t\t\t// Don't deconstruct class\n\t\t\t\t// CratState curState = new CratState(curClass, metric);\n\t\t\t\t// Deconstruct class\n\t\t\t\tCratState curState = stateFromClass(curClass);\n\t\t\t\tdouble curEvaluation = curState.getEvaluation();\n\t\t\t\tCratState bestOptimum = curState;\n\t\t\t\tfor (int methodId : scenario.getAlgorithmsForClass()) {\n\t\t\t\t\tSearchAlgorithm heuristic = HeuristicFactory.getHeuristic(methodId, explorer,\n\t\t\t\t\t\t\tcurState, null, null);\n\t\t\t\t\t// info(String.format(\"%s..\", heuristic.getShortName()));\n\t\t\t\t\tCratState optimum = (CratState) heuristic.getOptimum();\n\t\t\t\t\t// info(String.format(\": %+8.6f %s\\n\", optimum.getEvaluation() - curEvaluation,\n\t\t\t\t\t// optimum));\n\t\t\t\t\tif (optimum.isBetterThan(bestOptimum.getEvaluation()))\n\t\t\t\t\t\tbestOptimum = optimum;\n\t\t\t\t}\n\t\t\t\tinfo(String.format(\": %+8.6f\\n\", bestOptimum.getEvaluation() - curEvaluation));\n\t\t\t\toptimized.addAll(bestOptimum.values());\n\t\t\t\tprogressNom++;\n\t\t\t}\n\t\treturn new CratState(optimized, metric);\n\t}", "private void calcPossibleMappingImpl(\n Collection<Vertex> currentSourceVertices,\n Collection<Vertex> currentTargetVertices,\n List<String> contextId,\n int contextIx,\n List<VertexContextSegment> contexts,\n Set<Vertex> usedSourceVertices,\n Set<Vertex> usedTargetVertices,\n String typeNameForDebug) {\n runningCheck.check();\n\n VertexContextSegment finalCurrentContext = contexts.get(contextIx);\n Map<String, ImmutableList<Vertex>> sourceGroups = FpKit.filterAndGroupingBy(currentSourceVertices,\n v -> finalCurrentContext.filter(v, sourceGraph),\n v -> finalCurrentContext.idForVertex(v, sourceGraph));\n Map<String, ImmutableList<Vertex>> targetGroups = FpKit.filterAndGroupingBy(currentTargetVertices,\n v -> finalCurrentContext.filter(v, targetGraph),\n v -> finalCurrentContext.idForVertex(v, targetGraph));\n\n\n List<String> deletedContexts = new ArrayList<>();\n List<String> insertedContexts = new ArrayList<>();\n List<String> sameContexts = new ArrayList<>();\n Util.diffNamedList(sourceGroups.keySet(), targetGroups.keySet(), deletedContexts, insertedContexts, sameContexts);\n\n // for each unchanged context we descend recursively into\n for (String sameContext : sameContexts) {\n ImmutableList<Vertex> sourceVerticesInContext = sourceGroups.get(sameContext);\n ImmutableList<Vertex> targetVerticesInContext = targetGroups.get(sameContext);\n\n List<String> currentContextId = concat(contextId, sameContext);\n if (contexts.size() > contextIx + 1) {\n calcPossibleMappingImpl(sourceVerticesInContext, targetVerticesInContext, currentContextId, contextIx + 1, contexts, usedSourceVertices, usedTargetVertices, typeNameForDebug);\n }\n /**\n * Either there was no context segment left or not all vertices were relevant for\n * Either way: fill up with isolated vertices and record as possible mapping\n */\n Set<Vertex> notUsedSource = new LinkedHashSet<>(sourceVerticesInContext);\n notUsedSource.removeAll(usedSourceVertices);\n Set<Vertex> notUsedTarget = new LinkedHashSet<>(targetVerticesInContext);\n notUsedTarget.removeAll(usedTargetVertices);\n\n possibleMappings.putPossibleMappings(currentContextId, notUsedSource, notUsedTarget, typeNameForDebug);\n usedSourceVertices.addAll(notUsedSource);\n usedTargetVertices.addAll(notUsedTarget);\n }\n\n /**\n * update the used vertices with the deleted and inserted contexts\n */\n Set<Vertex> possibleSourceVertices = new LinkedHashSet<>();\n for (String deletedContext : deletedContexts) {\n ImmutableList<Vertex> vertices = sourceGroups.get(deletedContext);\n for (Vertex sourceVertex : vertices) {\n if (!usedSourceVertices.contains(sourceVertex)) {\n possibleSourceVertices.add(sourceVertex);\n }\n }\n usedSourceVertices.addAll(vertices);\n }\n\n Set<Vertex> possibleTargetVertices = new LinkedHashSet<>();\n for (String insertedContext : insertedContexts) {\n ImmutableList<Vertex> vertices = targetGroups.get(insertedContext);\n for (Vertex targetVertex : vertices) {\n if (!usedTargetVertices.contains(targetVertex)) {\n possibleTargetVertices.add(targetVertex);\n }\n }\n usedTargetVertices.addAll(vertices);\n }\n if (contextId.size() == 0) {\n contextId = singletonList(typeNameForDebug);\n }\n possibleMappings.putPossibleMappings(contextId, possibleSourceVertices, possibleTargetVertices, typeNameForDebug);\n }", "protected void compileInternal() {\r\n\r\n\t\ttableMetaDataContext.processMetaData(getJdbcTemplate().getDataSource());\r\n\t\treconcileUpdatingColumns();\r\n\r\n\t\tupdateString = createUpdateString();\r\n\r\n\t\tList<String> columns = new ArrayList<String>();\r\n\t\tcolumns.addAll(reconciledUpdatingColumns);\r\n\t\tcolumns.addAll(restrictingColumns.keySet());\r\n\r\n\t\tcolumnTypes = tableMetaDataContext.createColumnTypes(columns);\r\n\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tlogger.debug(\"Compiled JdbcUpdate. Update string is [\" + getUpdateString() + \"]\");\r\n\t\t}\r\n\r\n\t\tonCompileInternal();\r\n\t}", "public Reporteador cargarDetalle(int idReporte)\r\n/* 197: */ {\r\n/* 198:214 */ return this.reporteadorDao.cargarDetalle(idReporte);\r\n/* 199: */ }" ]
[ "0.552975", "0.552975", "0.5428168", "0.5412989", "0.5123944", "0.5118397", "0.510558", "0.505546", "0.50275886", "0.5016887", "0.5001922", "0.49907446", "0.4974217", "0.49601665", "0.49588847", "0.49426186", "0.49068597", "0.4896053", "0.4895478", "0.48899317", "0.48878807", "0.48830888", "0.48417026", "0.48060188", "0.48045996", "0.47999772", "0.47977057", "0.47948787", "0.47875333", "0.47758704", "0.47719535", "0.47710112", "0.4766549", "0.47646394", "0.47644177", "0.4742786", "0.47395182", "0.4733883", "0.47328764", "0.47328764", "0.4723843", "0.47200117", "0.4715155", "0.47071692", "0.47050563", "0.47030944", "0.4701859", "0.47014868", "0.47004005", "0.46951944", "0.46949977", "0.46946043", "0.46833423", "0.46808356", "0.46751335", "0.46735877", "0.4653314", "0.46516487", "0.46516487", "0.46483332", "0.4646058", "0.46439305", "0.46434975", "0.4641096", "0.46408567", "0.46386364", "0.463576", "0.4623737", "0.46218774", "0.46203664", "0.46197623", "0.46169272", "0.4616592", "0.46116462", "0.46107596", "0.46091565", "0.45926413", "0.4591532", "0.4591403", "0.45907503", "0.45905533", "0.45872012", "0.4584836", "0.45843354", "0.45804787", "0.45790768", "0.45780215", "0.4577058", "0.45725697", "0.45701948", "0.45674208", "0.4565331", "0.45611385", "0.45479855", "0.45462844", "0.45324004", "0.45308647", "0.45280337", "0.45230976", "0.45215315", "0.45197344" ]
0.0
-1
Llamamos a la funcion que realiza el login
@Override public void onClick(View v) { userLogin(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void login() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "Login() { \n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "private void login(String username,String password){\n\n }", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "private void loadLogin(){\n }", "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}", "void loginDone();", "void login(String user, String password);", "public void LogIn() {\n\t\t\r\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "protected Response login() {\n return login(\"\");\n }", "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "void loginAttempt(String email, String password);", "public void premutoLogin()\n\t{\n\t\tnew _FINITO_funzione_loginGUI();\n\t}", "public Login() {\n inicializarUsuarios();\n }", "private void attemptUsernamePasswordLogin()\n {\n if (mAuthTask != null)\n {\n return;\n }\n\n if(mLogInButton.getText().equals(getResources().getString(R.string.logout)))\n {\n mAuthTask = new RestCallerPostLoginTask(this,mStoredToken,MagazzinoService.getAuthenticationHeader(this),true);\n mAuthTask.execute(MagazzinoService.getLogoutService(this));\n return;\n }\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mUsernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password))\n {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email))\n {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n else if (!isUsernameOrEmailValid(email))\n {\n mUsernameView.setError(getString(R.string.error_invalid_email));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n return;\n }\n\n mAuthTask = new RestCallerPostLoginTask(this,email, password);\n mAuthTask.execute(MagazzinoService.getLoginService(this));\n\n }", "public boolean loginUser();", "void successLogin();", "public final void login() {\n Activity_ExtensionKt.hideSoftKeyboard(this);\n if (hasAllRequiredField()) {\n EditText editText = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etUserName\");\n String obj = editText.getText().toString();\n if (obj != null) {\n this.username = StringsKt.trim((CharSequence) obj).toString();\n EditText editText2 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPassword\");\n String obj2 = editText2.getText().toString();\n if (obj2 != null) {\n this.password = StringsKt.trim((CharSequence) obj2).toString();\n LoginViewModel loginViewModel = this.viewModel;\n if (loginViewModel == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"viewModel\");\n }\n EditText editText3 = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText3, \"etUserName\");\n String obj3 = editText3.getText().toString();\n EditText editText4 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText4, \"etPassword\");\n loginViewModel.login(obj3, editText4.getText().toString());\n return;\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n }", "private void loggedInUser() {\n\t\t\n\t}", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "public void StartLogIn(){\n\t}", "public void login(User user);", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n }", "private void loginSuccess(String uname) {\n }", "public void login() {\n\t\tloggedIn = true;\n\t}", "public abstract User login(User data);", "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t \t\n\t\t \t // TextWatcher would let us check validation error on the fly\n\t\t \tetPass.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etPass);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t }", "private LogIn() {}", "private void attemptLogin(){\n //reset error\n et_email.setError(null);\n et_password.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = et_email.getText().toString();\n final String password = et_password.getText().toString();\n final boolean finish = false;\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n et_password.setError(getString(R.string.error_invalid_password));\n focusView = et_password;\n cancel = true;\n }else if (!isEmailValid(email)) {\n et_email.setError(getString(R.string.error_invalid_email));\n focusView = et_email;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n JSONObject json = new JSONObject();\n\n try {\n json.put(\"ctrl\", \"login\");\n json.put(\"email\", email);\n json.put(\"password\", password);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n String requete = json.toString();\n Log.v(\"req\", requete);\n HttpQuery login = new HttpQuery(requete, this);\n login.execute();\n }\n\n\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "RequestResult loginRequest() throws Exception;", "private void initLogin() {\n try {\n initValidation();\n initRepository();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public Login() {\n initComponents();\n KiemTraKN();\n }", "@Override\n public void login(String nome, String email, int senha) {\n if (getNome() == nome && this.getEmail() == email && this.getSenha() == senha){\n System.out.println(\"Login efetuado com sucesso\");\n } else {\n System.out.println(\"0 - Sair\");\n System.out.println(\"Saiu do usuario\");\n }\n\n }", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "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}", "private void checkLogin(String email, String password) {\n final Context ctx = getApplicationContext();\n\n processor.checkLoginCredentials(email, password, ctx, new FetchDataListener() {\n @Override\n public void onFetchComplete(JSONObject data) {\n Boolean resp = (Boolean) data.get(\"response\");\n if (resp) {\n // go to home page\n Intent goToHome = new Intent(ctx, MainActivity.class);\n goToHome.putExtra(\"user\", etEmail.getText().toString());\n goToHome.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(goToHome);\n\n // finish prevents people from going back to login without logging out\n finish();\n } else {\n displayLoginError(\"Couldn't log in\");\n etEmail.setText(\"\");\n etPassword.setText(\"\");\n }\n }\n\n @Override\n public void onFetchFailure(String msg) {\n Log.d(TAG, msg);\n displayLoginError(\"Error connecting to server\");\n }\n\n @Override\n public void onFetchStart() {\n // do nothing\n }\n });\n\n }", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "public User logInUser(final String login, final String password);", "private static void loginForAdmin(String username, String password){\n\n ArrayList<Object> loginData = LogInAndLogOutService.login(username, password);\n boolean logged = (boolean) loginData.get(0);\n boolean freezed = (boolean) loginData.get(1);\n Employee employee = (Employee) loginData.get(2);\n\n if (logged){\n\n System.out.println(\"Sie sind richtig als Herr/Frau \"+ employee.getLastname() + \" \"+ employee.getFirstname() +\" eingelogt.\");\n }else {\n if (freezed){\n\n System.out.println(\"Ihr Konto wurde einfriert. Sie können sie sich nicht einloggen. :(\");\n }else {\n\n System.out.println(\"Falscher Benutzername oder Passwort eingegeben. Versuchen Sie erneut.\");\n }\n }\n }", "public abstract boolean login(String email, String passwaord) throws CouponSystemException;", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "public boolean login(String X_Username, String X_Password){\n return true;\n //call the function to get_role;\n //return false;\n \n \n }", "public String login() {\r\n String ruta = \"\";\r\n UsuarioDAO usuDAO = new UsuarioDAO();\r\n if (usuDAO.Login(this) != null) {\r\n ruta = FN.ruta(\"menu\");\r\n Empresa em = new Empresa();\r\n em.setEmpresa(\"2101895685\");\r\n em.setRazonSocial(\"Tibox SRL\");\r\n em.setDireccion(\"MiCasa\");\r\n SSU.sEmpresa(em);\r\n SSU.sUsuario(this);\r\n }\r\n return ruta;\r\n }", "public String accionLogin(){\n\t\t\r\n\t\tlog.info(\"Ingreso hacer login del usuario!!! \");\r\n\t\tString retorno = null;\r\n\t\ttry {\r\n\t\t\tString pass = new CriptPassword().getHashSH1(loginBaking.getUserBean().getPass());\r\n\t\t\tUser u = ejbMangerUser.login(loginBaking.getUserBean().getNick(), pass);\r\n\t\t\tloginBaking.setUserBean(u);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<Network> listNetwork = ejbNetwork.listNetwork();\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t\t\tsession.setAttribute(\"listaNetwork\", listNetwork);\r\n\t\t\t\r\n\t\t\tretorno = \"site/home\";\r\n\t\t} catch (InSideException ex) {\r\n\t\t\tlog.error(ex.getKeyMSGError());\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage (FacesMessage.SEVERITY_ERROR, \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError()), \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError())));\r\n\t\t}\r\n\t\tlog.debug(\"Pagina de redireccion --->> \" + retorno);\r\n\t\tlog.info(\"fin de Login!!!\");\r\n\t\treturn retorno;\r\n\t}", "public boolean login(){\r\n try{\r\n DbManager0 db = DbManager0.getInstance();\r\n Query q = db.createQuery(\"SELECT * FROM user WHERE username = '\"+this.login+\"' and password = '\"+this.pwd+\"';\");\r\n QueryResult rs = db.execute(q);\r\n rs.next();\r\n if(rs.wasNull()) return false;\r\n this.id = rs.getInt(\"id\")+\"\";\r\n return true;\r\n }\r\n catch(SQLException ex){\r\n throw new RuntimeException( ex.getMessage(), ex );\r\n }\r\n }", "public Login() {\r\n\t\tinitialize();\r\n\t}", "@Override\r\n\tprotected void onLoginSuccess() {\n\t\t\r\n\t}", "public login() {\r\n\t\tsuper();\r\n\t}", "@Test\r\n\tpublic void login() {\n\t\tUser loginExit = userMapper.login(\"wangxin\", \"123456\");\r\n\t\tif (loginExit == null) {\r\n\t\t\tSystem.out.println(\"用户不存在\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(loginExit);\r\n\t\t\tSystem.out.println(\"登录成功!\");\r\n\t\t}\r\n\t}", "public void logIn(View v){\n mUsername = (EditText) findViewById(R.id.username);\n mPassword = (EditText) findViewById(R.id.password);\n\n // Reset errors.\n mUsername.setError(null);\n mPassword.setError(null);\n\n // Store the data\n username = mUsername.getText().toString();\n password = mPassword.getText().toString();\n\n //Check username\n if (TextUtils.isEmpty(username)) {\n mUsername.setError(fielderror);\n checklog = false;\n }\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPassword.setError(fielderror);\n checklog = false;\n }\n if(checklog == true) {\n loginUser();\n }\n\n\n }", "boolean doLogin(UserDTO loginUser);", "@Override\n\tpublic User login(String user, String pass) {\n\t\treturn null;\n\t}", "public static boolean login() {\n\t\t// DB\n\t\tString[] usr = { \"NICOLAS\", \"CELESTE\" };\n\t\tString[] pass = { \"cerveza\", \"fernet\" };\n\t\tString usrAuth = \"\";\n\t\tboolean auth = false;\n\t\tint intentos = 1;\n\n\t\tdo {\n\t\t\tJTextField usuario = new JTextField();\n\t\t\tJTextField password = new JPasswordField();\n\t\t\tObject[] ingresarUsuarioPassword = { \"Usuario: \", usuario, \"Password\", password };\n\t\t\tint ingresarLogin = JOptionPane.showConfirmDialog(null, ingresarUsuarioPassword,\n\t\t\t\t\t\"Ingrese credenciales de usuario\", JOptionPane.OK_CANCEL_OPTION);\n\t\t\tif (ingresarLogin == JOptionPane.OK_OPTION) {\n\t\t\t\t// Busca el usuario en un bucle For\n\t\t\t\tfor (int i = 0; i < usr.length; i++) {\n\t\t\t\t\t// Si encuentra el usuario, verifica si el usuario y la contraseña coinciden\n\t\t\t\t\tif (usr[i].equals(usuario.getText().toUpperCase()) && pass[i].equals(password.getText())) {\n\t\t\t\t\t\tusrAuth = usr[i];\n\t\t\t\t\t\tauth = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Si no coincide, muestra los intentos restantes y vuelve a pedir credenciales\n\t\t\t\tif (!auth) {\n\t\t\t\t\tif (intentos < 3) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\\n\" + (3 - intentos) + \" Intentos restantes\",\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\tintentos++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\\n\" + \"Se supero en numero de intentos\",\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\tintentos++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Cierra si no se selecciona OK\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (!auth & (intentos <= 3));\n\t\t// Si autentica, muestra mensaje de bienvenida\n\t\tif (auth)\n\t\t\tJOptionPane.showMessageDialog(null, \"Bienvenido \" + usrAuth, \"Bienvenido\", JOptionPane.INFORMATION_MESSAGE);\n\t\treturn auth;\n\t}", "@Override\n\tpublic boolean managerLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.managerLogIn(username, password);\n\t\treturn result;\n\t}", "public login() {\n initComponents();\n \n \n }", "public static void login() {\n\t\trender();\n\t}", "private void logIn() {\n char[] password = jPasswordField1.getPassword();\n String userCode = jTextField1.getText();\n\n String txtpassword = \"\";\n for (char pw : password) {\n txtpassword += pw;\n }\n if (\"\".equals(txtpassword)) {\n JOptionPane.showMessageDialog(this, textBundle.getTextBundle().getString(\"enterPassword\"), \"No Password\", JOptionPane.WARNING_MESSAGE);\n } else if (txtpassword.equals(userData.get(0).toString())) {\n jPasswordField2.setEnabled(true);\n jPasswordField3.setEnabled(true);\n jPasswordField2.setEditable(true);\n jPasswordField3.setEditable(true);\n jPasswordField2.grabFocus();\n }\n }", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "@Override\n public void manejarLogin() {\n loginPresenter.validarLogin(etxtEmail.getText().toString(),etxtPass.getText().toString());\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n if(isOnline()){\n try {\n ApiRequests.POST(\"login/\", new Callback() {\n @Override\n public void onFailure(Call call, final IOException e) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Log.e(\"error:\", \"burda\");\n }\n });\n }\n\n @Override\n public void onResponse(Call call, final Response response) throws IOException {\n\n try {\n processTheResponse(response.body().string());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, email, password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n else {\n InternetConnectionError();\n }\n }\n }", "public void login(String email,String password) {\r\n\t\tthis.setChanged();\r\n\t\tthis.notifyObservers(STATE_LOGGING_IN);\r\n\t\tUser.server_login(email, password, new Callable()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void callback(final Object d) {\r\n\t\t\t\tif(d == null) {\r\n\t\t\t\t\tsetChanged();\r\n\t\t\t\t\tnotifyObservers(STATE_LOGIN_FAIL);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tsetChanged();\r\n\t\t\t\t\r\n\t\t\t\t// do some debug action after logged in\r\n\t\t\t\tServer.server_do_debug();\r\n\t\t\t\t\r\n\t\t\t\tnotifyObservers(STATE_LOGIN_SUCCESS);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t}", "private void attemptLogin() {\n if (isLoggingIn) {\n return;\n }\n\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utils.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (!Utils.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n if (!HttpUtils.isNetworkAvailable(this.getApplicationContext())) {\n Toast.makeText(this.getApplicationContext(), \"No internet\", Toast.LENGTH_SHORT).show();\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(mPasswordView.getWindowToken(), 0);\n\n LoginApi.executeLogin(this, email, password);\n }\n }", "private void login(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n String nombre = request.getParameter(\"nombreUser\");\r\n String passwd = request.getParameter(\"passwdUser\");\r\n\r\n try {\r\n //COMPRUEBA CREDENCIALES EN BBDD\r\n if (uDao.CompruebaLogin(nombre, passwd)) {\r\n \r\n System.out.println(\"OK LOGIN\");\r\n //LOGIN OK- enviamos el listado a la vista(JSP)\r\n RequestDispatcher miDispatcher = request.getRequestDispatcher(\"/ControllerUsuario\");\r\n miDispatcher.forward(request, response);\r\n } else {\r\n //LOGIN FAILED- recarga vista login(JSP)\r\n RequestDispatcher miDispatcher = request.getRequestDispatcher(\"/Login.jsp\");\r\n miDispatcher.forward(request, response);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "private void byPassLogin(String email) {\n User user = new User(123, email, Grade.A, 100, 9999991, 50f, 25f);\n Login(user);\n }", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mEmailView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n //检测密码\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(\"请输入密码\");\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\r\n mPasswordView.setError(getString(R.string.error_invalid_password));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n\r\n SqlEngine sqlEngine = SqlEngine.getInstance(this);\r\n ArrayList<UserBean> list = sqlEngine.queryInfo();\r\n if (list.size() <= 0) {\r\n Toast.makeText(this, \"没有这个账户\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n for (int i = 0; i < list.size(); i++) {\r\n UserBean bean = list.get(i);\r\n Log.i(TAG, \"attemptLogin: 执行到此\");\r\n if (!bean.getUser().equals(email)) {\r\n Toast.makeText(this, \"没有这个账户\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n if (!bean.getPwd().equals(password)) {\r\n Toast.makeText(this, \"密码不正确\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n }\r\n\r\n String ip = (String) SpUtils.getValues(MyApplication.getContext(), Https.IP_ADDRESS, \"\");\r\n String port = (String) SpUtils.getValues(MyApplication.getContext(), Https.PORT, \"\");\r\n if (TextUtils.isEmpty(ip) || TextUtils.isEmpty(port)) {\r\n Toast.makeText(this, \"请先设置网络!\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // 显示一个进度微调,并启动一个后台任务\r\n // 执行用户登录尝试。\r\n showProgress(true);\r\n //判断是否勾选\r\n isCheckBox(email, password);\r\n mAuthTask = new UserLoginTask(email, password);\r\n mAuthTask.execute((Void) null);\r\n startActivity(new Intent(this, MainActivity.class));\r\n\r\n }\r\n }", "public static void userLogin(Context context)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\r\n\t\t\tString username = context.formParam(\"myUsername\");\r\n\t\t\tString password = context.formParam(\"myPassword\");\r\n\t\t\t\r\n\t\t\tif(myAccountServ.attemptLoginServiceLayer(username, password)) //if true then get user account from DB\r\n\t\t\t{\r\n\t//\t\t\tSystem.out.println(myAccountServ.getMyAccountFromDatabase(username, password));\r\n\t\t\t\tcontext.sessionAttribute(\"currentUser\", myAccountServ.getMyAccountFromDatabase(username, password)); //set session to user account info\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1);\r\n\t\t\t\tif(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1)//check user role id if they employeee\r\n\t\t\t\t{\r\n\t\t\t\t\t//take me to the employee page\r\n\t\t\t\t\tcontext.redirect(\"/html/employee-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 0) // or if they manager\r\n\t\t\t\t{\r\n\t\t\t\t\tcontext.redirect(\"/html/manager-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse//if we failed login attempt... send us back to login page aka \"/index.html\"\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"not correct credentials\");\r\n\t\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"username: \" + username);\r\n//\t\tSystem.out.println(\"pssword: \" + password);\r\n\t}", "private final static void onLogin(TextField username, PasswordField password)\n\t{\n\t\tif (ProfileManipulation.checkLogin(username.getText(), password.getText())) {\n\t\t\tif (ProfileManipulation.isVerfied(username.getText())) {\n\t\t\t\tProfileManipulation.updateLoginStatus(username.getText(), true);\n\n\t\t\t\t// Jetzt wird das Profil aufgerufen\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showMainScene();\n\t\t\t} else {\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showVerification();\n\t\t\t}\n\t\t}\n\t\t// Funktionsaufruf Datenbankanbindung -> Erstellen einer Session ID\n\t\t// Funktionsaufruf Profildaten in lokalen Speicher laden - WIP\n\t\telse {\n\t\t\tusername.setText(\"\");\n\t\t\tpassword.setText(\"\");\n\t\t}\n\t}", "@Override\n\t public String loginUser(String email, String password) {\n\t\t\tlog.info(\"email and pass are \"+email+\" \"+password);\n\t\t\twebuserid=loginmanager.isExist(email, password);\n\t\t\tif(webuserid>0)\n\t\t\t{\n\t\t\t//Ckech is it blocked\n\t\t\tif(! loginmanager.isBlocked(webuserid))\n\t\t\t{\n\t\t\t\t //Get all personal Ids and login the person\n\t\t\t\t \n\t\t\t\t peronalid=loginmanager.getPersonelIds(webuserid);\n\t\t\t\t \n\t\t\t\t //Store in personal bean class\n\t\t\t\t PersonalIds.setEmpid(1);\n\t\t\t\t PersonalIds.setCmpid(1);\n\t\t\t\t PersonalIds.setGrpid(1);\n\t\t\t\t message=error.sucess;\n\t\t\t\t //Lodge the login details in a lodgeevent table\n\t\t\t\n\t\t\t} \n\t\t\telse\n\t\t\t{\n\t\t\tmessage=error.blocked;\n\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tmessage=error.noaccount;\n\t\t\t}\n\t\t\t\n\t\t\t\t \n\t\t\t\n\t\t\t\n\t\t\treturn message;\n\t }", "@Override\n\tpublic void onLoginSuccess() {\n\t\t\n\t}", "private void makeLogin() {\n if (enableLoginActivity && mAuth.getCurrentUser() == null) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n }\n else if (!enableLoginActivity) {\n user = new User(\"johnDoe\", \"[email protected]\", \"1234\");\n }\n }", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "public void handleLogin() {\n\t\tString username = usernameInput.getText();\n\t\tString password = passwordInput.getText();\n\n\t\t// Saves username and password if remember me is ticked\n\t\t// otherwise it deletes the file.\n\t\tif (rememberMeCheckbox.isSelected()) {\n\t\t\twriteRememberMe(username, password);\n\t\t} else {\n\t\t\tclearRememberMe();\n\t\t}\n\n\n\t\ttryUsernamePassword(username, password);\n\t}", "User login(String username, String password);", "private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}", "@Override\r\n\tpublic void Login(DbInterface dbi) {\n\t\t\r\n\t}", "private void login() {\n Log.d(Constants.TAG_LOGIN_ACTIVITY, \"login: \");\n\n // Store values at the time of the login attempt.\n mEmail = mEditTextSignInEmail.getText().toString();\n mPassword = mEditTextSignInPassword.getText().toString();\n mFocusView = null;\n\n // Check for a valid password\n if (TextUtils.isEmpty(mPassword) || !mPresenter.isPasswordValid(mPassword)) {\n mEditTextSignInPassword.setError(getString(R.string.error_invalid_password));\n mFocusView = mEditTextSignInPassword;\n isProcessCancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mEmail)) {\n mEditTextSignInEmail.setError(getString(R.string.error_field_required));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n } else if (!mPresenter.isEmailValid(mEmail)) {\n mEditTextSignInEmail.setError(getString(R.string.error_invalid_email));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n }\n\n if (isProcessCancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n mFocusView.requestFocus();\n\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true, mLinearlayoutSignIn);\n mPresenter.loginTask(this, mAuth, mEmail, mPassword, new SignInCallback() {\n @Override\n public void onCompleted() {\n showProgress(false, mLinearlayoutSignIn);\n showUserInfoLog();\n transToShareBookActivity();\n }\n\n @Override\n public void onError(String errorMessage) {\n Log.d(Constants.TAG_LOGIN_ACTIVITY, \"onError: \" + errorMessage);\n\n showProgress(false, mLinearlayoutSignIn);\n mEditTextSignInEmail.setError(getString(R.string.error_login_fail));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n }\n });\n }\n }", "@Override\n public boolean userLogin(String username, String password) \n {\n User tmpUser = null;\n tmpUser = getUser(username);\n if(tmpUser == null) return false;\n if(tmpUser.getPassword().equals(password)) return true;\n return false;\n }", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "private void login(Conversation conversation) {\n\t\tJsonObject lJsonObjIn = (JsonObject) conversation.getRequestBodyAsJSON();\n\t\t\n\t\tString lGebruikersnaam = lJsonObjIn.getString(\"username\");\t\t\t\t\t\t// Uitlezen van opgestuurde inloggegevens... \n\t\tString lWachtwoord = lJsonObjIn.getString(\"password\");\n\t\tMap<String, String> loginInfo = informatieSysteem.loginDetails(lGebruikersnaam,lWachtwoord);\n\n\t\tif(loginInfo.isEmpty())\n\t\t{\n\t\t\t//LOGIN FAILED !\n\t\t\tconversation.sendJSONMessage(\"{\\\"rol\\\":\\\"undefined\\\"}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t\tlJsonObjectBuilder.add(\"rol\", loginInfo.get(\"rol\"));\n\t\t\tlJsonObjectBuilder.add(\"voornaam\", loginInfo.get(\"voornaam\"));\n\t\t\tlJsonObjectBuilder.add(\"achternaam\", loginInfo.get(\"achternaam\"));\n\t\t\tlJsonObjectBuilder.add(\"identificatienummer\", loginInfo.get(\"identificatienummer\"));\t\t// en teruggekregen gebruikersrol als JSON-object...\n\t\t\tif(loginInfo.containsKey(\"group\")) lJsonObjectBuilder.add(\"group\", loginInfo.get(\"group\"));\n\t\t\tif(loginInfo.containsKey(\"klasnaam\")) lJsonObjectBuilder.add(\"klasnaam\", loginInfo.get(\"klasnaam\"));\n\t\t\tif(loginInfo.containsKey(\"klascode\")) lJsonObjectBuilder.add(\"klascode\", loginInfo.get(\"klascode\"));\n\t\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\tconversation.sendJSONMessage(lJsonOut);\n\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\n\t}", "private static void attemptToLogin() {\n\t\tString id = null;\n\t\tString password = null;\n\t\tString role = null;\n\t\tint chances = 3;\n\t\t//User will get 3 chances to login into the system.\n\t\twhile(chances-->0){\n\t\t\tlog.info(\"Email Id:\");\n\t\t\tid = sc.next();\n\t\t\tlog.info(\"Password:\");\n\t\t\tpassword = sc.next();\n\t\t\trole = LogInAuthentication.authenticate(id, password);\n\t\t\t//If correct credentials are entered then role of user will be fetch from the database. \n\t\t\tif(role == null) {\n\t\t\t\t//If role is not fetched, error and left chances will be shown.\n\t\t\t\tlog.error(\"Invalid EmailId or password\");\n\t\t\t\tlog.info(\"Chances left: \"+chances);\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\t//After verifying credentials User will be on-board to its portal depending upon the role.\n\t\tonboard(id,role);\n\t}", "public String doLogin() throws ServletException, IOException {\r\n\r\n\t\tExternalContext context = FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext();\r\n\t\tcontext.getSessionMap().put(\"messageSpring\", null);\r\n\t\tcontext.getSessionMap().put(\"SPRING_SECURITY_LAST_EXCEPTION\", null);\r\n\r\n\t\tRequestDispatcher dispatcher = ((ServletRequest) context.getRequest())\r\n\t\t\t\t.getRequestDispatcher(\"/j_spring_security_check\");\r\n\r\n\t\tdispatcher.forward((ServletRequest) context.getRequest(),\r\n\t\t\t\t(ServletResponse) context.getResponse());\r\n\r\n\t\tFacesContext.getCurrentInstance().responseComplete();\r\n\t\tutilisateur = loginBusiness.findUser(username);\r\n\r\n\t\treturn null;\r\n\t}", "public Integer logIn(String u_name, String u_pw){\n //find entry with u_name = this.u_name\n //probably not so safe\n //getting user with index 0 because getUserFromUsername returns List\n User user = userDao.getUserFromUsername(u_name).get(0);\n //print at console\n LOGGER.info(\"User: \" + user);\n //returns integer 1 if user.get_pw equals to this.pw or 0 if not\n if (user.getU_Pw().equals(u_pw)){\n return user.getU_Id();\n }else{\n return 0;\n }\n }", "private void signIn() {\n }", "@Override\n\tpublic ResultMessage login(String user_name, String password) throws RemoteException{\n\t\treturn null;\n\t}", "public abstract void onLogin();", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !Utility_Helper.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utility_Helper.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n // if user flow not cancelled execute Simulate_Login_Task asyncronous task\n // to simulate login\n Simulate_Login_Task task = new Simulate_Login_Task(this, dummyList, email, password);\n task.setOnResultListener(asynResult);\n task.execute();\n }\n }", "public String login(){\n UsernamePasswordToken token = new UsernamePasswordToken(user.getAccount(),\n user.getPassword());\n\n// \"Remember Me\" built-in:\n token.setRememberMe(user.isRememberMe());\n\n Subject currentUser = SecurityUtils.getSubject();\n\n\n try {\n currentUser.login(token);\n } catch (AuthenticationException e) {\n // Could catch a subclass of AuthenticationException if you like\n FacesContext.getCurrentInstance().addMessage(\n null,\n new FacesMessage(\"Login Failed: \" + e.getMessage(), e\n .toString()));\n return \"/login\";\n }\n return \"index\";\n }", "Conseiller obtenirConseillerParLogin(String login);" ]
[ "0.8188545", "0.7866843", "0.7794111", "0.77082354", "0.7646634", "0.7542402", "0.7533234", "0.75108254", "0.7470332", "0.74238265", "0.7414085", "0.740653", "0.7367857", "0.73491514", "0.73363215", "0.73341876", "0.7307736", "0.72977346", "0.72972393", "0.72964334", "0.7287148", "0.7285067", "0.72129476", "0.7206381", "0.7176322", "0.7165998", "0.7152263", "0.714792", "0.714605", "0.713545", "0.7112516", "0.7109603", "0.7106544", "0.7101715", "0.70906425", "0.7083361", "0.7077026", "0.70714927", "0.7070693", "0.7059586", "0.70565385", "0.7032463", "0.7029878", "0.7025187", "0.7006657", "0.6995222", "0.69891596", "0.6982072", "0.69795126", "0.69759727", "0.69750416", "0.69712144", "0.695169", "0.69341034", "0.692028", "0.69159347", "0.69083345", "0.6907665", "0.6906287", "0.6900934", "0.68936795", "0.68829435", "0.6864173", "0.6853947", "0.6853884", "0.68431836", "0.6836994", "0.6834414", "0.68301094", "0.6824444", "0.6818441", "0.6815103", "0.6811561", "0.68061554", "0.6804995", "0.68007183", "0.679484", "0.6790823", "0.6789879", "0.67885816", "0.67816955", "0.6776247", "0.6774164", "0.6772077", "0.6771801", "0.6770085", "0.67621595", "0.6762133", "0.67610997", "0.6757941", "0.6756714", "0.6747466", "0.6737827", "0.6732369", "0.67323154", "0.6727935", "0.67244565", "0.67222476", "0.67206", "0.67193645", "0.6718911" ]
0.0
-1
Realiza el login del usuario
public void userLogin(){ StringRequest request = new StringRequest(StringRequest.Method.POST, loginUrl, new Response.Listener<String>() { @Override public void onResponse(String response) { if(!response.equals("error")){ if(response.equals("1")){ Intent intent = new Intent(getApplicationContext(),AdminActivity.class); startActivity(intent); } else{ Intent intent = new Intent(getApplicationContext(),UserActivity.class); intent.putExtra("username",username.getText().toString()); startActivity(intent); } }else{ Toast.makeText(getApplicationContext(),"Invalid username or Password",Toast.LENGTH_LONG).show(); } } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { } }){ @Override protected Map<String, String> getParams() throws AuthFailureError { Map<String,String> params = new HashMap<>(); params.put("loginuser","true"); params.put("email",username.getText().toString().trim()); params.put("password",userpassword.getText().toString().trim()); return params; } }; Volley.newRequestQueue(this).add(request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "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}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public Login() {\n inicializarUsuarios();\n }", "protected void login() {\n\t\t\r\n\t}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "public User logInUser(final String login, final String password);", "private void makeLogin() {\n if (enableLoginActivity && mAuth.getCurrentUser() == null) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n }\n else if (!enableLoginActivity) {\n user = new User(\"johnDoe\", \"[email protected]\", \"1234\");\n }\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "public void premutoLogin()\n\t{\n\t\tnew _FINITO_funzione_loginGUI();\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 }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public void loginUser() {\n \tString username = usernameField.getText().toString();\n \tString password = passwordField.getText().toString();\n \n \t// Validation part.\n \tString empty = \"\";\n \t// Check if username is empty.\n \tif(username.isEmpty()) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Please enter a username.\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n \t// Check if username contains othe characters.\n \tif(! Pattern.matches(\"[a-zA-Z]+\", username)) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Username can only contain alphabets\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n \t\n \t// Check if password is empty.\n \tif(password.isEmpty()) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Please enter a password.\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n\n \t\n \tArrayList<NameValuePair> userData = new ArrayList<NameValuePair>();\n \tuserData.add(new BasicNameValuePair(\"username\", username));\n \tuserData.add(new BasicNameValuePair(\"password\", password));\n \t\n \t// Now send the data to the login user task to\n \t// check if they are correct.\n \tnew AuthenticateUserTask(this, userData).execute();\n \t\n }", "public void login(User user);", "void login(String user, String password);", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "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 void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t \t\n\t\t \t // TextWatcher would let us check validation error on the fly\n\t\t \tetPass.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etPass);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t }", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "protected Response login() {\n return login(\"\");\n }", "private void loguearUsuario() {\n\n final FirebaseAuth auth = FirebaseAuth.getInstance();\n FirebaseUser user = auth.getCurrentUser();\n // consigue el usuario\n final String email = editTextEmail.getText().toString().trim();\n String password = editTextPassword.getText().toString().trim();\n\n\n if (TextUtils.isEmpty(email)) {\n Toast.makeText(this, \"Se debe ingresar un email\", Toast.LENGTH_LONG).show();\n return;\n }\n if (TextUtils.isEmpty(password)) {\n Toast.makeText(this, \"Falta ingresar la contraseña\", Toast.LENGTH_LONG).show();\n return;\n }\n\n progressDialog.setMessage(\"Realizando consulta en linea...\");\n progressDialog.show();\n\n firebaseAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n // la misma funcion que en el caso anterior pero para poder ingresar\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) { //el oncomplete es para tener la comprobacion sea del campo del login o el singup\n\n if (task.isSuccessful()) {\n // si el usuario se encontraba creado entonces la tarea es exitosa\n\n int pos = email.indexOf(\"@\");\n userstring = email.substring(0, pos); //consigue el nombre del usuario\n Toast.makeText(Login.this, \"Bienvenido: \" + editTextEmail.getText(), Toast.LENGTH_LONG).show(); // consigue el email que habia sido asignado a la variable TextEmail\n Intent intencion = new Intent(getApplication(), UserView.class); // nueva actividad\n intencion.putExtra(\"user\", email); // le pasa como dato al usuario ingresado a la proxima actividad\n startActivity(intencion); //hay que hacer el get del usuario en la parte principal\n // userapasar = user;\n loged = true;\n\n } else {\n loged = false;\n\n if (task.getException() instanceof FirebaseAuthUserCollisionException) {//si se presenta una colisiÛn\n\n Toast.makeText(Login.this, \"Procesando\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(Login.this, \"\", Toast.LENGTH_LONG).show();\n }\n }\n progressDialog.dismiss();\n }\n });\n }", "private void attemptUsernamePasswordLogin()\n {\n if (mAuthTask != null)\n {\n return;\n }\n\n if(mLogInButton.getText().equals(getResources().getString(R.string.logout)))\n {\n mAuthTask = new RestCallerPostLoginTask(this,mStoredToken,MagazzinoService.getAuthenticationHeader(this),true);\n mAuthTask.execute(MagazzinoService.getLogoutService(this));\n return;\n }\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mUsernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password))\n {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email))\n {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n else if (!isUsernameOrEmailValid(email))\n {\n mUsernameView.setError(getString(R.string.error_invalid_email));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n return;\n }\n\n mAuthTask = new RestCallerPostLoginTask(this,email, password);\n mAuthTask.execute(MagazzinoService.getLoginService(this));\n\n }", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "public JanelaLogin() {\n \t\n \tConexao c = new Conexao();\n \t\n \t\n initComponents();\n }", "public String login() {\r\n String ruta = \"\";\r\n UsuarioDAO usuDAO = new UsuarioDAO();\r\n if (usuDAO.Login(this) != null) {\r\n ruta = FN.ruta(\"menu\");\r\n Empresa em = new Empresa();\r\n em.setEmpresa(\"2101895685\");\r\n em.setRazonSocial(\"Tibox SRL\");\r\n em.setDireccion(\"MiCasa\");\r\n SSU.sEmpresa(em);\r\n SSU.sUsuario(this);\r\n }\r\n return ruta;\r\n }", "public void login(User user) {\n try {\n Encrypter encrypter = new Encrypter();\n //el usuario ha logueado usando el email\n if (user.getUserName().contains(\"@\")){\n String emailAux = encrypter.encrypt(user.getUserName());\n String passwordAux = encrypter.encrypt(user.getPassword());\n\n doStream.writeUTF(\"L\");\n doStream.writeUTF(emailAux);\n doStream.writeUTF(passwordAux);\n\n }else{\n //el usuario ha logueado usando el nombre de usuario\n String nameAux = encrypter.encrypt(user.getUserName());\n String passwordAux = encrypter.encrypt(user.getPassword());\n\n doStream.writeUTF(\"L\");\n doStream.writeUTF(nameAux);\n doStream.writeUTF(passwordAux);\n }\n tractaResposta(diStream.readUTF());\n } catch (Exception a){\n a.printStackTrace();\n }\n }", "public void login() {\n\t\tloggedIn = true;\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public void Login() throws Exception {\r\n\t\tib.leituraUsuario(mapaUsuario);\r\n\t\ttry {\r\n\t\t\tBufferedReader entrada = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n\t\t\tSystem.out.println(\"Informe o Login:\");\r\n\t\t\tString usuario = entrada.readLine();\r\n\r\n\t\t\tSystem.out.println(\"Informe a senha:\");\r\n\t\t\tString senha = entrada.readLine();\r\n\r\n\t\t\tif ((mapaUsuario.containsKey(usuario))\r\n\t\t\t\t\t&& (mapaUsuario.get(usuario).getSenha().equals(senha))) {\r\n\r\n\t\t\t\tif ((mapaUsuario.containsKey(usuario))\r\n\t\t\t\t\t\t&& (mapaUsuario.get(usuario).getTipo().equals(\"0\"))) {\r\n\t\t\t\t\tmenuAdmin();\r\n\r\n\t\t\t\t} else if ((mapaUsuario.containsKey(usuario))\r\n\t\t\t\t\t\t&& (mapaUsuario.get(usuario).getTipo().equals(\"1\"))) {\r\n\t\t\t\t\tmenuCorretor();\r\n\r\n\t\t\t\t} else if ((mapaUsuario.containsKey(usuario))\r\n\t\t\t\t\t\t&& (mapaUsuario.get(usuario).getTipo().equals(\"2\"))) {\r\n\t\t\t\t\tmenuSecretario();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\r\n\t\t\t\tSystem.out.println(\"Usuario e/ou senha invalido(s)!\");\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tLogin();\r\n\t\t\t}\r\n\r\n\t\t} catch (InputMismatchException e) {\r\n\r\n\t\t\ts.nextLine();\r\n\t\t\tSystem.out.println(\"Você informou algum caracter inválido(s)! \");\r\n\r\n\t\t} catch (NullPointerException b) {\r\n\r\n\t\t\tSystem.out.println(\"Erro!\");\r\n\t\t\tSystem.out.println(b.getMessage());\r\n\t\t}\r\n\t}", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public boolean loginUser();", "public final void login() {\n Activity_ExtensionKt.hideSoftKeyboard(this);\n if (hasAllRequiredField()) {\n EditText editText = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etUserName\");\n String obj = editText.getText().toString();\n if (obj != null) {\n this.username = StringsKt.trim((CharSequence) obj).toString();\n EditText editText2 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPassword\");\n String obj2 = editText2.getText().toString();\n if (obj2 != null) {\n this.password = StringsKt.trim((CharSequence) obj2).toString();\n LoginViewModel loginViewModel = this.viewModel;\n if (loginViewModel == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"viewModel\");\n }\n EditText editText3 = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText3, \"etUserName\");\n String obj3 = editText3.getText().toString();\n EditText editText4 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText4, \"etPassword\");\n loginViewModel.login(obj3, editText4.getText().toString());\n return;\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n }", "@Override\r\n\tpublic void login() {\n\r\n\t}", "private void login(String username,String password){\n\n }", "public static void forceLogin() {\n forcedLogin = true;\n }", "public String logar() {\n\t\tUsuario usuario = autenticador.autentica(login, senha);\n\t\tif(usuario != null){\n\t\t\tusuarioWeb.loga(usuario);\n\t\t\treturn \"/pages/usuario/lista?faces-redirect=true\";\n\t\t}\n\t\tnew FacesUtils().adicionaMensagemDeErro(\"Login ou senha inválidos.\");\n\t\treturn null;\n\t\t\n\t}", "public void logIn(View v){\n mUsername = (EditText) findViewById(R.id.username);\n mPassword = (EditText) findViewById(R.id.password);\n\n // Reset errors.\n mUsername.setError(null);\n mPassword.setError(null);\n\n // Store the data\n username = mUsername.getText().toString();\n password = mPassword.getText().toString();\n\n //Check username\n if (TextUtils.isEmpty(username)) {\n mUsername.setError(fielderror);\n checklog = false;\n }\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPassword.setError(fielderror);\n checklog = false;\n }\n if(checklog == true) {\n loginUser();\n }\n\n\n }", "private void loginBD() {\n\t\t\r\n\t\tif(ConexionStatic.isDbConnected()){\r\n\t\t\ttry\r\n\t\t\t{ \r\n\t\t\t\t\r\n\t //chekar si el usuario escrbio el nombre de usuario y pw\r\n\t if (view.getTxtUser().getText().length() > 0 && view.getTxtPass().getText().length() > 0 )\r\n\t {\r\n\t \tmyUsuario.setPwd(view.getTxtPass().getText());\r\n\t \tmyUsuario.setUser(view.getTxtUser().getText());\r\n\t \tresultado=myUsuarioDao.setLogin(myUsuario);\r\n\t \t\r\n\t \tif(!resultado){//si el resultado el usuario en la bd no existe o el pwd\r\n\t \t\tJOptionPane.showMessageDialog(null, \"El nombre de usuario y/o contrasenia no son validos.\");\r\n\t //JOptionPane.showMessageDialog(null, view.getTxtUser().getText()+\" \" +view.getTxtPass().getText() );\r\n\t //view.getTxtUser().setText(\"\"); //limpiar campos\r\n\t view.getTxtPass().setText(\"\"); \r\n\t \r\n\t view.getTxtUser().requestFocusInWindow();\r\n\t \t}else{\r\n\t \t\tthis.view.setVisible(false);\r\n\t \t\tthis.view.dispose();\r\n\t \t\t\r\n\t \t}\r\n\t \t\r\n\t /*/ Si el usuario si fue validado correctamente\r\n\t if( validarUsuario( txtUser.getText(), txtPass.getText() ) ) //enviar datos a validar\r\n\t {\r\n\t // Codigo para mostrar la ventana principal\r\n\t setVisible(false);\r\n\t VentanaPrincipal ventana1 = new VentanaPrincipal();\r\n\t ventana1.mostrar();\r\n\t\r\n\t\r\n\t }\r\n\t else\r\n\t {\r\n\t JOptionPane.showMessageDialog(null, \"El nombre de usuario y/o contrasenia no son validos.\");\r\n\t JOptionPane.showMessageDialog(null, view.getTxtUser().getText()+\" \" +view.getTxtPass().getText() );\r\n\t view.getTxtUser().setText(\"\"); //limpiar campos\r\n\t view.getTxtPass().setText(\"\"); \r\n\t \r\n\t view.getTxtUser().requestFocusInWindow();\r\n\t }*/\r\n\t\r\n\t }\r\n\t else\r\n\t {\r\n\t JOptionPane.showMessageDialog(null, \"Debe escribir nombre de usuario y contrasenia.\\n\" +\r\n\t \"NO puede dejar ningun campo vacio\");\r\n\t }\r\n\t\r\n\t } catch (Exception e)\r\n\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t\t}//fin de la comprobacion de la conexion\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n\tpublic User login(User u) throws Exception {\n\t\treturn userRepository.login(u);\r\n\t}", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}", "User login(String username, String password);", "@Override\n\tpublic User login(String user, String pass) {\n\t\treturn null;\n\t}", "public static boolean login() {\n\t\t// DB\n\t\tString[] usr = { \"NICOLAS\", \"CELESTE\" };\n\t\tString[] pass = { \"cerveza\", \"fernet\" };\n\t\tString usrAuth = \"\";\n\t\tboolean auth = false;\n\t\tint intentos = 1;\n\n\t\tdo {\n\t\t\tJTextField usuario = new JTextField();\n\t\t\tJTextField password = new JPasswordField();\n\t\t\tObject[] ingresarUsuarioPassword = { \"Usuario: \", usuario, \"Password\", password };\n\t\t\tint ingresarLogin = JOptionPane.showConfirmDialog(null, ingresarUsuarioPassword,\n\t\t\t\t\t\"Ingrese credenciales de usuario\", JOptionPane.OK_CANCEL_OPTION);\n\t\t\tif (ingresarLogin == JOptionPane.OK_OPTION) {\n\t\t\t\t// Busca el usuario en un bucle For\n\t\t\t\tfor (int i = 0; i < usr.length; i++) {\n\t\t\t\t\t// Si encuentra el usuario, verifica si el usuario y la contraseña coinciden\n\t\t\t\t\tif (usr[i].equals(usuario.getText().toUpperCase()) && pass[i].equals(password.getText())) {\n\t\t\t\t\t\tusrAuth = usr[i];\n\t\t\t\t\t\tauth = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Si no coincide, muestra los intentos restantes y vuelve a pedir credenciales\n\t\t\t\tif (!auth) {\n\t\t\t\t\tif (intentos < 3) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\\n\" + (3 - intentos) + \" Intentos restantes\",\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\tintentos++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\\n\" + \"Se supero en numero de intentos\",\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\tintentos++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Cierra si no se selecciona OK\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (!auth & (intentos <= 3));\n\t\t// Si autentica, muestra mensaje de bienvenida\n\t\tif (auth)\n\t\t\tJOptionPane.showMessageDialog(null, \"Bienvenido \" + usrAuth, \"Bienvenido\", JOptionPane.INFORMATION_MESSAGE);\n\t\treturn auth;\n\t}", "@Override\r\n\tpublic UserVO login(LoginUserVO user) {\n\t\treturn login.login(user);\r\n\t}", "private void loggedInUser() {\n\t\t\n\t}", "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "@Override\n public boolean userLogin(String username, String password) \n {\n User tmpUser = null;\n tmpUser = getUser(username);\n if(tmpUser == null) return false;\n if(tmpUser.getPassword().equals(password)) return true;\n return false;\n }", "public String doLogin() throws ServletException, IOException {\r\n\r\n\t\tExternalContext context = FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext();\r\n\t\tcontext.getSessionMap().put(\"messageSpring\", null);\r\n\t\tcontext.getSessionMap().put(\"SPRING_SECURITY_LAST_EXCEPTION\", null);\r\n\r\n\t\tRequestDispatcher dispatcher = ((ServletRequest) context.getRequest())\r\n\t\t\t\t.getRequestDispatcher(\"/j_spring_security_check\");\r\n\r\n\t\tdispatcher.forward((ServletRequest) context.getRequest(),\r\n\t\t\t\t(ServletResponse) context.getResponse());\r\n\r\n\t\tFacesContext.getCurrentInstance().responseComplete();\r\n\t\tutilisateur = loginBusiness.findUser(username);\r\n\r\n\t\treturn null;\r\n\t}", "public Login() {\n initComponents();\n this.setTitle(\"Login\");\n this.setLocationRelativeTo(null);\n this.pack();\n // Asignanado objecto\n adminUsers = new usuarioAdmin();\n \n // No hay inicializacion de usuarios\n sys.us[0] = new Usuario();\n sys.us[0].setId(\"admin\");\n sys.us[0].setNombre(\"admin\");\n sys.us[0].setApellido(\"admin\");\n sys.us[0].setUser(\"admin\");\n sys.us[0].setPassword(\"admin\");\n sys.us[0].setRol(\"admin\");\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "private void Login(User user) {\n // instantiate User Database to store User's details locally\n UserDB db = new UserDB(this);\n db.resetTables(); // clear previous table data\n db.addUser(user);\n Log.i(TAG, \"Logged in as \" + email);\n\n // Move to main activity\n startActivity(new Intent(this, MainActivity.class));\n finish();\n }", "public static void userLogin(Context context)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\r\n\t\t\tString username = context.formParam(\"myUsername\");\r\n\t\t\tString password = context.formParam(\"myPassword\");\r\n\t\t\t\r\n\t\t\tif(myAccountServ.attemptLoginServiceLayer(username, password)) //if true then get user account from DB\r\n\t\t\t{\r\n\t//\t\t\tSystem.out.println(myAccountServ.getMyAccountFromDatabase(username, password));\r\n\t\t\t\tcontext.sessionAttribute(\"currentUser\", myAccountServ.getMyAccountFromDatabase(username, password)); //set session to user account info\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1);\r\n\t\t\t\tif(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1)//check user role id if they employeee\r\n\t\t\t\t{\r\n\t\t\t\t\t//take me to the employee page\r\n\t\t\t\t\tcontext.redirect(\"/html/employee-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 0) // or if they manager\r\n\t\t\t\t{\r\n\t\t\t\t\tcontext.redirect(\"/html/manager-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse//if we failed login attempt... send us back to login page aka \"/index.html\"\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"not correct credentials\");\r\n\t\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"username: \" + username);\r\n//\t\tSystem.out.println(\"pssword: \" + password);\r\n\t}", "private void login(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n String nombre = request.getParameter(\"nombreUser\");\r\n String passwd = request.getParameter(\"passwdUser\");\r\n\r\n try {\r\n //COMPRUEBA CREDENCIALES EN BBDD\r\n if (uDao.CompruebaLogin(nombre, passwd)) {\r\n \r\n System.out.println(\"OK LOGIN\");\r\n //LOGIN OK- enviamos el listado a la vista(JSP)\r\n RequestDispatcher miDispatcher = request.getRequestDispatcher(\"/ControllerUsuario\");\r\n miDispatcher.forward(request, response);\r\n } else {\r\n //LOGIN FAILED- recarga vista login(JSP)\r\n RequestDispatcher miDispatcher = request.getRequestDispatcher(\"/Login.jsp\");\r\n miDispatcher.forward(request, response);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "@Override\n public void login(String nome, String email, int senha) {\n if (getNome() == nome && this.getEmail() == email && this.getSenha() == senha){\n System.out.println(\"Login efetuado com sucesso\");\n } else {\n System.out.println(\"0 - Sair\");\n System.out.println(\"Saiu do usuario\");\n }\n\n }", "@Listen(\"onChange = #txtUsuario; onOK = #txtUsuario\")\r\n\tpublic void buscarPorLogin() {\r\n\t\tUsuario usuario = servicioUsuario.buscarPorLogin(txtUsuario.getValue());\r\n\t\tif (usuario != null)\r\n\t\t\tllenarCamposUser(usuario);\r\n\t\telse {\r\n\t\t\tmsj.mensajeAlerta(Mensaje.noHayRegistros);\r\n\t\t\tidUser = \"TODOS\";\r\n\t\t\ttxtUsuario.setValue(\"TODOS\");\r\n\t\t\tlblUsuario.setValue(\"TODOS\");\r\n\t\t\ttxtUsuario.setFocus(true);\r\n\t\t}\r\n\t}", "public String login(String userName, String userPassword){\n BCryptPasswordEncoder pass = new BCryptPasswordEncoder();\n Users users = new Users();\n Users userFromdb = userRepository.findByUserName(userName);\n if (userFromdb != null){\n if (!userFromdb.getPassword().equals(userPassword)){\n// if (!(pass.matches(userPassword, userFromdb.getPassword()))){\n throw new UsernameNotFoundException(\"kata sandi salah\");\n }else{\n UsernamePasswordAuthenticationToken authToken = new UsernamePasswordAuthenticationToken(userFromdb.getUsername(),\n userFromdb.getPassword(), userFromdb.getAuthorities());\n// Authentication authentication = authenticationManager.authenticate(authToken);\n SecurityContextHolder.getContext().setAuthentication(authToken);\n System.out.println(\"Session Created\");\n }\n return userFromdb.getUsername();\n }else{\n throw new UsernameNotFoundException(\"username tidak ditemukan\");\n }\n }", "public login() {\r\n\t\tsuper();\r\n\t}", "private void autoLogin(String username, String password) {\n userDao.findByName(username, password)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(users -> {\n if (users.size() > 0) {\n User user = users.get(0);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"uid\", user.uid);\n editor.putString(\"username\", user.username);\n editor.putString(\"password\", user.password);\n editor.commit();\n Intent intent = new Intent(LoginActivity.this, MeasureActivity.class);\n startActivity(intent);\n finish();\n }\n }, e -> {});\n }", "public void login(String username, String password){\n\n //Para las pruebas un usuario por defecto\n if(username.equals(\"xxx\") && password.equals(\"xxx\")){\n LoginUserMutation.LoginUser loginUser = new LoginUserMutation.LoginUser(\n \"jwt\", \"xxx\"+username+\"xxx\",\n \"type\",9999999, \"ni idea\");\n jwt.setValue(new LoginUserMutation.Data(loginUser));\n }\n\n if(isUserNameValid(username) && isPasswordValid(password)){\n CompletableFuture<LoginUserMutation.Data> loginDataPromise = loginRepository.gqlLoginUser(username, password);\n try {\n LoginUserMutation.Data loginData = loginDataPromise.get(2L, TimeUnit.SECONDS);\n System.out.println(loginData.loginUser());\n if(loginData.loginUser() != null){\n jwt.setValue(loginData);\n }else{\n toastErrorObserver.setValue(\"Correo o Contraseña Incorrectas\");\n }\n }catch(Error | ExecutionException | InterruptedException | TimeoutException e){\n toastErrorObserver.setValue(\"No se pudo comunicar con el servidor\");\n }\n }else{\n toastErrorObserver.setValue(\"Formato de Correo o Contraseña Erroneos\");\n }\n }", "public static void login() {\n\t\trender();\n\t}", "private void login(Conversation conversation) {\n\t\tJsonObject lJsonObjIn = (JsonObject) conversation.getRequestBodyAsJSON();\n\t\t\n\t\tString lGebruikersnaam = lJsonObjIn.getString(\"username\");\t\t\t\t\t\t// Uitlezen van opgestuurde inloggegevens... \n\t\tString lWachtwoord = lJsonObjIn.getString(\"password\");\n\t\tMap<String, String> loginInfo = informatieSysteem.loginDetails(lGebruikersnaam,lWachtwoord);\n\n\t\tif(loginInfo.isEmpty())\n\t\t{\n\t\t\t//LOGIN FAILED !\n\t\t\tconversation.sendJSONMessage(\"{\\\"rol\\\":\\\"undefined\\\"}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t\tlJsonObjectBuilder.add(\"rol\", loginInfo.get(\"rol\"));\n\t\t\tlJsonObjectBuilder.add(\"voornaam\", loginInfo.get(\"voornaam\"));\n\t\t\tlJsonObjectBuilder.add(\"achternaam\", loginInfo.get(\"achternaam\"));\n\t\t\tlJsonObjectBuilder.add(\"identificatienummer\", loginInfo.get(\"identificatienummer\"));\t\t// en teruggekregen gebruikersrol als JSON-object...\n\t\t\tif(loginInfo.containsKey(\"group\")) lJsonObjectBuilder.add(\"group\", loginInfo.get(\"group\"));\n\t\t\tif(loginInfo.containsKey(\"klasnaam\")) lJsonObjectBuilder.add(\"klasnaam\", loginInfo.get(\"klasnaam\"));\n\t\t\tif(loginInfo.containsKey(\"klascode\")) lJsonObjectBuilder.add(\"klascode\", loginInfo.get(\"klascode\"));\n\t\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\tconversation.sendJSONMessage(lJsonOut);\n\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\n\t}", "public String accionLogin(){\n\t\t\r\n\t\tlog.info(\"Ingreso hacer login del usuario!!! \");\r\n\t\tString retorno = null;\r\n\t\ttry {\r\n\t\t\tString pass = new CriptPassword().getHashSH1(loginBaking.getUserBean().getPass());\r\n\t\t\tUser u = ejbMangerUser.login(loginBaking.getUserBean().getNick(), pass);\r\n\t\t\tloginBaking.setUserBean(u);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<Network> listNetwork = ejbNetwork.listNetwork();\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t\t\tsession.setAttribute(\"listaNetwork\", listNetwork);\r\n\t\t\t\r\n\t\t\tretorno = \"site/home\";\r\n\t\t} catch (InSideException ex) {\r\n\t\t\tlog.error(ex.getKeyMSGError());\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage (FacesMessage.SEVERITY_ERROR, \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError()), \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError())));\r\n\t\t}\r\n\t\tlog.debug(\"Pagina de redireccion --->> \" + retorno);\r\n\t\tlog.info(\"fin de Login!!!\");\r\n\t\treturn retorno;\r\n\t}", "private void logIn() {\n char[] password = jPasswordField1.getPassword();\n String userCode = jTextField1.getText();\n\n String txtpassword = \"\";\n for (char pw : password) {\n txtpassword += pw;\n }\n if (\"\".equals(txtpassword)) {\n JOptionPane.showMessageDialog(this, textBundle.getTextBundle().getString(\"enterPassword\"), \"No Password\", JOptionPane.WARNING_MESSAGE);\n } else if (txtpassword.equals(userData.get(0).toString())) {\n jPasswordField2.setEnabled(true);\n jPasswordField3.setEnabled(true);\n jPasswordField2.setEditable(true);\n jPasswordField3.setEditable(true);\n jPasswordField2.grabFocus();\n }\n }", "public String login()\n\t{\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tUsersBean userBean = new UsersBean();\n\t\ttry {\n//\t\t\tctx = new InitialContext(props);\n\t\t\t\n\t\t\t//userBean = (usersPersistentBean) ctx.lookup(\"usersPersistentBean\");\n\t\t\tUser attempting_user = new User();\n\t\t\tattempting_user.setUsername(getUsername());\n\t\t\tattempting_user.setPassword(getPassword());\n\t\t\tUser resultUser = userBean.getUser(attempting_user);\n\t\t\tif (resultUser.getUsername() != null)\n\t\t\t{\n\t\t\t\tsetIsAdmin(resultUser.isAdmin());\n\t\t\t\tsetUserId(resultUser.getUserId());\n\t\t\t\tsetLoginMessage(\"success\");\n\t\t\t\tcontext.getExternalContext().redirect(\"basicCalculator.xhtml\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsetLoginMessage(\"*Incorrect Username and password\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn getLoginMessage();\t\t\n\t}", "Login() { \n }", "@PostMapping(\"doLogin\")\n\t public String logarse(@RequestParam(\"nombre_usuario\") String nombre, @RequestParam(\"pass\") String password) {\n\t\t \n\t\t Usuario usuario = new Usuario();\n\t\t \n\t\t usuario.setNombre(nombre);\n\t\t usuario.setPassword(password);\n\t\t \n\t\t boolean validado = gestorUsuario.validarUsuario(usuario);\n\t\t \n\t\t //EN FUNCION DE LO QUE DEVUELVA NEGOCIO, TOMAMOS LA DECISION DE QUE PAGINA MOSTRAMOS AL USUARIO\n\t\t if (validado) {\n\t\t\t //VAMOS A INICIO.HTML\n\t\t\t return \"inicio\";\n\t\t\t \n\t\t }else {\n\t\t\t //VAMOS A ERROR.HTML\n\t\t\t return \"error\";\n\t\t\t \n\t\t }\n\t\t \n\t }", "protected void login (HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n // invoke userService.login()\n User loginUser = userService.login(new User(null, username, password, null));\n // if null, then fail\n if (loginUser == null) {\n // save information to request domain\n req.setAttribute(\"msg\", \"Username or Password incorrect !\");\n req.setAttribute(\"username\", username);\n // jump to login page dispatcher share the same request information\n req.getRequestDispatcher(\"/pages/user/login.jsp\").forward(req, resp);\n }\n else {\n\n // save user information to Session domain\n req.getSession().setAttribute(\"user\", loginUser);\n req.getRequestDispatcher(\"/pages/user/login_success.jsp\").forward(req, resp);\n }\n\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "public abstract User login(User data);", "@Test\r\n\tpublic void login() {\n\t\tUser loginExit = userMapper.login(\"wangxin\", \"123456\");\r\n\t\tif (loginExit == null) {\r\n\t\t\tSystem.out.println(\"用户不存在\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(loginExit);\r\n\t\t\tSystem.out.println(\"登录成功!\");\r\n\t\t}\r\n\t}", "public String login(){\n UsernamePasswordToken token = new UsernamePasswordToken(user.getAccount(),\n user.getPassword());\n\n// \"Remember Me\" built-in:\n token.setRememberMe(user.isRememberMe());\n\n Subject currentUser = SecurityUtils.getSubject();\n\n\n try {\n currentUser.login(token);\n } catch (AuthenticationException e) {\n // Could catch a subclass of AuthenticationException if you like\n FacesContext.getCurrentInstance().addMessage(\n null,\n new FacesMessage(\"Login Failed: \" + e.getMessage(), e\n .toString()));\n return \"/login\";\n }\n return \"index\";\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "public static Result login(){\n String username= Form.form().bindFromRequest().get(\"username\");\n String password= Form.form().bindFromRequest().get(\"password\");\n String new_user= Form.form().bindFromRequest().get(\"new_user\");\n if(new_user != null){\n return ok(login.render(username,password));\n } else {\n Skier s=Session.authenticate(username,password);\n if(s==null){\n return badRequest(index.render(\"Invalid Username or Password\"));\n } else {\n login(s);\n return redirect(\"/home\");\n }\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mUserNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String userName = mUserNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n UserDetail user = new UserDetail(userName, password);\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n user = null;\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(userName)) {\n mUserNameView.setError(getString(R.string.error_field_required));\n focusView = mUserNameView;\n\n\n }\n else if(user!=null && isNetworkConnected()) {\n getPermissiontoAccessInternet();\n mAuthTask = new UserLoginTask(user);\n mAuthTask.execute((Void) null);\n\n }\n// } else if (!isUserNameValid(userName)) {\n// mUserNameView.setError(getString(R.string.error_invalid_email));\n// focusView = mUserNameView;\n// cancel = true;\n// }\n\n// if (cancel) {\n// // There was an error; don't attempt login and focus the first\n// // form field with an error.\n// focusView.requestFocus();\n// } else {\n// // Show a progress spinner, and kick off a background task to\n// // perform the user login attempt.\n//\n// }\n }", "public boolean login(){\r\n try{\r\n DbManager0 db = DbManager0.getInstance();\r\n Query q = db.createQuery(\"SELECT * FROM user WHERE username = '\"+this.login+\"' and password = '\"+this.pwd+\"';\");\r\n QueryResult rs = db.execute(q);\r\n rs.next();\r\n if(rs.wasNull()) return false;\r\n this.id = rs.getInt(\"id\")+\"\";\r\n return true;\r\n }\r\n catch(SQLException ex){\r\n throw new RuntimeException( ex.getMessage(), ex );\r\n }\r\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "private void attemptLogin() {\n\n String username = mEmailView.getText().toString().trim();\n String idNumber = mIdNumber.getText().toString().trim();\n String password = mPasswordView.getText().toString().trim();\n\n if (TextUtils.isEmpty(username)) {\n// usernameView.setError(errorMessageUsernameRequired);\n// errorView = usernameView;\n }\n\n if (TextUtils.isEmpty(password)) {\n// password.setError(errorMessagePasswordRequired);\n// if (errorView == null) {\n// errorView = passwordView;\n// }\n }\n\n final User user = new User();\n ((DealerManager)getApplication()).setUser(user);\n navigateTo(R.id.nav_home);\n }", "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 Login() {\n initComponents();\n KiemTraKN();\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n mUsrView.setError(null);\n mPasswordView.setError(null);\n\n String usr = mUsrView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n Tuple<String, String> creds = /*getCredentials()*/ SERVER_CREDENTIALS;\n\n boolean cancel = false;\n View focusView = null;\n\n if (!TextUtils.isEmpty(password)) {\n if (!mPasswordView.getText().toString().equals(creds.y)) {\n if (Util.D) Log.i(\"attemptLogin\", \"pwd was \" + mPasswordView.getText().toString());\n mPasswordView.setError(getString(R.string.error_incorrect_creds));\n cancel = true;\n }\n focusView = mPasswordView;\n }\n\n if (TextUtils.isEmpty(usr)) {\n mUsrView.setError(getString(R.string.error_field_required));\n focusView = mUsrView;\n cancel = true;\n } else if (!usr.equals(creds.x)) {\n mUsrView.setError(getString(R.string.error_incorrect_creds));\n focusView = mUsrView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n if (prefs != null)\n prefs.edit().putBoolean(getString(R.string.settingAuthorized), true);\n showProgress(true);\n mAuthTask = new UserLoginTask(usr, password);\n mAuthTask.execute((Void) null);\n }\n }", "@Override\r\n\tpublic User login(User user) {\n\t\treturn userdao.findByUserId(user.getId());\r\n\t}", "public void userLogin(UserLogueado user) {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.putString(KEY_EMAIL, user.getEmail());\r\n editor.putString(KEY_TOKEN, user.getToken());\r\n editor.apply();\r\n }", "private void controladorLogin(Controlador controlador){\n this.contLogin = controlador.getLogin();\n login.setControlContinuar(contLogin);\n }", "public void initLogin() {\n\n Log.d(TAG, \"Setting: Initial Login\");\n txtUsername.setError(null);\n txtPassword.setError(null);\n\n String username = txtUsername.getText().toString();\n String password = txtPassword.getText().toString();\n\n boolean cancelLogin = false;\n View focusView = null;\n\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n txtPassword.setError(getString(R.string.message_invalid_password));\n focusView = txtPassword;\n cancelLogin = true;\n }\n if (TextUtils.isEmpty(username)) {\n txtUsername.setError(getString(R.string.message_field_required));\n focusView = txtUsername;\n cancelLogin = true;\n } else if (!isUsernameValid(username)) {\n txtUsername.setError(getString(R.string.message_invalid_username));\n focusView = txtUsername;\n cancelLogin = true;\n }\n\n if (cancelLogin) {\n Log.d(TAG, \"Error in login\");\n focusView.requestFocus();\n } else {\n Log.d(TAG, \"Show progress spinner, and start background task to login\");\n showProgress(true);\n userLoginTask = new UserLoginTask(username, password);\n userLoginTask.execute((Void) null);\n }\n }", "User loginUser(User userLoginRequest, HttpSession httpSession) throws Exception;", "public void menu(){\n System.out.println(\"---------------------------Login------------------------------------\");\n \n System.out.println(\"Usuario:\");\n respuesta = scanner.nextLine();\n System.out.println(\"Contraseña:\");\n respuesta2 = scanner.nextLine();\n Usuario user = new Usuario();\n user.setNombre(respuesta);\n user.setPassword(respuesta2);\n idUser=modelo.validarUsuario(user);\n if(idUser<0){\n System.err.println(\"Usuario invalido\");\n \n }else{\n \n menuInterno();\n \n }\n//\n// menuInterno();\n// \n }", "public void handleLogin() {\n\t\tString username = usernameInput.getText();\n\t\tString password = passwordInput.getText();\n\n\t\t// Saves username and password if remember me is ticked\n\t\t// otherwise it deletes the file.\n\t\tif (rememberMeCheckbox.isSelected()) {\n\t\t\twriteRememberMe(username, password);\n\t\t} else {\n\t\t\tclearRememberMe();\n\t\t}\n\n\n\t\ttryUsernamePassword(username, password);\n\t}", "public static void login() {\n\t\t\n\t\t\n\n\t\twhile(!userIsLogged) {\n\n\t\t\tSystem.out.println(\"--> LOGIN <--\");\n\n\t\t\tString username = \"\";\n\t\t\tString password = \"\";\n\n\t\t\tdo {\n\t\t\t\tSystem.out.print(\"Username: \");\n\t\t\t\tusername = Main.scanner.nextLine();\n\t\t\t\tSystem.out.print(\"Password: \");\n\t\t\t\tpassword = Main.scanner.nextLine();\n\n\t\t\t\tif(username.isEmpty() && password.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"\\n>> Username or Password not inserted\\n\");\n\t\t\t\t}\n\n\t\t\t} while (username.isEmpty() && password.isEmpty());\n\n\n\t\t\tfor (Person person : userList) {\n\t\t\t\tif (person.getUsername().equals(username) && person.getPassword().equals(password)) {\n\t\t\t\t\t// loging correct\n\t\t\t\t\tloggedUser = person;\n\t\t\t\t\tuserIsLogged = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!userIsLogged) {\n\t\t\t\tSystem.out.println(\"\\n>> Wrong username or password\\n\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Welcome \" + loggedUser.getName() + \" \" + loggedUser.getSurname());\n\t}", "public void attemptLogin() {\n\n\t\t// Reset errors.\n\t\tmUserView.setError(null);\n\t\tmPasswordView.setError(null);\n\n\t\t// Save values.\n\t\tmUser = mUserView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\t// Check for a valid password.\n\t\tif (TextUtils.isEmpty(mPassword)) {\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t} else if (mPassword.length() < 4) {\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\t// Check for a valid user.\n\t\tif (TextUtils.isEmpty(mUser)) {\n\t\t\tmUserView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mUserView;\n\t\t\tcancel = true;\n\t\t} else if (mUser.length() < 4) {\n\t\t\tmUserView.setError(getString(R.string.error_invalid_user));\n\t\t\tfocusView = mUserView;\n\t\t\tcancel = true;\n\t\t}\n\t\t\t\t\n\t\tif (cancel) {\n\t\t\t// There is an error, so registration does not success and focus on the error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Send information to server.\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_registering);\n\t\t\tshowProgress(true);\n\t\t\tsendInfoToServer();\n\t\t}\n\t}", "private void attemptLogin() {\n if (authTask != null) {\n return;\n }\n\n // Reset errors.\n usernameView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = usernameView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n usernameView.setError(getString(R.string.error_field_required));\n focusView = usernameView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n usernameView.setError(getString(R.string.error_invalid_email));\n focusView = usernameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n //set loginID for session\n session.setID(email);\n\n startDashboard();\n /*authTask = new UserLoginTask(email, password);\n authTask.execute((Void) null);*/\n }\n }", "public void LogIn() {\n\t\t\r\n\t}", "public void logins(){\n \n \n \n String username=txtUser.getText();\n String password=txtPass.getText();\n String sql;\n\n \n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = (Connection) DriverManager.getConnection(\"jdbc:mysql://\"+host+\"/\"+db+\"?user=\"+user+\"&password=\"+pass);\n sql =\"Select * from user WHERE username ='\" +txtUser.getText() + \"'\";\n PreparedStatement st = (PreparedStatement) conn.prepareStatement(sql);\n ResultSet rs =st.executeQuery(); \n if(rs.next()) {\n String pasas = rs.getString(\"password\");\n if(password.equals(pasas)){\n JOptionPane.showMessageDialog(this, \"Login Berhasil\");\n \n Home tampil=new Home();\n tampil.setVisible(true);\n dispose();\n \n }else{\n JOptionPane.showMessageDialog(this, \"Username tidak terdaftar\");\n txtUser.requestFocus();\n }\n }else{\n JOptionPane.showMessageDialog(this, \"Username tidak terdaftar\");\n txtUser.requestFocus();\n }\n }catch (Exception e) {\n JOptionPane.showMessageDialog(this,e.getMessage());\n }\n \n }" ]
[ "0.7486889", "0.73048425", "0.7253196", "0.72119546", "0.7210427", "0.7152157", "0.70410866", "0.6975809", "0.6953394", "0.6949801", "0.6943099", "0.691933", "0.68787795", "0.68298686", "0.6825594", "0.6819661", "0.6819367", "0.6817676", "0.6814218", "0.67751515", "0.677384", "0.67577153", "0.6756971", "0.67515665", "0.6723454", "0.6717567", "0.6691376", "0.6686261", "0.66693044", "0.66456646", "0.66451037", "0.6638564", "0.6638277", "0.66292095", "0.66164136", "0.66118205", "0.65814805", "0.65657175", "0.656444", "0.6562431", "0.6560871", "0.6552444", "0.6546777", "0.654546", "0.65424234", "0.6528928", "0.6523612", "0.6513325", "0.6512216", "0.65120447", "0.65071183", "0.6500863", "0.65000176", "0.64906865", "0.64863235", "0.6484367", "0.6483043", "0.64822686", "0.6481468", "0.6479664", "0.64740866", "0.6467236", "0.6466579", "0.6464253", "0.64631987", "0.64612764", "0.6458618", "0.64536715", "0.6451756", "0.6451519", "0.64494586", "0.6448994", "0.64457977", "0.64428127", "0.64388734", "0.6436316", "0.64342153", "0.64339554", "0.6427959", "0.64085925", "0.64039344", "0.6399321", "0.6395973", "0.6366829", "0.6358564", "0.6355648", "0.6353486", "0.63486314", "0.6348511", "0.63432103", "0.63409114", "0.6339805", "0.6337148", "0.63261545", "0.6323212", "0.63225466", "0.63215446", "0.6321428", "0.6320848", "0.63123506", "0.6310955" ]
0.0
-1
CALCULO VALOR UTILIZADO EMENDA
public BigDecimal calcularValorUtilizado(Emenda e) { BigDecimal valorUsado = new BigDecimal(0); List<IndicacaoEmenda> indicacoes = indicacaoEService.findByEmenda(e); for (IndicacaoEmenda indicacao : indicacoes) { valorUsado = valorUsado.add(indicacao.getValorDestinado()); } return valorUsado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "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 final void calcular() {\n long dias = Duration.between(retirada, devolucao).toDays();\n valor = veiculo.getModelo().getCategoria().getDiaria().multiply(new BigDecimal(dias));\n }", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "public double calcular(){\n double calculo = 1;\n\n for(INodo descendiente : getDescendientes()) {\n calculo *= descendiente.calcular();\n }\n\n return calculo;\n }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "float calcularFinal(){\n return (calif1*0.3f)+(calif2*0.3f)+(calif3*0.4f);// debo agregar la f para que lo tome como float y no como double\r\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }", "public abstract double calcular();", "public Mensaje calculate (){\n Mensaje msg2 = new Mensaje(((double)this.valor * (double)this.porcentaje / 100) + ((double)this.peso * 0.15));\n return msg2;\n }", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "@Override\n\tpublic Double calcular(Produto produto) {\n\t\treturn (produto.getValorUnitario()) - (produto.getValorUnitario() * 0.25);\n\t}", "@Override\n\tpublic double calculsalaire() {\n\t\treturn 1500 + nbY*20;\n\t}", "float getMonatl_kosten();", "public double ValidaValor(){\n\t return 0;\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "int getSumaAdunata();", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }", "@Override\n\tprotected double calcularImpuestoVehiculo() {\n\t\treturn this.getValor() * 0.003;\n\t}", "double getValue();", "double getValue();", "double getValue();", "public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}", "public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }", "public double calcularIncremento(){\n double incremento=0.0;\n \n if (this.edad>=18&&this.edad<50){\n incremento=this.salario*0.05;\n }\n if (this.edad>=50&&this.edad<60){\n incremento=this.salario*0.10;\n }\n if (this.edad>=60){\n incremento=this.salario*0.15;\n }\n return incremento;\n }", "public double calcularPortes() {\n\t\tif (this.pulgadas <= 40) {\n\t\t\tif (this.getPrecioBase() > 500)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn 35;\n\t\t} else\n\t\t\treturn 35 + (this.pulgadas - 40);\n\t}", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public double getResultado() {\n\t\treturn resultado;\n\t}", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "double getBasedOnValue();", "public void calcularSalario(){\n // 1% do lucro mensal\n double percentagemLucro = 0.01 * lucroMensal;\n // valor fixo igual ao dobro do dos empregados sem especialização, acrescido\n //de um prémio que corresponde a 1% do lucro mensal nas lojas da região.\n setSalario(1600 + percentagemLucro);\n\n }", "public double calcularTarifa(){\n\t\treturn TARIFA_BASE * 1.2;\n\t}", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "double getTotal();", "double getSalario();", "public double getMontoCatalogoEstimado(){\n return localMontoCatalogoEstimado;\n }", "@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}", "public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "public double calcularPerimetro() {\n\t\treturn 2 * (base + altura);\n\t}", "private Double calcularValorTotal(Aluguel aluguelPendente, Date dataDevolucao) {\n int quantFilmes = aluguelPendente.getFilmes().size();\n DateTime dateAluguel = new DateTime(aluguelPendente.getDataAluguel().getTime());\n DateTime dateDevolucao = new DateTime(dataDevolucao);\n int diferencaDias = Days.daysBetween(dateAluguel, dateDevolucao).getDays();\n int diasAtraso = diferencaDias - 2 - (quantFilmes - 1);\n Double multa = 1.2 * (diasAtraso > 0 ? diasAtraso : 0);\n Double valorTotal = aluguelPendente.getValor() + multa;\n return valorTotal;\n }", "@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }", "public double getPreco();", "public double getPreco();", "int getSuma();", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "double getPerimetro();", "public abstract double getPreis();", "float getValue();", "float getValue();", "float getValue();", "public void calcularTotal() {\n double valor = 0;\n String servico = (String)consultaSelecionada.getSelectedItem().toString();\n switch(servico) {\n case \"Consulta\":\n valor += 100;\n break;\n case \"Limpeza\":\n valor += 130;\n break;\n case \"Clareamento\":\n valor += 450;\n break;\n case \"Aparelho\":\n valor += 100;\n break;\n case \"Raio-x\":\n valor += 80;\n break;\n case \"Cirurgia\":\n valor += 70;\n break;\n }\n Total.setText(String.valueOf(valor));\n }", "public double calculaValor() throws QuartoDesocupadoException{\n\t\tif(this.getEstadia() != null){\n\t\t\treturn this.getEstadia().calculaValor(this.tipo);\t\t\t\n\t\t}\n\t\tthrow new QuartoDesocupadoException(String.format(\"Quarto %s nao esta ocupado.\", this.getNumero()));\n\t}", "public double getMontoFacturado(){\n return localMontoFacturado;\n }", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "@Override\n public double obtenerVolumen(){\n return (1.0 / 3.0) * c.obtenerArea() * c.obtenerAltura();\n }", "private void Calculation() {\n\t\tint calStd = jetztStunde + schlafStunde;\n\t\tint calMin = jetztMinute + schlafMinute;\n\n\t\ttotalMin = calMin % 60;\n\t\ttotalStunde = calStd % 24 + calMin / 60;\n\n\t}", "@Override\n public double calcValue() throws IllegalArgumentException {\n // calcolo ricorsivo del risultato dell'operazione\n double l = leftChild.calcValue();\n double r = rightChild.calcValue();\n // effettivo calcolo del risultato\n return oper.getOperation().calcValue(l, r);\n }", "public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }", "public double portataMassicaFumi( ){\r\n\t\treturn portatamassica;\r\n\t}", "public double precioFinal() {\r\n double aumento = 0;\r\n switch (consumoEnergetico) {\r\n case 'A':\r\n aumento = 100;\r\n break;\r\n case 'B':\r\n aumento = 80;\r\n break;\r\n case 'C':\r\n aumento = 60;\r\n break;\r\n case 'D':\r\n aumento = 50;\r\n break;\r\n case 'E':\r\n aumento = 30;\r\n break;\r\n case 'F':\r\n aumento = 10; \r\n break;\r\n }\r\n if (peso >= 0 && peso <= 19) {\r\n aumento += 10;\r\n }else if ( peso >= 20 && peso <= 49) {\r\n aumento += 50;\r\n }else if ( peso >= 50 && peso <=79 ) {\r\n aumento += 80;\r\n }else if ( peso >= 80 ){\r\n aumento += 100;\r\n }\r\n \r\n double precioFinal = aumento + this.precioBase;\r\n return precioFinal;\r\n }", "private double getValorAjuste(HashMap infoAssinante) throws Exception\n\t{\n\t\tdouble result = 0;\n\t\t\n\t\tString msisdn = (String)infoAssinante.get(\"IDT_MSISDN\");\n\t\tdouble minCredito = ((Double)infoAssinante.get(\"MIN_CREDITO\")).doubleValue();\n\t\tdouble minFF = ((Double)infoAssinante.get(\"MIN_FF\")).doubleValue(); \n\t\tint idtCodigoNacional = (new Integer(msisdn.substring(2, 4))).intValue();\n\t\tdouble vlrBonusMinuto = getVlrBonusMinuto(idtCodigoNacional);\n\t\tdouble vlrBonusMinutoFF = getVlrBonusMinutoFF(idtCodigoNacional);\n\t\t\n\t\tresult = ((minCredito - minFF)*vlrBonusMinuto) + (minFF*vlrBonusMinutoFF);\n\t\t\n\t\treturn result;\n\t}", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "double getTotalProfit();", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "double getSum();", "double getSum();", "public Double getTotal();", "@Override\n\tpublic double calculaDesconto() {\n\t\treturn this.gastosEmCongressos;\n\t}", "public double precioFinal(){\r\n \r\n double plus = 0;\r\n \r\n switch(consumoElectrico){\r\n case 'A':\r\n plus +=100;\r\n break;\r\n case 'B':\r\n plus += 80;\r\n break;\r\n case 'C':\r\n plus +=60;\r\n break;\r\n case 'D':\r\n plus +=50;\r\n break;\r\n case 'E':\r\n plus+=30;\r\n break;\r\n case 'F':\r\n plus+=10;\r\n break;\r\n \r\n }\r\n \r\n \r\n if(peso>=0 && peso<=19){\r\n plus+=10;\r\n }else if(peso >=20 && peso<= 49){\r\n plus+=50;\r\n }else if(peso >= 50 && peso<=79){\r\n plus+=80;\r\n }else if(peso>=80){\r\n plus+=100;\r\n }\r\n return precioBase+plus;\r\n }", "double getDiametro(){\n return raggio * 2;\n }", "public static void calcularPromedioSemanal() {\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 }", "private double getValMorp ( cell c, morphogen m) {\t\t\r\n\t\tif ( m.equals(morphogen.a))\r\n\t\t\treturn c.getVal1();\r\n\t\telse\r\n\t\t\treturn c.getVal2();\r\n\t}", "public Double retornaSubTotal(Double totalGeral,Double desconto){\n return totalGeral - (totalGeral*(desconto/100));\n}", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "public double getPercepcion(){\n return localPercepcion;\n }", "public double obtValor() {\r\n\t\treturn v;\r\n\t}", "public Double calcularPrecio() {\n double adicion = 0.0;\n\n switch (tipoAlimento) {\n case 'N':\n // Producto Natural\n adicion += 40;\n break;\n\n case 'C':\n // Producto con Conservantes\n adicion += 20;\n break;\n\n default:\n break;\n }\n\n // El peso tambien afecta el precio final del producto\n if (peso >= 0 && peso <= 9) {\n adicion += 6;\n }\n if (peso > 9 && peso <= 16) {\n adicion += 8;\n }\n if (peso > 16) {\n adicion += 20;\n }\n\n return precioBase + adicion;\n }", "public float perimetro() {\n return (lado * 2 + base);\r\n }", "public double getMontoFacturadoSinDescuento(){\n return localMontoFacturadoSinDescuento;\n }", "@Override\r\n public double obtenerVolumen() {\n return Math.pow(getA(), 3);//eleva al cubo\r\n }", "@Override\n\tpublic double calcularSalario() {\n\n\t\tdouble salario = 0;\n\n\t\tdouble porcentajeAnios = calcularPorcentajePorAntiguedad();\n\t\tporcentajeAnios = this.sueldoBasico* (porcentajeAnios / 100);\n\t\tsalario = this.sueldoBasico + porcentajeAnios;\n\t\treturn salario;\n\t}", "public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }", "@Override\n public Float calc() {\n\treturn null;\n }", "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 calcularTotalVentas(FormularioRegistrarCorte formularioRegistrarCorte) {\n Double suma = 0.00;\n try {\n for (int i = 0; i < formularioRegistrarCorte.getTablaEntradas().getRowCount(); i++) {\n suma = suma + (Double.valueOf(formularioRegistrarCorte.getTablaEntradas().getValueAt(i, 2).toString()));\n }\n formularioRegistrarCorte.getTxtTotalVentas().setText(new OperacionesUtiles().formatoDouble(suma));\n } catch (Exception e) {\n showMessageDialog(null, \"Ocurrio un error al intenetar calcular total entradas\");\n\n }\n\n }", "@Override\n\tpublic double calcularPrecio() {\n\t\treturn 0;\n\t}", "public void calculos() {\n a = a1+a2+a3;\n b = b1+b2+b3;\n c = c1+c2+c3;\n }", "public double getTotalCartValue();", "public double getMontoEstimado(){\n return localMontoEstimado;\n }", "public double getValue();", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "double getTempo();" ]
[ "0.7077719", "0.7027359", "0.69795525", "0.69598025", "0.694137", "0.68585414", "0.68126714", "0.68093973", "0.6801673", "0.6721229", "0.6712352", "0.6661962", "0.6657814", "0.6626507", "0.6618338", "0.66102606", "0.6594064", "0.6590172", "0.6586196", "0.6579161", "0.6569963", "0.6563883", "0.65614337", "0.65614337", "0.65614337", "0.6545885", "0.65440786", "0.6518139", "0.65092224", "0.6493046", "0.6481106", "0.6470628", "0.6466882", "0.64368105", "0.643061", "0.6428427", "0.64259166", "0.64200777", "0.64112544", "0.6407533", "0.63894176", "0.63756025", "0.6370248", "0.6359347", "0.63457566", "0.63423854", "0.63417023", "0.6341445", "0.63389546", "0.63389546", "0.63323325", "0.63311803", "0.6302241", "0.6286169", "0.6275458", "0.6275458", "0.6275458", "0.62552106", "0.6250671", "0.6238189", "0.6234986", "0.6227094", "0.6224784", "0.6219721", "0.6216967", "0.6215352", "0.6208855", "0.62024623", "0.6182889", "0.6182882", "0.618143", "0.6180489", "0.6180489", "0.6177483", "0.61673605", "0.61673105", "0.6164768", "0.6143076", "0.61416245", "0.6136966", "0.6136721", "0.613239", "0.61239415", "0.61183447", "0.61176336", "0.61166966", "0.6106462", "0.6104362", "0.6104305", "0.6104096", "0.6103264", "0.6095034", "0.6092774", "0.6091449", "0.6079484", "0.6076792", "0.60725504", "0.6072489", "0.6068457", "0.6054262" ]
0.62155604
65
CALCULO VALOR DISPONIVEL EMENDA
public BigDecimal calculaValorDisponivel(Emenda e) { BigDecimal valorDisponivel = new BigDecimal(0); BigDecimal valorUsado = calcularValorUtilizado(e); BigDecimal valorTotal = e.getValor(); valorDisponivel = valorTotal.subtract(valorUsado); return valorDisponivel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void calcular() {\n long dias = Duration.between(retirada, devolucao).toDays();\n valor = veiculo.getModelo().getCategoria().getDiaria().multiply(new BigDecimal(dias));\n }", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "public double calcular(){\n double calculo = 1;\n\n for(INodo descendiente : getDescendientes()) {\n calculo *= descendiente.calcular();\n }\n\n return calculo;\n }", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "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 float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "float calcularFinal(){\n return (calif1*0.3f)+(calif2*0.3f)+(calif3*0.4f);// debo agregar la f para que lo tome como float y no como double\r\n }", "public void calcularTotal() {\n double valor = 0;\n String servico = (String)consultaSelecionada.getSelectedItem().toString();\n switch(servico) {\n case \"Consulta\":\n valor += 100;\n break;\n case \"Limpeza\":\n valor += 130;\n break;\n case \"Clareamento\":\n valor += 450;\n break;\n case \"Aparelho\":\n valor += 100;\n break;\n case \"Raio-x\":\n valor += 80;\n break;\n case \"Cirurgia\":\n valor += 70;\n break;\n }\n Total.setText(String.valueOf(valor));\n }", "public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "public Mensaje calculate (){\n Mensaje msg2 = new Mensaje(((double)this.valor * (double)this.porcentaje / 100) + ((double)this.peso * 0.15));\n return msg2;\n }", "@Override\n\tpublic Double calcular(Produto produto) {\n\t\treturn (produto.getValorUnitario()) - (produto.getValorUnitario() * 0.25);\n\t}", "public abstract double calcular();", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "@Override\n\tpublic double calculaDesconto() {\n\t\treturn this.gastosEmCongressos;\n\t}", "public double getMontoCatalogoEstimado(){\n return localMontoCatalogoEstimado;\n }", "public double getResultado() {\n\t\treturn resultado;\n\t}", "@Override\n\tprotected double calcularImpuestoVehiculo() {\n\t\treturn this.getValor() * 0.003;\n\t}", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }", "public double calcularIncremento(){\n double incremento=0.0;\n \n if (this.edad>=18&&this.edad<50){\n incremento=this.salario*0.05;\n }\n if (this.edad>=50&&this.edad<60){\n incremento=this.salario*0.10;\n }\n if (this.edad>=60){\n incremento=this.salario*0.15;\n }\n return incremento;\n }", "public Double retornaSubTotal(Double totalGeral,Double desconto){\n return totalGeral - (totalGeral*(desconto/100));\n}", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}", "private Double calcularValorTotal(Aluguel aluguelPendente, Date dataDevolucao) {\n int quantFilmes = aluguelPendente.getFilmes().size();\n DateTime dateAluguel = new DateTime(aluguelPendente.getDataAluguel().getTime());\n DateTime dateDevolucao = new DateTime(dataDevolucao);\n int diferencaDias = Days.daysBetween(dateAluguel, dateDevolucao).getDays();\n int diasAtraso = diferencaDias - 2 - (quantFilmes - 1);\n Double multa = 1.2 * (diasAtraso > 0 ? diasAtraso : 0);\n Double valorTotal = aluguelPendente.getValor() + multa;\n return valorTotal;\n }", "public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }", "public void totalFacturaVenta(){\n BigDecimal totalVentaFactura = new BigDecimal(0);\n \n try{\n //Recorremos la lista de detalle y calculamos la Venta total de la factura\n for(Detallefactura det: listDetalle){\n //Sumamos a la variable 'totalVentaFactura'\n totalVentaFactura = totalVentaFactura.add(det.getTotal());\n } \n }catch(Exception e){\n e.printStackTrace();\n }\n \n //Setemos al objeto Factura el valor de la variable 'totalFacturaVenta'\n factura.setTotalVenta(totalVentaFactura);\n \n }", "@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }", "public double calculaValor() throws QuartoDesocupadoException{\n\t\tif(this.getEstadia() != null){\n\t\t\treturn this.getEstadia().calculaValor(this.tipo);\t\t\t\n\t\t}\n\t\tthrow new QuartoDesocupadoException(String.format(\"Quarto %s nao esta ocupado.\", this.getNumero()));\n\t}", "public double getMontoFacturado(){\n return localMontoFacturado;\n }", "int getSumaAdunata();", "public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}", "private void funcaoTotalPedido() {\n\n ClassSale.paymentCoupon(codeCoupon);\n BigDecimal smallCash = PaymentCoupon.getSmallCash();\n\n jTextValueTotalCoupon.setText(v.format(PaymentCoupon.getTotalCoupon()));\n \n jTextSmallCash.setText(v.format(smallCash.setScale(2, BigDecimal.ROUND_HALF_UP)));\n //jTextValueTotalDiscontCoupon.setText(v.format(PagamentoPedido.getDesconto_pagamento()));\n\n if (smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() < 0) {\n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n jTextCash.setText(\"0,00\");\n jTextValueDiscontCoupon.setText(\"0,00\");\n jTextCash.requestFocus(true);\n } else {\n\n if (last_cod_tipo_pagamento != null && smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() > 0) {\n\n if (JOptionPane.showConfirmDialog(this, \"Não é permitido troco para pagamento com cartão.\\nDeseja emitir um contra vale?\", \"Mensagem\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon) == 0) {\n\n JOptionPane.showMessageDialog(this, \"Emitindo contra vale...\");\n\n fechouVenda = true;\n //BeanConsulta.setVenda_fechada(fechouVenda);\n this.dispose();\n\n } else {\n\n funcaoLimpaPag();\n }\n } else {\n \n \n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); \n jButtonFinalizaCalculoPagameto.setEnabled(true);\n jButtonFinalizaCalculoPagameto.requestFocus(true);\n\n }\n }\n\n }", "double getTotal();", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "float getMonatl_kosten();", "@Override\n public double obtenerVolumen(){\n return (1.0 / 3.0) * c.obtenerArea() * c.obtenerAltura();\n }", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "@Override\n\tpublic double calculsalaire() {\n\t\treturn 1500 + nbY*20;\n\t}", "public double calcularPortes() {\n\t\tif (this.pulgadas <= 40) {\n\t\t\tif (this.getPrecioBase() > 500)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn 35;\n\t\t} else\n\t\t\treturn 35 + (this.pulgadas - 40);\n\t}", "public void calcularTotalVentas(FormularioRegistrarCorte formularioRegistrarCorte) {\n Double suma = 0.00;\n try {\n for (int i = 0; i < formularioRegistrarCorte.getTablaEntradas().getRowCount(); i++) {\n suma = suma + (Double.valueOf(formularioRegistrarCorte.getTablaEntradas().getValueAt(i, 2).toString()));\n }\n formularioRegistrarCorte.getTxtTotalVentas().setText(new OperacionesUtiles().formatoDouble(suma));\n } catch (Exception e) {\n showMessageDialog(null, \"Ocurrio un error al intenetar calcular total entradas\");\n\n }\n\n }", "@Override\n public Float calc() {\n\treturn null;\n }", "void desconto_final(){\n setDesconto_final(this.inss + this.irpf);\n System.out.println(\"desconto_total = R$ \" + arredondar(this.desconto_final));\n }", "public void calcularSalario(){\n // 1% do lucro mensal\n double percentagemLucro = 0.01 * lucroMensal;\n // valor fixo igual ao dobro do dos empregados sem especialização, acrescido\n //de um prémio que corresponde a 1% do lucro mensal nas lojas da região.\n setSalario(1600 + percentagemLucro);\n\n }", "public double getStockFinal(long pv) {\n float entree = 0 ;\n float sortie = 0 ;\n\n ArrayList<Produit> produits = null ;\n if (pv==0) produits = produitDAO.getAll();\n else produits = produitDAO.getAllByPv(pv) ;\n\n ArrayList<Mouvement> mouvements = null;\n\n double valeur = 0 ;\n double total = 0 ;\n double quantite = 0 ;\n double cmpu = 0 ;\n double restant = 0 ;\n double qsortie = 0 ;\n double qentree = 0 ;\n // Vente par produit\n Mouvement mouvement = null ;\n Operation operation = null ;\n\n for (int i = 0; i < produits.size(); i++) {\n try {\n mouvements = mouvementDAO.getManyByProductInterval(produits.get(i).getId_externe(),DAOBase.formatter2.parse(datedebut),DAOBase.formatter2.parse(datefin)) ;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (mouvements != null){\n valeur = 0 ;\n quantite = 0 ;\n restant = 0 ;\n qentree = 0 ;\n cmpu = 0 ;\n qsortie = 0 ;\n\n for (int j = 0; j < mouvements.size(); j++) {\n mouvement = mouvements.get(j) ;\n operation = operationDAO.getOne(mouvement.getOperation_id()) ;\n if (operation==null || (operation.getAnnuler()==1 && operation.getDateannulation().before(new Date())) || operation.getTypeOperation_id().startsWith(OperationDAO.CMD)) continue;\n\n //if (pv!=0 && caisseDAO.getOne(operation.getCaisse_id()).getPointVente_id()!=pv) continue;\n if (j==0)\n if (mouvement.getRestant()==mouvement.getQuantite() && mouvement.getEntree()==0){\n restant = 0 ;\n }\n else restant = mouvement.getRestant() ;\n\n if (mouvement.getEntree()==0) {\n valeur -= mouvement.getPrixA() * mouvement.getQuantite() ;\n qentree += mouvement.getQuantite() ;\n cmpu = mouvement.getPrixA() ;\n }\n else {\n valeur += mouvement.getCmup() * mouvement.getQuantite() ;\n qsortie += mouvement.getQuantite() ;\n }\n /*\n if (restant!=0) cmpu = valeur / restant ;\n else cmpu = mouvement.getCmup() ;\n */\n }\n\n quantite = restant + qentree - qsortie ;\n total+=Math.abs(valeur) ;\n }\n }\n\n return total;\n }", "public BigDecimal getValorTotalSemDesconto() {\r\n return valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN);\r\n }", "private void trataDesconto(String x){\n \n Double sub;\n \n descontoField.setText(porcentagem.format((Double.parseDouble(x))/100));\n descontoField.setEnabled(true);\n sub = retornaSubTotal(this.getVlrTotalItem(), Double.parseDouble(x));\n subTotalField.setText(moeda.format(sub));\n lblTotalGeral.setText(subTotalField.getText());\n this.setVlrTotalItem(sub);\n}", "public double getMontoFacturadoSinDescuento(){\n return localMontoFacturadoSinDescuento;\n }", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public double calcularTarifa(){\n\t\treturn TARIFA_BASE * 1.2;\n\t}", "public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }", "public BigDecimal getValorTotal() {\r\n \treturn valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN).subtract(valorDesconto).setScale(3, BigDecimal.ROUND_HALF_EVEN);\r\n }", "public Double getInternalTotalComDesconto() {\r\n double preco, quantidade, desconto; \r\n double valor = 0, valorDescontado = 0;\r\n preco = (getPrecoUnitario() == null) ? 0 : getPrecoUnitario().doubleValue();\r\n quantidade = (getQuantidade() == null) ? 0 : getQuantidade().doubleValue();\r\n desconto = (getDesconto() == null) ? 0 : getDesconto().doubleValue();\r\n \r\n \tvalor = (preco * quantidade);\r\n \tvalorDescontado = (valor / 100) * desconto;\r\n return new Double(valor - valorDescontado);\r\n }", "@Override\n\tpublic void acelerar() {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tvelocidadActual += 40;\n\t\t\t\tif(velocidadActual>250) {\n\t\t\t\t\tvelocidadActual = 250;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdepositoActual -= 10;\n\t\t\t\tSystem.out.println(\"Velocidad del ferrari: \"+velocidadActual);\n\t}", "double getDiametro(){\n return raggio * 2;\n }", "public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }", "public Double getInternaltotalSemDesconto() {\r\n double preco, quantidade;\r\n double valor = 0;\r\n preco = (getPrecoUnitario() == null) ? 0 : getPrecoUnitario().doubleValue();\r\n quantidade = (getQuantidade() == null) ? 0 : getQuantidade().doubleValue();\r\n\r\n \tvalor = (preco * quantidade);\r\n return new Double(valor);\r\n }", "public Double getTotal();", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }", "public double portataMassicaFumi( ){\r\n\t\treturn portatamassica;\r\n\t}", "public float calculaPremioConsoanteResultado (Aposta aposta, Evento.Resultado res){\n switch (res) {\n case VITORIA:\n return aposta.calculaPremio(\"1\");\n case EMPATE:\n return aposta.calculaPremio(\"x\");\n case DERROTA:\n return aposta.calculaPremio(\"2\");\n }\n return 0;\n \n }", "public BigDecimal calcularValorUtilizado(Emenda e) {\n\t\t\n\t\tBigDecimal valorUsado = new BigDecimal(0);\t\t\n\t\tList<IndicacaoEmenda> indicacoes = indicacaoEService.findByEmenda(e);\n\t\t\n\t\tfor (IndicacaoEmenda indicacao : indicacoes) {\n\t\t\tvalorUsado = valorUsado.add(indicacao.getValorDestinado());\n\t\t}\n\t\t\n\t\treturn valorUsado;\n\t}", "double getValue();", "double getValue();", "double getValue();", "@Override\n public double obtenrArea() {\n return lado*lado;\n }", "public double precioFinal(){\r\n \r\n double plus = 0;\r\n \r\n switch(consumoElectrico){\r\n case 'A':\r\n plus +=100;\r\n break;\r\n case 'B':\r\n plus += 80;\r\n break;\r\n case 'C':\r\n plus +=60;\r\n break;\r\n case 'D':\r\n plus +=50;\r\n break;\r\n case 'E':\r\n plus+=30;\r\n break;\r\n case 'F':\r\n plus+=10;\r\n break;\r\n \r\n }\r\n \r\n \r\n if(peso>=0 && peso<=19){\r\n plus+=10;\r\n }else if(peso >=20 && peso<= 49){\r\n plus+=50;\r\n }else if(peso >= 50 && peso<=79){\r\n plus+=80;\r\n }else if(peso>=80){\r\n plus+=100;\r\n }\r\n return precioBase+plus;\r\n }", "public double getPreco();", "public double getPreco();", "public void calcular(View view) {\n int quilos = Integer.valueOf(editTextQuantidade.getText().toString());\n int total = (quilos *1000)/500;\n \n String message = \"Com \" + quilos + \"kg de chocolate da para fazer \" + total + \" ovos de 500g.\";\n textViewTotal.setText(message);\n }", "public abstract int calcularOferta();", "@Override\n public Float compute() {\n\treturn calc();\n }", "public void acelera(double aceleracion){\n\t\tsuVelocidad += aceleracion;\n\t}", "public Double getValor() {\n return valor;\n }", "@Override\n public double calcValue() throws IllegalArgumentException {\n // calcolo ricorsivo del risultato dell'operazione\n double l = leftChild.calcValue();\n double r = rightChild.calcValue();\n // effettivo calcolo del risultato\n return oper.getOperation().calcValue(l, r);\n }", "public double obtValor() {\r\n\t\treturn v;\r\n\t}", "private void equate()\n\t{\n\t\t\tif(Fun == Function.ADD)\n\t\t\t{\t\t\t\n\t\t\t\tresult = calc.sum ( );\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end ADD condition\n\t\t\t\n\t\t\telse if(Fun == Function.SUBTRACT)\n\t\t\t{\n\t\t\t\tresult = calc.subtract ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end SUBTRACT condition\n\t\t\t\n\t\t\telse if (Fun == Function.MULTIPLY)\n\t\t\t{\n\t\t\t\tresult = calc.multiply ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end MULTIPLY condition\n\t\t\t\n\t\t\telse if (Fun == Function.DIVIDE)\n\t\t\t{\n\t\t\t\tresult = calc.divide ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}\n\t\t\t\t\n\t}", "public double calcularAlvoMaximo() {\r\n\t\treturn calcularFrequenciaMaxima()*0.85;\r\n\t}", "public int getDineroRecaudadoPorMaquina1()\n {\n return maquina1.getTotal();\n }", "int getSuma();", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "public double getTotal_Venta() {\n return total_Venta;\n }", "public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }", "public double getTotalCartValue();", "public double ValidaValor(){\n\t return 0;\n }" ]
[ "0.7367315", "0.7084708", "0.7059798", "0.69538283", "0.6936577", "0.690285", "0.6869526", "0.67515", "0.66733116", "0.66626763", "0.6662643", "0.6643921", "0.66249883", "0.6610353", "0.6609849", "0.66027695", "0.6592032", "0.6578711", "0.6565703", "0.6562549", "0.6505885", "0.6472753", "0.64660585", "0.6453819", "0.64468986", "0.6443963", "0.643502", "0.6422187", "0.64161235", "0.6408294", "0.6407238", "0.6402291", "0.64002866", "0.63723713", "0.6361801", "0.6360375", "0.6350738", "0.63327587", "0.6330754", "0.63301224", "0.6320741", "0.6318457", "0.6315375", "0.6304836", "0.6299177", "0.6297636", "0.6292392", "0.62855023", "0.6282812", "0.6281373", "0.6256904", "0.6245928", "0.62414855", "0.6237544", "0.62295556", "0.6227468", "0.62207156", "0.6219618", "0.6216026", "0.6211555", "0.62099", "0.6207217", "0.62046677", "0.62004024", "0.61986953", "0.6198334", "0.6197488", "0.6183194", "0.61710125", "0.6164378", "0.61631745", "0.6163027", "0.6159121", "0.61538285", "0.6148192", "0.61433816", "0.6136341", "0.61333746", "0.61333746", "0.61333746", "0.6131646", "0.6116707", "0.61164945", "0.61164945", "0.6115259", "0.6106753", "0.6094086", "0.6086374", "0.6080502", "0.60770553", "0.60748047", "0.60718143", "0.60714525", "0.6068547", "0.606782", "0.6066682", "0.60646355", "0.6057096", "0.60535496", "0.6045605" ]
0.6339265
37
Created by GreenTechAndroid on 2/20/2018.
public interface LoginPresenter { void onCreate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onFirstUse() {}", "@Override\n public void perish() {\n \n }", "@Override\n protected void initialize() {\n\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\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void onPostInit()\n {\n\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {\n\n }", "private stendhal() {\n\t}", "@Override\n void init() {\n }", "@Override\n\tprotected void onCreate() {\n\t}", "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 61;BA.debugLine=\"utilidades.ResetUserFontScale(Activity)\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv0 /*String*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(mostCurrent._activity.getObject())));\n //BA.debugLineNum = 62;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n public void init() {\n }", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n public void onCreate() {\n }", "@Override\n public void initialize() { \n }", "@Override\n public void onInit()\n {\n\n }", "@Override\n public void onFinish() {\n }", "@Override\r\n\tprotected void onPreExecute() {\n\t}", "@Override\n public void onFinish() {\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void init() {}", "@Override\n public void initialize() {\n \n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "@Override\n protected void init() {\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 public void onFinished() {\n }", "@Override\n public void onFinished() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public final void mo51373a() {\n }", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\n\t\t\t\t\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\r\n public void onFinish() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\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 protected void onPreExecute() {\n }", "private MApi() {}", "@Override\n public void onCreate() {\n\n }", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void initialize() {\n\n }", "@Override\n public void initialize() {\n\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private Platform() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void onFinished() {\n\n }", "@Override\n protected void onPreExecute() {\n \n }", "@Override\n public void memoria() {\n \n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\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\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\n public void initialize() {\n }", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\n protected void onPreExecute() {\n\n\n }" ]
[ "0.5909002", "0.5709394", "0.56738955", "0.5649815", "0.5649815", "0.5649815", "0.5649815", "0.5649815", "0.5649815", "0.5618121", "0.5607903", "0.5589459", "0.55814457", "0.5530453", "0.5485388", "0.5475684", "0.5440144", "0.54385686", "0.5432443", "0.54273605", "0.5420208", "0.54139847", "0.5404971", "0.53981614", "0.5397311", "0.5360251", "0.5360251", "0.5360251", "0.5339246", "0.53361076", "0.53294015", "0.53294015", "0.5322136", "0.5322136", "0.53205186", "0.5313566", "0.5313327", "0.53114367", "0.53114367", "0.5301265", "0.5301265", "0.52992624", "0.52992624", "0.5284307", "0.52783597", "0.52744466", "0.5274012", "0.5268596", "0.5268596", "0.5268596", "0.5268596", "0.5268596", "0.5268596", "0.5268596", "0.5268596", "0.5268596", "0.5268596", "0.5263851", "0.5261055", "0.52574766", "0.5252752", "0.5252752", "0.5244253", "0.52329093", "0.5227827", "0.5212568", "0.52081823", "0.51989096", "0.51959467", "0.51946026", "0.51923853", "0.51923853", "0.518986", "0.518986", "0.51880676", "0.51852244", "0.5178246", "0.51676303", "0.51676303", "0.51667076", "0.5166175", "0.5164733", "0.5154192", "0.51511705", "0.51475096", "0.51453304", "0.51453304", "0.51445705", "0.51445705", "0.51445705", "0.51445705", "0.51445705", "0.5144389", "0.5144389", "0.51438826", "0.51343477", "0.5129996", "0.51294035", "0.5128714", "0.5127402", "0.5125948" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onCreate(SQLiteDatabase db) { db.execSQL( "create table contacts " + "(id integer primary key, roll text,ct1 text,ct2 text, ct3 text,ct4 text,days text, present text,exam text,ct1_2 text,ct2_2 text, ct3_2 text,ct4_2 text,days_2 text, present_2 text,exam_2 text,ct1_3 text,ct2_3 text, ct3_3 text,ct4_3 text,days_3 text, present_3 text,exam_3 text,ct1_4 text,ct2_4 text, ct3_4 text,ct4_4 text,days_4 text, present_4 text,exam_4 text,ct1_5 text,ct2_5 text, ct3_5 text,ct4_5 text,days_5 text, present_5 text,exam_5 text)" ); }
{ "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